@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Spicy+Rice&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Spicy+Rice&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

* {
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-decoration: none;
    outline: none;

    font-weight: 400;
    box-sizing: border-box;
    font-family: var(--main-font);
}

:root {
    --ternary-color: #402E25;
    --main-color: #DAB678;
    --main-color-deep: #C29A5C;
    --body-color: #ffffff;
    --secondary-color:  #DAB678;
    --background-image: radial-gradient(93% 87% at 87% 89%, rgba(0, 0, 0, 0.23) 0%, transparent 86.18%), radial-gradient(66% 87% at 26% 20%, rgba(255, 255, 255, 0.41) 0%, rgba(255, 255, 255, 0) 69.79%, rgba(255, 255, 255, 0) 100%);
    --main-font: "Afacad Flux", sans-serif;
    --heading-font: "Playfair Display", serif;
    --curly-font: "Cormorant Garamond", serif;
    --box-shadow:  #402E25;
    --shadow-sm: 0 2px 10px rgba(64, 46, 37, 0.10);
    --shadow-md: 0 10px 30px rgba(64, 46, 37, 0.16);
    --shadow-lg: 0 20px 50px rgba(64, 46, 37, 0.22);
    --radius: 14px;
}

body {
    background-color: var(--body-color);

}

/* ---------------------- */

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


.loader-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.flavor-circle {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    opacity: 0;
    animation: fade 1.6s infinite ease-in-out;
}

@keyframes fade {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Positioning the circles in a perfect circle using trigonometry */
.flavor-circle:nth-child(1) {
    background-color: #8b4513;
    /* Chocolate */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg) translate(60px) rotate(0deg);
    animation-delay: 0s;
}

.flavor-circle:nth-child(2) {
    background-color: #DAB678;
    /* Golden */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) translate(60px) rotate(-45deg);
    animation-delay: 0.2s;
}

.flavor-circle:nth-child(3) {
    background-color: #fff5e1;
    /* Vanilla */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg) translate(60px) rotate(-90deg);
    animation-delay: 0.4s;
}

.flavor-circle:nth-child(4) {
    background-color: #98ff98;
    /* Mint */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(135deg) translate(60px) rotate(-135deg);
    animation-delay: 0.6s;
}

.flavor-circle:nth-child(5) {
    background-color: #402E25;
    /* Dark Brown */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg) translate(60px) rotate(-180deg);
    animation-delay: 0.8s;
}

.flavor-circle:nth-child(6) {
    background-color: #ffb347;
    /* Mango */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(225deg) translate(60px) rotate(-225deg);
    animation-delay: 1s;
}

.flavor-circle:nth-child(7) {
    background-color: #93c572;
    /* Pistachio */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(270deg) translate(60px) rotate(-270deg);
    animation-delay: 1.2s;
}

.flavor-circle:nth-child(8) {
    background-color: #e30b5d;
    /* Raspberry */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(315deg) translate(60px) rotate(-315deg);
    animation-delay: 1.4s;
}


/* Transition for Loaded State */
body.loaded #preloader {
    display: none;
}

body.loaded #main-content {
    display: block;
}

/* ---------------------- */
::selection {
    background-color: var(--main-color);
    color: var(--ternary-color);
}

html {
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
}

button,
input[type="submit"] {
    background-image: var(--background-image);
    font-size: 16px;
    padding: 8px 30px;
    margin-bottom: 15px;
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 20px;
    color: var(--ternary-color);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-image 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background-image: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active,
input[type="submit"]:active {
    transform: scale(0.95);
    box-shadow: none;
}

button:focus-visible,
input[type="submit"]:focus-visible,
a:focus-visible {
    outline: 2px solid var(--ternary-color);
    outline-offset: 2px;
}

section {
    width: 100%;
    padding: 0 100px;
    margin: 50px 0;
}

section>h1 {
    font-size: 40px;
    text-align: center;
    color: var(--body-color);
    width: fit-content;
    margin: 0 auto;
    padding: 4px 25px;
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 0.5px;
    clip-path: polygon(100% 0, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
    background-color: var(--main-color);
    filter: drop-shadow(var(--shadow-sm));
}

.box-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;

}

.box {
    cursor: pointer;
    padding: 10px;
}

h3 {
    text-align: center;
    margin-top: -20px;
}


.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

::-webkit-scrollbar-track {
    width: 0;
}

.design1,
.design2,
.design3 {
    position: absolute;
    z-index: -1;
    height: 200px;
    width: 200px;
}

/* -------------header styles------------------- */
.nav-bar {
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: fit-content;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    padding: 0 100px;
    box-shadow: 0 2px 20px rgba(64, 46, 37, 0.12);
    transition: box-shadow 0.3s ease;
}

.nav-bar .logo a {
    letter-spacing: 0.5px;
}

.nav-bar .logo {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;

}

.nav-bar .logo a {
    font-size: 30px;
    font-weight: 400;
    color: var(--ternary-color);
    font-family: var(--curly-font);
}

.nav-bar .nav-links {
    height: 100%;
    display: flex;
    align-items: center;

}

.nav-bar .nav-links a {
    display: inline-block;
    line-height: 70px;
    position: relative;
    text-decoration: none;
    color: var(--main-color);
    font-size: 18px;
    letter-spacing: 1.3px;
    text-transform: capitalize;
    margin: 0 15px;
    padding: 0 8px;
}

.nav-bar .nav-links a {
    transition: color 0.3s ease;
}

.nav-bar .nav-links a:after {
    content: "";
    position: absolute;
    background-color: var(--main-color);
    border-radius: 10px;
    height: 3px;
    width: 0;
    left: 0;
    bottom: -1.5px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-bar .nav-links a:hover:after,
.nav-bar .nav-links a.active:after {
    width: 100%;

}

.nav-bar .icons {
    display: flex;
}

.nav-bar .icons .icon {
    padding: 0 5px;
    position: relative;
}

.nav-bar .icons i {
    font-size: 20px;
    margin: 0 8px;
    color: var(--main-color);
    padding: 10px 0;
    cursor: pointer;
    transition: 0.3s;
}

.nav-bar .icons i:hover {
    color: var(--ternary-color);
}

.nav-bar .icons i.menu {
    display: none;
}

.nav-bar .icons .no-of-cart-items,
.no-of-wishlist-items {
    position: absolute;
    color: var(--main-color);
    right: -15px;
    width: 25px;
    font-size: 12px;
}

/* cart styles */

.cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--body-color);
    border-left: 2px solid var(--main-color);
    padding: 10px;
    z-index: 1000;
    right: -100%;
    transition: right 0.3s ease;
}

.cart.active {
    right: 0;
}

.cart .no-empty-cart {
    display: none;
}

.cart .no-empty-cart.active {
    display: flex;
    flex-direction: column;
}

.cart ul li {
    padding: 7px;
    margin: 10px 0;
    border: 2px solid var(--ternary-color);
}

.cart ul li img {
    float: left;
    min-height: 80px;
    width: 80px;
    margin-right: 10px;
}

.cart ul li .text {
    position: relative;
    font-size: 13px;
    line-height: 17px;
}

.qtycart {
    margin: 0;
}

.qtycart {
    width: fit-content;
    display: flex;
    align-items: center;
    border: 2px solid rgba(80, 79, 79, 0.158);
    border-radius: 5px;
    padding: 0;
    margin: 10px 0;
}

.qtycart .pcs {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.qtycart span {
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.cart ul li .text .price {
    font-weight: 600;
}

.cart h1 {
    font-size: 20px;
    margin-top: 20px;
    text-align: center;
    color: var(--main-color);
}

.cart .total {
    font-weight: 600;
    padding: 10px;
}

.cart button {
    margin: 10px auto;
    width: 100%;
}

.cart .close-cart,
.remove-cart-item-btn {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: var(--main-color);
    font-size: 20px;
    transition: 0.3s;
}

.cart .close-cart:hover,
.remove-cart-item-btn:hover {
    color: var(--ternary-color);
}

.cart ul li .text .remove-cart-item-btn {
    font-size: 15px;
    top: 0;
    right: 0;
}

.cart .empty-cart {
    text-align: center;
    display: none;
}

.cart .empty-cart .empty-cart-info {
    text-align: center;
    font-size: larger;
    color: var(--ternary-color);
}

.empty-cart-text {
    font-size: 2em;
    color: var(--main-color);
    margin-top: 20%;
    margin-bottom: 10%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-cart-img-div {
    display: flex;
    justify-content: center;
}

.ice-cream-image {
    max-width: 50%;
    margin-top: 20%;
    height: auto;
}

@media (max-width: 768px) {
    .empty-cart-text {
        font-size: 1.5em;
    }

    .ice-cream-image {
        max-width: 80%;
    }
}

.cart .empty-cart.active {
    display: inline;
}

/* -------------footer styles------------------- */
.footer {
    background: var(--ternary-color);
    margin: 0;
    padding: 0;
    background-image: url("../images/footer.jpg");
    background-position: center;
    background-size: cover;
    border-top: 3px solid var(--main-color);
    position: relative;
}

.footer .footer-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3.5rem;
    padding: 60px 100px;
    background: rgba(0, 0, 0, 0.8);
}

.footer-row .footer-col h4 {
    color: var(--main-color);
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--heading-font);
    letter-spacing: 0.3px;
}

.footer-col .links {
    margin-top: 20px;
}

.footer-col .links li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-col .links li a {
    text-decoration: none;
    color: #e8c88a;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-col .links li a:hover {
    color: var(--body-color);
    padding-left: 4px;
}

.footer-col p {
    margin: 20px 0;
    color: #e8c88a;
    max-width: 300px;
}

.footer-col form {
    display: flex;
    gap: 5px;
}

.footer-col button {
    height: 40px;
}

.footer-col input {
    height: 40px;
    border-radius: 6px;
    background: none;
    width: 100%;
    outline: none;
    border: 1px solid var(--main-color);
    caret-color: var(--body-color);
    color: var(--body-color);
    padding-left: 10px;
}

.footer-col input::placeholder {
    color: #ccc;
}

.footer-col form button {
    border: none;
    border-radius: 6px;
}

.footer-col .icons {
    display: flex;
    margin-top: 30px;
    gap: 30px;
    cursor: pointer;
}

.footer-col .icons i {
    color: var(--main-color);
}

.footer-col .icons i:hover {
    color: #fff;
}

.footer-col .links li a.social:hover {
    color: var(--body-color);
}

.footer-col .links li a[href*="facebook.com"]:hover {
    background: linear-gradient(to right, blue, white);
    -webkit-background-clip: text;
    color: transparent;
}

.footer-col .links li a[href*="instagram.com"]:hover {
    color: #e4405f;
}

.footer-col .links li a[href*="linkedin.com"]:hover {
    color: #0a66c2;
}

.footer-col .links li a[href*="twitter.com"]:hover {
    color: #1DA1F2;
}

/* Whatsapp */
.footer-col .links li a[href*="whatsapp.com"]:hover {
    background: linear-gradient(to right, #25D366, #128C7E);
    -webkit-background-clip: text;
    color: transparent;
}

/*Footer Css ends here  */

.social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.copyright {
    background-color: var(--main-color);
    width: 100%;
    color: var(--ternary-color);
    text-align: center;
    border-top: 1px solid var(--main-color);
    padding: 10px;
}

/* scroll bottom to top */
.scroll-button {
    position: fixed;
    bottom: 4%;
    right: 2%;
    outline: none;
    border: none;
    border-radius: 100%;
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-tap-highlight-color: transparent;
    background-image: none;
    background-color: transparent;
    padding: 0;

}

.scroll-button:hover {
    background-color: transparent;
    transform: scale(1.1);
}

.scroll-button>img {
    width: 50px;
    height: 50px;
}

.show-btn {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Scroll Bar */

::-webkit-scrollbar {
    width: 0.8em;
    scroll-behavior: smooth;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--ternary-color);
}

@supports (var(--main-color)) {
    * {
        scrollbar-color: var(--main-color) transparent;
    }
}

/* Toaster styles */
.toast-container {
    position: fixed;
    top: 50px;
    margin: 0 10px;
    right: 0;
    z-index: 9999;
}

.toast {
    background-color: var(--main-color);
    color: var(--ternary-color);
    padding: 16px;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 1.1px;
    font-size: 16px;
    margin-bottom: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s forwards, fadeOut 4s 3s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Adding animation on what we do */
@keyframes appearleft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes appearright {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes appearbottom {
    from {
        opacity: 0;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

/* gallery Section */
.gallery-para {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.gallery-para p {
    font-size: 1.4rem;
}

/* ============================
   PAYMENT SCANNER MODAL
============================ */
.payment-modal,
.order-popup {
    position: fixed;
    inset: 0;
    background: rgba(26, 15, 8, 0.72);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.payment-modal.active,
.order-popup.active {
    display: flex;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.payment-box,
.popup-box {
    background: var(--body-color);
    padding: 36px 32px;
    border-radius: 20px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.payment-box h2,
.popup-box h2 {
    font-family: var(--heading-font);
    color: var(--ternary-color);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.payment-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--ternary-color);
    font-size: 22px;
    line-height: 1;
    padding: 4px 8px;
    margin: 0;
    cursor: pointer;
}

.payment-close:hover {
    background: none;
    color: var(--main-color-deep);
    transform: none;
    box-shadow: none;
}

.payment-amount {
    font-size: 1.1rem;
    color: var(--ternary-color);
    margin-bottom: 20px;
}

.payment-amount span {
    font-weight: 700;
    color: var(--main-color-deep);
}

.qr-scanner {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto 18px;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    border: 3px solid var(--main-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.qr-code {
    width: 100%;
    height: 100%;
    display: block;
}

.scan-line {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 8px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-color-deep), transparent);
    box-shadow: 0 0 10px var(--main-color);
    animation: scanMove 1.8s ease-in-out infinite;
}

@keyframes scanMove {
    0% { top: 8px; }
    50% { top: calc(100% - 14px); }
    100% { top: 8px; }
}

.payment-hint {
    font-size: 13px;
    color: #7a6a5c;
    margin-bottom: 20px;
    line-height: 1.5;
}

.simulate-pay-btn {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.payment-processing {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 6px;
}

.payment-processing.active {
    display: flex;
}

.payment-processing p {
    color: var(--ternary-color);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(218, 182, 120, 0.3);
    border-top-color: var(--main-color-deep);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.popup-box .confirm-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #2e9e5b;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes checkPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.popup-box p {
    color: #6b5a4c;
    margin-bottom: 4px;
    font-size: 14px;
}

.order-id-line {
    font-weight: 600;
    color: var(--ternary-color) !important;
    margin: 10px 0 18px !important;
    letter-spacing: 0.3px;
}

.popup-box button {
    margin-top: 6px;
    padding: 12px 34px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .payment-box, .popup-box {
        padding: 28px 22px;
    }
    .qr-scanner {
        width: 160px;
        height: 160px;
    }
}
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 8px;
    background: linear-gradient(90deg, #DAB678, #402E25, #DAB678);
    z-index: 9999;
    transition: width 0.25s ease-out;
    box-shadow: 0 0 8px rgba(218, 182, 120, 0.5);
}
@media (max-width: 768px) {
    .footer-col .links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col .links li {
        width: 140px;
    }

    .footer-col .links li a.social {
        display: flex !important;
        align-items: center;
        gap: 4px !important;
        justify-content: flex-start;
    }

    .footer-col .links li a.social i {
        width: 18px;
        margin-right: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }
}