/* topbody.vn — bố cục kiểu shop Woodmart (web cũ), bộ nhận diện TopBody 2.1:
   cam #FD5932 (chữ cam trên nền sáng #C2380A), mực #141414, tiêu đề Montserrat, nội dung Be Vietnam Pro. */
:root {
  --brand: #FD5932;
  --brand-dark: #E2431D;
  --brand-text: #C2380A;
  --brand-soft: #FFF1EC;
  --sale: #DC1F18;
  --ink: #141414;
  --ink-2: #4A4A4F;
  --ink-3: #6B6B71;
  --line: #E8E8EA;
  --bg-soft: #F6F6F7;
  --paper: #FFFFFF;
  --ok: #1E7B4F;
  --err: #B3261E;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Montserrat", "Be Vietnam Pro", system-ui, sans-serif;
  --text-base: clamp(0.92rem, 0.88rem + 0.15vw, 1rem);
  --space-section: clamp(40px, 3vw + 24px, 72px);
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px -18px rgba(20, 20, 30, 0.35);
  --dur: 200ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-base)/1.6 var(--font); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.015em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- thanh trên + đầu trang ---------- */
.topbar { background: var(--brand); color: #fff; font-size: 0.82rem; }
.topbar-row { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.tb-msg { margin: 0 auto; opacity: 0.95; }
.tb-search { display: flex; align-items: center; background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 2px 3px 2px 14px; }
.tb-search input { width: 180px; border: 0; background: none; color: #fff; padding: 5px 0; outline: none; }
.tb-search input::placeholder { color: rgba(255, 255, 255, 0.85); }
.tb-search button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; cursor: pointer; }

.site-head { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(0, 0, 0, 0.25); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo img { width: 140px; height: auto; }
.main-nav { display: flex; gap: clamp(14px, 2vw, 30px); margin: 0 auto; }
.main-nav a { text-decoration: none; font-size: 0.86rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; padding: 24px 0; position: relative; transition: color var(--dur); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--brand-text); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.head-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; text-decoration: none; transition: background var(--dur); }
.icon-btn:hover { background: var(--bg-soft); }
.menu-btn { display: none; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count.is-zero { background: var(--ink-3); }

.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 40; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 41; display: flex; flex-direction: column; overflow-y: auto; animation: slideIn 260ms var(--ease); }
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-search { padding: 12px 16px; }
.drawer-search input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.drawer > a { padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.88rem; }
.drawer > a:hover { color: var(--brand-text); background: var(--brand-soft); }
.drawer .drawer-hot { margin: 16px; border: 0; background: var(--brand); color: #fff; border-radius: 999px; text-align: center; }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur), box-shadow var(--dur); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(253, 89, 50, 0.9); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.btn-outline:hover { background: #FFE3D9; }
.btn-outline.is-done, .btn-primary.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: #fff; color: #fff; background: none; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-wide { width: 100%; }

/* ---------- trình chiếu đầu trang chủ ---------- */
.hero { position: relative; overflow: hidden; }
.g-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(20, 20, 20, 0.62);
  color: #fff; font: 600 0.75rem/1.2 var(--font-head); pointer-events: none; }
.gallery-main { touch-action: pan-y; }
.hero-track { display: flex; transition: transform 700ms var(--ease); }
.slide { flex: 0 0 100%; position: relative; overflow: hidden; background: var(--hero-bg, #F4F1EE); }
.slide-visual { position: absolute; top: 0; bottom: 0; right: max(0px, calc((100% - 1240px) / 2)); height: 100%; aspect-ratio: 1; max-width: 58%; display: block; }
.slide-visual { padding: 20px 16px 20px 0; }
.slide-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: 0 18px 40px -24px rgba(20, 20, 20, 0.35); }
.slide-grid { position: relative; display: flex; align-items: center; min-height: clamp(380px, 36vw, 540px); padding-top: 40px; padding-bottom: 48px; }
.slide-copy { max-width: min(520px, 48%); }
.slide-kicker { display: inline-block; color: #fff; background: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.72rem; padding: 6px 12px; border-radius: 999px; margin: 0 0 16px; }
.slide h2 { font-size: clamp(2rem, 1rem + 3.2vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 14px; color: var(--ink); }
.slide-desc { color: var(--ink-2); font-weight: 500; margin: 0 0 20px; }
.slide-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 24px; color: var(--ink-2); }
.slide-price b { font-size: 1.7rem; color: var(--sale); font-weight: 800; }
.slide-off { background: var(--sale); color: #fff; font: 800 0.95rem/1 var(--font-head); padding: 8px 12px; border-radius: 10px; transform: rotate(-3deg); }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 14px; }
.hero-nav:hover { background: var(--brand); color: #fff; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 26px; height: 4px; border: 0; border-radius: 2px; background: rgba(0, 0, 0, 0.2); cursor: pointer; padding: 0; transition: background var(--dur), width var(--dur); }
.hero-dots button[aria-selected="true"] { background: var(--brand); width: 40px; }

/* ---------- cam kết ---------- */
.perks { border-bottom: 1px solid var(--line); }
.perks-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.perk { display: flex; align-items: center; gap: 12px; padding: 20px 12px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk-ic { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-size: 1.2rem; font-weight: 700; }
.perk p { margin: 0; font-size: 0.82rem; color: var(--ink-3); line-height: 1.4; }
.perk b { display: block; color: var(--ink); font-size: 0.92rem; font-weight: 600; }

/* ---------- hàng sản phẩm / lưới ---------- */
.shelf, .cats, .more { padding-top: var(--space-section); }
.shelf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shelf-head h2, .center-title { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 700; color: var(--ink); margin: 0; }
.shelf-head h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--brand); margin-top: 8px; border-radius: 2px; }
.shelf-nav { display: flex; gap: 8px; }
.shelf-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; font-size: 1.05rem; transition: background var(--dur); }
.shelf-nav button:hover { background: var(--brand-dark); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.center-title { text-align: center; }
.center-sub { text-align: center; color: var(--ink-3); margin: 6px 0 18px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }

.card { display: flex; flex-direction: column; text-decoration: none; text-align: center; }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease), opacity 400ms var(--ease); }
.card-img .img2 { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-img.has-2 .img2 { opacity: 1; }
.card:hover .card-img img { transform: scale(1.04); }
.card-cta { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); font-size: 0.82rem; font-weight: 600; transform: translateY(140%); transition: transform 320ms var(--ease); }
.card:hover .card-cta { transform: none; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 4px; font-size: 0.74rem; font-weight: 700; line-height: 1.2; z-index: 1; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-out { background: var(--ink); color: #fff; }
.swatches { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.swatches img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.card-name { margin-top: 10px; font-size: 0.92rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--dur); }
.card:hover .card-name { color: var(--brand-text); }
.card-price { margin-top: 4px; display: flex; justify-content: center; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price del { color: var(--ink-3); font-size: 0.82rem; }
.card-price ins { text-decoration: none; color: var(--sale); font-weight: 700; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.cat-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--bg-soft); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile span { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.94); font-weight: 600; text-align: center; line-height: 1.3; }
.cat-tile small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.78rem; }

.tabs { display: flex; justify-content: center; gap: 4px 26px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button { border: 0; background: none; padding: 8px 2px; font-weight: 600; text-transform: uppercase; font-size: 0.88rem; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; transition: color var(--dur), border-color var(--dur); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--brand-text); border-color: var(--brand); }

.story { margin-top: var(--space-section); background: var(--ink); color: #E9E9EB; padding: clamp(36px, 5vw, 64px) 0; }
.story-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.story h2 { color: #fff; font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); font-weight: 800; }
.story p { max-width: 38em; }
.story-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.story-points li { border-left: 3px solid var(--brand); padding-left: 14px; color: #BDBDC2; }
.story-points b { display: block; color: #fff; font-size: 1.5rem; font-weight: 700; }

/* ---------- danh mục / tìm kiếm ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; font-size: 0.82rem; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand-text); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 24px; }
.list-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin: 0; }
.list-count { color: var(--ink-3); margin: 0; font-size: 0.88rem; }
.search-big { display: flex; gap: 10px; margin-bottom: 24px; }
.search-big input { flex: 1; min-width: 0; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 999px; }
.empty { font-size: 1.02rem; }

/* ---------- trang sản phẩm ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; padding-bottom: var(--space-section); }
/* ảnh: thumb dọc bên trái như Woodmart, ảnh lớn bên phải */
.gallery { position: sticky; top: 84px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.gallery-main { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .badge { top: 14px; left: 14px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); font-size: 1.5rem; cursor: pointer; opacity: 0; transition: opacity var(--dur); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.g-nav.prev { left: 12px; }
.g-nav.next { right: 12px; }
.gallery-main:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
.thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: none; }
.thumb { flex: 0 0 auto; width: 84px; padding: 0; border: 1px solid transparent; background: var(--bg-soft); cursor: pointer; overflow: hidden; opacity: 0.6; transition: opacity var(--dur), border-color var(--dur); }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb.is-on, .thumb:hover { opacity: 1; border-color: var(--ink); }
/* phần mua */
.summary { padding-top: 4px; }
.pdp-title { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.85rem); font-weight: 600; line-height: 1.3; margin: 0 0 14px; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; }
.pdp-price del { color: var(--ink-3); font-size: 1.05rem; }
.pdp-price ins { text-decoration: none; color: var(--sale); font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; }
.pdp-lead { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; margin: 0 0 12px; }
.pdp-short { color: var(--ink-2); font-size: 0.92rem; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.vars { margin-bottom: 8px; }
.var-row { margin: 0 0 16px; }
.var-name { margin: 0 0 10px; font-size: 0.92rem; color: var(--ink-2); }
.var-name b { color: var(--ink); font-weight: 600; }
.var-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.var-opts.is-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
.var-opts.is-grid .vbtn-text { width: 100%; min-width: 0; border-radius: 12px; padding: 6px 8px; text-align: center; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
@media (max-width: 560px) { .var-opts.is-grid { grid-template-columns: repeat(var(--cols-m, 2), minmax(0, 1fr)); } }
.vbtn { position: relative; cursor: pointer; background: #fff; border: 1px solid var(--line); color: var(--ink); font: inherit; transition: border-color var(--dur), box-shadow var(--dur), color var(--dur); }
.vbtn-text { min-width: 44px; min-height: 40px; padding: 6px 16px; border-radius: 999px; font-size: 0.88rem; line-height: 1.3; }
.vbtn-img { width: 46px; height: 46px; padding: 0; border-radius: 50%; overflow: hidden; }
.vbtn-img img { width: 100%; height: 100%; object-fit: cover; }
.vbtn:hover { border-color: var(--ink); }
.vbtn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vbtn-img[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.vbtn:disabled { cursor: not-allowed; color: #B5B5BA; border-color: var(--line); box-shadow: none; }
.vbtn:disabled::after { content: ""; position: absolute; inset: 50% 4px auto; height: 1px; background: #C9C9CE; transform: rotate(-24deg); }
.vbtn-img:disabled img { opacity: 0.35; }
.var-reset { border: 0; background: none; padding: 0; color: var(--ink-3); font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; }
.var-reset:hover { color: var(--ink); }
.need-pick [data-tiers] .var-name { color: var(--sale); }
.pick-hint { color: var(--sale); font-size: 0.88rem; min-height: 1.2em; margin: 4px 0 8px; }
.addon { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px dashed var(--brand); border-radius: 8px; margin: 6px 0 12px; cursor: pointer; font-size: 0.9rem; background: var(--brand-soft); }
.addon input { width: 18px; height: 18px; accent-color: var(--brand); }
.addon b { margin-left: auto; color: var(--sale); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.15rem; }
.qty button:hover { color: var(--brand-text); }
.qty input { width: 40px; height: 46px; border: 0; text-align: center; font-weight: 600; font: inherit; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; height: 32px; }
.qty-sm span { min-width: 26px; text-align: center; font-weight: 600; }
.cart-row { display: flex; gap: 12px; margin-bottom: 12px; }
.cart-row .btn { flex: 1; }
.btn-dark { background: var(--ink); color: #fff; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.btn-dark:hover { background: #000; }
.btn-dark.is-done { background: var(--ok); }
.btn-buy { width: 100%; flex-direction: column; gap: 0; min-height: 58px; border-radius: 999px; background: var(--brand); color: #fff; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1rem; font-weight: 700; box-shadow: 0 12px 22px -14px rgba(253, 89, 50, 0.95); }
.btn-buy small { text-transform: none; letter-spacing: 0; font-size: 0.75rem; font-weight: 400; opacity: 0.9; }
.btn-buy:hover { background: var(--brand-dark); }
.added { color: var(--ok); font-weight: 500; margin: 12px 0 0; }
.pdp-perks { list-style: none; margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; font-size: 0.88rem; color: var(--ink-2); }
.pdp-perks li { padding-left: 26px; position: relative; }
.pdp-perks li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-size: 0.7rem; font-weight: 700; }
.pdp-perks b { color: var(--ink); font-weight: 600; }
.pdp-perks a { color: var(--brand-text); }
.pdp-meta { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.88rem; }
.pdp-meta div { display: flex; gap: 6px; }
.pdp-meta dt { color: var(--ink); font-weight: 600; }
.pdp-meta dd { margin: 0; color: var(--ink-3); }
.pdp-meta a { color: var(--ink-3); }
.pdp-meta a:hover { color: var(--brand-text); }
/* tab dưới: MÔ TẢ / THÔNG TIN BỔ SUNG / GIAO HÀNG & ĐỔI TRẢ */
.ptabs { background: var(--bg-soft); padding: clamp(28px, 4vw, 56px) 0 var(--space-section); margin-bottom: var(--space-section); }
.ptabs-nav { display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto clamp(16px, 2.4vw, 28px); padding: 6px;
  background: var(--paper); border-radius: 999px; box-shadow: var(--shadow-card); overflow-x: auto; scrollbar-width: none; }
.ptabs-nav::-webkit-scrollbar { display: none; }
.ptabs-nav [role=tab] { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 999px;
  padding: 11px clamp(14px, 2vw, 24px); font: 700 0.9rem/1 var(--font-head); color: var(--ink-2); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.ptabs-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ptabs-nav [role=tab]:hover { color: var(--ink); background: var(--bg-soft); }
.ptabs-nav [aria-selected="true"], .ptabs-nav [aria-selected="true"]:hover { background: var(--ink); color: #fff; }
.ptabs-nav [aria-selected="true"] svg { stroke: var(--brand); }
.ptabs-body > .ptab { max-width: 980px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: clamp(20px, 4vw, 48px); animation: tab-in 320ms var(--ease); }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }
.compare { padding-bottom: var(--space-section); }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.92rem; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--bg-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody th { font-weight: 700; white-space: nowrap; }
.cmp tbody th small { display: block; color: var(--sale); font-weight: 500; font-size: 0.78rem; }
.cmp td { color: var(--ink-2); }
.cmp-price { color: var(--sale) !important; font-weight: 700; white-space: nowrap; }
.attrs { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.93rem; }
.attrs caption { text-align: left; font: 700 1.05rem/1.3 var(--font-head); color: var(--ink); padding-bottom: 14px; }
.attrs th, .attrs td { text-align: left; padding: 13px 18px; vertical-align: top; }
.attrs tr:nth-child(odd) > * { background: var(--bg-soft); }
.attrs tr > th { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.attrs tr > td { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.attrs th { width: 34%; font-weight: 500; color: var(--ink-3); }
.attrs td { color: var(--ink); font-weight: 500; }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 8px 0; font-size: 0.92rem; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }
.specs a { color: var(--brand-text); }
.desc { font-size: 0.97rem; line-height: 1.75; color: var(--ink-2); }
.desc > :first-child, .desc > .sr + * { margin-top: 0; }
.desc h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; color: var(--ink); margin: 28px 0 10px; }
.desc h3::before { content: ""; flex: 0 0 4px; height: 1.1em; border-radius: 4px; background: var(--brand); }
.desc p { margin: 0 0 10px; }
.desc a { color: var(--brand-text); font-weight: 600; }
.desc .dli { position: relative; padding: 10px 14px 10px 46px; margin: 0 0 8px; background: var(--brand-soft); border-radius: var(--radius-sm); color: var(--ink); }
.desc .dli::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pdesc { max-width: 760px; margin: 8px auto 0; }
.pdesc ul, .pdesc ol { margin: 0 0 12px; padding-left: 1.2em; }
.pdesc li { margin: 0 0 6px; }
.desc-imgs { display: grid; gap: 12px; max-width: 760px; margin: 0 auto 32px; }
.desc-imgs img { width: 100%; border-radius: var(--radius); }
.ship-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ship-grid li { padding: 22px; border-radius: var(--radius); background: var(--bg-soft); }
.ship-grid svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-soft); fill: none; stroke: var(--brand-text);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.ship-grid h3 { font-size: 1rem; margin: 0 0 6px; }
.ship-grid p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.ship-grid a { color: var(--brand-text); font-weight: 600; }

/* ---------- giỏ hàng / đặt hàng / trang chữ ---------- */
.checkout, .done, .doc { padding-top: clamp(24px, 4vw, 48px); }
.checkout h1, .done h1, .doc h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 700; }
.eyebrow { color: var(--brand-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; margin: 0 0 10px; }
.lede { font-size: 1.05rem; color: var(--ink-2); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lines.static li { grid-template-columns: 1fr auto; }
.lines a { text-decoration: none; font-weight: 500; }
.lines a:hover { color: var(--brand-text); }
.lines b { color: var(--sale); }
.rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; text-decoration: underline; font-size: 0.85rem; }
.rm:hover { color: var(--err); }
.sum { margin: 18px 0 0; }
.sum div { display: flex; justify-content: space-between; padding: 6px 0; }
.sum dd { margin: 0; }
.sum-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px !important; font-weight: 700; font-size: 1.2rem; }
.sum-total dd { color: var(--sale); }
.co-form { background: var(--bg-soft); padding: clamp(18px, 3vw, 32px); border-radius: var(--radius); display: grid; gap: 14px; position: sticky; top: 84px; }
.co-form h2 { font-size: 1.2rem; margin: 0; }
.co-form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.88rem; }
.co-form input:not([type=radio]), .co-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-weight: 400; font-size: 1rem; }
.co-form input:focus, .co-form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.hp { position: absolute !important; left: -9999px; }
.pay { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pay legend { font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.radio { display: flex !important; align-items: center; gap: 12px !important; background: #fff; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--brand); }
.radio input { width: 18px; height: 18px; accent-color: var(--brand); }
.radio span { display: grid; }
.radio small { color: var(--ink-3); font-weight: 400; }
.err, .warn { color: var(--err); font-weight: 500; margin: 0; }
.fine { font-size: 0.82rem; color: var(--ink-3); margin: 0; }
.done .code { color: var(--brand-text); }
.done-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin: 28px 0 36px; }
.qr { background: var(--bg-soft); padding: 24px; border-radius: var(--radius); }
.doc { max-width: 820px; padding-bottom: 24px; }
.doc section { border-top: 1px solid var(--line); padding-top: 16px; }
.doc h2 { font-size: 1.15rem; }

/* ---------- chân trang ---------- */
.site-foot { margin-top: var(--space-section); background: #FAFAFA; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.88rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.site-foot h2 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); font-weight: 700; }
.site-foot nav { display: grid; gap: 9px; align-content: start; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--brand-text); }
.site-foot p { margin: 0 0 8px; }
.slogan { margin: 12px 0 12px !important; font-weight: 700; color: var(--ink); }
.foot-base { background: var(--brand); color: #fff; font-size: 0.8rem; padding: 14px 0; }
.float-stack { position: fixed; right: 16px; bottom: 20px; z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-zalo { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #0068FF; color: #fff;
  text-decoration: none; font: 700 0.9rem/1 var(--font-head); box-shadow: 0 12px 26px -10px rgba(0, 104, 255, 0.75); transition: transform var(--dur) var(--ease); }
.float-zalo:hover { transform: translateY(-2px); }
.float-call { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(253, 89, 50, 0.8); animation: ring 2.4s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(253, 89, 50, 0.45); } 50% { box-shadow: 0 0 0 12px rgba(253, 89, 50, 0); } }

/* ---------- màn hình vừa / nhỏ ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-btn, .search-btn { display: grid; }
  .head-row { gap: 8px; min-height: 60px; }
  .logo { margin: 0 auto; }
  .head-icons { margin-left: 0; }
  .tb-search { display: none; }
  .topbar-row { justify-content: center; min-height: 34px; }
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  /* điện thoại: banner — ảnh nền phải mờ dần, chữ trái (Boss 10/11) */
  .slide-visual { top: auto; bottom: 0; height: auto; width: 56%; max-width: none; padding: 0 12px 14px 0; }
  .slide-visual img { border-radius: 16px; }
  .slide-grid { min-height: 0; aspect-ratio: 5 / 4; align-items: flex-start; padding-top: 22px; padding-bottom: 34px; }
  .slide-copy { max-width: 52%; }
  .slide-kicker { font-size: 0.6rem; padding: 4px 9px; margin-bottom: 10px; }
  .slide h2 { font-size: clamp(1.1rem, 0.7rem + 2.4vw, 1.45rem); margin-bottom: 8px; }
  .slide-desc { font-size: 0.78rem; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-price { gap: 6px 8px; margin-bottom: 12px; font-size: 0.78rem; }
  .slide-price b { font-size: 1.15rem; }
  .slide-off { font-size: 0.75rem; padding: 5px 8px; }
  .slide .btn { min-height: 38px; padding: 0 16px; font-size: 0.85rem; }
  .hero-dots { bottom: 10px; }
  .hero-nav { display: none; }
  .perks-row { grid-template-columns: 1fr 1fr; }
  .perk { padding: 14px 8px; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rail { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-cta { display: none; }
  .card-name { font-size: 0.86rem; }
  .story-grid, .pdp, .co-grid, .done-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery, .co-form { position: static; }
  .gallery { margin: 0 calc(-1 * var(--gutter)); grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gallery-main { grid-column: 1; }
  .thumbs { grid-column: 1; grid-row: 2; flex-direction: row; height: auto; min-height: 0; overflow-x: auto; padding: 0 var(--gutter); }
  .thumb { width: 64px; }
  .g-nav { opacity: 1; width: 36px; height: 36px; }
  .pdp { gap: 18px; }
  .cart-row .btn { padding: 0 16px; }
  .btn-buy { position: sticky; bottom: 10px; z-index: 20; }
  .ptabs-nav { width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; }
  .ptabs-nav [role=tab] { justify-content: center; text-align: center; padding: 10px 6px; border-radius: 12px; font-size: 0.8rem; line-height: 1.25; }
  .ptabs-nav [role=tab] svg { display: none; }
  .ptabs-body > .ptab { padding: 18px 16px; border-radius: var(--radius); }
  .attrs th, .attrs td { padding: 11px 12px; }
  .attrs th { width: 42%; }
  .ship-grid { grid-template-columns: 1fr; gap: 10px; }
  .ship-grid li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .ship-grid svg { grid-row: span 2; margin: 0; }
  .specs div { grid-template-columns: 120px minmax(0, 1fr); }
  .lines li { grid-template-columns: 1fr auto; }
  .lines li .qty { grid-column: 1; justify-self: start; }
  .lines li .rm { justify-self: end; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .float-stack { bottom: 84px; }
  .float-call { width: 46px; height: 46px; }
  .float-zalo { height: 46px; padding: 0 12px; }
  .float-zalo span { display: none; }
  body:has([data-pdp]) .float-stack { bottom: 92px; }
}
/* ---------- trang gom theo từ khoá + hỏi đáp ---------- */
.hub-intro { max-width: 78ch; margin: -6px 0 28px; color: var(--ink-2); }
.hub-intro p { margin: 0 0 10px; }
.hub-sec { padding-top: var(--space-section); }
.hub-sec > h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); margin: 0 0 20px; }
.hub-sec > h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--brand); margin-top: 8px; border-radius: 2px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: var(--radius); background: var(--bg-soft);
  text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.pick-list a:hover, .pick-list a:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.pick-need { font: 700 1.02rem/1.3 var(--font-head); color: var(--ink); }
.pick-tip { color: var(--ink-2); font-size: 0.92rem; flex: 1; }
.pick-go, .hub-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-text); font-weight: 600; font-size: 0.9rem; }
.pick-go svg, .hub-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; cursor: pointer; list-style: none;
  font: 600 1rem/1.4 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease); margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--brand-text); }
.faq p { margin: 0 0 18px; max-width: 72ch; color: var(--ink-2); }
.hub-back { margin: 20px 0 0; }
.hub-back a { text-decoration: none; }
.hub-back a:hover { text-decoration: underline; }
.hub-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.hub-links a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none;
  font: 600 0.9rem/1.2 var(--font-head); color: var(--ink); transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.hub-links a:hover, .hub-links a:focus-visible { border-color: var(--brand); color: var(--brand-text); }
@media (max-width: 760px) {
  .pick-list { grid-template-columns: 1fr; gap: 12px; }
  .pick-list a { padding: 18px; }
  .hub-links { flex-wrap: nowrap; overflow-x: auto; padding-top: 20px; scrollbar-width: none; }
  .hub-links a { flex: none; }
}
/* ---------- bài hướng dẫn ---------- */
.guide { max-width: 820px; padding-bottom: 8px; }
.guide-head { padding: clamp(8px, 2vw, 20px) 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.guide-kicker { margin: 0 0 12px; font: 700 0.75rem/1.2 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-text); }
.guide-kicker a { color: inherit; }
.guide h1 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; }
.guide-lead { font-size: 1.1rem; line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.guide-meta { margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.guide section { padding-top: 28px; }
.guide h2 { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem); margin: 0 0 12px; }
.guide p, .guide li { color: var(--ink-2); line-height: 1.7; }
.guide p { margin: 0 0 14px; }
.guide ul, .guide ol { margin: 0 0 16px; padding-left: 22px; }
.guide li { margin-bottom: 6px; }
.guide li::marker { color: var(--brand); font-weight: 700; }
.guide-table { overflow-x: auto; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 460px; }
.guide-table th, .guide-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--ink); color: #fff; font: 600 0.85rem/1.3 var(--font-head); border-bottom: 0; }
.guide-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.guide-table tbody tr:last-child th, .guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table tbody th { font-weight: 600; color: var(--ink); }
.spec-table table { min-width: 760px; }
.spec-table th:first-child { min-width: 180px; }
.spec-table td { white-space: nowrap; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper); text-decoration: none; color: inherit; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.guide-list a:hover, .guide-list a:focus-visible { border-color: var(--brand); transform: translateY(-2px); }
.guide-list-title { font: 700 1.02rem/1.35 var(--font-head); color: var(--ink); }
.guide-list-desc { font-size: 0.9rem; color: var(--ink-2); }
.guide-inline-h { font-size: 1rem; margin: 24px 0 8px; }
.guide-inline { margin: 0; padding-left: 20px; }
.guide-inline li { margin-bottom: 6px; }
.guide-inline a { color: var(--brand-text); font-weight: 600; }
@media (max-width: 760px) { .guide-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ================= lớp chuốt theo bộ nhận diện 2.1 (10/11/2026) ================= */
.main-nav a, .btn, .tabs button, .ptabs-nav [role=tab], .badge, .card-price, .pdp-price, .slide-price b, .cart-count,
.slide-kicker, .foot-grid h2, .vbtn-text, .story-points b, .cmp-price { font-family: var(--font-head); }
.btn { font-weight: 700; letter-spacing: 0.01em; }
.badge { border-radius: 999px; padding: 4px 10px; letter-spacing: 0.02em; }
.site-head { transition: box-shadow var(--dur); }

/* ô sản phẩm: bo 14px, nhấc nhẹ khi rê, tên 2 dòng cố định cho giá thẳng hàng */
.card { gap: 0; }
.card-img { border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.04); transition: transform 360ms var(--ease), box-shadow 360ms var(--ease); }
.card:hover .card-img { transform: translateY(-4px); box-shadow: 0 18px 32px -20px rgba(20, 20, 20, 0.45); }
.card-name { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; line-height: 1.42; letter-spacing: -0.005em; color: var(--ink); -webkit-line-clamp: 3; min-height: 4.26em; margin-top: 12px; }
.card-price { margin-top: 6px; }
.card-price ins { font-size: 1.02rem; font-weight: 800; }
.swatches { margin-top: 12px; min-height: 22px; }
.swatches img { width: 20px; height: 20px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--line); }
.card-cta { font-family: var(--font-head); background: var(--ink); color: #fff; }

/* ô danh mục: ảnh phủ kín, lớp tối dưới chân, nhãn trắng góc trái + mũi tên */
.cat-tile { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); isolation: isolate; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 20, 0) 45%, rgba(20, 20, 20, 0.78) 100%); z-index: 0; }
.cat-tile span { left: 16px; right: 56px; bottom: 16px; padding: 0; background: none; color: #fff; text-align: left; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.cat-tile small { color: rgba(255, 255, 255, 0.8); font-family: var(--font); font-weight: 500; }
.cat-tile::before { content: "→"; position: absolute; right: 14px; bottom: 16px; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; transform: translateX(-4px); opacity: 0.92; transition: transform 320ms var(--ease), opacity var(--dur); }
.cat-tile:hover::before { transform: none; opacity: 1; }

/* tiêu đề khối: gạch cam ngắn dưới tiêu đề giữa trang */
.center-title::after { content: ""; display: block; width: 44px; height: 3px; margin: 10px auto 0; background: var(--brand); border-radius: 2px; }
.shelf-nav button { width: 42px; height: 42px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.shelf-nav button:hover { background: var(--brand); color: #fff; box-shadow: none; }
.perk-ic { border-radius: 14px; }

/* trang chi tiết */
.gallery-main { border-radius: var(--radius-lg); }
.thumb { border-radius: var(--radius-sm); }
.pdp-title { font-weight: 700; }
.pdp-perks { border-radius: var(--radius); background: var(--bg-soft); border-color: transparent; }
.cmp-scroll { border-radius: var(--radius); }
.empty-cart { text-align: center; padding: clamp(28px, 6vw, 64px) 16px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.empty-cart p { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink-2); }
.empty-cart svg { color: var(--brand); margin: 0 auto 14px; }

/* thanh mua dính đáy (điện thoại) */
.m-buybar { display: none; }
@media (max-width: 760px) {
  .btn-buy { position: static; }
  .m-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); box-shadow: 0 -8px 24px -14px rgba(20, 20, 20, 0.35); transform: translateY(110%); transition: transform 320ms var(--ease); }
  .m-buybar.is-on { transform: none; }
  .m-buybar .m-price { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 800; color: var(--sale); font-size: 0.98rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-buybar .m-price small { display: block; font-family: var(--font); font-weight: 500; color: var(--ink-3); font-size: 0.72rem; }
  .m-buybar .m-call { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-text); box-shadow: inset 0 0 0 1.5px var(--line); }
  .m-buybar .btn { min-height: 46px; padding: 0 22px; }
  body:has([data-pdp]) { padding-bottom: 76px; }
  body:has([data-pdp]) .float-call { display: none; }
  .pdp-title { font-size: 1.15rem; line-height: 1.4; }
  .pdp-price ins { font-size: 1.5rem; }
  .gallery-main { border-radius: 0; }
  .perks-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .perk { flex-direction: column; text-align: center; gap: 6px; padding: 14px 4px; }
  .perk:nth-child(n) { border-top: 0; }
  .perk + .perk { border-left: 1px solid var(--line); }
  .perk-ic { flex: 0 0 auto; width: 36px; height: 36px; font-size: 1rem; }
  .perk b { font-size: 0.72rem; line-height: 1.3; }
  .perk p { font-size: 0; }
  .perk p b { font-size: 0.72rem; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .cat-tile span { font-size: 0.95rem; left: 12px; bottom: 12px; right: 50px; }
  .cat-tile::before { right: 10px; bottom: 12px; width: 30px; height: 30px; }
  .card-name { font-size: 0.84rem; }
  .card-price ins { font-size: 0.95rem; }
  .float-stack { bottom: 18px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* đoạn giới thiệu riêng TopBody trên trang SP (intros/) */
.pintro { max-width: 760px; margin: 0 0 28px; padding: 20px 22px; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); }
.pintro h2 { font-size: 1.15rem; margin-bottom: 8px; }
.pintro h3 { font-size: 0.98rem; margin: 14px 0 6px; }
.pintro ul { margin: 0; padding-left: 1.2em; }
.pintro li { margin: 4px 0; }

/* ---------- banner nền ChatGPT (14/11): nền dựng bằng AI, SP là ảnh thật đứng trên bệ bên phải ---------- */
.slide-art { background-color: var(--hero-bg, #F4F1EE); background-size: cover; background-position: right center; background-repeat: no-repeat; }
.slide-art--tham-yoga { background-image: url("/static/banner/tham-yoga.webp?v=1"); }
.slide-art--dai-gu { background-image: url("/static/banner/dai-gu.webp?v=1"); }
.slide-art--legging { background-image: url("/static/banner/legging.webp?v=1"); }
.slide-art--powerband { background-image: url("/static/banner/powerband.webp?v=1"); background-color: #1c1c1c; }
.slide-art .slide-visual { top: auto; bottom: 21%; right: 13%; height: 64%; max-width: 40%; padding: 0; }
.slide-art .slide-visual img { border-radius: 20px; box-shadow: 0 26px 40px -22px rgba(20, 20, 20, 0.55); }
.slide-dark h2, .slide-dark .slide-desc, .slide-dark .slide-price { color: #fff; }
.slide-dark .slide-kicker { background: var(--brand); }
.slide-dark .slide-price b { color: #ff8a4c; }
@media (max-width: 760px) {
  .slide-art { background-position: right bottom; }
  .slide-art--tham-yoga { background-image: url("/static/banner/tham-yoga-dt.webp?v=1"); }
  .slide-art--dai-gu { background-image: url("/static/banner/dai-gu-dt.webp?v=1"); }
  .slide-art--legging { background-image: url("/static/banner/legging-dt.webp?v=1"); }
  .slide-art--powerband { background-image: url("/static/banner/powerband-dt.webp?v=1"); }
  .slide-art .slide-visual { bottom: 14%; right: 6%; height: auto; width: 46%; max-width: none; }
  .slide-art .slide-visual img { border-radius: 14px; }
}

/* video YouTube (Shorts dọc 9:16): ảnh bìa bấm mới tải trình phát */
.yt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); gap: 20px; }
.yt-item { margin: 0; }
.yt-face, .yt-frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); cursor: pointer; }
.yt-face img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-normal, 300ms) var(--ease-out-expo, ease), opacity var(--duration-normal, 300ms); opacity: 0.92; }
.yt-face:hover img, .yt-face:focus-visible img { transform: scale(1.04); opacity: 1; }
.yt-face:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); transition: transform var(--duration-fast, 150ms); }
.yt-face:hover .yt-play { transform: scale(1.08); }
.yt-face:active .yt-play { transform: scale(0.96); }
.yt-title { margin: 10px 0 0; font-weight: 600; line-height: 1.35; }
.yt-title a { color: var(--ink); text-decoration: none; }
.yt-title a:hover { color: var(--brand-text); text-decoration: underline; }
@media (max-width: 480px) { .yt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .yt-face img, .yt-play { transition: none; } }
