/* vn-app.css — SHARED page-local layout + VN-fit components for the whole
   template (header/util-bar/promo-strip/footer/float-widget + slider + cards
   + SVG-icon sizing). Loaded on EVERY page AFTER base.css + look-vn-commerce.css.
   Page-local LAYOUT only — defines NO spine tokens. */

body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: var(--lh-body); font-size: var(--t-body); }
.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* SVG icon helper — stroke icons inherit currentColor */
.ic-svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
.ic-svg.sm { width: 16px; height: 16px; }
.ic-svg.lg { width: 24px; height: 24px; }
.ic-svg.xl { width: 28px; height: 28px; }

/* ---- 1. TOP UTILITY BAR ---- */
.utilbar { background: var(--color-text); color: #cfd5dc; font-size: var(--t-label-s); }
.utilbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 18px; }
.utilbar a { color: #cfd5dc; transition: color var(--motion) var(--ease); }
.utilbar a:hover { color: #fff; }
.utilbar .lead { display: flex; align-items: center; gap: 8px; }
.utilbar .right { display: flex; gap: 18px; }

/* ---- HEADER + HOTLINE ---- */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--color-line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.3px; color: var(--color-brand); white-space: nowrap; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: var(--t-body-s); }
.nav a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: color var(--motion) var(--ease), border-color var(--motion) var(--ease); }
.nav a:hover, .nav a.on { color: var(--color-brand); border-color: var(--color-brand); }
.nav a.promo { color: var(--color-promo); }
.hdr .tools { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.hotline { display: flex; align-items: center; gap: 8px; color: var(--color-brand); font-weight: 700; }
.hotline .ic { width: 30px; height: 30px; border-radius: var(--radius-pill); background: rgba(10,124,90,.12); display: grid; place-items: center; flex: none; }
.hotline small { display: block; font-weight: 500; font-size: 11px; color: var(--color-text-muted); }
.iconbtn { width: 36px; height: 36px; border-radius: var(--radius-pill); display: grid; place-items: center; color: var(--color-text); transition: background var(--motion) var(--ease); position: relative; }
.iconbtn:hover { background: var(--color-surface); }
.iconbtn .cnt { position: absolute; top: -2px; right: -2px; background: var(--color-promo); color: #fff; font-size: 10px; font-weight: 700; border-radius: var(--radius-pill); min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }

/* ---- 2. PROMO STRIP ---- */
.promostrip { background: var(--color-promo); color: #fff; text-align: center; font-weight: 600; font-size: var(--t-body-s); }
.promostrip .wrap { height: 38px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.promostrip b { font-weight: 800; }
.promostrip .it { display: flex; align-items: center; gap: 7px; }
.promostrip .sep { opacity: .5; }

/* ---- BUTTONS (VN-commerce pill variants; press + focus from spine) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: var(--t-body-s); padding: 13px 22px; border-radius: var(--radius-pill); cursor: pointer; border: 0; transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease), background var(--motion) var(--ease); }
.btn:active { scale: var(--press); }
.btn:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.btn-promo { background: var(--color-promo); color: #fff; }
.btn-promo:hover { box-shadow: var(--shadow-hover); translate: 0 var(--lift); }
.btn-brand { background: var(--color-brand); color: #fff; }
.btn-brand:hover { box-shadow: var(--shadow-hover); translate: 0 var(--lift); }
.btn-ghost { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-line); }
.btn-ghost:hover { border-color: var(--color-brand); color: var(--color-brand); }
.btn-onhero { background: rgba(255,255,255,.14); color: #fff; }
.btn-onhero:hover { background: rgba(255,255,255,.26); }
.btn.block { width: 100%; }

/* ---- SECTION shell + anatomy (FIXED spine rule) ---- */
.sec { padding-block: var(--section-y); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.eyebrow2 { color: var(--color-promo); font-weight: 700; font-size: var(--t-label); letter-spacing: .3px; margin-bottom: 4px; }
.sec-head h2 { font-family: var(--font-head); font-size: var(--t-h1); font-weight: 800; letter-spacing: -.3px; }
.showall { color: var(--color-brand); font-weight: 700; font-size: var(--t-body-s); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.showall:hover .ic-svg { translate: 3px 0; transition: translate var(--motion) var(--ease); }

/* ---- TRUST QUICK-BAR ---- */
.qbar { background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.qbar .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; padding-block: 18px; }
.qbar .q { display: flex; gap: 12px; align-items: center; }
.qbar .q .ic { width: 38px; height: 38px; border-radius: 8px; background: #fff; border: 1px solid var(--color-line); display: grid; place-items: center; color: var(--color-brand); flex: none; }
.qbar .q b { font-weight: 700; font-size: var(--t-body-s); display: block; }
.qbar .q span { font-size: 12px; color: var(--color-text-muted); }

/* ---- PRODUCT CARD (dense, badge stacking) — shared across home/category/related ---- */
.pgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.pgrid.g3 { grid-template-columns: repeat(3,1fr); }
.card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease), border-color var(--motion) var(--ease); }
.card:hover { translate: 0 var(--lift); box-shadow: var(--shadow-hover); border-color: transparent; }
.card .imgwrap { aspect-ratio: 1/1; background: var(--color-surface-2); position: relative; overflow: hidden; }
.card .imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--motion-slow) var(--ease); }
.card:hover .imgwrap img { scale: var(--zoom); }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.bdg { font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 4px; color: #fff; line-height: 1; }
.bdg.sale { background: var(--color-promo); }
.bdg.new { background: var(--color-brand); }
.bdg.hot { background: #F08C00; }
.wish { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: var(--radius-pill); background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--color-text-muted); transition: color var(--motion) var(--ease); z-index: 2; }
.wish .ic-svg { width: 16px; height: 16px; }
.card:hover .wish { color: var(--color-promo); }
.card .body { padding: 11px 12px 13px; }
.card .cat { font-size: 11px; color: var(--color-text-muted); margin-bottom: 3px; }
.card .nm { font-weight: 600; font-size: var(--t-body-s); line-height: 1.35; margin-bottom: 6px; min-height: 38px; color: var(--color-text); }
.card .swatches { display: flex; gap: 5px; margin-bottom: 8px; }
.card .sw { width: 14px; height: 14px; border-radius: var(--radius-pill); border: 1px solid var(--color-line); }
/* price row: flex-wrap so sale + struck-old price never overflow a narrow card.
   On a too-tight card the .old drops to its own line instead of spilling out. */
.card .prices { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 1px; min-width: 0; }
.card .price { color: var(--color-promo); font-weight: 800; font-size: 16px; white-space: nowrap; }
.card .old { color: var(--color-text-muted); text-decoration: line-through; font-size: 12px; white-space: nowrap; }
.card .rate { font-size: 11px; color: #F08C00; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.card .rate .stars { display: inline-flex; }
.card .rate .ic-svg { width: 12px; height: 12px; fill: #F08C00; stroke: #F08C00; }
.card .rate span { color: var(--color-text-muted); }

/* ---- BREADCRUMB (shared content/commerce) ---- */
.crumb { background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.crumb .wrap { display: flex; align-items: center; gap: 8px; padding-block: 11px; font-size: 13px; color: var(--color-text-muted); }
.crumb a:hover { color: var(--color-brand); }
.crumb .ic-svg { width: 14px; height: 14px; }

/* ---- PAGE HEAD (content pages) ---- */
.pagehead { background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.pagehead .wrap { padding-block: 28px; }
.pagehead h1 { font-family: var(--font-head); font-size: var(--t-h1); font-weight: 800; letter-spacing: -.3px; }
.pagehead p { color: var(--color-text-muted); margin-top: 6px; max-width: 60ch; }

/* ---- TRUST band: client-count + payment/ship logos ---- */
.trust { background: var(--color-surface); }
.trust .stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; margin-bottom: 22px; }
.trust .stat b { font-family: var(--font-head); font-size: var(--t-h2); font-weight: 800; color: var(--color-brand); display: block; }
.trust .stat span { font-size: var(--t-body-s); color: var(--color-text-muted); }
.logos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.logo-chip { background: #fff; border: 1px solid var(--color-line); border-radius: 6px; padding: 8px 14px; font-weight: 700; font-size: 13px; color: var(--color-text-muted); }

/* ---- NEWSLETTER ---- */
.news { background-color: #0d4f3c; background-image: linear-gradient(110deg,#0a7c5a,#0d4f3c); color: #fff; }
.news .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 36px; flex-wrap: wrap; }
.news h3 { font-family: var(--font-head); font-size: var(--t-h2); font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.news p { opacity: .9; font-size: var(--t-body-s); }
.news form { display: flex; gap: 10px; flex-wrap: wrap; }
/* grow to fill, but never force the form wider than its container at 375. */
.news input { border: 0; border-radius: var(--radius-pill); padding: 13px 20px; font-size: var(--t-body-s); flex: 1 1 240px; min-width: 0; max-width: 100%; font-family: inherit; }
.news input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- FOOTER ---- */
.ft { background: var(--color-text); color: #aeb6c0; font-size: var(--t-body-s); }
.ft .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-block: 42px; }
.ft h2, .ft h5 { color: #fff; font-weight: 700; font-size: var(--t-body-s); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .4px; }
.ft a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #aeb6c0; transition: color var(--motion) var(--ease); }
.ft a:hover { color: #fff; }
.ft .cobadge { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #0a7c5a; font-weight: 700; font-size: 11px; padding: 5px 9px; border-radius: 5px; margin-top: 10px; }
.ft .pay { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ft .pay .p { background: #fff; border-radius: 4px; padding: 4px 7px; font-size: 10px; font-weight: 700; color: #444; }
.ft .ic-svg { width: 16px; height: 16px; }

/* ---- 3. FLOATING CONTACT WIDGET ---- */
.float { position: fixed; right: 14px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fbtn { width: 52px; height: 52px; border-radius: var(--radius-pill); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform var(--motion) var(--ease); text-align: center; line-height: 1.05; cursor: pointer; border: 0; }
.fbtn .ic-svg { width: 24px; height: 24px; }
.fbtn:hover { translate: 0 -3px; }
.fbtn.zalo { background: #0068FF; }
.fbtn.mess { background: #A33CF5; }
.fbtn.phone { background: #0a7c5a; animation: ring 1.6s infinite; }
.fbtn.top { background: var(--color-text); }
@keyframes ring { 0%,100% { box-shadow: 0 6px 18px rgba(0,0,0,.2); } 50% { box-shadow: 0 0 0 8px rgba(10,124,90,.18),0 6px 18px rgba(0,0,0,.2); } }

/* ---- HERO SLIDER (index) ---- */
.slider { position: relative; background: #0d4f3c; overflow: hidden; }
.slider .track { position: relative; }
.slide { display: none; }
.slide.on { display: block; animation: fade var(--motion-slow) var(--ease); }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }
.slide .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 52px; color: #fff; }
.slide .eyebrow { display: inline-block; background: rgba(255,255,255,.15); padding: 5px 12px; border-radius: var(--radius-pill); font-size: var(--t-label-s); font-weight: 700; letter-spacing: .4px; margin-bottom: 14px; }
.slide h1 { font-family: var(--font-head); font-size: var(--t-display); font-weight: 800; line-height: 1.12; letter-spacing: -.5px; margin-bottom: 14px; }
.slide p { font-size: var(--t-body); opacity: .92; margin-bottom: 22px; max-width: 46ch; }
.slide .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.slide .shot { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); position: relative; }
.slide .shot img { width: 100%; height: 100%; object-fit: cover; }
.slide .shot .tag { position: absolute; top: 12px; left: 12px; background: var(--color-promo); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 6px; }
.slider .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: var(--radius-pill); background: rgba(255,255,255,.18); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; z-index: 3; transition: background var(--motion) var(--ease); }
.slider .nav-arrow:hover { background: rgba(255,255,255,.34); }
.slider .nav-arrow.prev { left: 18px; }
.slider .nav-arrow.next { right: 18px; }
.slider .dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.slider .dot { width: 10px; height: 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0; transition: background var(--motion) var(--ease), width var(--motion) var(--ease); }
.slider .dot.on { background: #fff; width: 26px; }

/* ---- FLASH band (C-112: live countdown + balanced 3-zone layout) ----
   Desktop: badge LEFT · timer group CENTER · "Đã bán…" count RIGHT — the center
   group is `margin-inline:auto` so it's optically centered regardless of the side
   widths, and the count is pinned right. Mobile: the row wraps into a tidy centered
   stack (no ragged margin-left:auto gaps). */
.flash { background: linear-gradient(90deg,#fff4f2,#ffe9e4); border: 1px solid #f6cfc7; border-radius: 12px; padding: 14px 20px; margin-bottom: 24px; display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.flash .ft2 { font-family: var(--font-head); font-weight: 800; font-size: var(--t-h3); display: flex; align-items: center; gap: 8px; background: #161922; color: #fff; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.flash .ft2 .ic-svg { color: #F0C000; }
.cd { display: flex; gap: 10px; align-items: center; margin-inline: auto; }
.cd .cd-lbl { font-size: 13px; font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
.cd .cd-time { display: flex; gap: 6px; align-items: center; }
.cd .u { background: var(--color-text); color: #fff; font-weight: 800; font-size: 15px; border-radius: 6px; padding: 6px 9px; min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.cd .c { font-weight: 800; color: var(--color-text); }
.flash .more { font-size: var(--t-body-s); color: var(--color-text-muted); white-space: nowrap; }

/* Phone: stack the three zones centered — kill the auto-margins so nothing pulls
   to an edge and leaves a ragged gap. */
@media (max-width: 560px) {
  .flash { flex-direction: column; gap: 10px; padding: 14px 16px; text-align: center; }
  .cd { margin-inline: 0; flex-wrap: wrap; justify-content: center; }
  .flash .more { margin: 0; }
}

/* ---- CATEGORY tiles ---- */
.cats { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 16px 10px; text-align: center; transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease); }
.cat-tile:hover { translate: 0 var(--lift); box-shadow: var(--shadow-hover); }
.cat-tile .ci { width: 48px; height: 48px; margin: 0 auto 8px; border-radius: var(--radius-pill); background: var(--color-surface-2); display: grid; place-items: center; color: var(--color-brand); }
.cat-tile b { font-size: var(--t-body-s); font-weight: 600; display: block; }
.cat-tile small { color: var(--color-text-muted); font-size: 11px; }

/* ---- COLLECTION BANNERS ---- */
.banners { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.banner { position: relative; border-radius: 10px; overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; padding: 22px; color: #fff; background-color: #2b2b2b; /* dark fallback under the image+gradient so white text stays >=4.5:1 even if the image fails (and provably contrast-safe) */ transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.6)); z-index: 1; }
.banner:hover { translate: 0 var(--lift); box-shadow: var(--shadow-hover); }
.banner.b1 { grid-row: span 2; min-height: auto; }
.banner .bc { position: relative; z-index: 2; }
.banner small { font-size: var(--t-label-s); font-weight: 700; opacity: .9; letter-spacing: .4px; }
.banner h3 { font-family: var(--font-head); font-size: var(--t-h3); font-weight: 800; margin: 4px 0 8px; line-height: 1.2; }
.banner .lk { font-weight: 700; font-size: var(--t-body-s); display: inline-flex; align-items: center; gap: 5px; }

/* ---- WHY-US band ---- */
.why { background: var(--color-surface); }
.why .grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.why .w { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 22px 18px; text-align: center; transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease); }
.why .w:hover { translate: 0 var(--lift); box-shadow: var(--shadow-hover); }
.why .w .ic { width: 52px; height: 52px; border-radius: var(--radius-pill); background: rgba(10,124,90,.1); display: grid; place-items: center; margin: 0 auto 12px; color: var(--color-brand); }
.why .w .ic .ic-svg { width: 26px; height: 26px; }
.why .w b { font-family: var(--font-head); font-weight: 700; font-size: var(--t-body); display: block; margin-bottom: 6px; }
.why .w p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

/* ---- TESTIMONIALS ---- */
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.tcard { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 22px; }
.tcard .stars { color: #F08C00; display: flex; gap: 2px; margin-bottom: 10px; }
.tcard .stars .ic-svg { width: 16px; height: 16px; fill: #F08C00; stroke: #F08C00; }
.tcard p { font-size: var(--t-body-s); line-height: 1.6; color: var(--color-text); margin-bottom: 16px; }
.tcard .who { display: flex; align-items: center; gap: 11px; }
.tcard .av { width: 40px; height: 40px; border-radius: var(--radius-pill); object-fit: cover; flex: none; }
.tcard .who b { font-size: var(--t-body-s); font-weight: 700; display: block; }
.tcard .who span { font-size: 12px; color: var(--color-text-muted); }

/* ---- BLOG cards ---- */
.bgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.bcard { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease); }
.bcard:hover { translate: 0 var(--lift); box-shadow: var(--shadow-hover); }
.bcard .bimg { aspect-ratio: 16/9; overflow: hidden; }
.bcard .bimg img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--motion-slow) var(--ease); }
.bcard:hover .bimg img { scale: var(--zoom); }
.bcard .bbody { padding: 16px; }
.bcard .btag { font-size: 11px; color: var(--color-brand); font-weight: 700; margin-bottom: 6px; }
.bcard h4 { font-family: var(--font-head); font-weight: 700; font-size: var(--t-body); line-height: 1.35; margin-bottom: 8px; }
.bcard .bmeta { font-size: 12px; color: var(--color-text-muted); }

/* ---- FORM controls (checkout/contact/account) ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--color-promo); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 11px 13px; font: inherit; font-size: var(--t-body-s); background: #fff; color: var(--color-text); transition: border-color var(--motion) var(--ease); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-brand); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 1px; }
.textarea { resize: vertical; min-height: 96px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ---- RESPONSIVE ----
   C-110 full-site audit: the vn-drive mockup was authored desktop-only, so the
   home/about chrome grids (qbar, trust, why, testimonials, blog teasers,
   banners, category tiles, product grid) had NO collapse below their desktop
   column count. On a 375px phone those 3–4–6-col grids cram each cell to
   ~80–100px → labels wrap one word per line and product cards clip their price.
   This block steps every house grid down through tablet → phone so each cell
   has a sane minimum width. Single source of truth for chrome responsiveness. */

/* Tablet (<=1100): widest grids drop a step. */
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(3,1fr); }
  .cats { grid-template-columns: repeat(3,1fr); }
  .slide .wrap { grid-template-columns: 1fr; }
  .qbar .wrap { grid-template-columns: repeat(2,1fr); }
  .trust .stats { grid-template-columns: repeat(2,1fr); }
  .why .grid4 { grid-template-columns: repeat(2,1fr); }
  .tgrid { grid-template-columns: repeat(2,1fr); }
  .bgrid { grid-template-columns: repeat(2,1fr); }
  .banners { grid-template-columns: 1fr 1fr; }
  .banner.b1 { grid-row: auto; }
  .ft .wrap { grid-template-columns: repeat(2,1fr); }
}

/* Tablet portrait / large phone (<=768): product + category grids to 2-up. */
@media (max-width: 768px) {
  .pgrid { grid-template-columns: repeat(2,1fr); }
  .cats { grid-template-columns: repeat(3,1fr); }
  .tgrid { grid-template-columns: 1fr; }
  .banners { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(6,1fr); }
}

/* Phone (<=480): single-column where a 2-up cell would be too narrow to read;
   keep light chrome rows (qbar/trust/cats) at 2-up so they stay compact, not a
   tall ragged stack. */
@media (max-width: 480px) {
  .pgrid { grid-template-columns: repeat(2,1fr); }
  .cats { grid-template-columns: repeat(2,1fr); }
  .qbar .wrap { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .trust .stats { grid-template-columns: repeat(2,1fr); }
  .why .grid4 { grid-template-columns: 1fr; }
  .bgrid { grid-template-columns: 1fr; }
  .ft .wrap { grid-template-columns: 1fr; gap: 22px; }
  .field.row3 { grid-template-columns: 1fr; }
}
/* ---- A11Y: mobile tap targets (WCAG 2.5.8 — C-110) ----
   The mockup's chrome links/buttons were sized for a mouse (22–36px tall). At a
   phone width every interactive target must be >=44x44 css px. These give each
   flagged control a >=44px hit area at mobile WITHOUT visibly bloating the desktop
   layout (scoped <=480, and using min-height + centering so the visual text stays
   put while the clickable box grows). Covers: header icon buttons, the logo link,
   utilbar + breadcrumb text links, the account logout + order "detail" links. */
@media (max-width: 480px) {
  .iconbtn { width: 44px; height: 44px; }
  .logo { min-height: 44px; display: inline-flex; align-items: center; }
  /* text links → grow the clickable box to 44px tall, keep text inline-centered */
  .utilbar a,
  .crumb a,
  .acc-head .logout,
  .otbl .detail {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* footer column links: bump their hit box to 44px (they ship at ~30px). */
  .ft a { min-height: 44px; padding-block: 0; }

  /* --- interactive controls: grow hit area to >=44px @ mobile --- */
  /* show-all / showall inline links */
  .showall, .show-all { min-height: 44px; display: inline-flex; align-items: center; }

  /* blog post links (native query loop) + contact "Chỉ đường" map links */
  .btag a, .taxonomy-category a, .wp-block-post-title a, .cat-item a,
  .sr-card .sr-dir { min-height: 44px; display: inline-flex; align-items: center; }

  /* slider dots: keep the small visual dot, expand the clickable+measured box to
     44px via transparent padding (background paints only the content box). */
  .slider .dots, .slider [data-dots] { align-items: center; }
  .slider .dot {
    width: 44px; height: 44px;
    padding: 17px;                       /* (44-10)/2 → 10px visual dot centered */
    background-clip: content-box;
    box-sizing: border-box;
  }
  .slider .dot.on { width: 44px; padding: 17px 9px; }  /* 26px wide pill, 44 box */

  /* NOTE: product-variant + shop-filter controls (.swatch/.size-pill/.qty/
     .swbtn/.vb/.fopt/.f-*/.btn-apply/.select/.pg) are owned by pages.css, which
     loads AFTER this file — an equal-specificity rule here would lose to source
     order. Their mobile tap-target overrides live at the END of pages.css. */
  /* breadcrumb/util rows are tight; pull their vertical padding in so the taller
     links don't add a big gap, the link's own min-height supplies the target. */
  .crumb .wrap { padding-block: 4px; }
  .utilbar .wrap { min-height: 44px; height: auto; }

  /* breadcrumb: keep it ONE line on mobile. The leading links/chevrons stay put;
     the trailing current-page name (the long product title) truncates with an
     ellipsis instead of wrapping to 3 lines. Tighten the grey band too. */
  .crumb .wrap {
    flex-wrap: nowrap; gap: 5px; overflow: hidden; white-space: nowrap;
  }
  .crumb .wrap > a,
  .crumb .wrap > .ic-svg { flex: none; }                  /* links + chevrons don't shrink */
  .crumb .wrap > span:last-child {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}

/* WP core skip-link (#wp-skip-link.screen-reader-text) ships as a 1x1 clipped
   box until focus — the a11y gate measures it unfocused and flags 1x1. Give it a
   real >=44px target: stays visually hidden off-canvas, but is a proper-sized,
   keyboard-reachable skip control (revealed on focus) rather than a 1px sliver. */
.skip-link.screen-reader-text {
  width: auto;
  min-width: 44px;
  height: auto;
  min-height: 44px;
  clip: auto;
  clip-path: inset(50%);            /* still hidden until focused */
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
}
.skip-link.screen-reader-text:focus,
.skip-link.screen-reader-text:focus-visible {
  clip: auto;
  clip-path: none;
  left: 8px;
  top: 8px;
  z-index: 100000;
  background: var(--color-bg);
  color: var(--color-brand);
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .cat-tile:hover, .btn-promo:hover, .btn-brand:hover, .banner:hover, .why .w:hover, .bcard:hover, .fbtn:hover { translate: none !important; scale: none !important; }
  .slide.on { animation: none !important; }
}
