/* =====================================================================
 * Điện Máy AIZEN — giao diện khách hàng
 * Xanh navy (tin cậy) + trắng, đỏ cam cho CTA/khuyến mại. Mobile-first.
 * ===================================================================== */
:root {
    --navy: #0b2a5b;
    --navy-2: #133d80;
    --navy-soft: #eaf0fa;
    --cta: #d42a25;
    --cta-dark: #b5211d;
    --price: #d70018;
    --ok: #0f7a36;
    --warn: #b76e00;
    --text: #1b2433;
    --muted: #5b6577;
    --line: #e3e7ee;
    --bg: #f3f5f9;
    --radius: 10px;
    --header-h: 64px;
    --bottom-nav-h: 60px;
}

body { background: var(--bg); color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; padding-bottom: var(--bottom-nav-h); }
@media (min-width: 992px) { body { padding-bottom: 0; } }
a { color: var(--navy-2); }
a:hover { color: var(--cta); }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: #fff; padding: 8px 12px; }
.skip-link:focus { left: 8px; }
.site-main { min-height: 50vh; padding-bottom: 32px; }
.btn-cta { background: var(--cta); border-color: var(--cta); color: #fff; font-weight: 600; }
.btn-cta:hover, .btn-cta:focus { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--navy-2); --bs-btn-border-color: var(--navy-2); --bs-btn-hover-bg: var(--navy-2); --bs-btn-hover-border-color: var(--navy-2); }
.icon-btn { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; padding: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.site-header a { color: #fff; text-decoration: none; }
.topbar { background: #071f45; font-size: .8rem; padding: 4px 0; color: #c9d4ea; }
.topbar a { color: #c9d4ea; }
.header-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu brand actions" "search search search"; align-items: center; gap: 8px 10px; padding: 8px 12px; }
.header-row > [data-drawer-open] { grid-area: menu; }
.brand { grid-area: brand; display: flex; align-items: center; min-width: 0; }
.brand img { height: 40px; width: auto; display: block; }
.brand-text { font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; }
.brand-text strong { color: #ff6b66; }
.search { grid-area: search; position: relative; display: flex; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 8px 0 0 8px; padding: 9px 12px; font-size: .95rem; }
.search input:focus { outline: 2px solid #ffc7c5; outline-offset: 0; }
.search button { border: 0; background: #fff; color: var(--navy); border-radius: 0 8px 8px 0; padding: 0 14px; font-size: 1.1rem; border-left: 1px solid var(--line); }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.action { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; position: relative; line-height: 1.15; }
.action:hover { background: rgba(255,255,255,.1); color: #fff; }
.action > i { font-size: 1.45rem; }
.action > span:not(.cart-count) { display: flex; flex-direction: column; font-size: .78rem; }
.action small { opacity: .8; }
.action strong { font-weight: 600; font-size: .85rem; }
.cart-count { position: absolute; top: 0; left: 22px; background: var(--cta); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 10px; min-width: 18px; padding: 1px 5px; text-align: center; }
@media (min-width: 992px) {
    .header-row { grid-template-columns: auto minmax(280px, 1fr) auto; grid-template-areas: "brand search actions"; gap: 20px; padding: 12px; }
    .brand img { height: 52px; }
    .brand-text { font-size: 1.4rem; }
}

/* Menu danh mục desktop */
.catnav { background: var(--navy-2); }
.catnav-all { position: relative; }
.catnav-toggle { height: 100%; background: rgba(0,0,0,.15); border: 0; color: #fff; font-weight: 700; font-size: .85rem; padding: 10px 16px; letter-spacing: .02em; }
.mega { display: none; position: absolute; top: 100%; left: 0; width: 280px; background: #fff; color: var(--text); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 32px rgba(11,42,91,.18); z-index: 10; }
.catnav-all:hover .mega, .catnav-all.open .mega, .catnav-all:focus-within .mega { display: block; }
.mega ul { list-style: none; margin: 0; padding: 6px 0; }
.mega li { position: relative; }
.mega li > a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--text); }
.mega li > a i { color: var(--navy-2); font-size: 1.1rem; width: 20px; }
.mega li:hover > a { background: var(--navy-soft); color: var(--navy); }
.mega li.has-children > a::after { content: "›"; margin-left: auto; color: var(--muted); }
.mega-sub { display: none; position: absolute; left: 100%; top: 0; min-width: 240px; background: #fff; box-shadow: 0 12px 32px rgba(11,42,91,.18); border-radius: var(--radius); padding: 8px 0; }
.mega li:hover > .mega-sub { display: block; }
.mega-sub a { display: block; padding: 8px 16px; color: var(--text); }
.mega-sub a:hover { background: var(--navy-soft); }
.catnav-links { display: flex; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.catnav-links a { display: block; padding: 10px 14px; font-size: .88rem; white-space: nowrap; }
.catnav-links a:hover, .catnav-links a[aria-current] { background: rgba(255,255,255,.12); color: #fff; }

/* Gợi ý tìm kiếm */
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(11,42,91,.2); overflow: hidden; z-index: 20; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text) !important; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--navy-soft); }
.suggest img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.suggest .s-name { flex: 1; font-size: .9rem; line-height: 1.3; }
.suggest .s-price { color: var(--price); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.suggest .s-all { justify-content: center; color: var(--navy-2) !important; font-weight: 600; }
.suggest .s-empty { padding: 12px; color: var(--muted); font-size: .9rem; }

/* Drawer mobile */
.drawer { position: fixed; inset: 0; z-index: 1050; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; display: flex; flex-direction: column; animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--navy); color: #fff; }
.drawer-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.drawer-list a { display: flex; gap: 10px; align-items: center; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--line); text-decoration: none; }
.drawer-list a i { color: var(--navy-2); width: 20px; }
.drawer-list a.sub { padding-left: 46px; font-size: .9rem; color: var(--muted); }
.drawer-foot { border-top: 1px solid var(--line); padding: 8px 0; }
.drawer-foot a { display: block; padding: 10px 16px; color: var(--text); text-decoration: none; }

/* ---------- Bố cục chung ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 12px 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: #a3abba; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cta); }
.page-head { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.page-head h1 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.page-head .intro { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.page-head .intro > :last-child { margin-bottom: 0; }
.brand-head { display: flex; gap: 16px; align-items: center; }
.empty-state { background: #fff; border-radius: var(--radius); padding: 40px 16px; text-align: center; color: var(--muted); }
.rich-text { line-height: 1.7; }
.rich-text h2 { font-size: 1.2rem; margin: 1.4em 0 .6em; font-weight: 700; }
.rich-text h3 { font-size: 1.05rem; margin: 1.2em 0 .5em; font-weight: 700; }
.rich-text img { border-radius: 8px; margin: 8px 0; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.rich-text td, .rich-text th { border: 1px solid var(--line); padding: 8px; }
@media (max-width: 575.98px) { .rich-text table { font-size: .85rem; } .rich-text td, .rich-text th { padding: 6px 5px; } }
.rich-text iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 8px; }
[data-collapsible].is-collapsed { max-height: 420px; overflow: hidden; position: relative; }
[data-collapsible].is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); }
.collapse-toggle { display: block; margin: 8px auto 0; }

/* ---------- Trang chủ ---------- */
.hero { display: grid; gap: 12px; margin: 12px 0; }
/* 10/10/2026: chỉ chia 2 cột khi CÓ banner cạnh slider (.has-side). Không có thì slider rộng hết khung và thấp lại (3:1 trên
   máy tính, ~430px) thay vì 2:1 cao ~600px kèm một cột trống bên phải. Điện thoại vẫn 2:1. */
@media (min-width: 992px) { .hero.has-side { grid-template-columns: 1fr 320px; } }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: #dde3ee; }
.slide { display: none; }
.slide.is-active { display: block; }
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
@media (min-width: 992px) { .hero:not(.has-side) .slide img { aspect-ratio: 3 / 1; } }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.85); width: 36px; height: 36px; border-radius: 50%; color: var(--navy); display: none; }
.slider:hover .slider-nav { display: block; }
.slider-nav.prev { left: 10px; } .slider-nav.next { right: 10px; }
.slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slider-dots { gap: 0; }
/* Vùng bấm 24×24px (WCAG 2.5.8) — chấm hiển thị vẫn nhỏ bằng ::before */
.slider-dots button { position: relative; width: 24px; height: 24px; border: 0; background: transparent; padding: 0; }
.slider-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 4px; background: rgba(255,255,255,.6); transition: width .2s, margin .2s; }
.slider-dots button[aria-current="true"]::before { width: 22px; margin-left: -11px; background: #fff; }
.hero-side { flex-direction: column; gap: 12px; }
.hero-side img, .mid-banners img { display: block; width: 100%; border-radius: var(--radius); object-fit: cover; }
.mid-banners { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 12px 0; }

.home-section { background: #fff; border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.section-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; text-transform: uppercase; color: var(--navy); }
.section-head .more { font-size: .88rem; text-decoration: none; white-space: nowrap; }
.section-sale { background: linear-gradient(180deg, #fff1ef 0, #fff 120px); }
.section-sale h2 { color: var(--cta); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(8, 1fr); } }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); padding: 8px 4px; border-radius: var(--radius); text-align: center; }
.cat-tile:hover { background: var(--navy-soft); color: var(--navy); }
.cat-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-soft); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--navy-2); overflow: hidden; }
.cat-icon img { object-fit: cover; }
.cat-name { font-size: .82rem; line-height: 1.25; }

.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; background: #fff; border-radius: var(--radius); padding: 16px; margin: 12px 0; }
@media (min-width: 992px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; }
.trust i { grid-row: span 2; font-size: 1.8rem; color: var(--navy-2); }
.trust strong { font-size: .92rem; }
.trust span { font-size: .8rem; color: var(--muted); }

/* ---------- Thẻ sản phẩm ---------- */
.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.product-rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .product-rail { grid-auto-columns: 31%; } }
@media (min-width: 992px) { .product-rail { grid-auto-columns: calc((100% - 40px) / 5); } }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } .product-grid.wide { grid-template-columns: repeat(5, 1fr); } }

.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.pcard:hover { box-shadow: 0 6px 20px rgba(11,42,91,.12); border-color: #cfd8e6; }
.pcard-media { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 10px; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; }
.pcard-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #f1f3f7; color: #b5bdca; font-size: 2rem; border-radius: 8px; }
.pcard-noimg.large { aspect-ratio: 1; font-size: 4rem; }
.pcard-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pcard-badges span { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; color: #fff; }
.badge-sale { background: var(--cta); }
.badge-hot { background: #b45700; }
.badge-new { background: var(--ok); }
.pcard-body { padding: 8px 10px 10px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.pcard-name { font-size: .9rem; font-weight: 500; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-name a { color: var(--text); text-decoration: none; }
.pcard-name a:hover { color: var(--navy-2); }
.pcard-price .price-final { color: var(--price); font-weight: 700; font-size: 1.05rem; }
.pcard-price small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.pcard-price .price-compare { display: block; font-size: .8rem; color: var(--muted); }
.price-off { color: var(--cta); font-weight: 700; }
.pcard-meta { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); }
.rating { color: #7a5000; text-decoration: none; }
.rating .bi { color: #f5a300; }
.rating span { color: var(--muted); }
.pcard-actions { margin-top: auto; display: flex; }
.pcard-actions .btn { font-size: .82rem; }

/* ---------- Trang danh mục ---------- */
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; }
.subcats a { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; text-decoration: none; color: var(--text); font-size: .88rem; }
.subcats a:hover { border-color: var(--navy-2); color: var(--navy-2); }
.subcats i { margin-right: 6px; color: var(--navy-2); }
.listing { display: grid; gap: 12px; }
@media (min-width: 992px) { .listing { grid-template-columns: 250px 1fr; align-items: start; } }
.filters { background: #fff; border-radius: var(--radius); padding: 12px 14px; }
@media (max-width: 991.98px) {
    .filters { position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); z-index: 1050; overflow-y: auto; transform: translateX(100%); transition: transform .2s; border-radius: 0; box-shadow: -8px 0 24px rgba(0,0,0,.2); }
    .filters:not(.open) { visibility: hidden; box-shadow: none; }
    .filters.open { transform: none; visibility: visible; }
    .filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
}
@media (min-width: 992px) { .filters { position: sticky; top: calc(var(--header-h) + 60px); max-height: calc(100vh - 140px); overflow-y: auto; } }
.filter-group { border-bottom: 1px solid var(--line); padding: 8px 0 10px; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h2 { font-size: .9rem; font-weight: 700; margin: 4px 0 6px; }
.fopt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .88rem; color: var(--text); text-decoration: none; }
.fopt small { color: var(--muted); }
.fopt .check { width: 16px; height: 16px; border: 1.5px solid #a9b3c3; border-radius: 4px; flex: none; position: relative; }
.fopt.radio .check { border-radius: 50%; }
.fopt.on { color: var(--navy); font-weight: 600; }
.fopt.on .check { background: var(--navy-2); border-color: var(--navy-2); }
.fopt.on .check::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fopt .swatch, .opt .swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; display: inline-block; }
.fopt.on .swatch { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #fff; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; }
.result-count { font-size: .95rem; font-weight: 600; margin: 0; margin-right: auto; }
.sorts { display: flex; gap: 6px; overflow-x: auto; width: 100%; }
@media (min-width: 768px) { .sorts { width: auto; } }
.sorts a { flex: none; font-size: .84rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); text-decoration: none; }
.sorts a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.active-filters { margin: 0 0 10px; font-size: .88rem; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 20px 0 8px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); padding: 0 8px; }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.pager .gap { border: 0; background: none; }
.seo-content, .faq, .content-page, .category-banner { background: #fff; border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.category-banner { padding: 0; overflow: hidden; }
.category-banner img { display: block; width: 100%; }
.faq h2 { font-size: 1.15rem; font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details div { padding-top: 8px; color: var(--muted); }

/* ---------- Trang sản phẩm ---------- */
.pdp { display: grid; gap: 16px; background: #fff; border-radius: var(--radius); padding: 14px; }
@media (min-width: 992px) { .pdp { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; padding: 20px; } }
.gallery-main { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.zoom-trigger { display: block; width: 100%; border: 0; background: #fff; padding: 0; cursor: zoom-in; }
.zoom-trigger img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.pdp-badge { position: absolute; top: 12px; left: 12px; background: var(--cta); color: #fff; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.thumb { flex: none; width: 68px; height: 68px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 3px; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.on { border-color: var(--navy-2); }
.thumb-video i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; text-shadow: 0 0 6px rgba(0,0,0,.6); }
.pdp-title { font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin: 0 0 8px; }
@media (min-width: 992px) { .pdp-title { font-size: 1.55rem; } }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.price-box { background: #fff6f5; border: 1px solid #ffe0dd; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price-box .price-final { color: var(--price); font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.price-box .price-compare { color: var(--muted); font-size: 1rem; }
.price-box .price-off { background: var(--cta); color: #fff; padding: 1px 8px; border-radius: 4px; font-size: .85rem; }
.price-note { font-size: .88rem; margin-top: 4px; }
.price-note.sale-end { color: var(--cta); }
.price-vat { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.picker { margin-bottom: 12px; }
.picker-label { font-size: .9rem; margin-bottom: 6px; }
.picker-options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 14px; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.opt:hover { border-color: var(--navy-2); }
.opt.on { border-color: var(--navy-2); background: var(--navy-soft); color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--navy-2); }
.opt.unavailable { color: #a3abba; border-style: dashed; }
.stock { font-weight: 600; margin: 4px 0 12px; }
.stock-ok { color: var(--ok); } .stock-out { color: var(--muted); } .stock-pre { color: var(--warn); }
.buy-form { display: grid; gap: 10px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; width: max-content; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: #f5f7fa; font-size: 1.2rem; }
.qty input { width: 56px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-buttons { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.buy-buttons .btn { font-weight: 700; font-size: 1rem; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.buy-buttons .btn small { font-weight: 400; font-size: .72rem; opacity: .9; }
.sold-out { display: grid; gap: 6px; text-align: center; }
.assurances { list-style: none; padding: 12px 0 0; margin: 14px 0 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .88rem; }
.assurances i { color: var(--ok); margin-right: 6px; }
.ship-box { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; font-size: .9rem; }
.pdp-highlights, .pdp-section { background: #fff; border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.pdp-highlights h2, .pdp-section h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.pdp-tabs { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 4px; background: #fff; border-radius: var(--radius); margin-top: 12px; padding: 0 8px; overflow-x: auto; box-shadow: 0 1px 0 var(--line); }
@media (min-width: 992px) { .pdp-tabs { top: 112px; } }
.pdp-tabs a { padding: 12px 14px; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; border-bottom: 2px solid transparent; }
.pdp-tabs a:hover { color: var(--navy-2); border-color: var(--navy-2); }
.pdp-section { scroll-margin-top: 170px; }
.pdp-content { display: grid; gap: 0 12px; }
@media (min-width: 992px) { .pdp-content { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .pdp-specs { position: sticky; top: 170px; } }
.spec-table { width: 100%; font-size: .9rem; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:nth-child(even) td, .spec-table tr:nth-child(even) th { background: #f7f9fc; }
.spec-table th { font-weight: 500; color: var(--muted); width: 45%; }
.spec-group th { background: var(--navy-soft) !important; color: var(--navy) !important; font-weight: 700; }

/* Thanh mua dính đáy (mobile) — nằm TRÊN thanh điều hướng dưới */
.buy-bar { position: fixed; left: 0; right: 0; bottom: var(--bottom-nav-h); z-index: 1020; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.buy-bar-price { flex: 1; color: var(--price); font-weight: 800; font-size: 1.15rem; }
.buy-bar-actions { display: flex; gap: 8px; }
.buy-bar .btn { font-weight: 700; }
.page-product .site-main { padding-bottom: 80px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(10,14,22,.92); display: flex; align-items: center; justify-content: center; }
.lightbox-stage { max-width: 92vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 8px; }
.lightbox-stage iframe { width: min(92vw, 960px); aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 12px; } .lightbox-nav.next { right: 12px; }

/* ---------- Chân trang ---------- */
.site-footer { background: #0a1f42; color: #c3cde0; font-size: .88rem; padding: 32px 0 16px; margin-top: 24px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.footer-title { color: #fff; font-size: .92rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.site-footer a { color: #c3cde0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.footer-social .zalo-text { font-size: .72rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 14px; font-size: .8rem; color: #8f9cb6; }

/* ---------- Điều hướng dưới (mobile) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottom-nav-h); z-index: 1025; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .7rem; color: var(--muted); text-decoration: none; position: relative; }
.bottom-nav a i { font-size: 1.25rem; }
.bottom-nav a[aria-current] { color: var(--navy-2); font-weight: 600; }
.bottom-nav .cart-count { top: 4px; left: calc(50% + 4px); }

/* ---------- Liên hệ nổi ---------- */
.float-contact { position: fixed; right: 12px; bottom: calc(var(--bottom-nav-h) + 14px); z-index: 1015; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 992px) { .float-contact { bottom: 24px; right: 20px; } }
.page-product .float-contact { display: none; }
@media (min-width: 992px) { .page-product .float-contact { display: flex; } }
.fc { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; text-decoration: none; font-size: 1.3rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.fc-call { background: var(--cta); animation: pulse 2s infinite; }
.fc-zalo { background: #0068ff; font-size: .78rem; font-weight: 700; }
.fc-messenger { background: linear-gradient(45deg, #0099ff, #a033ff); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,50,45,.5); } 70% { box-shadow: 0 0 0 12px rgba(229,50,45,0); } 100% { box-shadow: 0 0 0 0 rgba(229,50,45,0); } }
@media (prefers-reduced-motion: reduce) { .fc-call { animation: none; } .drawer-panel { animation: none; } }

/* ---------- Lỗi, trang nội dung ---------- */
.error-page { background: #fff; border-radius: var(--radius); padding: 48px 16px; text-align: center; max-width: 640px; margin: 24px auto; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.error-page h1 { font-size: 1.4rem; font-weight: 700; margin: 12px 0; }
.error-page p { color: var(--muted); }
.error-search { display: flex; gap: 8px; margin: 20px 0; }
.content-page { max-width: 900px; margin-left: auto; margin-right: auto; }
.content-page h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.contact-box { margin-top: 20px; padding: 16px; border-radius: var(--radius); background: var(--navy-soft); }
.contact-box p { margin-bottom: 6px; }

/* =====================================================================
 * Phase 4 — Giỏ hàng, thanh toán, tài khoản
 * ===================================================================== */
.flash-stack { padding-top: 12px; }
.flash-stack .alert { border-radius: var(--radius); }
.toast-msg { position: fixed; left: 50%; bottom: calc(var(--bottom-nav-h) + 76px); transform: translate(-50%, 20px); z-index: 1100; background: #12233f; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.toast-msg.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-msg .bi { color: #5be38a; }
.toast-msg.is-error .bi { color: #ff8a85; }
.toast-msg a { color: #ffd166; font-weight: 600; white-space: nowrap; }
@media (min-width: 992px) { .toast-msg { bottom: 24px; } }
.wish-form { margin: -4px 0 12px; }

/* Giỏ hàng */
.cart-layout, .checkout-layout { display: grid; gap: 12px; }
@media (min-width: 992px) {
    .cart-layout { grid-template-columns: 1fr 360px; align-items: start; }
    .checkout-layout { grid-template-columns: 1fr 400px; align-items: start; }
    .cart-summary, .checkout-summary { position: sticky; top: calc(var(--header-h) + 60px); }
}
.cart-box, .cart-summary, .checkout-box, .checkout-summary { background: #fff; border-radius: var(--radius); padding: 16px; }
.checkout-box + .checkout-box { margin-top: 12px; }
.cart-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.cart-title span { font-size: .95rem; color: var(--muted); font-weight: 400; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cart-line.has-problem { background: #fff8f0; margin: 0 -16px; padding: 12px 16px; }
.cart-thumb img, .cart-thumb .pcard-noimg { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cart-name { color: var(--text); font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-variant, .cart-note { font-size: .85rem; color: var(--muted); }
.cart-price strong { color: var(--price); }
.cart-price del { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.cart-problem { color: var(--warn); font-size: .85rem; font-weight: 600; }
.cart-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (min-width: 576px) { .cart-line { grid-template-columns: 80px 1fr auto; } .cart-actions { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.cart-line-total { font-weight: 700; }
.qty-sm form { display: contents; }
.qty-sm button { width: 34px; height: 34px; }
.qty-sm input { width: 46px; height: 34px; }
.coupon-form { padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.coupon-applied { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: #ecf8f0; color: var(--ok); border-radius: 8px; padding: 8px 10px; font-size: .9rem; }
.totals { margin: 0 0 12px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.totals dt { font-weight: 400; }
.totals dd { margin: 0; text-align: right; }
.totals .eta { font-size: .85rem; color: var(--muted); padding-top: 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 1.05rem; font-weight: 700; }
.totals .grand dd { color: var(--price); font-size: 1.3rem; }
.cart-assure { list-style: none; padding: 0; margin: 12px 0 0; font-size: .85rem; color: var(--muted); display: grid; gap: 4px; }

/* Thanh toán */
.checkout-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.checkout-title .step { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.saved-addresses { display: grid; gap: 8px; }
.saved-address, .pay-method { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; margin: 0; }
.saved-address:has(input:checked), .pay-method:has(input:checked) { border-color: var(--navy-2); background: var(--navy-soft); }
.saved-address input, .pay-method input { margin-top: 4px; accent-color: var(--navy-2); }
.pay-methods { display: grid; gap: 8px; }
.pay-methods.is-invalid .pay-method { border-color: #dc3545; }
.pay-method > .bi { font-size: 1.4rem; color: var(--navy-2); }
.pay-method span { display: flex; flex-direction: column; }
.pay-method small { color: var(--muted); }
.co-lines { list-style: none; padding: 0; margin: 0 0 12px; max-height: 340px; overflow: auto; }
.co-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.co-thumb { position: relative; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.co-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.co-qty { position: absolute; top: -6px; right: -6px; background: var(--muted); color: #fff; font-size: .7rem; border-radius: 10px; min-width: 18px; text-align: center; padding: 1px 4px; }
.co-name small { display: block; color: var(--muted); }
.co-price { font-weight: 600; white-space: nowrap; }

/* Đặt hàng thành công & chi tiết đơn */
.success-hero { background: #fff; border-radius: var(--radius); padding: 24px 16px; text-align: center; margin: 12px 0; }
.success-hero > .bi { font-size: 3rem; color: var(--ok); }
.success-hero h1 { font-size: 1.5rem; font-weight: 700; margin: 8px 0; }
.order-detail { background: #fff; border-radius: var(--radius); padding: 16px; }
.od-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.od-code { font-size: 1.1rem; }
.od-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 16px; counter-reset: s; }
.od-steps li { text-align: center; font-size: .8rem; color: var(--muted); position: relative; }
.od-steps li span { display: flex; width: 28px; height: 28px; margin: 0 auto 4px; border-radius: 50%; background: var(--line); color: var(--muted); align-items: center; justify-content: center; font-weight: 700; position: relative; z-index: 1; }
.od-steps li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.od-steps li:first-child::before { display: none; }
.od-steps li.done { color: var(--ok); font-weight: 600; }
.od-steps li.done span { background: var(--ok); color: #fff; }
.od-steps li.done::before { background: var(--ok); }
.od-grid { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 576px) { .od-grid { grid-template-columns: 1fr 1fr; } }
.od-grid h3 { font-size: .85rem; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.od-grid p { margin: 0; }
.od-items { width: 100%; margin-bottom: 12px; }
.od-items td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.od-thumb { width: 64px; }
.od-thumb img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.od-history summary { cursor: pointer; color: var(--navy-2); }
.od-history ul { padding-left: 18px; margin: 8px 0 0; font-size: .9rem; }
.bank-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: var(--navy-soft); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.bank-box img { width: 220px; height: auto; background: #fff; border-radius: 8px; }
.bank-box > div { flex: 1; min-width: 220px; }
.bank-box dl { margin: 6px 0; }
.bank-box dl > div { display: flex; gap: 8px; padding: 2px 0; }
.bank-box dt { font-weight: 400; color: var(--muted); min-width: 110px; }
.bank-box dd { margin: 0; }

/* Đăng nhập / đăng ký */
.auth-card { max-width: 440px; margin: 24px auto; background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: 0 2px 12px rgba(11,42,91,.06); }
.auth-card h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; text-align: center; }

/* Tài khoản */
.account-layout { display: grid; gap: 12px; padding-top: 12px; }
@media (min-width: 992px) { .account-layout { grid-template-columns: 260px 1fr; align-items: start; } }
.account-nav { background: #fff; border-radius: var(--radius); padding: 12px; }
.account-hello { display: flex; gap: 10px; align-items: center; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-hello .bi { font-size: 2rem; color: var(--navy-2); }
.account-hello small { display: block; color: var(--muted); }
.account-nav nav { display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 992px) { .account-nav nav { flex-direction: column; overflow: visible; } }
.account-nav nav a, .account-nav nav button { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; white-space: nowrap; background: none; border: 0; width: 100%; text-align: left; font-size: .95rem; }
.account-nav nav a.active, .account-nav nav a:hover, .account-nav nav button:hover { background: var(--navy-soft); color: var(--navy-2); }
.account-nav nav button { color: var(--cta); }
.account-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.account-main > .checkout-box { margin-bottom: 12px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.account-stats a { background: #fff; border-radius: var(--radius); padding: 14px; text-align: center; text-decoration: none; color: var(--text); }
.account-stats strong { display: block; font-size: 1.5rem; color: var(--navy-2); }
.account-stats span { font-size: .85rem; color: var(--muted); }
.address-list { display: grid; gap: 10px; margin-bottom: 12px; }
.address-card { background: #fff; border-radius: var(--radius); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; border: 1px solid transparent; }
.address-card.is-default { border-color: var(--navy-2); }
.address-actions { display: flex; gap: 6px; align-items: flex-start; }
.wish-item { display: flex; flex-direction: column; }
.wish-item .pcard { flex: 1; }
@media (min-width: 768px) { .wishlist-grid { grid-template-columns: repeat(3, 1fr); } }

/* =====================================================================
 * Phase 5 — Đánh giá, tin tức
 * ===================================================================== */
.reviews .review-summary { display: grid; gap: 16px; align-items: center; padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .reviews .review-summary { grid-template-columns: 180px 1fr auto; } }
.review-score { text-align: center; }
.review-score strong { font-size: 2.4rem; color: var(--text); line-height: 1; }
.review-score span { color: var(--muted); }
.review-score small { display: block; color: var(--muted); }
.stars { color: #f5a623; letter-spacing: 1px; }
.review-score .stars { display: block; font-size: 1.1rem; margin: 4px 0; }
.review-dist { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.review-dist li { display: grid; grid-template-columns: 44px 1fr 32px; gap: 8px; align-items: center; padding: 2px 0; }
.review-dist .bi { color: #f5a623; font-size: .75rem; }
.review-dist .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.review-dist .bar span { display: block; height: 100%; background: #f5a623; }
.review-form { background: #f8fafc; border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.8rem; color: #d3d8e0; cursor: pointer; line-height: 1; padding: 2px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 2px solid var(--navy-2); border-radius: 4px; }
.review-list { list-style: none; padding: 0; margin: 8px 0 0; }
.review-list > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-head time { color: var(--muted); font-size: .85rem; margin-left: auto; }
.review-head .verified { color: var(--ok); font-size: .82rem; font-weight: 600; }
.review-stars { margin: 2px 0 6px; font-size: .9rem; }
.review-list p { margin: 0 0 8px; }
.review-images { display: flex; gap: 6px; flex-wrap: wrap; }
.review-images img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.review-reply { background: var(--navy-soft); border-radius: 8px; padding: 8px 12px; font-size: .92rem; margin-top: 8px; }

.post-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .home-section .post-grid, .post-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .blog-layout .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: var(--navy-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2rem; color: var(--navy-2); }
.post-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.post-body h3 { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.4; }
.post-body h3 a { color: var(--text); text-decoration: none; }
.post-body h3 a:hover { color: var(--cta); }
.post-body p { color: var(--muted); font-size: .88rem; margin: 0; }
.post-body time { color: var(--muted); font-size: .8rem; margin-top: auto; }
.post-cat { font-size: .78rem; text-transform: uppercase; font-weight: 700; color: var(--cta); text-decoration: none; letter-spacing: .02em; }
.blog-layout { display: grid; gap: 16px; }
@media (min-width: 992px) { .blog-layout { grid-template-columns: 1fr 280px; align-items: start; } }
.blog-side { background: #fff; border-radius: var(--radius); padding: 16px; }
.blog-cats { list-style: none; padding: 0; margin: 0; }
.blog-cats a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; }
.blog-cats a[aria-current] { color: var(--cta); font-weight: 600; }
.blog-cats span { color: var(--muted); font-size: .85rem; }
.post-article { background: #fff; border-radius: var(--radius); padding: 20px 16px; max-width: 860px; margin: 0 auto 16px; }
@media (min-width: 768px) { .post-article { padding: 32px 40px; } }
.post-article h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.35; margin: 6px 0 10px; }
@media (min-width: 768px) { .post-article h1 { font-size: 2rem; } }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.post-cover { margin: 0 0 16px; }
.post-cover img { width: 100%; height: auto; border-radius: var(--radius); }
.post-lead { font-size: 1.08rem; font-weight: 500; color: #33405a; }
.post-toc { background: var(--navy-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.post-toc ol { margin: 6px 0 0; padding-left: 20px; }
.post-toc a { text-decoration: none; }
.post-article .rich-text { font-size: 1.02rem; line-height: 1.75; }
.post-article .rich-text h2 { scroll-margin-top: calc(var(--header-h) + 70px); }
.review-form legend { font-size: 1rem; font-weight: 600; }

/* Giữ chỗ cho icon khi file icon tải sau (không làm xô lệch bố cục) */
.bi { display: inline-block; min-width: 1em; line-height: 1; }
.buy-buttons .btn small { color: #fff; opacity: 1; }
.wish-form .btn { min-height: 28px; padding: 2px 0 !important; }
.page-checkout .float-contact, .page-cart .float-contact { display: none; }

/* ---------- Flash sale ---------- */
.flash-sale { background: linear-gradient(135deg, #b5211d, #e0461f); border-radius: var(--radius); padding: 14px 12px; color: #fff; }
.flash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.flash-head h2 { color: #fff; font-size: 1.2rem; font-weight: 800; margin: 0; text-transform: uppercase; }
.flash-head .more { color: #fff; margin-left: auto; text-decoration: none; }
.flash-timer { display: flex; align-items: center; gap: 4px; font-size: .85rem; }
.flash-timer span { margin-right: 4px; }
.flash-timer b { background: #1b2433; color: #fff; border-radius: 4px; padding: 2px 6px; min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.flash-timer i { font-style: normal; font-weight: 700; }
.flash-timer b[data-cd="d"] { margin-right: 4px; background: #fff; color: #1b2433; }
.flash-card { color: var(--text); }
.flash-card.is-sold-out { opacity: .65; }
.flash-progress { position: relative; height: 18px; background: #fde3dc; border-radius: 9px; overflow: hidden; margin-top: 6px; }
.flash-progress span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f7a24b, #d42a25); }
.flash-progress em { position: relative; display: block; text-align: center; font-size: .72rem; font-style: normal; font-weight: 700; color: #1b2433; line-height: 18px; }

/* =====================================================================
 * Tinh chỉnh giao diện điện thoại (12/10/2026) — chỉ áp dụng < 992px, desktop giữ nguyên.
 *  1. Header 1 hàng: menu + logo + ô tìm kiếm + giỏ (trước 2 hàng, chiếm ~16% màn hình).
 *  2. Breadcrumb 1 dòng, tên trang dài tự cắt "…".
 *  3. Bỏ nút liên hệ nổi trên điện thoại (che ô danh mục / nút Mua ngay): nút Gọi chuyển lên header,
 *     Zalo đã có ở mục "Tư vấn" của thanh dưới.
 *  4. Trang sản phẩm: ẩn thanh điều hướng dưới, thanh Mua ngay xuống sát đáy (trước 2 thanh dính
 *     chồng nhau, che ảnh sản phẩm).
 *  5. Nút bấm >= 36px, chữ nhỏ nhất 12px (nhãn thanh dưới, nhãn giảm giá).
 * ===================================================================== */
@media (max-width: 991.98px) {
    /* 1. Header */
    .header-row { grid-template-columns: auto auto 1fr auto; grid-template-areas: "menu brand search actions"; gap: 8px; padding: 8px 10px; }
    .brand img { height: 34px; }
    .search { min-width: 0; }   /* ô 1fr được co nhỏ hơn placeholder — không tràn ngang */
    .search input { padding: 8px 10px; font-size: .9rem; text-overflow: ellipsis; }
    .search button { padding: 0 11px; }
    .header-row { gap: 6px; }
    .header-actions { gap: 0; }
    .header-actions .action { padding: 6px 4px; min-width: 36px; min-height: 40px; justify-content: center; }

    /* 2. Breadcrumb */
    .breadcrumbs ol { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; padding: 10px 0; }
    .breadcrumbs li { flex-shrink: 0; }
    .breadcrumbs li[aria-current] { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 4px 0; }
    .breadcrumbs ol { align-items: center; }
    .breadcrumbs a { display: inline-block; padding: 4px 0; }

    /* 3. Không dùng nút liên hệ nổi trên điện thoại (che nút Mua ngay / ô danh mục): Gọi nằm ở header
          (.action-call), Zalo ở mục "Tư vấn" của thanh dưới. */
    .float-contact { display: none; }
    .action-call > i { font-size: 1.2rem; }

    /* 4. Trang sản phẩm: 1 thanh dính đáy */
    .page-product { --bottom-nav-h: 0px; }
    .page-product .bottom-nav { display: none; }
    .page-product .buy-bar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }

    /* 5. Vùng chạm & cỡ chữ */
    .pcard-actions .btn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
    .section-head .more { display: inline-block; padding: 8px 0; }
    .site-footer .footer-links li { margin-bottom: 0; }
    .site-footer .footer-links a { display: inline-block; padding: 7px 0; }
    .pcard-badges span { font-size: .75rem; }
    .bottom-nav a { font-size: .75rem; }
    .footer-social .zalo-text { font-size: .75rem; }
    .ship-box .form-select-sm { min-height: 38px; }

    /* 6. Màn hẹp (320px — iPhone SE): cột lưới được co nhỏ hơn nội dung, không đẩy trang tràn ngang */
    .listing { grid-template-columns: minmax(0, 1fr); }
    .listing-main { min-width: 0; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pdp { grid-template-columns: minmax(0, 1fr); }
    .buy-buttons { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
    .buy-buttons .btn small { white-space: normal; }
}
