@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===== RED & WHITE MINIMALIST PREMIUM DESIGN SYSTEM ===== */
:root {
    --primary: #E53935; /* Crisp Crimson Red */
    --primary-hover: #D32F2F;
    --primary-light: rgba(229, 57, 53, 0.05);
    --accent: #FFFFFF;
    
    /* Default Red & White tokens */
    --bg-main: #F8F9FA; /* Soft off-white */
    --bg-surface: #FFFFFF; /* Pure white containers */
    --bg-card: #FFFFFF;
    --bg-card-hover: #FDFDFD;
    --text-primary: #111111; /* Deep charcoal text */
    --text-secondary: #4A4A4A; /* Charcoal secondary */
    --text-muted: #8A8A8A;
    --border: #E0E0E0; /* Thin gray borders */
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #FFFFFF;
    --mobile-menu-bg: #FFFFFF;
    --input-bg: #F4F4F6;
    --input-border: #E0E0E0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    --glass-blur: 10px;
}

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

h1, h2, h3, h4, .brand-font {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-brand-text {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

/* Navbar */
.nav-glass {
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
    transform: translate3d(0, 0, 0);
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    border-bottom: none !important; /* Remove old border style */
    color: var(--primary) !important;
}

.lang-border {
    border-color: var(--border) !important;
}

.lang-sep {
    color: var(--text-muted) !important;
}

#mobile-menu-btn {
    color: var(--text-primary) !important;
}

/* Hero Section */
.hero-video-container {
    position: relative;
    height: 90vh;
    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);
}

.hero-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, var(--bg-main) 100%);
}

/* Review Slider */
.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.review-card:hover {
    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 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Mobile Menu */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    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; }
#mobile-menu .lang-btn { border-color: var(--border) !important; color: var(--text-primary) !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); }
.text-white-forced { color: white !important; }

/* Social Icons */
.social-icon { 
    background-color: var(--bg-surface); 
    color: var(--text-secondary); 
    border: 1px solid var(--border);
    border-radius: 8px !important;
    transition: all 0.2s ease; 
}
.social-icon:hover { 
    background-color: var(--primary) !important; 
    color: white !important; 
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Modern Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.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: multiply; }

/* Flat Category Buttons */
.menu-category-btn {
    transition: all 0.2s ease;
    padding: 8px 12px;
}

.menu-category-btn div {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.menu-category-btn:hover div {
    border-color: var(--primary);
}

.menu-category-btn.active div {
    background: var(--primary);
    border-color: var(--primary);
}

.menu-category-btn.active .category-icon-mask {
    background-color: #FFFFFF !important;
}

/* Minimalist Flat Product Card */
.menu-item-card {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.menu-item-card:hover {
    transform: translateY(-3px) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

.menu-item-card .fav-btn {
    border: 1px solid var(--border);
}

.menu-item-card img {
    transition: transform 0.4s ease;
}

/* Category Title Font & Weight */
.category-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

/* Icon Filters & Masks */
.category-icon-mask {
    background-color: var(--text-primary);
    -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.2s ease;
}

/* Gallery & Lightbox */
.gallery-item { 
    position: relative; 
    cursor: pointer; 
    overflow: hidden; 
    border-radius: 12px; 
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute; 
    inset: 0; 
    background: rgba(229, 57, 53, 0.9);
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: all 0.2s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

#lightbox {
    display: none; 
    position: fixed; 
    inset: 0; 
    z-index: 1000;
    background: rgba(18, 18, 18, 0.98); 
    align-items: center; 
    justify-content: center; 
    padding: 20px;
}

#lightbox.active { display: flex; }
#lightbox-img { 
    max-width: 95%; 
    max-height: 85vh; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
}

/* Mobile Responsive Page Header Adjustments */
@media (max-width: 767.98px) {
    section.pt-40.pb-20 {
        display: none !important;
    }
    section.pt-40.pb-20 + section {
        padding-top: 7.5rem !important;
    }
}

/* Product Modal Redesign */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-close-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF !important;
}

/* 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: var(--primary);
    color: #FFFFFF !important;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.price-button:hover {
    background: var(--primary-hover);
}

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

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

/* Checkable Ingredient Pills inside Modal */
.ingredient-item {
    transition: all 0.15s ease;
    border: 1px solid var(--border);
    border-radius: 8px !important;
    user-select: none;
}

.ingredient-item:has(input:checked) {
    background-color: var(--primary-light) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.ingredient-item span {
    transition: color 0.15s ease;
}

.ingredient-item:has(input:checked) span {
    color: var(--primary) !important;
}

/* Shopping Cart Drawer Panel */
#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    z-index: 120;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.03);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    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: 12px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: var(--primary);
}

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

.payment-option-btn:hover, .delivery-option-btn:hover {
    border-color: var(--primary);
}

.payment-option-btn.active, .delivery-option-btn.active {
    border-color: var(--primary);
    background-color: var(--primary-light) !important;
    color: var(--primary) !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.15s;
}

.qty-btn:hover {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

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