:root {
    --ink: #1a1a1a;
    --paper: #fdfdfd;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: inherit; }

/* Marquee */
.marquee-bar {
    background: #000;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    font-family: monospace;
}
.marquee-track {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 22s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Header */
.site-header {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #f0f0f0;
    z-index: 1030;
}
.brand-logo {
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    font-size: 1.6rem;
    color: #000;
}
.main-nav a {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #667085;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active-link { color: #000; border-bottom-color: #000; }

.mobile-nav a {
    display: block;
    padding: .6rem 0;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #475467;
}

.search-input {
    width: 220px;
    background: #f2f2f2;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
}
.search-input:focus { outline: 2px solid #000; }

.icon-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 999px;
    text-decoration: none;
    color: #101828;
    font-size: 16px;
    line-height: 1;
    position: relative;
}
.icon-btn:hover { background: #f2f2f2; color: #000; }
.account-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.badge-dot {
    position: absolute;
    top: -2px; right: -2px;
    background: #000; color: #fff;
    font-size: 9px; font-weight: 800;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Buttons / brand accents */
.btn-brand {
    background: #000;
    color: #fff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 8px;
}
.btn-brand:hover { background: #333; color: #fff; }
.btn-outline-brand {
    background: transparent;
    border: 1.5px solid #000;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
    padding: 9px 18px;
    border-radius: 8px;
}
.btn-outline-brand:hover { background: #000; color: #fff; }

.price-tag { font-weight: 800; font-size: 1.05rem; }
.price-strike { text-decoration: line-through; color: #98a2b3; font-size: .85rem; }
.badge-new { background:#000; color:#fff; }
.badge-hot { background:#e11d48; color:#fff; }
.badge-best { background:#b45309; color:#fff; }

/* Product cards */
.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.product-card img { width: 100%; height: 230px; object-fit: cover; }
.product-card .card-body { padding: 14px; }

/* Sections */
.section-title {
    font-weight: 900;
    letter-spacing: -.02em;
    text-transform: uppercase;
    font-size: 1.6rem;
}
.section-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #e11d48;
}

.hero-banner {
    background: linear-gradient(120deg, #111 0%, #333 100%);
    color: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
}

/* Chatbot widget */
#chatWidget { position: fixed; bottom: 24px; right: 24px; z-index: 1050; }
#chatToggleBtn {
    width: 56px; height: 56px; border-radius: 50%;
    background: #000; color: #fff; border: none; font-size: 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
#chatPanel {
    position: absolute;
    bottom: 68px; right: 0;
    width: 320px;
    max-height: 440px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}
.chat-header {
    background: #000; color: #fff;
    padding: 10px 14px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px;
}
.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    max-height: 320px;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
}
.chat-msg {
    padding: 8px 10px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.4;
}
.chat-msg.bot { background: #eee; align-self: flex-start; }
.chat-msg.user { background: #000; color: #fff; align-self: flex-end; }
.chat-input-row {
    display: flex; gap: 6px;
    padding: 10px;
    border-top: 1px solid #eee;
}
.chat-input-row input {
    flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 6px 10px; font-size: 12.5px;
}
.chat-input-row button {
    background: #000; color: #fff; border: none; border-radius: 8px; padding: 6px 12px; font-size: 12.5px;
}

/* Footer */
.site-footer { background: #fff; border-top: 1px solid #f0f0f0; color: #667085; font-size: 12px; margin-top: 3rem; }
.footer-heading { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #101828; }
.footer-link { text-decoration: none; color: #667085; font-size: 12px; }
.footer-link:hover { color: #000; }
.footer-text { font-size: 11px; color: #98a2b3; line-height: 1.6; }
.social-pill { background:#f2f2f2; color:#000; padding: 6px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; text-decoration: none; }
.social-pill:hover { background:#000; color:#fff; }
.newsletter-input { flex: 1; padding: 8px 10px; border: 1px solid #e4e4e7; background: #fafafa; border-radius: 8px; font-size: 12px; }
.newsletter-btn { background: #000; color: #fff; border: none; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.footer-bottom { border-top: 1px solid #f0f0f0; font-size: 11px; color: #98a2b3; }

.voucher-card {
    border: 1.5px dashed #000;
    border-radius: 14px;
    padding: 16px;
    background: #fafafa;
}

.stat-card {
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.rating-star { color: #f59e0b; }

/* Video 10: menu danh mục dạng chip, có trạng thái active */
.category-chip {
    display: inline-block;
    padding: .4rem 1rem;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    color: #333;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    transition: all .15s ease;
}
.category-chip:hover { border-color: #000; color: #000; }
.category-chip.active {
    background: #000;
    border-color: #000;
    color: #fff;
}
