:root {
    --primary-color: #000000;
    --secondary-color: #f7f7f7;
    --accent-color: #111111;
    --text-dark: #111111;
    --text-muted: #555555;
    --border-light: #e5e5e5;
    --border-dark: rgba(255, 255, 255, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sticky Floating Contact Bar (Bên Phải Màn Hình) */
.floating-contact-bar {
    position: fixed;
    right: 12px;
    top: 22%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.contact-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-btn.phone { background-color: #ef4444; }
.contact-btn.zalo { background-color: #2563eb; }
.contact-btn.wa { background-color: #22c55e; }
.contact-btn.vib { background-color: #7c3aed; }
.contact-btn.fb { background-color: #3b82f6; }
.contact-btn.tg { background-color: #0284c7; }
.contact-btn.tt { background-color: #000000; }
.contact-btn.map { background-color: #475569; }

/* Floating Chat Pill Widget (Chuẩn Body_3.JPG / Footer_3.JPG) */
.chat-pill-dark {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background-color: #1f2024;
    color: #ffffff;
    padding: 11px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    z-index: 1000;
}

/* Top Promo Ticker Bar (Chuẩn Header_3.JPG) */
.promo-ticker-bar {
    background: #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.9px;
    padding: 7px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
    white-space: nowrap;
}

/* Header & Category Strip (Chuẩn Header_3.JPG) */
.site-header-clean {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.brand-logo-box {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-mark-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.brand-name-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.main-menu-nav {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.main-menu-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.main-menu-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header-icon-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -9px;
    background: #000000;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.header-search-panel {
    display: none;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    background: var(--secondary-color);
}

.header-search-panel.open { display: block; }

.header-search-panel input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    background: #ffffff;
}

.category-hero-strip {
    padding: 28px 0 22px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

.category-main-heading {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.category-pills-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.cat-pill {
    flex: 1;
    min-width: 150px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid #d4d4d4;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.cat-pill.active,
.cat-pill:hover {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

/* Catalog Body (Chuẩn Body_3.JPG) */
.catalog-page-section {
    padding: 28px 0 60px;
    background: #ffffff;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sort-select {
    border: none;
    background: transparent;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.catalog-layout-grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    align-items: start;
}

.filter-sidebar {
    padding-top: 8px;
}

.filter-group {
    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;
}

.filter-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    color: var(--text-dark);
}

.catalog-products-area {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px;
    align-items: start;
}

.editorial-feature-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 460px;
}

.editorial-feature-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editorial-feature-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.72) 100%);
}

.editorial-feature-caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    color: #ffffff;
}

.editorial-feature-caption span {
    font-size: 10px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.editorial-feature-caption h2 {
    font-size: 20px;
    font-weight: 600;
}

.products-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-item-card {
    background: #ffffff;
}

.product-img-box {
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    height: 230px;
    margin-bottom: 10px;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.product-meta-row h3 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.product-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-add-to-cart {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-add-to-cart:hover {
    background: #2b2b2b;
}

/* Cart Drawer */
.cart-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1200;
}

.cart-drawer-backdrop.open { display: block; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: #ffffff;
    color: var(--text-dark);
    z-index: 1201;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.2);
    transition: right 0.25s ease;
}

.cart-drawer.open { right: 0; }

.cart-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 { font-size: 14px; font-weight: 700; }

.close-drawer-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
}

.empty-cart-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 36px;
}

.cart-item-row {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.cart-item-row img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-meta { flex: 1; }
.cart-item-title { font-size: 12px; font-weight: 600; }
.cart-item-sub { font-size: 11px; color: var(--text-muted); }

.cart-qty-controls { display: flex; align-items: center; gap: 6px; }
.cart-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #d4d4d4;
    background: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.cart-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--secondary-color);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
}

.btn-checkout-black {
    display: block;
    text-align: center;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 11px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Lead Form Section */
.lead-section-light {
    padding: 48px 0;
    background: var(--secondary-color);
    border-top: 1px solid var(--border-light);
}

.form-wrapper-box {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 28px;
    border-radius: 8px;
}

.badge-label { font-size: 10px; font-weight: 800; color: var(--text-muted); display: block; margin-bottom: 8px; }
.form-info-col h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.form-info-col p { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

.email-highlight {
    background: var(--secondary-color);
    padding: 10px 14px;
    border-left: 3px solid #000000;
    margin-bottom: 6px;
}

.email-highlight small { display: block; font-size: 10px; color: var(--text-muted); }
.email-highlight strong { font-size: 12px; }
.sub-note { font-size: 10px; color: var(--text-muted); }

.form-row-2 { display: flex; gap: 12px; margin-bottom: 12px; }
.form-field { flex: 1; }
.form-field label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.form-field input {
    width: 100%;
    border: 1px solid #d4d4d4;
    padding: 9px 11px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}

.btn-submit-black {
    width: 100%;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Footer Nền Đen 4 Cột (Chuẩn Footer_3.JPG) */
.dark-footer-4col {
    background: #000000;
    color: #ffffff;
    padding: 64px 0 42px;
}

.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 52px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-col p {
    font-size: 13px;
    color: #e5e5e5;
    margin-bottom: 8px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 13px;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
}

.footer-center-info {
    text-align: center;
}

.currency-lang-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.copyright-line {
    font-size: 11px;
    color: #cccccc;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 240px;
    justify-content: flex-end;
}

.pay-badge {
    background: #ffffff;
    color: #000000;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 7px;
    border-radius: 3px;
}

@media (max-width: 1024px) {
    .catalog-layout-grid,
    .catalog-products-area,
    .footer-grid-4,
    .form-wrapper-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-menu-nav { display: none; }
    .products-grid-2 { grid-template-columns: 1fr; }
    .form-row-2 { flex-direction: column; }
}