/* ===== LATO TR LOCAL FONTS ===== */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: local('Lato TR Light'), url('../fonts/LatoTR-Light.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local('Lato TR Regular'), url('../fonts/LatoTR-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 500;
    src: local('Lato TR Regular'), url('../fonts/LatoTR-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: local('Lato TR Bold'), url('../fonts/LatoTR-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    src: local('Lato TR Black'), url('../fonts/LatoTR-Black.woff') format('woff');
}

:root {
    --primary: #B20000;
    --accent: #B5894B;
    --dark: #1A1A1A;
    /* Dark mode tokens */
    --bg-main: #1A1A1A;
    --bg-surface: #222222;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(26, 26, 26, 0.85);
    --footer-bg: #111111;
    --mobile-menu-bg: rgba(18, 18, 18, 0.98);
    --input-bg: #2d2d2d;
    --input-border: rgba(255, 255, 255, 0.1);
}

/* ===== LIGHT MODE ===== */
body.light-mode {
    --bg-main: #EFEAE4;
    --bg-surface: #F9F8F6;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.07);
    --text-primary: #1A1A1A;
    --text-secondary: #444444;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(239, 234, 228, 0.93);
    --footer-bg: #F9F8F6;
    --mobile-menu-bg: rgba(239, 234, 228, 0.99);
    --input-bg: #F9F8F6;
    --input-border: rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
.brand-font {
    font-family: 'Righteous', cursive;
}

.nav-brand-text {
    font-family: 'Lato', sans-serif !important;
    font-weight: 900 !important;
}

/* === THEME SWITCH === */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
    flex-shrink: 0;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: linear-gradient(135deg, #1e2240, #2a2d4a);
    border-radius: 26px;
    transition: .35s;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.theme-slider .t-sun {
    color: #fbbf24;
    font-size: 10px;
    opacity: 0;
    transition: .3s;
    z-index: 1;
}

.theme-slider .t-moon {
    color: #c4cfe8;
    font-size: 10px;
    opacity: 1;
    transition: .3s;
    z-index: 1;
}

.theme-slider::after {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    right: 3px;
    top: 2px;
    background: #e2e8f0;
    border-radius: 50%;
    transition: .35s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.theme-switch input:checked+.theme-slider {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    border-color: rgba(0, 0, 0, 0.12);
}

.theme-switch input:checked+.theme-slider::after {
    right: auto;
    left: 3px;
    background: #fff7e6;
}

.theme-switch input:checked+.theme-slider .t-sun {
    opacity: 1;
}

.theme-switch input:checked+.theme-slider .t-moon {
    opacity: 0;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-container {
    position: relative;
    width: 220px;
    height: 160px;
    margin-bottom: 20px;
}

.logo-bg {
    width: 100%;
    height: 100%;
    opacity: 0.1;
    filter: grayscale(1) brightness(0.5);
    object-fit: contain;
}

.logo-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    overflow: hidden;
    animation: fillAnimation 2s ease-in-out forwards;
}

.logo-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 220px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(178, 0, 0, 0.6));
}

@keyframes fillAnimation {
    0% { height: 0%; }
    100% { height: 100%; }
}

/* Navbar */
.nav-glass {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease;
    
    /* Safari Sticky/Fixed Pinning GPU Bugfix */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body.light-mode .nav-link { color: #1A1A1A !important; }
body.light-mode .nav-link:hover { color: var(--primary) !important; }
body.light-mode .nav-brand-text { color: #1A1A1A !important; }
body.light-mode .lang-border { border-color: rgba(0, 0, 0, 0.15) !important; }
body.light-mode .lang-sep { color: #999 !important; }
body.light-mode #mobile-menu-btn { color: #1A1A1A !important; }

/* Hero Video */
.hero-video-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4);
}

/* Review Slider */
.review-card {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.review-card h4 { color: var(--text-primary); }
.review-card p { color: var(--text-secondary); }

@keyframes slide {
    0% { transform: translateX(0) }
    100% { transform: translateX(-50%) }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: slide 35s linear infinite;
}

/* Mobile Menu */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    background: var(--mobile-menu-bg) !important;
}

#mobile-menu.active { transform: translateX(0); }
#mobile-menu a { color: var(--text-primary) !important; }
#mobile-menu #close-menu { color: var(--text-primary) !important; opacity: 1 !important; visibility: visible !important; }
body.light-mode #mobile-menu .lang-btn { border-color: rgba(0, 0, 0, 0.15) !important; color: #1A1A1A !important; }

/* Section backgrounds */
.section-main { background-color: var(--bg-main); }
.section-surface { background-color: var(--bg-surface); }

/* Theme Helpers */
.theme-text { color: var(--text-primary); }
.award-description { color: #aaaaaa; }
body.light-mode .award-description { color: #000000; }
.text-white-forced { color: white !important; }
body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4 { color: var(--text-primary); }

/* Social Icons */
.social-icon { background-color: var(--bg-surface); color: var(--text-secondary); transition: all 0.3s ease; }
body.light-mode .social-icon { background-color: rgba(0,0,0,0.05); color: var(--text-primary); }
.social-icon:hover { background-color: var(--primary) !important; color: white !important; }

/* Modern Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 150, 150, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(150, 150, 150, 0.5); }

.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Cards & Images */
.card-bg { background-color: var(--bg-surface); }
.img-bg { background-color: var(--bg-main); }
.product-img { mix-blend-mode: normal; }
body.light-mode .product-img { mix-blend-mode: multiply; }

.menu-item-card .card-bg {
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border) !important;
}

/* Icon Filters & Masks */
.ingredient-icon {
    filter: invert(1) brightness(2);
    transition: all 0.3s ease;
    will-change: filter, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}
body.light-mode .ingredient-icon {
    filter: brightness(0);
}

.category-icon-mask {
    background-color: #ffffff; /* White in dark mode */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    will-change: background-color, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}
body.light-mode .category-icon-mask {
    background-color: #1A1A1A; /* Dark gray in light mode */
}
.menu-category-btn.active .category-icon-mask {
    background-color: var(--primary) !important;
    /* Force exact sRGB color profile in WebKit/Safari to resolve color shifting */
    background-color: color(srgb 0.698 0 0) !important;
    transform: scale(1.1) translate3d(0, 0, 0);
}
.menu-category-btn.active span {
    color: var(--primary) !important;
    /* Force exact sRGB color profile in WebKit/Safari to resolve color shifting */
    color: color(srgb 0.698 0 0) !important;
}

/* Gallery & Lightbox */
.gallery-item { position: relative; cursor: pointer; overflow: hidden; border-radius: 1rem; }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(178, 0, 0, 0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

#lightbox {
    display: none; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.95); align-items: center; justify-content: center; padding: 20px;
}
#lightbox.active { display: flex; }
#lightbox-img { max-width: 95%; max-height: 85vh; border-radius: 1rem; box-shadow: 0 0 50px rgba(0,0,0,0.5); transition: transform 0.3s ease; }

/* Red Icon Utility */
.red-icon {
    filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(7483%) hue-rotate(1deg) brightness(91%) contrast(105%) !important;
    will-change: filter, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

/* Mobile Responsive Page Header Adjustments */
@media (max-width: 767.98px) {
    /* Hide page header section on mobile */
    section.pt-40.pb-20 {
        display: none !important;
    }
    /* Add padding-top to the sibling content section to prevent overlapping with the fixed navbar */
    section.pt-40.pb-20 + section {
        padding-top: 7.5rem !important; /* 120px padding-top to give nice spacing below 80px navbar */
    }
}

/* Product Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.85);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.modal-close-btn:hover {
    background-color: #000000;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.modal-close-btn i {
    font-size: 18px;
}

/* Product Modal Action Buttons Container */
.modal-actions-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-top: 24px;
}

/* Base Price Button */
.price-button {
    flex: 1;
    background-color: #B20000;
    color: #ffffff !important;
    padding: 16px 20px;
    border-radius: 9999px;
    font-weight: 700;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 14px rgba(178, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.price-button.full-width {
    flex: none;
    width: 100%;
}

/* AR View on Table Button */
.ar-table-button {
    flex: 1;
    background-color: #111111;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 20px;
    border-radius: 9999px;
    font-weight: 700;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

body.light-mode .ar-table-button {
    background-color: #ffffff;
    color: #111111 !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.ar-table-button:hover {
    background-color: #000000;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

body.light-mode .ar-table-button:hover {
    background-color: #f4f4f5;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.ar-table-button i {
    font-size: 15px;
    color: #B20000;
}

/* Product Title Font & Light Mode Coloring */
.product-card-title, .product-modal-title {
    font-family: 'Lato', sans-serif !important;
    font-weight: 900 !important;
}

body.light-mode .product-card-title,
body.light-mode .product-modal-title {
    color: #B20000 !important;
}

/* Category Title Font & Weight */
.category-title {
    font-family: 'Lato', sans-serif !important;
    font-weight: 500 !important;
}

/* Product Modal Cart Button */
.modal-cart-button {
    flex: 1 1 calc(50% - 6px);
    background-color: #25D366;
    color: #ffffff !important;
    padding: 16px 20px;
    border-radius: 9999px;
    font-weight: 700;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.modal-cart-button:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.modal-cart-button:active {
    transform: translateY(0);
}

/* Mobile Sticky Footer Bar & Footer Overlaps */
.mobile-sticky-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767.98px) {
    footer {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Shopping Cart Drawer Overlay */
#cart-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
#cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Shopping Cart Drawer Panel */
#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    z-index: 120;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
#cart-drawer.active {
    transform: translateX(0);
}

/* Cart Item Cards */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: rgba(178, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Payment & Delivery Buttons */
.payment-option-btn, .delivery-option-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-option-btn:hover, .delivery-option-btn:hover {
    border-color: rgba(178, 0, 0, 0.4);
    background-color: var(--bg-main);
}

.payment-option-btn.active, .delivery-option-btn.active {
    border-color: #B20000;
    background-color: rgba(178, 0, 0, 0.08) !important;
    color: #B20000 !important;
    box-shadow: 0 4px 12px rgba(178, 0, 0, 0.1);
}

body.light-mode .payment-option-btn.active, 
body.light-mode .delivery-option-btn.active {
    background-color: rgba(178, 0, 0, 0.05) !important;
}

/* Quantity controls inside cart items */
.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background-color: #B20000;
    color: white !important;
    border-color: #B20000;
}

/* Prevent iOS Safari auto-zoom on input focus by forcing 16px font-size */
@media (max-width: 767.98px) {
    #cart-drawer input,
    #cart-drawer textarea {
        font-size: 16px !important;
    }
}


