:root {
    --midnight: #0a0f1d;
    --midnight-light: #161d2f;
    --gold: #d4af37;
    --gold-bright: #f1c40f;
    --ivory: #f8fafc;
    --ivory-dim: #94a3b8;
    --glass: rgba(10, 15, 29, 0.85);
    --border: rgba(212, 175, 55, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Premium Layout Overrides */
body {
    background-color: var(--midnight);
    color: var(--ivory);
    font-family: 'Inter', sans-serif;
}

/* Menu Hero Section */
.menu-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(10, 15, 29, 0.4), rgba(10, 15, 29, 0.95)), url('/img/menu-hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.menu-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--ivory);
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.menu-hero p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* Sticky Category Navigation */
.category-nav-sticky {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition);
}

.category-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-nav-container::-webkit-scrollbar {
    display: none;
}

.category-nav-item {
    color: var(--ivory-dim);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: var(--transition);
    white-space: nowrap;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.category-nav-item:hover, .category-nav-item.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .category-nav-sticky {
        padding: 0.8rem 0;
    }
    
    .category-nav-container {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .category-nav-item {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }

    /* Scroll Indication Shadow */
    .category-nav-sticky::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, transparent, var(--midnight));
        pointer-events: none;
        opacity: 0.8;
    }
}

/* Menu Content Area */
.menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem 8rem;
}

.category-section {
    margin-bottom: 6rem;
    scroll-margin-top: 100px;
}

.category-title-wrapper {
    text-align: center;
    margin-bottom: 3.5rem;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--ivory);
    display: inline-block;
    position: relative;
    padding: 0 2rem;
}

.category-title::before, .category-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.category-title::before { left: -60px; }
.category-title::after { right: -60px; }

/* Product Grid and Card */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--midnight-light);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-info {
    margin-bottom: 1.5rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ivory);
    line-height: 1.2;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--gold);
    font-size: 1.25rem;
    white-space: nowrap;
}

.product-description {
    color: var(--ivory-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .category-title::before, .category-title::after { display: none; }
    .product-card { padding: 1.25rem; }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
