/* ==========================================================================
   NORI & RICE - LUXURY SUSHI LOUNGE & BOOKING PLATFORM
   DESIGN SYSTEM & CUSTOM STYLESHEET
   ========================================================================== */

/* --- Fonts & Base Variables --- */

:root {
    /* Color Tokens - Luxury Dark Japanese Lounge */
    --color-bg-main: #0b272a;
    /* Very Dark Blue-Green */
    --color-bg-card: #132f34;
    /* Lighter Dark Blue-Green */
    --color-bg-glass: rgba(11, 39, 42, 0.75);
    --color-border-glass: rgba(232, 213, 192, 0.08);

    --color-primary: #d4a17b;
    /* Gold-Bronze Accent */
    --color-primary-rgb: 212, 161, 123;
    --color-secondary: #c18c64;
    /* Warm Beige-Gold */
    --color-secondary-rgb: 193, 140, 100;

    --color-text-primary: #f5f0e8;
    /* Soft White */
    --color-text-secondary: #e8d5c0;
    /* Light Beige / Creamy Secondary */
    --color-text-gold: #c18c64;

    --color-success: #15C05A;
    --color-danger: #E63946;

    /* Animation Speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-ar);
    /* Default is Arabic */
    overflow-x: hidden;
    overscroll-behavior-y: none; /* Disables pull-to-refresh for an app-like feel */
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(212, 161, 123, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(193, 140, 100, 0.03) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Language Override Class */
body.lang-en {
    font-family: var(--font-en);
}

body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en .font-serif {
    font-family: var(--font-serif);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-main);
}

::-webkit-scrollbar-thumb {
    background: #252530;
    border-radius: 10px;
    border: 2px solid var(--color-bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Glassmorphism Components --- */
.glass-panel {
    background: var(--color-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-glass);
}

.glass-card {
    background: linear-gradient(135deg, rgba(20, 20, 26, 0.8) 0%, rgba(10, 10, 14, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all var(--transition-medium);
}

.glass-card:hover {
    border-color: rgba(255, 92, 53, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 92, 53, 0.05);
}

/* --- Visual Category Slider (Unsurpassed Beauty) --- */
.category-slider-container {
    position: relative;
    padding: 10px 0;
    margin-bottom: 2rem;
}

.category-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 10px 5px 25px 5px;
    scroll-behavior: smooth;
    snap-type: x mandatory;
}

.category-card {
    flex: 0 0 auto;
    width: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-medium);
    snap-align: start;
    user-select: none;
}

.category-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-medium);
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(15%) brightness(0.9);
    transition: all var(--transition-medium);
}

.category-title {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-align: center;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Active Category State - Clean Luxury Gold Rim (No Glow) */
.category-card.active .category-img-wrapper {
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.12) translateY(-4px);
}

.category-card.active .category-img-wrapper img {
    filter: grayscale(0%) brightness(1.05);
}

.category-card.active .category-title {
    color: var(--color-primary);
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-card:hover:not(.active) .category-img-wrapper {
    transform: translateY(-2px);
    border-color: rgba(var(--color-primary-rgb), 0.4);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.2);
}

.category-card:hover:not(.active) .category-title {
    color: var(--color-text-primary);
}

@keyframes promoIn {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }

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

.animate-promo-in {
    animation: promoIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Featured Badge Animation */
@keyframes pulseSlow {

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

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.animate-pulse-slow {
    animation: pulseSlow 3s infinite ease-in-out;
}

.luxury-ticket {
    position: relative;
    background: radial-gradient(circle at 0 50%, transparent 12px, #14141a 13px),
        radial-gradient(circle at 100% 50%, transparent 12px, #14141a 13px);
    background-size: 100% 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    padding: 2.25rem;
}

.luxury-ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.ticket-divider {
    position: relative;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
    height: 1px;
}

.ticket-divider::before {
    content: '';
    position: absolute;
    left: -35px;
    top: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg-main);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-divider::after {
    content: '';
    position: absolute;
    right: -35px;
    top: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg-main);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-barcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    margin-top: 1.5rem;
}

.barcode-lines {
    width: 180px;
    height: 40px;
    background: linear-gradient(90deg,
            #fff 0%, #fff 2%, transparent 2%, transparent 4%,
            #fff 4%, #fff 7%, transparent 7%, transparent 8%,
            #fff 8%, #fff 9%, transparent 9%, transparent 12%,
            #fff 12%, #fff 13%, transparent 13%, transparent 16%,
            #fff 16%, #fff 20%, transparent 20%, transparent 21%,
            #fff 21%, #fff 22%, transparent 22%, transparent 26%,
            #fff 26%, #fff 30%, transparent 30%, transparent 32%,
            #fff 32%, #fff 33%, transparent 33%, transparent 35%,
            #fff 35%, #fff 38%, transparent 38%, transparent 42%,
            #fff 42%, #fff 43%, transparent 43%, transparent 46%,
            #fff 46%, #fff 48%, transparent 48%, transparent 52%,
            #fff 52%, #fff 55%, transparent 55%, transparent 58%,
            #fff 58%, #fff 60%, transparent 60%, transparent 64%,
            #fff 64%, #fff 68%, transparent 68%, transparent 70%,
            #fff 70%, #fff 71%, transparent 71%, transparent 75%,
            #fff 75%, #fff 78%, transparent 78%, transparent 80%,
            #fff 80%, #fff 84%, transparent 84%, transparent 86%,
            #fff 86%, #fff 89%, transparent 89%, transparent 92%,
            #fff 92%, #fff 94%, transparent 94%, transparent 97%,
            #fff 97%, #fff 100%);
}

/* --- Luxury Cart Floating Badge & Drawer --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    min-height: 0;
    background: #0e0e13;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

#cart-items-wrapper {
    min-height: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.cart-drawer.open {
    transform: translateX(-100%);
}

body.rtl-mode .cart-drawer {
    right: auto;
    left: -420px;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body.rtl-mode .cart-drawer.open {
    transform: translateX(100%);
}

@media (max-width: 640px) {
    .cart-drawer {
        right: -80vw;
        left: auto;
        width: 80vw;
    }

    body.rtl-mode .cart-drawer {
        left: -80vw;
        right: auto;
    }
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Luxury Customizer Selector Styles --- */
.option-chip {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Customizer active state styling - subtle and premium */
.customizer-btn-active {
    background: rgba(193, 140, 100, 0.1) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(193, 140, 100, 0.1);
}

.customizer-btn-active span {
    color: var(--color-primary) !important;
}

.option-chip:hover {
    background: rgba(255, 92, 53, 0.05);
    border-color: rgba(255, 92, 53, 0.3);
    color: var(--color-text-primary);
}

.option-chip.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, #d4431d 100%);
    border-color: transparent;
    color: var(--color-text-primary);
    box-shadow: 0 4px 15px rgba(255, 92, 53, 0.3);
}

/* Custom Checkbox styled for premium add-ons */
.addon-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.addon-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(193, 140, 100, 0.2);
}

.addon-card.selected {
    background: rgba(193, 140, 100, 0.04);
    border-color: rgba(193, 140, 100, 0.3);
}

.addon-card .checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.addon-card.selected .checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.addon-card.selected .checkbox::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: 900;
}

/* --- Custom Animations --- */
.animate-slide-up {
    animation: slideUp var(--transition-slow) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-medium) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gold-glow {
    box-shadow: 0 0 15px rgba(193, 140, 100, 0.25);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(30px);
    transition: transform var(--transition-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE and Edge */
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* --- Floating Mobile Bottom Navigation Bar (Elevated Capsule Pill) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 72px;
    border-radius: 24px;
    background: rgba(10, 10, 14, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(193, 140, 100, 0.05);
    z-index: 99;
    padding: 0 1rem;
    transition: all var(--transition-medium);
}

.m-nav-item {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.m-nav-item:active {
    transform: scale(0.9);
}

.m-nav-item.active {
    color: var(--color-primary) !important;
}

.m-nav-item.active .m-nav-indicator {
    display: block !important;
}

/* --- Custom Hero Slide Image --- */
.hero-slider-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
}

@media (min-width: 768px) {
    .hero-slider-wrap {
        height: 600px;
        border-radius: 32px;
    }
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 11, 14, 0.3) 0%, rgba(11, 11, 14, 0.95) 100%);
    z-index: 2;
}

.hero-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.05);
    transform: scale(1.03);
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(1deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floor-map-container {
        height: 380px;
    }

    .map-element[data-type="table"] .shape {
        width: 44px;
        height: 44px;
    }

    .map-element[data-type="room"] .shape {
        width: 72px;
        height: 60px;
    }

    .map-element[data-type="bar"] .shape {
        width: 26px;
        height: 26px;
    }

    .map-chair {
        width: 8px;
        height: 8px;
    }

    .map-sushi-bar-counter::after {
        font-size: 7px;
        letter-spacing: 1px;
    }
}

/* ==========================================================================
   NORI & RICE - SHOPPABLE 3D FLIPBOOK STYLES
   ========================================================================== */

#book-menu-wrapper {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#book-menu-wrapper.hidden {
    display: none !important;
}

.flipbook-outer {
    perspective: 2500px;
    transform-style: preserve-3d;
    -webkit-perspective: 2500px;
    -webkit-transform-style: preserve-3d;
}

/* --- CORE OPTIMIZED BOOK STYLES --- */
.flipbook-outer {
    perspective: 2000px;
    -webkit-perspective: 2000px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.sushi-book {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 600px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-page {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    will-change: transform;
    pointer-events: none;
}

.book-page.active-page {
    pointer-events: auto;
    z-index: 50 !important;
}

.page-front,
.page-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    background: #132f34;
    border: 1px solid rgba(212, 161, 123, 0.2);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.page-back {
    transform: rotateY(180deg);
}



/* On Desktop: Dual Page spread */
@media (min-width: 840px) {
    .sushi-book {
        max-width: 920px;
        /* Dual page spread width */
        width: 920px;
        transform: translateX(0);
        border-left: none;
        /* No side spine on desktop spread */
    }

    .book-page {
        width: 50%;
        left: 50%;
        transform-origin: left center;
        border-radius: 0 20px 20px 0;
    }

    /* Overwrite flipped state on desktop to use standard 3D spread flip */
    .book-page.flipped {
        transform: rotateY(-180deg) translateZ(0);
        -webkit-transform: rotateY(-180deg) translateZ(0);
        opacity: 1;
        transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), z-index 0s 0.9s;
    }

    .page-front {
        border-radius: 0 20px 20px 0;
    }

    .page-back {
        border-radius: 20px 0 0 20px;
        border-right: 1px solid rgba(0, 0, 0, 0.4);
    }

    /* Spine reflection highlight in center of spread */
    .page-back::after {
        background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.5) 70%, rgba(255, 255, 255, 0.03) 95%, rgba(0, 0, 0, 0.6) 100%);
    }

    .page-front::after {
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5) 70%, rgba(255, 255, 255, 0.03) 95%, rgba(0, 0, 0, 0.6) 100%);
    }
}

/* Hide navigation arrows on mobile (rely on finger swipe with true 3D flip) */
@media (max-width: 839px) {
    .flipbook-outer>button {
        display: none !important;
    }

    .flipbook-outer {
        perspective: 1800px;
        -webkit-perspective: 1800px;
        padding: 0;
    }

    .sushi-book {
        max-width: 100%;
        width: 100%;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
        height: 580px;
        transition: none;
    }

    .book-page {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        will-change: transform, opacity;
        -webkit-perspective: none;
        perspective: none;
        transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.65s ease, z-index 0s;
        border-radius: 24px;
        width: 100%;
        left: 0;
        transform-origin: left center;
        opacity: 1;
        transform: rotateY(0deg) translateZ(0);
    }

    .book-page.active-page {
        will-change: transform, opacity;
    }

    .book-page.book-page-offscreen {
        display: none !important;
    }

    .book-page::before {
        display: none;
    }

    .book-page.flipped {
        transform: rotateY(-100deg) scale(0.95) translateZ(0);
        -webkit-transform: rotateY(-100deg) scale(0.95) translateZ(0);
        opacity: 0; 
        transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.55s ease-out, z-index 0s 0.65s;
    }

    .page-front,
    .page-back {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transition: none;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(212, 161, 123, 0.1);
    }

    .page-front::after,
    .page-back::after {
        width: 16px;
    }
}

@media (max-width: 839px) and (prefers-reduced-motion: reduce) {

    .book-page,
    .book-page.flipped {
        transition: none !important;
    }
}

/* --- High-end Custom Buttons & Accent Overrides --- */
.bg-primary {
    background-color: #c18c64 !important;
    color: #0b272a !important;
    font-weight: 900 !important;
}

.bg-primary:hover {
    background-color: #d4a17b !important;
    color: #0b272a !important;
    box-shadow: 0 0 18px rgba(212, 161, 123, 0.45) !important;
}

/* Better Category Slider for Mobile */
.category-slider-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.category-track {
    display: inline-flex;
    gap: 12px;
    padding: 0 16px;
}

.category-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

/* Custom text and layout overrides for luxury premium feel */
h1,
h2,
h3,
h4 {
    color: var(--color-secondary) !important;
    /* #c18c64 */
}

p,
.text-slate-300,
.text-slate-400 {
    color: var(--color-text-secondary) !important;
    /* #e8d5c0 */
}

/* Ensure the prices and badge totals have the creamy secondary color */
.text-secondary.font-black,
.price-display {
    color: var(--color-text-secondary) !important;
}

/* Active bottom navigation tabs and details */
.m-nav-item.active {
    color: var(--color-primary) !important;
    /* #d4a17b */
}

.m-nav-item.active .m-nav-indicator {
    background-color: var(--color-primary) !important;
}

/* Wasabi element / Green decoration highlights */
.wasabi-highlight {
    color: #1a3c3a !important;
}

/* Mobile responsive padding constraints for menu grid and flipbook */
@media (max-width: 768px) {
    #menu-items-grid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .flipbook-outer {
        padding: 0 10px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }

    .sushi-book {
        height: min(72vh, 640px) !important;
        max-height: 640px !important;
        min-height: 480px !important;
        width: calc(100vw - 20px) !important;
        max-width: 450px !important;
        margin: 0 auto;
        border-radius: 20px;
    }
}

body.rtl-mode #mobile-cart-fab {
    left: 20px;
    right: auto;
}

body.lang-en #mobile-cart-fab {
    right: 20px;
    left: auto;
}

/* Hide number input spin-buttons globally */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ==========================================================================
   SCROLL REVEAL (lightweight, mobile-friendly)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   MOBILE MASTERPIECE POLISH
   ========================================================================== */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .site-header {
        padding-top: env(safe-area-inset-top, 0);
        background: rgba(11, 39, 42, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .hero-section {
        margin-bottom: 1.5rem;
        border-radius: 0 0 2rem 2rem;
        overflow: hidden;
    }

    .hero-section .hero-img-bg {
        min-height: 52vh;
        object-fit: cover;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 9vw, 2.75rem) !important;
        text-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
    }

    .menu-mode-toggle {
        width: 100%;
        max-width: 22rem;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    }

    .menu-mode-toggle button {
        flex: 1;
        min-height: 44px;
    }

    .menu-card-luxury {
        border-radius: 1.35rem;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 4px 4px 0 #d4a17b;
        content-visibility: auto;
        contain-intrinsic-size: 320px;
    }

    .menu-card-luxury:active {
        transform: scale(0.985);
    }

    #menu-items-grid {
        gap: 1.25rem !important;
    }

    .mobile-bottom-nav {
        padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(212, 161, 123, 0.12);
    }

    #mobile-cart-fab {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
    }

    #site-toast {
        bottom: calc(6.5rem + env(safe-area-inset-bottom, 0));
    }
}