/* Custom scrollbar and animations */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.fade-in { animation: fadeIn 0.3s ease-in-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-loader {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Keep the page fade-in without transform.
   A transform on body creates a containing block for position: fixed drawers,
   causing the mobile drawer to move with the document after scrolling. */
body {
  animation: fadeInPage 0.4s ease-in-out forwards;
}

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

.brand-title-text {
    transition: color 0.35s ease,
                transform 0.35s ease;
    display: inline-block;
}

.brand-title-text:hover {
    color: #C47B45;
    transform: scale(1.04);
}

@keyframes brandReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.brand-title-text {
    display: inline-block;
    animation: brandReveal 1.5s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes sloganBlurReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

.brand-slogan {
    display: inline-block;
    animation: sloganBlurReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
}
.marquee-row-1 {
    animation: scrollLeft 8s linear infinite;
}
.marquee-row-2 {
    animation: scrollRight 8s linear infinite;
}
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* MOBILE DRAWER DESIGN */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
    overflow: hidden;
}

#mobile-menu.drawer-open {
    display: block;
    opacity: 1;
    visibility: visible;
}

#mobile-drawer-box {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    height: 100dvh;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 20px;
    transform: translateX(-100%);
    transition: transform 350ms cubic-bezier(.22, 1, .36, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 100000;
}

#mobile-menu.drawer-open #mobile-drawer-box {
    transform: translateX(0);
}

/* MOBILE DRAWER LOGO FIX */
.mobile-drawer-logo {
    width: 100%;
    height: 125px;
    min-height: 125px;
    max-height: 125px;
    box-sizing: border-box;
    padding: 8px 45px 15px 0;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f1f1;
    flex: 0 0 125px;
    overflow: hidden;
}

.mobile-drawer-logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.mobile-drawer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
    background: transparent;
}

.mobile-drawer-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 2px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}

.mobile-drawer-nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 13px 20px;
    margin-bottom: 2px;
    border-radius: 0 25px 25px 25px;
    color: #171717;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 250ms ease;
    border-bottom: 1px solid #eeeeee;
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
    background: #faf3dc;
    color: #ea580c;
    border-bottom-color: transparent;
}

.mobile-drawer-footer {
    flex-shrink: 0;
    padding-top: 12px;
    background: #ffffff;
}

.mobile-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
    padding: 12px;
    border-radius: 27px;
    border: 5px solid #f5d88b;
    background: linear-gradient(
        110deg,
        #9c326d 0%,
        #79218f 50%,
        #a000bd 100%
    );
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.7;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(171, 75, 171, 0.35);
    transition: all 250ms ease;
}

.mobile-drawer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(171, 75, 171, 0.45);
}

.mobile-drawer-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    color: #171717;
    font-size: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

body.drawer-active {
    overflow: hidden;
}

@media (max-width: 380px) {
    #mobile-drawer-box {
        width: 280px;
        padding-left: 20px;
        padding-right: 20px;
    }
}
.mobile-drawer-logo .brand-title-text {
    font-size: 1.25rem !important;
    line-height: 1.3;
}

.mobile-drawer-logo img {
    display: block;
    width: auto;
    height: auto;
}

#mobile-drawer-box > * {
    position: relative;
    z-index: 1;
}

#mobile-drawer-box .mobile-drawer-close {
    position: absolute;
    z-index: 10;
}


/* Mobile Drawer Scroll Fix */
#mobile-drawer-box {
    box-sizing: border-box;
    max-height: 100vh;
}

.mobile-drawer-footer {
    padding-bottom: 15px;
}

.mobile-drawer-logo-img {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
}

/* Navbar Hover Underline Animation Effect */
.nav-link-effect {
    position: relative;
    text-decoration: none;
}

.nav-link-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px; 
    left: 50%;
    background-color: #9333ea; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link-effect:hover::after,
.nav-link-effect.active::after {
    width: 100%; 
}

/* =========================================
   FOOD BROWSING - FULLSCREEN PRELOADER
========================================= */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    height: 100lvh;
    min-height: 100%;
    z-index: 999999;
    background: #141c24; /* প্রি-লোডারের ডার্ক ব্যাকগ্রাউন্ড কালার */

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;

    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader .preloader-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#preloader-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

#preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #234b35;
    text-transform: uppercase;
}

#preloader-text.is-hidden {
    display: none;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader.preloader-skip {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.skip-preloader #preloader {
    display: none !important;
}

@media (max-width: 1023px) {
    header nav.hidden.lg\:flex {
        display: none !important;
    }
}

