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

:root {
    /* Design System - High Contrast Mobile */
    --bg-main: #12181a;
    --bg-card: #1a2224;
    --accent-orange: #f27329;
    --text-primary: #ffffff;
    --text-secondary: #8a9496;
    
    /* Layout Variables */
    --max-mobile-width: 480px;
    --border-radius-lg: 30px;
    --border-radius-md: 20px;
    --border-radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    scroll-behavior: smooth;
    /* Limit width for mobile app feel on desktop */
    max-width: var(--max-mobile-width);
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================= */
/* HEADER & NAVIGATION */
/* ========================================= */
header {
    background: var(--bg-main);
    padding: 20px;
    position: fixed;
    width: 100%;
    max-width: var(--max-mobile-width);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-orange);
    margin-left: 3px;
}

.nav-links {
    display: none;
}

/* Top bar actions setup */
.header-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
}


.cart-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn i {
    color: var(--accent-orange);
    font-size: 1.1rem;
}

.cart-btn span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--text-primary);
    color: var(--bg-main);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorites-counter {
    display: none;
}

/* ========================================= */
/* MENU SECTION */
/* ========================================= */
.hero { display: none; }
.section-title { display: none; }

.menu-section {
    padding: 100px 20px 40px 20px; /* Top padding for fixed header */
}

/* Filter Carousel */
.filter-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--text-secondary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    scroll-snap-align: start;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--bg-main);
}

/* Menu Grid */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Menu Item Card */
.menu-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.menu-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.favorite-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bg-main);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn i {
    color: var(--text-secondary);
    font-size: 1rem;
}
.favorite-btn.active i { color: var(--accent-orange); }

.item-info { text-align: center; }

.item-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 0 10px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    display: block;
    margin-bottom: 20px;
}

.details-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--text-secondary);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.details-btn:hover {
    background: var(--bg-main);
    border-color: var(--accent-orange);
}

.hidden { display: none !important; }

/* ========================================= */
/* DETAILS MODAL (Product View) */
/* ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    animation: slideUpIn 0.3s forwards;
    max-width: var(--max-mobile-width);
    margin: 0 auto;
}

.modal.show { display: flex; }

@keyframes slideUpIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-content {
    background: transparent;
    padding: 30px 20px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
    animation: none;
    margin: 0;
    max-width: 100%;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.modal-content img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Updated Product Details Row */
.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 10px;
}

.modal-title-row h2 {
    font-size: 1.6rem;
    font-weight: 700;
    max-width: 70%;
}

.modal-title-row .modal-price {
    font-size: 1.8rem;
    color: var(--accent-orange);
    font-weight: 700;
}

.modal-content p {
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: left;
}

/* Modifiers Layout */
.modifiers-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
    align-items: flex-end;
}

.serving-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.serving-col label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.size-selector {
    display: flex;
    border: 1px solid var(--text-secondary);
    border-radius: 20px;
    overflow: hidden;
}

.size-selector button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.size-selector button.active {
    background: var(--accent-orange);
    color: var(--bg-main);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-selector button {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--accent-orange);
    border-radius: 50%;
    color: var(--bg-main);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-selector span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
}

.modal-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent-orange);
    color: var(--bg-main);
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* ========================================= */
/* CART PANEL */
/* ========================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1500;
}

.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: var(--max-mobile-width);
    height: 100%;
    background: var(--bg-main);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
}

.cart-panel.open { right: 0; }

.cart-header {
    padding: 20px;
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-header h2 { font-size: 1.3rem; color: var(--text-primary); }
.cart-close { background: none; border: none; color: var(--text-secondary); font-size: 2rem; cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; }

.cart-item {
    display: flex; gap: 15px; padding: 15px; background: var(--bg-card);
    border-radius: var(--border-radius-md); margin-bottom: 15px; align-items: center;
}

.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; }
.cart-item-price { color: var(--accent-orange); font-weight: 700; }

.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item-qty button {
    width: 25px; height: 25px; border: none; background: var(--accent-orange);
    border-radius: 50%; color: var(--bg-main); font-size: 0.8rem;
}
.cart-item-qty span { font-weight: 600; }

.cart-item-remove {
    background: none; border: none; color: var(--text-secondary); font-size: 1.2rem;
}

.cart-empty { text-align: center; padding: 50px 20px; color: var(--text-secondary); }
.cart-empty i { font-size: 3rem; margin-bottom: 15px; opacity: 0.5; }

.cart-footer { padding: 20px; background: var(--bg-card); border-top: 1px solid rgba(255,255,255,0.05); }

.cart-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px;}
.cart-total span:last-child { color: var(--accent-orange); font-size: 1.8rem; }

.delivery-fee { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 15px; }

.checkout-btn {
    width: 100%; padding: 18px; background: var(--accent-orange); color: var(--bg-main);
    border: none; border-radius: var(--border-radius-lg); font-weight: 700; font-size: 1.1rem;
}

/* Delivery option */
.delivery-option { margin-bottom: 15px; }
.delivery-option label { color: var(--text-secondary); font-size: 0.8rem; display: block; margin-bottom: 8px; }
.delivery-option select {
    width: 100%; padding: 12px; background: var(--bg-main); border: 1px solid var(--text-secondary);
    color: var(--text-primary); border-radius: var(--border-radius-sm); font-size: 0.9rem;
}

/* Checkout Form overrides */
.checkout-form { background: var(--bg-main) !important; border: 1px solid rgba(255,255,255,0.1); }
.checkout-form h2 { color: var(--text-primary); }
.form-group label { color: var(--text-secondary); display: block; margin-bottom: 5px; font-size: 0.9rem; }
.form-group input { 
    width: 100%;
    background: var(--bg-card); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: var(--text-primary); 
    padding: 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
}

/* Toast */
.toast-notification {
    position: fixed; bottom: 30px; right: 30px; background: var(--bg-card); padding: 15px 20px;
    border-radius: var(--border-radius-md); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 15px; transform: translateX(150%); transition: 0.4s; z-index: 3000;
}
.toast-notification.show { transform: translateX(0); }
.toast-icon {
    width: 40px; height: 40px; border-radius: 50%; background: var(--accent-orange);
    display: flex; justify-content: center; align-items: center; color: var(--bg-main);
}
.toast-title { font-weight: 700; color: var(--text-primary); }
.toast-message { color: var(--text-secondary); font-size: 0.85rem; }

/* Small utility classes */
.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.site-footer a { color: var(--accent-orange); text-decoration: none; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}