/* 
 * Gourmet Express - Premium CSS (style.css)
 * A clean, modern, and minimalistic design for high-end restaurant ordering.
 */

:root {
    --primary: #1a1a1a;
    --accent: #e67e22;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-count {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Hero */
.hero {
    padding: 5rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Category Navigation */
.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    scrollbar-width: none;
    position: sticky;
    top: 75px;
    background: var(--bg);
    z-index: 90;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    background: var(--bg-alt);
    border-radius: 50px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-pill:hover:not(.active) {
    background: #eee;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.food-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.food-card:hover {
    transform: translateY(-8px);
}

.food-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.food-card:hover .food-img {
    box-shadow: var(--shadow-md);
}

.food-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.food-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.food-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.food-price {
    font-weight: 700;
    color: var(--accent);
}

.food-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.add-to-cart {
    width: 100%;
    padding: 0.85rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    color: var(--primary);
}

/* Variant Selector */
.variant-selector {
    margin-bottom: 1.25rem;
}

.variant-selector label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.variant-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    background: var(--bg-alt);
    cursor: pointer;
}

/* Card Footer & Qty */
.card-footer {
    display: flex;
    gap: 10px;
}

.qty-input {
    display: flex;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px;
}

.qty-input button {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
}

.qty-input input {
    width: 35px;
    text-align: center;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Dietary Tags */
.food-img-container {
    position: relative;
}

.dietary-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2.5rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-alt);
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-alt);
    padding: 4px 12px;
    border-radius: 50px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-footer {
    padding: 2rem;
    background: var(--bg-alt);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover:not(:disabled) {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 2000;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
}

/* Options Selector */
.options-selector {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.options-selector label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.option-item input {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .cart-sidebar {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .menu-grid {
        gap: 1.5rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}/* Image Placeholder */ .food-img-placeholder { width: 100%; height: 200px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; border-radius: var(--radius); margin-bottom: 1rem; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; border: 1px dashed var(--border); }
