/* Reset & Base Variables */
:root {
    --bg-dark: #0a0a0a;
    --text-light: #e0e0e0;
    --neon-green: #39ff14;
    --neon-glow: 0 0 10px rgba(57, 255, 20, 0.7);
    --gold: #d4af37;
    --gold-glow: 0 0 10px rgba(212, 175, 55, 0.7);
    --font-main: 'Montserrat', sans-serif;
    --font-tech: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Colors */
.neon-text { color: var(--neon-green); font-family: var(--font-tech); text-shadow: var(--neon-glow); }
.gold-text { color: var(--gold); text-shadow: var(--gold-glow); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* --- HEADER TỐI ƯU MOBILE --- */
/* --- RESET HEADER --- */
.main-header {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 4%;
    background: #000 !important; /* Đen tuyền cho sang */
    z-index: 9999;
    box-sizing: border-box;
}

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

.nav-links {
    display: flex; align-items: center; gap: 10px;
}

.nav-links a {
    color: #ffffff !important; /* Màu trắng hài hòa */
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-nav-b2b {
    border: 1px solid #d4af37; /* Màu Gold */
    color: #d4af37 !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* --- FIX NGÔN NGỮ MOBILE --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
    isolation: isolate; /* ← Tạo stacking context riêng */
}

.lang-dropbtn {
    -webkit-appearance: none;   /* ← Kill browser default button style */
    appearance: none;           /* ← Kill browser default button style */
    background-color: #222 !important;
    color: #fff !important;
    padding: 5px 10px;
    font-size: 0.75rem;
    border: 1px solid #444 !important;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: var(--font-main); /* ← Tránh font hệ thống */
}

.lang-content {
    display: none !important;
    position: absolute;
    right: 0;
    top: calc(100% + 4px); /* ← Tránh overlap nút */
    background: #111;
    min-width: 130px;
    border: 1px solid #444;
    z-index: 99999;
    border-radius: 6px;
    overflow: hidden;
}

/* Khi nhấn vào nút, JS sẽ thêm class .show này vào */
.lang-content.show {
    display: flex !important;
    flex-direction: column !important;
}

.lang-content a {
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 14px;
    display: block !important;
    font-size: 0.8rem;
    border-bottom: 1px solid #222;
    background: transparent;
}

.lang-content a:visited {
    color: #fff !important; /* ← Đây là nguyên nhân màu tím */
}

.lang-content a:hover {
    background: #222 !important;
    color: var(--gold) !important;
}
/* Fix đốm trắng do hiệu ứng gradient cũ */
.pure-side {
    background: linear-gradient(180deg, #000 0%, #111 100%) !important;
}

/* Buttons */
button, .btn-neon, .btn-gold, .btn-outline {
    display: inline-block; padding: 10px 20px;
    border-radius: 4px; text-decoration: none; font-weight: bold;
    cursor: pointer; transition: 0.3s;
}
.btn-neon { background: transparent; border: 1px solid var(--neon-green); color: var(--neon-green); box-shadow: var(--neon-glow); }
.btn-neon:hover { background: var(--neon-green); color: #000; }
.btn-gold { background: transparent; border: 1px solid var(--gold); color: var(--gold); box-shadow: var(--gold-glow); }
.btn-gold:hover { background: var(--gold); color: #000; }
.btn-outline { background: transparent; border: 1px solid #555; color: #fff; }
.btn-outline:hover { background: #333; }

/* Hero Split Section */
.hero-split {
    height: 100vh; display: flex; position: relative;
}
.hero-half {
    flex: 1; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 2rem; background-attachment: fixed;
    background-size: cover; background-position: center; transition: 0.5s;
}
.hero-half:hover { flex: 1.15; }
.pure-side {
    background-image: linear-gradient(rgba(10,10,10,0.8), rgba(10,10,10,0.8)), url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    border-right: 1px solid rgba(57, 255, 20, 0.3);
}
.classic-side {
    background-image: linear-gradient(rgba(10,10,10,0.7), rgba(10,10,10,0.9)), url('https://www.transparenttextures.com/patterns/wood-pattern.png');
}
.center-tagline {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85); padding: 1rem 2rem; border-radius: 8px;
    text-align: center; border: 1px solid #333; z-index: 10;
}
.center-tagline h1 { font-size: 1.3rem; letter-spacing: 2px; }
.center-tagline span { font-size: 0.9rem; color: #888; }
/* Style cho ảnh chai rượu trong Hero Section */
.hero-bottle-img {
    width: 720px; 
    height: 1080px; 
    max-height: 55vh; 
    width: auto; 
    object-fit: contain;
    margin-bottom: 2rem; 
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.7)); 
    transition: transform 0.5s ease;
}

/* Hiệu ứng khi rê chuột vào khung thì chai rượu hơi nổi lên */
.hero-half:hover .hero-bottle-img {
    transform: scale(1.05) translateY(-15px);
}

/* Điều chỉnh lại nội dung để căn giữa tốt hơn */
.hero-half .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

/* Products Section */
.products-section { padding: 5rem 5%; }
.product-row {
    display: flex; align-items: center; gap: 3rem; margin-bottom: 5rem;
}
.product-row.reverse { flex-direction: row-reverse; }
.product-image { flex: 1; }
.img-placeholder {
    width: 100%; height: 400px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-weight: bold; color: #000;
}
.pure-bg { background: linear-gradient(135deg, #0a0a0a, #113311); border: 2px solid var(--neon-green); color: var(--neon-green); }
.classic-bg { background: linear-gradient(135deg, #1a1a1a, #332a11); border: 2px solid var(--gold); color: var(--gold); }

.product-info { flex: 1; }
.product-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.specs { list-style: none; margin-bottom: 1.5rem; font-size: 1.1rem; }
.specs li { padding: 8px 0; border-bottom: 1px solid #333; }
.mixology-quote {
    font-style: italic; padding: 1rem; margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05); border-left: 4px solid var(--neon-green);
}
.mixology-quote.gold-border { border-left-color: var(--gold); }

/* B2B Section */
.b2b-section { padding: 5rem 5%; background: #111; }
.b2b-grid { display: flex; gap: 2rem; margin-top: 3rem; justify-content: center; flex-wrap: wrap; }
.b2b-card {
    background: #1a1a1a; padding: 2rem; border-radius: 8px;
    width: 30%; text-align: center; border: 1px solid #333; display: flex; flex-direction: column; justify-content: space-between;
}
.b2b-card h3 { margin-bottom: 1rem; }
.b2b-card p { margin-bottom: 1.5rem; font-size: 0.9rem; color: #aaa; flex-grow: 1; }
.partner-logos span {
    display: inline-block; margin: 10px 20px; padding: 10px 20px;
    background: #222; border-radius: 4px; color: #666; font-weight: bold;
}

/* ==========================================================================
   AGE GATE OVERLAY (NÂNG CẤP GIAO DIỆN PREMIUM)
   ========================================================================== */
.age-gate-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999; /* ← tăng cao hơn header */
    display: flex; align-items: center; justify-content: center;
}

.age-gate-box {
    background: linear-gradient(145deg, #161616, #0a0a0a);
    padding: 3.5rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Viền vàng gold mỏng tinh tế */
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 0 20px rgba(212, 175, 55, 0.03);
    max-width: 480px; width: 90%;
}

.age-gate-box h2 {
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.age-gate-box p {
    color: #999;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tùy chỉnh cụm Icon cảnh báo và Text Age Gate */
.warning-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.w-icon {
    width: 38px;
    height: 38px;
    color: #888; /* Màu xám trầm, không bị chói */
}

.age-gate-box p.age-desc {
    color: #999;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.8; /* Tăng khoảng cách dòng để dễ đọc hơn */
}

/* Diệt triệt để link màu xanh, tạo style nút chuyển ngôn ngữ */
.lang-switcher-gate {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.lang-switcher-gate a {
    color: #777 !important; /* Ghi đè màu xanh mặc định */
    text-decoration: none !important; /* Bỏ gạch chân mặc định */
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lang-switcher-gate a:hover {
    color: #fff !important;
    border-color: #555;
}

.lang-switcher-gate a.active {
    color: #000 !important;
    background-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.lang-switcher-gate span {
    width: 1px;
    height: 14px;
    background-color: #333; /* Thay cho chữ | thô kệch */
}

/* Tinh chỉnh nút bấm bên trong Pop-up */
.age-gate-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.age-gate-buttons button {
    padding: 14px 28px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-width: 160px;
}

/* Footer */
footer { text-align: center; padding: 2rem; background: #000; font-size: 0.85rem; color: #666; }

/* ==========================================================================
   RESPONSIVE MOBILE (Dưới 900px) — CHỈ 1 BLOCK DUY NHẤT
   ========================================================================== */
@media (max-width: 900px) {

    .main-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 3% !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }

    .logo {
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    .header-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0;
    }

    .nav-links {
        display: flex !important;
        gap: 6px !important;
    }

    .nav-links a {
        font-size: 0.75rem !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        padding: 5px 0;
    }

    .btn-nav-b2b {
        font-size: 0.7rem !important;
        padding: 3px 6px !important;
        border: 1px solid #d4af37 !important;
        color: #d4af37 !important;
    }

    .lang-dropbtn {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }

    .lang-content {
        display: none !important;
        position: absolute !important;
        right: 0 !important;
        top: 100% !important;
        flex-direction: column !important;
        background: #111 !important;
        border: 1px solid #333 !important;
        min-width: 110px !important;
    }

    .lang-content.show {
        display: flex !important;
    }

    /* Lang switcher trong age gate */
    .lang-switcher-gate {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .lang-switcher-gate a {
        font-size: 0.75rem !important;
        padding: 5px 8px !important;
    }

    .lang-switcher-gate span {
        display: none;
    }

    /* Hero stack dọc */
    .hero-split {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh;
        background-attachment: scroll !important;
    }

    .hero-half {
        flex: none !important;
        width: 100% !important;
        min-height: 50vh;
        padding: 3rem 1.5rem !important;
        background-attachment: scroll !important;
    }

    .pure-side, .classic-side {
        background-attachment: scroll !important;
    }

    .center-tagline {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto;
        width: 90%;
    }

    .center-tagline h1 {
        font-size: 1.5rem !important;
    }

    .hero-bottle-img {
        max-height: 40vh !important;
        margin-bottom: 0.5rem;
    }

    /* Products */
    .product-row {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .product-row.reverse {
        flex-direction: column !important;
    }

    .product-image,
    .product-info {
        width: 100% !important;
        flex: unset !important;
    }

    .img-placeholder {
        height: 220px !important;
    }

    .product-info h2 {
        font-size: 1.4rem !important;
    }

    .b2b-card {
        width: 90% !important;
    }

}

@media (max-width: 380px) {
    .logo { display: none !important; }
    .nav-links a { font-size: 0.65rem !important; }
    footer { font-size: 0.65rem !important; }
    }
     footer {
        padding: 1.5rem 5% !important;
        font-size: 0.72rem !important;
        line-height: 1.6 !important;
    }

    footer p:first-child {
        white-space: normal !important;
        max-width: 100% !important;
        margin: 0 auto 0.5rem auto;
        letter-spacing: -0.01em;
    }
