/* ==========================================================================
   NOCTURNE - VERSION 3: DARK LUXURY GOURMET & BISTRO
   Premium Dark Aesthetic with Champagne Gold & Glassmorphism
   ========================================================================== */

:root {
    --bg-main: #0C0E12;
    --bg-surface: #14171F;
    --bg-card: rgba(22, 26, 36, 0.82);
    --bg-secondary: #1B202B;

    --gold-primary: #D4AF37; /* Champagne Gold */
    --gold-light: #F3E0A8;
    --gold-glow: rgba(212, 175, 55, 0.3);
    
    --ruby: #A92B38;
    --ruby-glow: rgba(169, 43, 56, 0.35);

    --text-primary: #FAF9F6;
    --text-secondary: #A0AAB8;
    --text-muted: #64748B;

    --border-color: rgba(212, 175, 55, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-crest: 'Cinzel', serif;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 40px;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.04), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(169, 43, 56, 0.05), transparent 50%);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-notice {
    background: #060709;
    color: var(--gold-light);
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    letter-spacing: 0.04em;
}

.top-notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 14, 18, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(8, 9, 12, 0.98);
    border-bottom-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-symbol {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #242936, #141720);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.3rem;
    box-shadow: var(--shadow-gold);
}

.logo-info {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-crest);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #FFF;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-top: 3px;
}

/* Header Meta */
.header-meta {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-meta-item i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.header-meta-text strong {
    display: block;
    font-size: 0.86rem;
    color: #FFF;
    line-height: 1.2;
}

.header-meta-text span {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

/* Cart Button */
.cart-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #D4AF37, #AA8524);
    color: #0C0E12;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: var(--transition);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -9px;
    right: -11px;
    background: #0C0E12;
    color: var(--gold-primary);
    font-size: 0.72rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 50px 0 60px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-gold-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.3rem;
    line-height: 1.12;
    margin-bottom: 20px;
    color: #FFF;
}

.hero-title span {
    background: linear-gradient(135deg, #FFF, var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.luxury-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    color: #FFF;
}

.luxury-pill i {
    color: var(--gold-primary);
}

.hero-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37, #B88E28);
    color: #0C0E12;
    padding: 15px 34px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px var(--gold-glow);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(212, 175, 55, 0.45);
}

.btn-outline-gold {
    background: rgba(255, 255, 255, 0.04);
    color: #FFF;
    border: 1px solid var(--border-color);
    padding: 15px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
}

.hero-visual-box {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.hero-visual-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-visual-box:hover img {
    transform: scale(1.04);
}

/* ==========================================================================
   TASTING NOTES / HIGHLIGHT CARDS
   ========================================================================== */
.tasting-cards {
    margin-bottom: 50px;
}

.tasting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tasting-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tasting-card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.tasting-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.tasting-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.tasting-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   STICKY CATEGORIES
   ========================================================================== */
.categories-wrapper {
    position: sticky;
    top: 82px;
    z-index: 90;
    background: rgba(12, 14, 18, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    margin-bottom: 36px;
}

.categories-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    white-space: nowrap;
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--gold-primary);
    color: #FFF;
}

.category-btn.active {
    background: linear-gradient(135deg, #D4AF37, #AA8524);
    color: #0C0E12;
    border-color: var(--gold-primary);
    font-weight: 800;
    box-shadow: 0 4px 14px var(--gold-glow);
}

/* ==========================================================================
   MENU GRID & PRODUCT CARDS
   ========================================================================== */
.menu-section {
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), var(--shadow-gold);
}

.product-image-box {
    position: relative;
    width: 100%;
    padding-top: 68%;
    background: var(--bg-secondary);
    overflow: hidden;
    cursor: pointer;
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #D4AF37, #9B7820);
    color: #0C0E12;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 2;
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    cursor: pointer;
    line-height: 1.3;
}

.product-title:hover {
    color: var(--gold-primary);
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 22px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.product-price {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--gold-light);
}

.add-to-cart-btn {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--gold-primary);
    color: #0C0E12;
    box-shadow: 0 4px 16px var(--gold-glow);
}

.card-stepper {
    display: flex;
    align-items: center;
    background: var(--gold-primary);
    color: #0C0E12;
    border-radius: var(--radius-full);
    padding: 2px 6px;
    gap: 8px;
}

.card-stepper button {
    background: transparent;
    border: none;
    color: #0C0E12;
    font-size: 1.1rem;
    font-weight: 800;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.card-stepper span {
    font-weight: 800;
    font-size: 0.92rem;
    min-width: 16px;
    text-align: center;
}

/* ==========================================================================
   CART DRAWER & MODALS
   ========================================================================== */
.cart-overlay, .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.cart-overlay.active, .modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.close-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-item-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 2px 8px;
    gap: 8px;
    background: var(--bg-main);
}

.cart-item-stepper button {
    background: none;
    border: none;
    color: #FFF;
    font-weight: 800;
    cursor: pointer;
}

.cart-drawer-footer {
    padding: 24px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #D4AF37, #AA8524);
    color: #0C0E12;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: var(--transition);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
}

/* Modal Window */
.modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: 90%;
    max-width: 760px;
    max-height: 90vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    z-index: 1002;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s, visibility 0.3s;
}

.modal-window.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-visual {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.modal-info-panel {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* ==========================================================================
   FLOATING DEMO VERSION SWITCHER
   ========================================================================== */
.demo-version-switcher {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 14, 18, 0.95);
    backdrop-filter: blur(14px);
    padding: 6px 8px 6px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.7);
    z-index: 999;
    border: 1px solid var(--border-color);
    max-width: 95vw;
}

.demo-version-switcher .switcher-label {
    color: var(--gold-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.demo-version-switcher .switcher-btn {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}

.demo-version-switcher .switcher-btn:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.08);
}

.demo-version-switcher .switcher-btn.active {
    background: linear-gradient(135deg, #D4AF37, #AA8524);
    color: #0C0E12;
    box-shadow: 0 2px 12px var(--gold-glow);
}

/* Responsive */
@media (max-width: 1080px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tasting-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 24px;
    }
    .hero-pills {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .modal-window {
        grid-template-columns: 1fr;
    }
    .header-meta {
        display: none;
    }
}

/* ==========================================================================
   MOBILE BOTTOM BAR & BOTTOM SHEET
   ========================================================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(12, 14, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    z-index: 95;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.7);
}

.mobile-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #D4AF37, #AA8524);
    color: #0C0E12;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--gold-glow);
}

@media (max-width: 640px) {
    body {
        padding-bottom: 120px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .header-container {
        height: 68px;
    }
    .header .cart-btn {
        display: none;
    }
    .mobile-bottom-bar {
        display: block;
    }
    .demo-version-switcher {
        bottom: 72px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        max-width: 440px;
        margin: 0 auto;
        padding: 4px;
        gap: 4px;
        justify-content: space-between;
    }
    .demo-version-switcher .switcher-label {
        display: none;
    }
    .demo-version-switcher .switcher-btn {
        flex: 1;
        text-align: center;
        padding: 7px 4px;
        font-size: 0.74rem;
        border-radius: var(--radius-full);
    }
    
    /* Native Mobile Bottom Sheet Modal */
    .modal-window {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
        grid-template-columns: 1fr;
    }
    .modal-window.active {
        transform: translateY(0);
    }
    .modal-visual {
        max-height: 180px;
        padding: 0;
    }
    .modal-visual img {
        border-radius: 0;
        max-height: 180px;
    }
    .cart-drawer {
        max-width: 100%;
    }
    input, select, textarea {
        font-size: 16px !important;
    }
}
