/* --- index.css --- */

/* NẠP FONT TỪ GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

:root {
    /* Apple Premium Dark Palette (Mặc định) */
    --bg-base: #000000;
    --bg-surface: #1c1c1e;
    --bg-surface-trans: rgba(28, 28, 30, 0.85);
    /* Màu kính mờ Dark */
    --bg-surface-light: #2c2c2e;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-red: #ff453a;
    --accent-red-hover: #d72c22;
    --gold: #ffd60a;
    --nav-height: 70px;
}

body.light-mode {
    /* Apple Premium Light Palette */
    --bg-base: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-surface-trans: rgba(255, 255, 255, 0.85);
    /* Màu kính mờ Light */
    --bg-surface-light: #e5e5ea;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: rgba(0, 0, 0, 0.1);
    --accent-red: #ff3b30;
    --accent-red-hover: #d72c22;
    --gold: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    /* Sử dụng Font Inter làm font mặc định cho toàn web */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

input,
button,
textarea,
select {
    font-family: inherit;
}

.btn-action,
.btn-choose,
.btn-buy,
.btn-nav-register {
    font-family: 'Montserrat', sans-serif;
}

/* Sử dụng Font Montserrat cho các tiêu đề để tạo sự khỏe khoắn */
h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 50px;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--accent-red);
}

/* --- 1. PROMO BAR (CHẠY CHỮ) --- */
.promo-bar {
    background-color: var(--gold);
    color: #000;
    overflow: hidden;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    z-index: 2001;
}

.promo-content {
    display: inline-block;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.95rem;
    animation: scroll-left 25s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- 2. NAVBAR CỐ ĐỊNH (STICKY) CHUẨN APPLE --- */
#header-placeholder {
    display: contents;
}

.navbar {
    background: rgba(var(--bg-surface-rgb), 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    height: var(--nav-height);
    padding: 0 5%;
    position: sticky !important;
    top: 0;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-brand {
    font-family: 'Montserrat', sans-serif;
    /* Tên thương hiệu dập nổi bật */
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-brand img {
    height: 35px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    /* Tăng độ đậm menu */
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* --- 3. CÁC NÚT TRÊN MENU --- */
.nav-actions {
    display: flex;
    gap: 10px;
    margin-left: 10px;
    align-items: center;
}

.btn-nav-register {
    background: var(--accent-red);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700 !important;
    transition: 0.2s;
    text-transform: uppercase;
    border: 1px solid var(--accent-red);
    text-decoration: none;
}

.btn-nav-register:hover {
    background: transparent;
    color: var(--accent-red) !important;
    transform: scale(1.05);
}

.btn-nav-check {
    background: var(--text-primary);
    color: var(--bg-base) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600 !important;
    transition: 0.2s;
    text-decoration: none;
}

.btn-nav-check:hover {
    background: var(--accent-red);
    color: #fff !important;
}

.menu-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.theme-switch {
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface-light);
    transition: 0.2s;
}

.theme-switch:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

/* --- HERO SECTION --- */
.hero {
    height: calc(100vh - 40px);
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('background.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    /* Cho bự lên chút */
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -2px;
    color: #fff;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.3rem;
    color: #d1d1d6;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 600px;
}

.hero-btn-group {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- SECTIONS COMMON --- */
section {
    padding: 100px 5%;
}

/* --- ABOUT --- */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-img {
    flex: 1;
    min-width: 300px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-img img {
    width: 100%;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list i {
    color: var(--accent-red);
    font-size: 1.2rem;
}

/* --- PRODUCTS --- */
.product-section {
    background: var(--bg-surface);
    border-radius: 40px;
    margin: 0 2%;
    padding: 80px 5%;
    transition: background 0.3s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-surface-light);
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-10px);
}

.prod-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fff;
}

.prod-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.prod-price {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-buy {
    background: var(--bg-base);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    width: 100%;
    border: 1px solid var(--border-color);
}

.btn-buy:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* --- SCHEDULE --- */
.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-box {
    flex: 1;
    min-width: 320px;
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.info-box h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.info-box h3 i {
    color: var(--accent-red);
}

.time-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.time-row:last-child {
    border-bottom: none;
}

.time-highlight {
    font-weight: 700;
    color: var(--text-primary);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 850px;
    height: auto;
    background: var(--bg-surface);
    border-radius: 20px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    transition: background 0.3s ease;
}

.modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
}

.btn-close {
    background: var(--bg-surface-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.btn-close:hover {
    background: var(--accent-red);
    color: #fff;
}

.modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
}

.modal-body iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* --- FOOTER --- */
footer {
    background: var(--bg-surface);
    padding: 60px 5% 30px;
    border-top: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: 0.2s;
}

.social-icons a:hover {
    color: var(--accent-red);
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- RESPONSIVE MOBILE TỔNG HỢP --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-surface-trans);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translateX(100%);
        transition: 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
    }

    .btn-nav-register,
    .btn-nav-check {
        text-align: center;
        width: 100%;
        padding: 12px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .product-section {
        border-radius: 20px;
        padding: 40px 5%;
        margin: 0;
    }

    .info-box {
        padding: 30px 20px;
    }

    .modal-overlay {
        align-items: center;
        padding: 15px;
    }

    .modal-content {
        height: auto;
        max-height: 90vh;
        border-radius: 24px;
        transform: scale(0.95);
        width: 100%;
        max-width: 100%;
    }

    .modal-overlay.active .modal-content {
        transform: scale(1);
    }

    .modal-body {
        flex: 1;
        height: 100%;
    }

    .modal-body iframe {
        height: 100%;
    }
}