/* public/css/style.css */

/* 1. IMPORTS: Premium Fonts */
/* 'Playfair Display' matches your Serif "5". 'Inter' matches your modern text. */
/* Fonts are now loaded via header.php to support CDN switching */

/* 2. ROOT VARIABLES (Bootstrap Overrides) */
:root {
    /* BRAND COLORS */
    --brand-black: #121212;       /* Deep luxurious black for backgrounds/text */
    --brand-white: #ffffff;
    --coffee-accent: #6F4E37;     /* "Coffee Bean" Brown - Used for primary buttons */
    --coffee-light: #fdfbf7;      /* Very subtle cream for section backgrounds */
    
    /* BOOTSTRAP OVERRIDES */
    --bs-primary: var(--coffee-accent); 
    --bs-body-font-family: 'Inter', sans-serif;
    --bs-heading-font-family: 'Playfair Display', serif;
    --bs-link-color: var(--brand-black);
    --bs-link-hover-color: var(--coffee-accent);
}

/* 3. GENERAL STYLING */
body {
    color: var(--brand-black);
    -webkit-font-smoothing: antialiased;
}

/* SCROLLING MARQUEE BANNER */
.marquee-banner {
    background: var(--brand-black);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
}

.marquee-item {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-separator {
    margin: 0 20px;
    opacity: 0.5;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.marquee-banner:hover .marquee-track {
    animation-play-state: paused;
}

/* RTL - Reverse direction */
[dir="rtl"] .marquee-track {
    animation: marquee-scroll-rtl 30s linear infinite;
}

@keyframes marquee-scroll-rtl {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.5px; /* Tighter tracking for a premium feel */
}

/* 4. NAVBAR CUSTOMIZATION */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important; /* Slight transparency */
    backdrop-filter: blur(10px); /* Frosted glass effect */
}

/* Centered Logo Navigation Layout */
.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    position: relative;
    flex-wrap: nowrap;
    flex-grow: 1;
}

.navbar-nav-left {
    display: none;
}

.navbar-nav-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 16px;
}

/* Language Selector - Positioned Independently */
.language-selector-wrapper {
    position: static;
    margin-left: 8px;
}

/* Nav Link Styling - Pickup Coffee Style */
.nav-link-custom {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-black) !important;
    padding: 8px 0 !important;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.nav-link-custom:hover {
    color: var(--coffee-accent) !important;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-black);
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
    width: 100%;
}

/* Mobile Navigation - Stack vertically */
@media (max-width: 991px) {
    .navbar-collapse {
        display: none;
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }

    .navbar-collapse.show {
        display: flex;
    }

    .navbar-nav-left,
    .navbar-nav-right {
        flex-direction: column;
        width: 100%;
        align-items: flex-start !important;
    }

    .navbar-brand-center {
        order: -1;
        margin: 15px 0 !important;
        align-self: center;
    }

    .navbar-nav-left {
        order: 1;
        margin-bottom: 1rem;
    }

    .navbar-nav-right {
        order: 2;
    }

    .navbar-toggler {
        order: 0;
    }
}

/* FULL PAGE VIDEO SECTION */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    padding: 20px;
}

/* Tablet adjustments */
@media (max-width: 992px) {
    .video-section {
        height: 70vh;
    }
}

.navbar-brand img {
    min-height: 100px; /* Minimum logo height */
    height: 100px;
    width: auto;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-brand img {
        min-height: 60px;
        height: 60px;
    }
}

/* 5. HERO SECTION */
/* We use a dark gradient overlay to make text pop if you use a photo background */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* 5b. FLUID CANVAS (WebGL coffee splash overlay on hero) */
#fluid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: auto;
    opacity: 0.6;
}

.hero-section .hero-content {
    z-index: 3 !important;
    pointer-events: auto;
}

/* 6. INTERACTIVE CARDS (The "Floating" Effect) */
.hover-shadow {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #eee;
    background: white;
}

.hover-shadow:hover {
    transform: translateY(-8px); /* Lifts the card up */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important; /* Soft shadow drop */
    border-color: transparent;
}

.hover-shadow .bi {
    transition: color 0.3s ease;
}

.hover-shadow:hover .bi {
    color: var(--coffee-accent) !important; /* Icon turns coffee color on hover */
}

/* 7. BUTTONS */
.btn-primary {
    background-color: var(--brand-black); /* Default to Black for "Premium" feel */
    border-color: var(--brand-black);
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--coffee-accent); /* Turns Coffee Brown on hover */
    border-color: var(--coffee-accent);
    transform: scale(1.02);
}

.btn-outline-primary {
    color: var(--brand-black);
    border-color: var(--brand-black);
}

.btn-outline-primary:hover {
    background-color: var(--brand-black);
    color: white;
}

/* 8. FOOTER */
footer {
    background-color: var(--brand-black) !important;
}

/* 9. UTILITIES */
.text-coffee {
    color: var(--coffee-accent) !important;
}

.bg-cream {
    background-color: var(--coffee-light);
}

/* UPDATED HERO SECTION */
.hero-section {
    position: relative;
    /* Background image - Update this path when using CDN */
    /* To use CDN: Replace with your-cdn-url/images/backgrounds/coffee-beans-bg.jpg */
    /* Download from: https://images.unsplash.com/photo-1610632380989-680fe40816c6?w=2500 */
    background: url('../images/backgrounds/coffee-beans-bg.jpg') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Dark gradient overlay to ensure text readability */
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: none;
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* RTL support */
[dir="rtl"] .hero-content {
    text-align: right;
}

/* Mobile: stack nicely */
@media (max-width: 767.98px) {
    .hero-section {
        height: auto;
        min-height: 90vh;
        padding: 6rem 0 4rem;
    }
    .hero-content h1 {
        font-size: 2.75rem !important;
    }
}

/* Override Bootstrap display sizes on XL screens */
@media (min-width: 1200px) {
    .display-1 {
        font-size: 3.5rem;
    }
    .display-5 {
        font-size: 2rem;
    }
}

/* Add accent bar color utility */
.bg-coffee {
    background-color: var(--coffee-accent) !important;
}

/* Override Bootstrap primary colors to use coffee brown */
.text-primary {
    color: var(--coffee-accent) !important;
}

.bg-primary {
    background-color: var(--coffee-accent) !important;
}

/* 2. FEATURE ICONS (The 3 blue icons) */
.feature-icon-box {
    text-align: center;
    padding: 2rem;
}
.feature-icon-box img {
    height: 60px;
    margin-bottom: 1.5rem;
}

/* 3. SPLIT SECTIONS (Text + Image) */
.split-section {
    overflow: hidden;
}
.split-img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}
.split-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    height: 100%;
}

/* 4. CHAMPIONS CAROUSEL */
.champion-card {
    position: relative;
    overflow: hidden;
    color: white;
}
.champion-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s;
}
.champion-card:hover img {
    transform: scale(1.05);
}
.champion-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
}

/* 5. STORE CAROUSEL */
.store-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
}
.store-card img {
    height: 300px;
    object-fit: cover;
}
.store-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, #003087 0%, transparent 100%); /* Luckin Blue gradient */
    color: white;
}
/* Footer Link Hover Effect */
.hover-underline {
    position: relative;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.hover-underline:hover {
    opacity: 1;
    text-decoration: underline !important;
}
/* --- SIGNATURE ACCORDION SLIDER --- */

.signature-section {
    background-color: #fff; /* White background as requested */
    padding: 4rem 0;
    padding-top: 50px !important;
}

.accordion-container {
    display: flex;
    width: 100%;
    height: 500px; /* Tall enough to show the drink details */
    overflow: hidden;
    gap: 0; /* Seamless connection like Luckin */
}

.accordion-panel {
    position: relative;
    height: 100%;
    flex: 1; /* Default: all panels share equal space */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth 'ease-out' expansion */
    overflow: hidden;
    position: relative;
}

/* Dark overlay to make text readable */
.accordion-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
    opacity: 0.6;
    transition: opacity 0.4s;
}

/* When a panel is active (hovered or clicked), it grows */
.accordion-panel.active {
    flex: 4; /* Grows 4x wider than the others */
}

.accordion-panel.active::before {
    opacity: 0.8; /* Darken bottom slightly more for text readability */
}

/* TEXT CONTENT */
.panel-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    opacity: 0; /* Hidden by default */
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s; /* Delay allows panel to open first */
    color: white;
}

/* Show text only when active */
.accordion-panel.active .panel-content {
    opacity: 1;
    transform: translateY(0);
}

/* The vertical title (Visible when collapsed) */
.panel-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 1;
    transition: opacity 0.3s;
    writing-mode: vertical-rl; /* Vertical text */
    text-orientation: mixed;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Hide the vertical label when the panel is open */
.accordion-panel.active .panel-label {
    opacity: 0;
}

/* --- MOBILE RESPONSIVENESS FIX --- */

@media (max-width: 768px) {
    /* 1. Stack the Accordion Vertically on Mobile */
    .accordion-container {
        flex-direction: column; /* Stack panels top-to-bottom */
        height: auto; /* Let it grow naturally */
        min-height: 600px;
    }

    .accordion-panel {
        width: 100% !important; /* Full width */
        height: 80px; /* Collapsed height */
        flex: none; /* Disable flex-grow behavior for a moment */
        transition: height 0.4s ease; /* Animate height instead of width */
    }

    /* When active on mobile, expand HEIGHT, not width */
    .accordion-panel.active {
        height: 350px; /* Expanded height */
        flex: none;
    }

    /* 2. Adjust Text for Small Screens */
    .panel-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .display-1 { font-size: 3.5rem !important; }
    .display-4 { font-size: 2.5rem !important; }
    .display-5 { font-size: 2rem !important; }
    
    /* 3. Reset the Vertical Text Label to Horizontal for readability */
    .panel-label {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
        bottom: auto;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* Hide label when active (same as desktop) */
    .accordion-panel.active .panel-label {
        opacity: 0;
    }
}
/* --- STORE CAROUSEL STYLES --- */
.store-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 0 40px 0; /* Space for shadow/hover expansion */
}

.store-track {
    display: flex;
    gap: 24px; /* Space between cards */
    transition: transform 0.5s ease-in-out;
}

.store-slide {
    min-width: 100%;       /* Mobile: 1 card per view */
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .store-slide {
        min-width: calc(33.333% - 16px); /* Desktop: 3 cards per view */
        flex: 0 0 calc(33.333% - 16px);
    }
}

.store-card {
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.store-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.store-card:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.store-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: white;
    z-index: 2;
}

.store-meta {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* --- COFFEE PRELOADER --- */

/* 1. The Full Screen Overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.preloader-logo {
    width: 120px;
    height: auto;
    animation: logoPulse 1.4s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* HIDE STATE (Added by JS) */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* =========================================
   55COFFEE MENU PAGE - SIDEBAR LAYOUT
   ========================================= */

/* COLOR VARIABLES FOR MENU - 55Coffee Black & White Theme */
:root {
    --menu-accent: #1a1a1a;        /* Black accent */
    --menu-accent-hover: #333333;  /* Lighter black for hover */
    --menu-text: #1a1a1a;          /* Dark text */
    --menu-text-light: #6c757d;    /* Muted gray text */
    --menu-bg: #ffffff;            /* White background */
    --menu-card-bg: #f8f9fa;       /* Light gray card background */
    --menu-shadow: rgba(0, 0, 0, 0.08);
    --menu-gap: clamp(14px, 1.6vw, 24px);
    --menu-sticky-top: 150px;
}

@media (max-width: 1200px) {
    :root {
        --menu-sticky-top: 146px;
    }
}

/* MAIN MENU LAYOUT - SIDEBAR + CONTENT */
.menu-page-wrapper {
    display: grid;
    grid-template-columns: minmax(180px, clamp(180px, 18vw, 250px)) minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 40px);
    padding: clamp(20px, 3vw, 40px) 0;
    min-height: auto;
    width: 100%;
    align-items: start;
}

/* LEFT SIDEBAR */
.menu-sidebar {
    position: sticky;
    top: calc(var(--menu-sticky-top) + env(safe-area-inset-top));
    align-self: flex-start;
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    max-height: calc(100dvh - var(--menu-sticky-top) - 1rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.menu-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-sidebar-item {
    display: block;
    padding: 12px 18px;
    background: transparent;
    color: var(--menu-accent);
    border: 2px solid var(--menu-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: normal;
    overflow-wrap: anywhere;
}

.menu-sidebar-item:hover {
    background: var(--menu-accent);
    color: white;
    transform: translateX(5px);
}

.menu-sidebar-item.active {
    background: var(--menu-accent);
    color: white;
}

/* RTL - Sidebar on right */
[dir="rtl"] .menu-sidebar-item:hover {
    transform: translateX(-5px);
}

/* MAIN CONTENT AREA */
.menu-main-content {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* CATEGORY SECTION */
.menu-category-section {
    margin-bottom: 60px;
    scroll-margin-top: calc(var(--menu-sticky-top) + 20px);
}

.menu-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--menu-text);
    letter-spacing: -0.5px;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 30px;
}

/* PRODUCT GRID - FLUID COLUMNS */
.menu-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: var(--menu-gap);
}

/* PRODUCT CARD - 55Coffee Style */
.menu-product-card {
    background: var(--menu-bg);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* PRODUCT IMAGE */
.menu-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: var(--menu-card-bg);
}

.menu-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-product-card:hover .menu-product-image img {
    transform: scale(1.05);
}

/* PRODUCT INFO */
.menu-product-info {
    padding: 1.25rem;
    text-align: center;
    background: white;
}

.menu-product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--menu-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.menu-product-price {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--menu-text-light);
}

.menu-product-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--menu-text-light);
    margin-top: 0.5rem;
    display: none;
}

/* EMPTY STATE */
.menu-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--menu-text-light);
}

.menu-empty-state i {
    font-size: 48px;
    opacity: 0.3;
    display: block;
    margin-bottom: 16px;
}

/* MOBILE SIDEBAR - HORIZONTAL SCROLL */
.menu-mobile-nav {
    display: none;
    position: sticky;
    top: var(--menu-sticky-top);
    z-index: 100;
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .menu-mobile-nav {
        top: 95px;
    }
}

.menu-mobile-nav .container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.menu-mobile-nav .container::-webkit-scrollbar {
    display: none;
}

.menu-mobile-nav-inner {
    display: flex;
    gap: 10px;
    padding: 0;
    width: max-content;
}

.menu-mobile-item {
    display: block;
    padding: 10px 20px;
    background: transparent;
    color: var(--menu-accent);
    border: 2px solid var(--menu-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.menu-mobile-item.active,
.menu-mobile-item:hover {
    background: var(--menu-accent);
    color: white;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
    .menu-page-wrapper {
        grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    }
}

@media (max-width: 992px) {
    .menu-page-wrapper {
        grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
        gap: 18px;
    }

    .menu-sidebar-item {
        padding: 10px 14px;
        font-size: 12px;
    }

    .menu-category-title {
        font-size: 26px;
    }
}

@media (max-width: 1024px) {
    /* Hide desktop sidebar, show mobile nav */
    .menu-sidebar {
        display: none;
    }

    .menu-mobile-nav {
        display: block;
    }

    .menu-page-wrapper {
        display: block;
        gap: 0;
        padding: 0;
    }

    .menu-main-content {
        padding: 20px 15px;
    }

    .menu-category-section {
        margin-bottom: 40px;
        scroll-margin-top: 250px;
    }

    .menu-category-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .menu-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
        gap: 16px;
    }

    .menu-product-info {
        padding: 12px;
    }

    .menu-product-name {
        font-size: 13px;
    }

    .menu-product-price {
        font-size: 12px;
    }
}

/* Touch devices (including large tablets like iPad Pro landscape) */
@media (hover: none) and (pointer: coarse) {
    .menu-sidebar {
        display: none;
    }

    .menu-mobile-nav {
        display: block;
    }

    .menu-page-wrapper {
        display: block;
        gap: 0;
        padding: 0;
    }

    .menu-main-content {
        padding: 20px 15px;
    }

    .menu-category-section {
        scroll-margin-top: 250px;
    }
}

@media (max-width: 480px) {
    .menu-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .menu-product-image img {
        width: 100%;
        height: 100%;
    }
}

/* RTL ADJUSTMENTS */
[dir="rtl"] .menu-page-wrapper {
    grid-template-columns: minmax(180px, clamp(180px, 18vw, 250px)) minmax(0, 1fr);
    padding-top: clamp(8px, 2vw, 24px);
}

html[dir="rtl"] {
    --menu-sticky-top: 120px;
}

[dir="rtl"] .menu-sidebar {
    margin-top: 12px;
}

[dir="rtl"] .menu-category-title {
    text-align: right;
}

[dir="rtl"] .menu-mobile-nav-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .menu-sidebar-item:hover {
    transform: translateX(-5px);
}

@media (max-width: 1024px) {
    [dir="rtl"] .menu-page-wrapper {
        display: block;
    }
}

@media (hover: none) and (pointer: coarse) {
    [dir="rtl"] .menu-page-wrapper {
        display: block;
    }
}

img.img-fluid.rounded-4.shadow-lg.opacity-75 {
    border: 5px solid #ffffff !important;
}
