/* Layout: shop kệ sách một trang: dải giới thiệu ngắn, toàn bộ sách, rồi form để lại thông tin. Một giao diện sáng theo màu logo. */
:root {
  --navy: #00275A; --navy-deep: #001B40; --blue: #166092;
  --gold: #D9B44A; --gold-soft: #FBF5E6; --gold-text: #755A12; --moon: #BA973A;
  --sale: #D0021B; --white: #FFFFFF; --mist: #F2F5FA; --line: #CBD6E4; --muted: #44546A; --danger: #A32020;
  --on-navy: #E3EAF4; --gold-on-navy: #F0D27A;
  --body: 'Nunito', 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  --hanzi: 'Noto Serif SC', 'Kaiti SC', 'Songti SC', serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font: 600 17px/1.55 var(--body); -webkit-text-size-adjust: 100%; }
body.has-bar { padding-bottom: 92px; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; margin: 0; font-weight: 900; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1200px; margin-inline: auto; }

.notice { background: var(--gold); text-align: center; padding-block: 8px; font-size: 15px; font-weight: 800; }
.top { background: var(--navy); color: var(--white); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; line-height: 1.15; }
.brand img { width: 56px; height: 56px; display: block; }
.contact { font-weight: 800; }

.intro { background: var(--navy); color: var(--white); overflow: hidden; }
.intro .wrap { position: relative; padding-block: 28px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); grid-template-areas: "h fig" "p fig" "cta fig"; column-gap: 40px; align-items: center; }
.intro h1 { grid-area: h; align-self: end; }
.intro p { grid-area: p; }
.intro .hero-cta { grid-area: cta; justify-self: start; align-self: start; }
.hero-book { grid-area: fig; margin: 0; background: var(--white); aspect-ratio: 1; }
.hero-book img { width: 100%; height: 100%; object-fit: contain; display: block; }
.intro h1 { font-size: clamp(30px, 5vw, 46px); max-width: 720px; }
.hero-cta { margin-top: 18px; animation: none; min-height: 52px; padding: 0 26px; font-size: 18px; }
.intro p { margin: 10px 0 0; color: var(--on-navy); max-width: 620px; font-size: 18px; }
.moon { position: absolute; right: 30px; top: 18px; width: 170px; height: 170px; border-radius: 50%; background: var(--moon); }
.moon::before { content: ""; position: absolute; left: 20px; top: -8px; width: 160px; height: 160px; border-radius: 50%; background: var(--navy); }
.moon::after { content: ""; position: absolute; left: 92px; top: 34px; width: 44px; height: 44px; border-radius: 50%; background: var(--white); }

.shelf { padding-block: 36px 52px; }
.shelf h2, .order h2 { font-size: 28px; }
.shelf-note { margin: 4px 0 22px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 290px)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cover { position: relative; aspect-ratio: 1; max-width: 100%; background: var(--mist); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cover .grid-v, .cover .grid-h { position: absolute; border: 0 dashed var(--moon); }
.cover .grid-v { top: 12%; bottom: 12%; left: 50%; border-left-width: 1px; }
.cover .grid-h { left: 12%; right: 12%; top: 50%; border-top-width: 1px; }
.cover .box { position: absolute; left: 12%; right: 12%; top: 12%; bottom: 12%; border: 1px solid var(--moon); }
.cover .glyph { position: relative; font-family: var(--hanzi); font-size: clamp(60px, 11vw, 92px); line-height: 1; }
.tag { position: absolute; left: 8px; top: 8px; padding: 2px 10px; font-size: 13px; font-weight: 800; background: var(--gold); color: var(--navy); }
.tag.soon { background: var(--navy); color: var(--white); }
.card h3 { font-size: 17px; line-height: 1.3; font-weight: 800; }
.price { font-weight: 900; font-size: 19px; color: var(--sale); font-variant-numeric: tabular-nums; }
.save-chip { display: inline-block; margin-left: 10px; padding: 3px 10px; background: var(--sale); color: var(--white); font-size: 14px; font-weight: 800; vertical-align: middle; }
.price .old { margin-left: 8px; font-size: .72em; font-weight: 700; color: var(--muted); }
.price.wait { font-size: 15px; font-weight: 700; color: var(--muted); }
.offer { font-size: 14px; color: var(--muted); }
.card-action { margin-top: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 0; cursor: pointer; font-weight: 900; text-decoration: none; }
.btn.buy { background: var(--navy); color: var(--white); width: 100%; }
.btn.buy:hover { background: var(--blue); }
.btn.alt { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); width: 100%; }
.btn.alt[aria-pressed="true"] { background: var(--gold-soft); }
.btn.gold { background: var(--gold); color: var(--navy); }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; box-shadow: inset 0 0 0 2px var(--navy); text-align: center; font-weight: 900; }
.stepper button { height: 46px; background: none; border: 0; cursor: pointer; font-size: 22px; font-weight: 800; }

.promise { background: var(--mist); padding-block: 32px; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.promise-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 18px; background: var(--white); border: 1px solid var(--line); }
.promise-icon { grid-row: span 2; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); }
.promise-list strong { font-size: 17px; font-weight: 900; line-height: 1.3; }
.promise-list span.desc { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.45; }

.order { padding-block: 44px 56px; }
.order .wrap { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 56px; }
.order #orderBox, .order #done { grid-column: 1; }
@media (min-width: 900px) {
  .order .wrap { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); align-items: start; }
  .order #faq { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
.order-sub { margin: 4px 0 20px; color: var(--muted); }
.picked { list-style: none; margin: 0 0 20px; padding: 0; border-block: 1px solid var(--line); }
.picked li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.picked li + li { border-top: 1px solid var(--line); }
.picked .name { min-width: 0; font-weight: 800; }
.picked .sub { display: block; color: var(--muted); font-size: 15px; font-weight: 600; }
.remove { min-height: 44px; padding: 0 8px; background: none; border: 0; cursor: pointer; text-decoration: underline; color: var(--blue); font-weight: 800; flex: none; }
.empty { margin: 0 0 20px; padding: 14px; background: var(--gold-soft); }
.field { display: grid; gap: 4px; margin-bottom: 14px; font-size: 15px; font-weight: 800; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #8496AD; background: var(--white); font-size: 17px; font-weight: 600; }
.field textarea { min-height: 80px; resize: vertical; }
.addr-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.addr-row label { display: grid; gap: 4px; min-width: 0; }
.addr-row select { width: 100%; min-height: 50px; padding: 0 10px; border: 1px solid #8496AD; background: var(--white); color: var(--navy); font: inherit; font-size: 16px; font-weight: 600; }
.addr-row select:disabled { background: var(--mist); color: var(--muted); }
.addr-row select[aria-invalid="true"] { border: 2px solid var(--danger); }
.field input[aria-invalid="true"] { border: 2px solid var(--danger); }
.err { color: var(--danger); font-size: 15px; font-weight: 700; }
.trap { position: absolute; left: -9999px; }
.submit { width: 100%; min-height: 56px; font-size: 19px; }
.submit[disabled] { opacity: .6; cursor: wait; }
.hint { margin: 10px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.demo { margin: 12px 0 0; padding: 10px 14px; background: var(--gold-soft); font-size: 15px; }
.done { padding: 22px; background: var(--gold-soft); }
.done h3 { font-size: 22px; margin-bottom: 6px; }
.done p { margin: 0; }

.foot { background: var(--navy-deep); color: var(--on-navy); font-size: 15px; }
.foot .wrap { padding-block: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }
.foot p { margin: 0; }
.foot strong { color: var(--white); font-weight: 900; }
.foot summary { cursor: pointer; min-height: 32px; font-weight: 800; color: var(--gold-on-navy); }

.cart-btn { position: relative; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--navy); border: 0; cursor: pointer; flex: none; }
.cart-btn span { position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 5px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 900; line-height: 22px; text-align: center; }
.top-right { display: flex; align-items: center; gap: 16px; }
.card-link { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.card-link:hover h3 { color: var(--blue); }
.more { font-size: 15px; color: var(--blue); font-weight: 800; }

.detail { padding-block: 20px 44px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-weight: 800; color: var(--blue); }
.detail-top { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.gallery { flex: 1 1 340px; min-width: 0; max-width: 460px; display: grid; gap: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumb { padding: 0; border: 2px solid transparent; background: var(--mist); cursor: pointer; aspect-ratio: 1; overflow: hidden; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; }
.thumb[aria-current="true"] { border-color: var(--navy); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-empty { color: var(--muted); padding: 16px; text-align: center; font-weight: 700; }
.buybox { flex: 999 1 380px; min-width: 0; display: grid; gap: 12px; }
.buybox h1 { font-size: clamp(26px, 4vw, 36px); }
.buybox .price { font-size: 28px; }
.buybox .lead { margin: 0; color: var(--muted); }
.buybox ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.buy-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; max-width: 480px; }
.buy-row .btn { width: 100%; min-height: 52px; font-size: 18px; }
.ticks { list-style: none; padding: 0 !important; }
.ticks li { padding-left: 26px; position: relative; font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 12px; height: 6px; border-left: 3px solid var(--moon); border-bottom: 3px solid var(--moon); transform: rotate(-45deg); }
.detail { padding-block-end: 28px; }
.detail-more { padding-block: 44px; }
.order.on-book { background: var(--gold-soft); padding-block: 32px 36px; }
.order.on-book .field input, .order.on-book .field textarea { background: var(--white); }
.detail-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.detail-body > * { min-width: 0; }
.detail-body h2 { font-size: 26px; margin-bottom: 8px; }
.detail-body p { margin: 0 0 12px; color: var(--muted); }
.story { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 44px; }
.story:nth-child(even) { flex-direction: row-reverse; }
.story-copy { flex: 1 1 320px; min-width: 0; }
.story-img { flex: 1 1 320px; min-width: 0; max-width: 520px; background: var(--mist); }
.story-img img { width: 100%; display: block; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; background: var(--gold-soft); font-size: 15px; font-weight: 800; }
.inside { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.inside img { flex: none; width: min(280px, 72vw); aspect-ratio: 141 / 200; object-fit: cover; background: var(--mist); scroll-snap-align: start; border: 1px solid var(--line); }
.specs { width: 100%; max-width: 760px; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 600; }
.specs th { width: 38%; color: var(--muted); padding-right: 12px; }

.cta { min-height: 60px; font-size: 20px; font-weight: 900; animation: cta-pulse 1.6s ease-in-out infinite; }
.cta[disabled] { animation: none; }
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 180, 74, .75); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(217, 180, 74, 0); }
}
.card-action { display: grid; gap: 8px; }
.card-action .cta { width: 100%; animation: none; }
.card-action .add { min-height: 44px; font-size: 15px; }
.bar .cta { min-height: 54px; padding: 0 22px; font-size: 19px; flex: none; }
.price .when { display: block; font-size: 15px; font-weight: 700; color: var(--muted); }
.card.combo .tag { display: none; }
.deal { position: absolute; right: 0; top: 0; padding: 8px 14px; background: var(--sale); color: var(--white); font-size: 26px; font-weight: 900; line-height: 1.1; }
.promo-note { padding: 8px 12px; background: var(--gold-soft); font-size: 15px; font-weight: 800; color: var(--gold-text); }
.nudge { margin-bottom: 12px; padding: 10px 12px; background: var(--gold-soft); display: grid; gap: 8px; font-size: 15px; }
.nudge strong { font-weight: 800; color: var(--gold-text); }
.nudge.won { background: var(--mist); }
.nudge.won strong { color: var(--navy); }
.track { height: 8px; background: var(--white); overflow: hidden; }
.track span { display: block; height: 100%; background: var(--moon); }
.nudge-add { min-height: 44px; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); font-size: 15px; }
.sub s, .totals s { color: var(--muted); font-weight: 600; }
.totals dd { color: var(--sale); font-weight: 800; }
.totals .gain dd { color: var(--sale); }
.totals .saved { color: var(--sale); font-weight: 900; }
.sub .now { color: var(--sale); font-weight: 900; }
.faq { margin-top: 36px; }
.faq h2 { font-size: 24px; }
.faq-help { margin: 4px 0 16px; color: var(--muted); font-size: 15px; }
.faq-help a { color: var(--blue); font-weight: 800; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--white); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--navy); }
.faq summary { position: relative; list-style: none; min-height: 56px; padding: 15px 56px 15px 18px; cursor: pointer; font-weight: 800; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { margin-top: -3px; transform: rotate(-135deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-weight: 600; }
.reviews { padding-block: 40px; }
.reviews h2 { font-size: 26px; margin-bottom: 14px; }
.reviews .inside img { aspect-ratio: auto; height: 360px; width: auto; max-width: 80vw; object-fit: contain; }
.video-box iframe, .video-box video { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; border: 0; background: var(--navy); }
.cart-upsell { padding-block: 14px; border-top: 1px solid var(--line); }
.cart-upsell h3 { font-size: 17px; margin-bottom: 6px; }
.cart-upsell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cart-upsell li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.zalo { position: fixed; z-index: 4; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; display: block; border-radius: 16px; box-shadow: 0 6px 16px rgba(0, 27, 64, .35); }
.zalo img { width: 100%; height: 100%; display: block; border-radius: 16px; }
body.has-bar .zalo { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.totals { margin: 0 0 16px; display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt, .totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { padding-top: 6px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 900; }
.cart-panel { margin: 0 0 0 auto; width: min(440px, 100%); max-width: 100%; height: 100%; max-height: 100%; border: 0; padding: 0; background: var(--white); color: var(--navy); }
.cart-panel[open] { display: flex; flex-direction: column; }
.cart-panel::backdrop { background: rgba(0, 27, 64, .55); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--navy); color: var(--white); padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.cart-head h2 { font-size: 22px; }
.cart-close { width: 44px; height: 44px; background: none; border: 0; color: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.cart-scroll { flex: 1; overflow-y: auto; padding: 0 16px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding-block: 14px; align-items: start; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-pic { display: block; }
.cart-pic .glyph { font-size: 30px; }
.cart-pic .tag { display: none; }
.cart-info { display: grid; gap: 6px; min-width: 0; }
.cart-info strong { font-weight: 800; line-height: 1.3; }
.cart-info .sub { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.cart-info .stepper { width: 132px; }
.cart-price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.cart-price b { color: var(--sale); font-size: 18px; font-weight: 900; }
.cart-price s { color: var(--muted); font-size: 14px; font-weight: 600; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-empty { padding-block: 24px; color: var(--muted); }
.cart-foot { padding: 14px 16px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--gold); display: grid; gap: 8px; }
.cart-foot .totals { margin-bottom: 6px; }
.cart-action-btn { width: 100%; min-height: 50px; }
.bar-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 0; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; text-align: left; color: var(--navy); }
.bar-text.has-cart { display: flex; align-items: center; gap: 12px; }
.bar-lines { display: grid; min-width: 0; }
.bar-icon { position: relative; flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); }
.bar-count { position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 5px; background: var(--sale); color: var(--white); font-size: 13px; font-weight: 900; line-height: 22px; text-align: center; }
.bar-hint { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.bar-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-text b { font-size: 20px; font-weight: 900; color: var(--sale); font-variant-numeric: tabular-nums; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--white); border-top: 3px solid var(--gold); padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar b { font-weight: 900; }

@media (max-width: 760px) {
  .moon { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .intro .wrap { padding-block: 12px 22px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "p" "fig" "cta"; }
  .hero-book { width: 170px; margin-top: 14px; }
  .intro p { font-size: 16px; }
  .shelf { padding-block: 24px 44px; }
  .shelf-note { display: none; }
  .card-action .cta { font-size: 18px; min-height: 54px; }
  .notice { font-size: 14px; }
  .addr-row { grid-template-columns: minmax(0, 1fr); }
  .zalo { width: 46px; height: 46px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.has-bar .zalo { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .shelf h2 { margin-bottom: 14px; }
  .brand img { width: 46px; height: 46px; }
  .brand { font-size: 15px; }
  .contact { display: none; }
  .top .wrap { flex-wrap: nowrap; }
  .gallery { flex-basis: 100%; max-width: 250px; margin-inline: auto; }
  .detail-top { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { animation: none; } }

/* ===== Giao diện kiểu ứng dụng mua sắm: nền xám nhạt, khối trắng bo góc ===== */
body { background: var(--mist); }
.btn, .stepper, .field input, .field textarea, .addr-row select, .remove { border-radius: 8px; }
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.tag { border-radius: 6px; }
.deal { border-radius: 0 0 0 12px; }

.shelf { background: transparent; }
.grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; gap: 6px; padding-bottom: 12px; }
.card .cover { border-radius: 0; }
.card-link h3, .card > .price, .card > .card-action { margin-inline: 10px; }
.card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; font-size: 16px; }
.card > .price { font-size: 20px; }
.card-action { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 6px; margin-top: 4px; }
.card-action.single { grid-template-columns: minmax(0, 1fr); }
.card-action .cta { min-height: 46px; font-size: 17px; }
.card-cart { position: relative; min-height: 46px; padding: 0; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.card-cart .bar-count, .pd-ico .bar-count { position: absolute; right: -6px; top: -6px; border-radius: 999px; }

.promise { background: transparent; padding-block: 8px 24px; }
.promise-list li { border: 0; border-radius: 12px; }
.promise-icon { border-radius: 10px; }
.faq details { border: 0; border-radius: 12px; }
.faq details[open] { box-shadow: inset 0 0 0 2px var(--navy); }

/* Trang sách */
.detail { padding-block: 10px 12px; }
.back { margin-bottom: 4px; }
.pd-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.pd-gallery { background: var(--white); border-radius: 12px; overflow: hidden; }
.pd-stage { position: relative; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; }
.pd-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 27, 64, .72); color: var(--white); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pd-gallery .thumbs { display: none; padding: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pd-gallery .thumb { border-radius: 8px; }
.pd-side { display: grid; gap: 12px; min-width: 0; }
.pd-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-radius: 12px; background: var(--sale); color: var(--white); }
.pd-price b { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pd-price s { margin-left: 10px; font-size: 16px; font-weight: 700; opacity: .85; }
.pd-save { padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 900; }
.pd-card { background: var(--white); border-radius: 12px; padding: 16px; }
.pd-card h2 { font-size: 19px; margin-bottom: 10px; }
.pd-head h1 { font-size: clamp(22px, 3vw, 28px); }
.pd-meta { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: var(--gold-text); }
.pd-head .lead { margin: 10px 0 0; color: var(--muted); }
.pd-head .buy-row { margin-top: 16px; max-width: none; }
.pd-offer p { margin: 0 0 12px; font-weight: 700; }
.pd-link { min-height: 44px; font-size: 15px; padding: 0 16px; }
.pd-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-parts li { display: flex; justify-content: space-between; gap: 12px; }
.pd-parts a { color: var(--blue); font-weight: 800; }
.pd-parts span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-shop { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pd-shop img { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); }
.pd-shop div { display: grid; min-width: 0; }
.pd-shop strong { font-weight: 900; }
.pd-shop div span { font-size: 14px; color: var(--muted); }
.pd-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pd-promises li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.pd-promises .promise-icon { width: 40px; height: 40px; grid-row: auto; }
.pd-promises .promise-icon svg { width: 22px; height: 22px; }
.pd-promises strong { display: block; font-size: 15px; font-weight: 900; }
.pd-promises .desc { font-size: 14px; color: var(--muted); }
.detail-more { padding-block: 0 24px; }
.detail-body { gap: 12px; }
.pd-about .story { display: grid; gap: 12px; margin-top: 18px; }
.pd-about .story-img { max-width: none; border-radius: 10px; overflow: hidden; }
.pd-about .story h2 { font-size: 18px; }
.pd-about .ticks { margin: 0; }
.detail-body .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.order.on-book { background: transparent; padding-block: 0 12px; }
.order.on-book #orderBox, .order.on-book #done, .order.on-book .faq { background: var(--white); border-radius: 12px; padding: 18px; }
.order.on-book .faq details { box-shadow: inset 0 0 0 1px var(--line); }
.order.on-book .faq details[open] { box-shadow: inset 0 0 0 2px var(--navy); }
.reviews { padding-block: 0 12px; }

/* Thanh dưới trên trang sách */
.pd-bar { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) minmax(0, 1.25fr); gap: 4px 6px; align-items: center; }
.pd-ico { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 50px; min-height: 48px; padding: 0 2px; background: none; border: 0; color: var(--navy); font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.pd-ico img { border-radius: 6px; }
.pd-add { min-height: 50px; padding: 0 8px; background: var(--navy); color: var(--white); font-size: 15px; }
.pd-bar .pd-buy { min-height: 50px; padding: 0 8px; font-size: 17px; }
.bar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }

.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 30; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 800; box-shadow: 0 6px 16px rgba(0, 27, 64, .3); }

@media (min-width: 900px) {
  .pd-top { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 20px; }
  .pd-gallery { position: sticky; top: 16px; }
  .pd-gallery .thumbs { display: grid; }
  .detail-body { max-width: 900px; }
}
@media (max-width: 899px) {
  .pd-gallery { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); border-radius: 0; }
  .pd-band { margin: -12px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0; border-radius: 0; }
  .pd-head .buy-row { display: none; }
  body.pd-mode .zalo { display: none; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .detail-body .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card h3 { font-size: 15px; }
  .card > .price { font-size: 18px; }
  .card > .price .old { display: block; margin-left: 0; }
  .card-action { grid-template-columns: minmax(0, 1fr) 44px; }
  .card-action .cta { font-size: 16px; min-height: 44px; }
  .card-cart { min-height: 44px; }
  .pd-ico { min-width: 44px; font-size: 11px; }
  .pd-add { font-size: 14px; }
  .pd-bar .pd-buy { font-size: 16px; }
}

.card-action .cta { padding: 0 6px; white-space: nowrap; }
.pd-add { line-height: 1.15; }
.pd-shop strong, .pd-shop div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .card-action .cta { font-size: 15px; }
  .pd-add { font-size: 13px; }
  .pd-shop { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .pd-shop img { width: 44px; height: 44px; }
  .pd-shop .pd-link { padding: 0 12px; font-size: 14px; }
}

/* Đầu trang chủ: khối giới thiệu cửa hàng */
.store { background: var(--navy); color: var(--white); }
.store-head { display: flex; align-items: center; gap: 16px; padding-block: 22px 14px; }
.store-logo { width: 72px; height: 72px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold); }
.store-info h1 { font-size: clamp(24px, 4vw, 34px); }
.store-info p { margin: 4px 0 0; color: var(--on-navy); font-size: 17px; }
.store-perks { list-style: none; margin: 0; padding: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.store-perks li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--white); font-size: 15px; font-weight: 800; }
.store-perks svg { color: var(--gold); }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 16px; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--white); color: var(--navy); font-weight: 800; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.tab[aria-pressed="true"] { background: var(--navy); color: var(--white); box-shadow: none; }
.shelf { padding-block: 22px 40px; }

/* Nút chuyển ảnh mờ trên khung ảnh sách */
.pd-arrow { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .72); color: var(--navy); box-shadow: 0 2px 8px rgba(0, 27, 64, .2); cursor: pointer; transition: background .15s; }
.pd-arrow:hover { background: rgba(255, 255, 255, .95); }
.pd-arrow.prev { left: 10px; }
.pd-arrow.next { right: 10px; }
@media (max-width: 760px) {
  .pd-arrow { width: 34px; height: 34px; margin-top: -17px; }
  .store-head { padding-block: 16px 12px; gap: 12px; }
  .store-logo { width: 56px; height: 56px; }
  .store-info p { font-size: 15px; }
  .store-perks li { font-size: 13px; padding: 6px 10px; }
  .store-perks { padding-bottom: 16px; }
}

.home-mode .top .brand { display: none; }
.home-mode .top .wrap { justify-content: flex-end; }

/* Khung chọn phiên bản trượt từ dưới lên (kiểu sàn) */
.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 86vh; border: 0; padding: 0; overflow: visible; border-radius: 18px 18px 0 0; background: var(--white); color: var(--ink); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .22s ease-out; }
.sheet::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) { .sheet { margin: auto; max-width: 520px; border-radius: 18px; } }
.sheet-x { position: absolute; right: 16px; top: -60px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(28, 34, 48, .72); color: var(--white); cursor: pointer; }
.sheet-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 12px 0; padding: 9px 14px; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, var(--navy-deep), var(--navy) 60%, #0B3A78); color: var(--gold-on-navy); }
.strip-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 800; white-space: nowrap; color: var(--white); }
.strip-brand img { border-radius: 50%; }
.strip-note { font-size: 13px; font-weight: 500; text-align: right; line-height: 1.3; }
.sheet-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 12px; padding: 12px 6px 16px; }
.sheet-pic .cover { aspect-ratio: 1; border-radius: 10px; background: #EEF0F4; overflow: hidden; }
.sheet-pic .cover img { width: 100%; height: 100%; object-fit: cover; }
.sheet-pic .glyph { font-size: 44px; }
.sheet-pic .tag, .sheet-pic .deal, .sheet-pic .ribbons { display: none; }
.sheet-info { display: grid; gap: 4px; min-width: 0; }
.sheet-price { display: flex; align-items: center; gap: 8px; color: var(--sale); }
.sheet-off { padding: 1px 7px; border-radius: 6px; background: var(--sale); color: var(--white); font-size: 17px; font-weight: 700; }
.sheet-price b { font-size: 30px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sheet-price small { font-size: 16px; text-decoration: underline; margin-left: 2px; }
.sheet-old { color: #9AA1AD; font-size: 16px; font-weight: 500; }
.sheet-old:empty { display: none; }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-chips:empty { display: none; }
.s-chip { padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px #F3B7BE; color: var(--sale); font-size: 14px; font-weight: 600; white-space: nowrap; }
.s-chip.free { box-shadow: inset 0 0 0 1px #9ED8C3; color: #0B7A5C; }
.sheet-name { color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.35; }
.sheet-body { padding: 4px 18px 16px; overflow-y: auto; display: grid; gap: 18px; }
.sheet-body h2 { font-size: 17px; font-weight: 600; }
.sheet-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: -8px; }
.sheet-opt { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--white); color: var(--ink); font: inherit; text-align: center; cursor: pointer; box-shadow: inset 0 0 0 1px #D5DAE2; }
.sheet-opt .cover { aspect-ratio: 1; background: #EEF0F4; pointer-events: none; }
.sheet-opt .cover img { width: 100%; height: 100%; object-fit: cover; }
.sheet-opt .glyph { font-size: 34px; }
.sheet-opt .tag, .sheet-opt .deal, .sheet-opt .ribbons { display: none; }
.sheet-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--navy); }
.sheet-opt[aria-pressed="true"] .opt-text { color: var(--navy); font-weight: 600; }
.opt-name { min-width: 0; display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 6px 4px 8px; }
.opt-text { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt-text.short { display: block; overflow: visible; font-size: 13px; }
.opt-hot { color: var(--sale); font-size: 12px; font-weight: 700; }
.sheet-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 600; }
.sheet-qty .stepper { width: 132px; grid-template-columns: 44px 1fr 44px; box-shadow: none; background: #F1F2F5; border-radius: 8px; font-weight: 600; }
.sheet-qty .stepper button { height: 40px; font-weight: 400; }
.sheet-qty .stepper span { box-shadow: inset 1px 0 #DDE1E7, inset -1px 0 #DDE1E7; line-height: 26px; }
.sheet-qty .stepper button:disabled { opacity: .35; cursor: default; }
.sheet-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sheet-go { width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.sheet-go:hover { filter: brightness(1.04); }
@media (max-width: 380px) { .strip-note { font-size: 12px; } .sheet-head { grid-template-columns: 96px minmax(0, 1fr); } .sheet-price b { font-size: 26px; } }

.sheet-opt { position: relative; }
.opt-off { position: absolute; top: 0; right: 0; padding: 2px 8px; border-radius: 0 0 0 8px; background: var(--sale); color: var(--white); font-size: 13px; font-weight: 700; }
.s-chip.ship { box-shadow: inset 0 0 0 1px #B9C7DA; color: var(--navy); }

/* Bộ biểu tượng chung: nét bo tròn, giỏ thêm có chấm đỏ dấu cộng */
svg { stroke-linecap: round; stroke-linejoin: round; }
.ic-cart-add .ic-badge { fill: var(--sale); stroke: var(--white); stroke-width: 1.4; }
.ic-cart-add .ic-plus { stroke: var(--white); stroke-width: 1.8; }
.store-perks li svg { flex: none; }
.promise-icon { border-radius: 14px; background: linear-gradient(145deg, #0B3A78, var(--navy-deep)); color: var(--gold-on-navy); box-shadow: 0 4px 10px rgba(0, 39, 90, .18); }
.pd-promises .promise-icon { border-radius: 12px; }

/* Nút dưới mỗi thẻ sách ở trang chủ */
.card-link { display: flex; flex-direction: column; gap: 0; color: inherit; text-decoration: none; flex: 1; }
.card-link:hover h3 { color: var(--navy); }
.card .card-body { padding-bottom: 10px; }
.card-actions { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; padding: 0 10px 12px; }
.card-add { display: grid; place-items: center; min-height: 42px; padding: 0; border: 0; border-radius: 999px; background: var(--gold-soft); color: var(--navy); box-shadow: inset 0 0 0 1px #E9D9A8; cursor: pointer; }
.card-add svg { width: 26px; height: 26px; }
.card-buy { min-height: 42px; padding: 0 6px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-size: 16px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.card-add:hover, .card-buy:hover { filter: brightness(1.04); }

/* Thanh tab dính trên trang sách */
.pd-tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; display: flex; justify-content: center; gap: 4px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); background: var(--white); box-shadow: 0 1px 0 var(--line); overflow-x: auto; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab { flex: none; min-height: 48px; padding: 0 16px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; box-shadow: inset 0 -3px 0 transparent; }
.pd-tab[aria-current="true"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
#detailView, #dat-sach, #pdAbout, #pdMore { scroll-margin-top: 60px; }
@media (max-width: 760px) { .pd-tabs { justify-content: space-between; } .pd-tab { padding: 0 10px; font-size: 15px; } }

/* Mô tả thu gọn */
.pd-about { position: relative; }
.pd-about.clamped:not(.expanded) { max-height: 680px; overflow: hidden; }
.pd-about.clamped:not(.expanded)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(255, 255, 255, 0), var(--white) 70%); pointer-events: none; }
.about-toggle { position: absolute; left: 50%; bottom: 16px; z-index: 1; transform: translateX(-50%); min-height: 44px; padding: 0 22px; background: var(--white); }
.pd-about.expanded .about-toggle { position: static; transform: none; display: flex; margin: 16px auto 0; }

/* ===== Phiên bản giao diện kiểu ứng dụng sàn (v3) ===== */
:root {
  --body: 'Be Vietnam Pro', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  --ink: #1C2230; --muted: #5F6878; --line: #E3E7EE; --mist: #F4F5F7;
  --sale-2: #F2452E; --gold-pill: #FBEFCB;
}
body { font: 400 16px/1.5 var(--body); color: var(--ink); background: var(--mist); }
h1, h2, h3 { font-weight: 700; color: var(--ink); }
.btn { font-weight: 700; }

/* Thanh trên cùng */
.notice { font-size: 14px; font-weight: 600; padding-block: 6px; }
.appbar { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 7; }
.appbar .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; padding-block: 8px; }
.home-mode .appbar .wrap { justify-content: flex-start; }
.appbar .brand { flex: none; }
.appbar .brand img { width: 40px; height: 40px; border-radius: 50%; }
.ab-icon { position: relative; flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.ab-back { display: none; }
body.pd-mode .ab-back { display: flex; }
body.pd-mode .appbar .brand { display: none; }
.ab-search { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 10px; background: #EFF1F4; color: var(--muted); }
.ab-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.ab-search:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.appbar .cart-btn { width: 44px; height: 44px; background: none; color: var(--ink); }
.appbar .cart-btn span { right: -2px; top: 0; border-radius: 999px; background: var(--sale); color: var(--white); font-weight: 700; }
.home-mode .top .brand { display: flex; }
.pd-tabs { top: calc(env(safe-area-inset-top, 0px) + 59px); }

/* Đầu trang cửa hàng */
.store-info h1 { color: var(--white); font-weight: 800; }
.store-perks li { font-weight: 600; }
.shelf h2 { font-size: 22px; }
.tabs { gap: 0; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
.tab { min-height: 44px; padding: 0 14px; border-radius: 0; background: none; box-shadow: none; color: var(--muted); font-weight: 600; }
.tab[aria-pressed="true"] { background: none; color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ink); }

/* Thẻ sách */
.grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; gap: 0; padding: 0; background: var(--white); border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; }
.card:hover { box-shadow: 0 4px 14px rgba(28, 34, 48, .1); }
.card .cover { position: relative; aspect-ratio: 1; background: #EEF0F4; }
.card .deal, .pd-stage .deal { top: 0; right: 0; padding: 3px 8px; font-size: 14px; font-weight: 700; border-radius: 0 0 0 8px; box-shadow: none; }
.card .tag { left: 8px; top: 8px; }
.ribbons { position: absolute; left: 0; bottom: 0; display: flex; max-width: 100%; }
.ribbon { display: grid; padding: 3px 14px 3px 8px; line-height: 1.15; font-size: 11px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%); }
.ribbon + .ribbon { margin-left: -6px; padding-left: 12px; }
.ribbon b { font-size: 12px; font-weight: 800; font-style: italic; }
.ribbon span { font-weight: 600; }
.r-navy { background: var(--navy); color: var(--white); }
.r-gold { background: var(--gold); color: var(--navy); }
.card-body { display: grid; gap: 6px; padding: 8px 10px 12px; }
.card h3 { font-size: 15px; font-weight: 500; line-height: 1.35; min-height: 2.7em; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-badge { display: inline-block; padding: 0 5px; margin-right: 2px; border-radius: 4px; background: var(--navy); color: var(--gold); font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 2px; }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; color: var(--sale); }
.card-price b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card-price small { font-size: 13px; font-weight: 700; margin-left: -4px; text-decoration: underline; }
.card-price s { color: #9AA1AD; font-size: 13px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 4px; }
.chip-o { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px #F3B7BE; color: var(--sale); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.ship-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ship-free { padding: 0 6px; border-radius: 4px; background: #0B8F6C; color: var(--white); font-weight: 700; line-height: 1.6; }
.ship-fee { color: var(--muted); font-weight: 600; }
.ship-from::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border: 2px solid #9AA1AD; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); vertical-align: 1px; }
.in-cart { justify-self: start; font-size: 12px; font-weight: 700; color: var(--blue); }
.grid-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--muted); }

/* Trang sách */
.back { display: none; }
.detail { padding-block: 0 12px; }
.pd-stage .pd-pill { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(28, 34, 48, .72); color: var(--white); font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.pd-stage .ribbons .ribbon { padding-block: 5px; font-size: 13px; }
.pd-stage .ribbons .ribbon b { font-size: 15px; }
.pd-count { right: 12px; bottom: 10px; background: rgba(28, 34, 48, .55); font-weight: 600; }
.pd-band { justify-content: space-between; padding: 12px 16px; background: linear-gradient(90deg, var(--sale), var(--sale-2)); border-radius: 12px; }
.pd-price-top { display: flex; align-items: baseline; gap: 6px; }
.pd-off { align-self: center; padding: 2px 8px; border-radius: 6px; background: var(--white); color: var(--sale); font-size: 17px; font-weight: 700; }
.pd-price b { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.pd-price small { font-size: 16px; font-weight: 700; text-decoration: underline; margin-left: -4px; }
.pd-price s { display: block; margin: 0; font-size: 14px; opacity: .85; }
.pd-band-right { display: grid; text-align: right; gap: 2px; }
.pd-band-right strong { font-size: 16px; font-weight: 700; }
.pd-band-right span { font-size: 13px; opacity: .92; }
.pd-save { display: none; }
.pd-card { padding: 14px 16px; }
.pd-card h2 { font-size: 17px; font-weight: 700; }
.pd-vouchers { display: flex; align-items: center; gap: 6px; width: 100%; margin: -2px 0 12px; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.pd-vouchers .chip-o { padding: 3px 8px; font-size: 13px; }
.pd-vouchers .chev { margin-left: auto; flex: none; color: var(--muted); }
.pd-head h1 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.pd-head h1 .mini-badge { font-size: 12px; line-height: 20px; vertical-align: 2px; }
.pd-meta { color: var(--muted); font-weight: 500; font-size: 14px; }
.pd-head .lead { font-size: 15px; }
.ticks li { font-weight: 500; }
.ticks li::before { border-color: var(--sale); }
.specs th, .specs td { font-weight: 400; font-size: 15px; }
.faq summary { font-weight: 600; }
.promise-list strong, .pd-promises strong { font-weight: 700; }
.order h2 { font-weight: 700; }
.field { font-weight: 600; }
.price, .totals .grand { font-weight: 700; }
.totals dd { font-weight: 600; }
.cart-info strong, .picked .name { font-weight: 600; }
.cart-price b { font-weight: 700; }

/* Thanh dưới kiểu ứng dụng */
.bar { border-top: 1px solid var(--line); background: var(--white); }
.pd-bar { grid-template-columns: auto auto 76px minmax(0, 1fr); gap: 4px 8px; }
.pd-ico { font-size: 12px; font-weight: 500; color: var(--ink); min-width: 52px; }
.pd-add { min-height: 52px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--gold-pill); color: var(--navy); cursor: pointer; }
.pd-add svg { width: 28px; height: 28px; }
.pd-buy { min-height: 52px; display: grid; align-content: center; justify-items: center; gap: 0; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); cursor: pointer; font: inherit; line-height: 1.2; }
.pd-buy b { font-size: 18px; font-weight: 700; }
.pd-buy span { font-size: 13px; font-weight: 600; }
.bar-text b { font-weight: 700; }
.bar .cta:not(.pd-buy) { border-radius: 999px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card h3 { font-size: 14px; }
  .card-price b { font-size: 19px; }
  .ribbon { font-size: 10px; padding-right: 12px; }
  .ribbon b { font-size: 11px; }
  .pd-ico { min-width: 46px; font-size: 11px; }
  .pd-bar { grid-template-columns: auto auto 64px minmax(0, 1fr); gap: 4px 6px; }
  .pd-buy b { font-size: 17px; }
  .appbar .wrap { gap: 6px; }
  .ab-icon { width: 40px; }
}

.pd-side > *, .pd-card, .pd-vouchers { min-width: 0; }
.pd-vouchers .chip-o { flex: none; }

.card h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
@media (max-width: 760px) { .card h3 { font-size: 16px; } }

/* Chân trang và chính sách */
.foot .wrap { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.policies { display: grid; gap: 4px; }
.policies details { border-bottom: 1px solid rgba(255, 255, 255, .15); }
.policies summary { padding-block: 8px; }
.policy { padding: 4px 0 14px; color: var(--on-navy); font-size: 14px; }
.policy h4 { margin: 12px 0 2px; color: var(--white); font-size: 14px; font-weight: 700; }
.policy p { margin: 0 0 6px; }

/* Thanh dưới: chỉ còn Cửa hàng, giỏ hàng và Mua ngay */
.bar .pd-bar { display: grid; grid-template-columns: auto 92px minmax(0, 1fr); gap: 8px; align-items: center; max-width: 640px; }
.pd-add { min-height: 58px; }
.pd-add svg { width: 32px; height: 32px; }
.pd-bar .pd-buy { min-height: 58px; }
.pd-buy b { font-size: 21px; }
.pd-buy span { font-size: 14px; }
body.pd-mode .zalo { display: block; }
@media (max-width: 760px) {
  .bar .pd-bar { grid-template-columns: auto 80px minmax(0, 1fr); }
  .pd-buy b { font-size: 20px; }
}

/* ===== Đầu trang và chân trang kiểu Coolmate ===== */
.utility { display: none; background: var(--navy-deep); color: var(--on-navy); font-size: 13px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.utility a, .utility button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.utility a:hover, .utility button:hover { color: var(--gold-on-navy); }
.u-left, .u-right { display: flex; gap: 22px; }
.brand-name, .ab-nav { display: none; }
.promo-in { animation: promo-in .45s ease-out; }
@keyframes promo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Ảnh bìa phóng nhẹ khi rê chuột */
.card .cover { overflow: hidden; }
.card .cover img, .card .cover .glyph, .card .cover .box, .card .cover .grid-v, .card .cover .grid-h { transition: scale .45s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  .card:hover .cover img, .card:hover .cover .glyph, .card:hover .cover .box, .card:hover .cover .grid-v, .card:hover .cover .grid-h { scale: 1.06; }
  .card { transition: box-shadow .25s, translate .25s; }
  .card:hover { translate: 0 -2px; box-shadow: 0 10px 24px rgba(0, 39, 90, .12); }
}
@media (prefers-reduced-motion: reduce) { .card, .card .cover * { transition: none !important; } .promo-in { animation: none; } }

/* Khối đầu trang chủ */
.store { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #0B3A78 0%, var(--navy) 45%, var(--navy-deep) 100%); }
.store::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; box-shadow: inset -26px 18px 0 0 rgba(217, 180, 74, .16); pointer-events: none; }
.store-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.store-head { padding-block: 22px 14px; }
.store-cta, .store-covers { display: none; }
.store-perks { padding-bottom: 22px; }

/* Chân trang */
.foot { background: var(--navy-deep); color: var(--on-navy); font-size: 15px; }
.foot .wrap { display: block; padding-block: 0; }
.foot a, .foot button { color: inherit; }
.foot .foot-top { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 30px 26px !important; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.foot-contact { display: grid; gap: 14px; }
.foot-contact a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.fc-ico { width: 52px; height: 52px; display: grid; place-items: center; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--gold-on-navy); }
.fc-ico.zl img { border-radius: 9px; }
.foot-contact small { display: block; font-size: 13px; color: var(--on-navy); }
.foot-contact b { display: block; font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: .01em; }
.foot-listen h2 { color: var(--white); font-size: 22px; font-weight: 700; }
.foot-listen p { margin: 8px 0 16px; line-height: 1.6; }
.foot-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--white); color: var(--navy) !important; font-weight: 700; text-decoration: none; }
.foot-btn:hover { background: var(--gold); }
.foot .foot-cols { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; padding-block: 28px !important; }
.foot-cols h3 { margin-bottom: 10px; color: var(--white); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a, .foot-cols button { padding: 0; border: 0; background: none; font: inherit; text-align: left; text-decoration: none; cursor: pointer; line-height: 1.45; }
.foot-cols a:hover, .foot-cols button:hover { color: var(--gold-on-navy); }
.foot-addr { grid-column: 1 / -1; }
.foot-addr p { display: flex; gap: 8px; margin: 0; line-height: 1.55; }
.foot-addr svg { flex: none; margin-top: 3px; color: var(--gold-on-navy); }
.foot-legal { display: flex !important; align-items: center; gap: 14px; padding-block: 18px calc(22px + env(safe-area-inset-bottom, 0px)) !important; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.foot-legal img { border-radius: 50%; flex: none; }
.foot-legal p { margin: 0; }
body.has-bar .foot-legal { padding-bottom: 22px !important; }

.to-top { position: fixed; left: 24px; bottom: 28px; z-index: 5; width: 54px; height: 54px; display: none; place-items: center; border: 0; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 6px 18px rgba(0, 39, 90, .3); cursor: pointer; }
.to-top:hover { background: var(--blue); }

.policy-dlg { width: min(720px, calc(100% - 24px)); max-height: 86vh; padding: 0; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); }
.policy-dlg[open] { display: flex; flex-direction: column; }
.policy-dlg::backdrop { background: rgba(0, 0, 0, .55); }
.pdlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 10px 20px; }
.pdlg-head h2 { font-size: 20px; font-weight: 700; }
.pdlg-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); cursor: pointer; }
.pdlg-tabs { display: flex; gap: 6px; padding: 0 20px 12px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.pdlg-tabs button { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--mist); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pdlg-tabs button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.pdlg-body { padding: 6px 20px 22px; overflow-y: auto; }
.pdlg-body .policy { color: var(--ink); font-size: 15px; line-height: 1.65; }
.pdlg-body .policy > h3 { display: none; }
.pdlg-body .policy h4 { margin: 16px 0 4px; color: var(--navy); font-size: 16px; font-weight: 700; }
.pdlg-body .policy p { margin: 0 0 8px; }
.pdlg-body .policy ul, .pdlg-body .policy ol { margin: 0 0 10px; padding-left: 22px; }
.pdlg-body .policy li { margin: 0 0 4px; }
.foot-hours { color: var(--on-navy); opacity: .8; font-size: 13px; }


@media (min-width: 900px) {
  .utility { display: block; }
  .appbar .wrap { gap: 18px; min-height: 72px; }
  .appbar .brand, .home-mode .appbar .brand, body.pd-mode .appbar .brand { display: flex; align-items: center; gap: 10px; }
  body.pd-mode .ab-back { display: none; }
  .brand-name { display: grid; color: var(--navy); font-size: 18px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
  .brand-name small { color: var(--moon); font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
  .ab-nav { display: flex; flex: 1 1 auto; justify-content: center; gap: 4px; }
  .ab-nav a { position: relative; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
  .ab-nav a:hover { color: var(--blue); }
  .ab-nav a[aria-current="true"] { color: var(--blue); }
  .ab-nav a.hot { color: var(--sale); }
  .ab-nav sup { position: absolute; right: 2px; top: -2px; font-size: 11px; font-weight: 700; color: var(--sale); }
  .ab-search { flex: 0 1 280px; height: 46px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px #CDD3DD; }
  .ab-search:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }

  .store-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; min-height: 380px; }
  .store-head { padding-block: 44px 18px; }
  .store-logo { width: 84px; height: 84px; }
  .store-info h1 { font-size: 44px; letter-spacing: -.01em; }
  .store-info p { font-size: 20px; }
  .store-perks { padding-bottom: 26px; }
  .store-cta { display: flex; gap: 12px; padding-bottom: 44px; }
  .hero-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 700; text-decoration: none; transition: filter .2s, background .2s; }
  .hero-btn.gold { background: var(--gold); color: var(--navy); }
  .hero-btn.gold:hover { filter: brightness(1.06); }
  .hero-btn.ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
  .hero-btn.ghost:hover { background: rgba(255, 255, 255, .1); }
  .store-covers { display: block; position: relative; height: 320px; }
  .store-covers .cover { position: absolute; top: 50%; width: 210px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #EEF0F4; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: transform .35s; }
  .store-covers .cover img { width: 100%; height: 100%; object-fit: cover; }
  .store-covers .glyph { font-size: 80px; }
  .store-covers .ribbons, .store-covers .deal, .store-covers .tag { display: none; }
  .store-covers .sc-0 { left: 50%; z-index: 3; transform: translate(-50%, -50%); }
  .store-covers .sc-1 { left: 50%; z-index: 2; transform: translate(-112%, -46%) rotate(-8deg) scale(.86); }
  .store-covers .sc-2 { left: 50%; z-index: 1; transform: translate(12%, -46%) rotate(8deg) scale(.86); }
  

  .foot .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 44px 36px !important; }
  .foot-contact { grid-template-columns: repeat(2, max-content); gap: 36px; align-content: center; }
  .foot .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 30px; padding-block: 36px !important; }
  .foot .foot-addr { grid-column: auto; }
  .to-top { display: grid; }
  .to-top[hidden] { display: none; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .brand-name { display: none; }
  .ab-nav a { padding: 10px 9px; font-size: 15px; }
  .ab-search { flex-basis: 230px; }
}

/* Thanh "Đã thêm vào giỏ hàng" trượt ra */
.added { position: fixed; z-index: 30; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top, 0px)); display: grid; gap: 12px; padding: 14px 14px 16px; overflow: hidden; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 27, 64, .28); transform: translateY(-130%); opacity: 0; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.added.show { transform: none; opacity: 1; }
.added-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.added-ok { display: inline-flex; align-items: center; gap: 8px; color: #0B7A5C; font-size: 16px; font-weight: 700; }
.added-ok svg { padding: 3px; border-radius: 50%; background: #E3F5EE; width: 26px; height: 26px; }
.added-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); cursor: pointer; }
.added-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.added-pic .cover { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #EEF0F4; }
.added-pic .cover img { width: 100%; height: 100%; object-fit: cover; }
.added-pic .glyph { font-size: 28px; }
.added-pic .ribbons, .added-pic .deal, .added-pic .tag { display: none; }
.added-info { display: grid; gap: 2px; min-width: 0; }
.added-info b { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.added-info span { color: var(--muted); font-size: 13px; font-weight: 500; }
.added-info strong { color: var(--sale); font-size: 17px; font-weight: 700; }
.added-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.added-view, .added-go { min-height: 46px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.added-view { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.added-go { background: var(--gold); color: var(--navy); }
.added-view:hover { background: var(--mist); }
.added-go:hover { filter: brightness(1.05); }
.added-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.added-timer.run { animation: added-timer 5s linear forwards; }
@keyframes added-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (min-width: 900px) {
  .added { left: auto; right: max(24px, calc((100vw - 1200px) / 2)); top: 118px; width: 380px; transform: translateX(calc(100% + 40px)); }
  .added.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .added { transition: none; } .added-timer.run { animation: none; } }

/* Chuyển trang mượt (View Transitions) */
@view-transition { navigation: auto; }
.appbar { view-transition-name: appbar; }
.bar { view-transition-name: bottombar; }
::view-transition-old(root) { animation: vt-out .2s ease-in both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-group(book-cover) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(book-cover), ::view-transition-new(book-cover) { height: 100%; object-fit: cover; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
html.no-vt body { animation: vt-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.card-in { animation: card-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  html.no-vt body, .card-in { animation: none; }
}

/* ===== Nâng cấp giao diện tổng (theo Coolmate) ===== */
.shelf-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.order.empty-home #orderBox { display: none; }
.order.empty-home .wrap { display: block; max-width: 820px; }
.order.empty-home #faq { margin-top: 0; }
.promise-list li { box-shadow: 0 1px 0 rgba(0, 27, 64, .04), 0 6px 18px rgba(0, 27, 64, .06); }
.detail-body .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

@media (min-width: 900px) {
  /* Trang chủ */
  .shelf { padding-block: 48px 56px; }
  .shelf-head { display: flex; align-items: flex-end; gap: 28px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
  .shelf-head h2 { font-size: 34px; padding-bottom: 12px; }
  .shelf-head .tabs { margin: 0; border-bottom: 0; }
  .shelf-head .tab { font-size: 16px; min-height: 52px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .card { border-radius: 14px; }
  .card h3 { font-size: 17px; }
  .card-price b { font-size: 24px; }
  .card-body { padding: 12px 14px 12px; gap: 8px; }
  .card-actions { padding: 0 14px 16px; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  .card-add, .card-buy { min-height: 48px; }
  .card-buy { font-size: 17px; }
  .promise { padding-block: 8px 56px; }
  .promise-list { gap: 20px; }
  .promise-list li { padding: 22px; border-radius: 16px; }
  .order { padding-block: 24px 64px; }
  .order.empty-home { padding-top: 0; }
  .order h2 { font-size: 30px; }

  /* Trang chi tiết: ảnh trái, thông tin phải */
  .detail .back { display: none; }
  .pd-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; padding: 28px; margin-top: 16px; border-radius: 18px; background: var(--white); }
  .pd-gallery { position: sticky; top: 132px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; background: none; border-radius: 0; overflow: visible; }
  .pd-gallery .pd-stage { grid-column: 2; grid-row: 1; border-radius: 14px; overflow: hidden; }
  .pd-gallery .thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; padding: 0; max-height: 560px; overflow-y: auto; scrollbar-width: none; }
  .pd-gallery .thumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; opacity: .75; transition: opacity .2s, box-shadow .2s; }
  .pd-gallery .thumb:hover, .pd-gallery .thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--navy); }
  .pd-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pd-gallery.single { grid-template-columns: minmax(0, 1fr); }
  .pd-gallery.single .pd-stage { grid-column: 1; }

  .pd-side { display: flex; flex-direction: column; gap: 16px; }
  .pd-side .pd-head { display: contents; }
  .pd-side .pd-head h1 { order: 1; font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
  .pd-side .pd-head h1 .mini-badge { font-size: 14px; line-height: 24px; vertical-align: 5px; }
  .pd-side .pd-band { order: 2; margin: 0; padding: 16px 20px; border-radius: 14px; background: #FDF1F2; color: var(--sale); }
  .pd-band .pd-price-top b { font-size: 40px; }
  .pd-band .pd-off { background: var(--sale); color: var(--white); }
  .pd-band .pd-price s { color: #9AA1AD; }
  .pd-band-right strong { color: var(--ink); }
  .pd-band-right span { color: var(--muted); opacity: 1; }
  .pd-side .pd-vouchers { order: 3; padding: 0; }
  .pd-side .pd-meta { order: 3; }
  .pd-side .pd-head .lead { order: 4; margin: 0; font-size: 16px; line-height: 1.65; }
  .pd-side .pd-head .buy-row { order: 5; margin: 4px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
  .pd-side .buy-row .btn { min-height: 58px; border-radius: 999px; font-size: 18px; }
  .pd-side .pd-offer { order: 6; }
  .pd-side .pd-trust { order: 7; }
  .pd-side .pd-shop { order: 8; }
  .pd-side .pd-card:not(.pd-head) { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }

  /* Phần dưới trải hết chiều ngang */
  .detail-body { max-width: none; gap: 20px; }
  .detail-body > .pd-card { padding: 28px; border-radius: 18px; }
  .detail-body h2 { font-size: 24px; }
  .detail-body .ticks { columns: 2; column-gap: 32px; }
  .detail-body .inside { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; overflow: visible; padding-bottom: 0; }
  .detail-body .inside > * { width: auto; min-width: 0; flex: none; }
  .detail-body .inside img { width: 100%; height: auto; border-radius: 12px; }
  .detail-body .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .order.on-book { padding-block: 20px; }
  .detail-body .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; margin-top: 28px; }
  .detail-body .story.plain { display: block; }
  .detail-body .story:nth-of-type(even) .story-img { order: -1; }
  .detail-body .story-img img { width: 100%; border-radius: 14px; }
  .detail-body .story-copy h2 { font-size: 22px; }
  .about-toggle { width: auto; min-width: 200px; border-radius: 999px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .pd-top { gap: 28px; padding: 20px; }
  .pd-side .pd-head h1 { font-size: 26px; }
  .pd-band .pd-price-top b { font-size: 34px; }
  .detail-body .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.store-info .slogan { color: var(--gold); font-weight: 600; letter-spacing: .01em; }

/* ===== Trang chủ gọn hơn + hiệu ứng mượt ===== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a, button { transition: color .2s, background-color .2s, box-shadow .2s, filter .2s, opacity .2s, transform .2s; }
.appbar { transition: box-shadow .25s; }
body.scrolled .appbar { box-shadow: 0 6px 20px rgba(0, 27, 64, .08); }

/* Thanh cam kết mảnh */
.promise { padding-block: 4px 32px; }
.promise-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px 18px; border-radius: 16px; background: var(--white); box-shadow: 0 1px 0 rgba(0, 27, 64, .04); }
.promise-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 12px 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.promise-list li + li { border-top: 1px solid var(--line); }
.promise-list .promise-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; box-shadow: none; }
.promise-list .promise-icon svg { width: 22px; height: 22px; }
.promise-list strong { font-size: 15px; font-weight: 700; }
.promise-list span.desc { font-size: 13px; font-weight: 500; }

/* Hỏi đáp: trang chủ chỉ hiện 1 dòng, trang sách hiện đủ nhưng nhẹ hơn */
.faq-teaser { display: none; }
.order.on-home .faq-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 22px; border-radius: 16px; background: var(--white); color: var(--muted); font-size: 15px; line-height: 1.5; }
.faq-teaser strong { color: var(--ink); }
.faq-teaser a { color: var(--blue); font-weight: 600; }
.faq-teaser button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.faq-teaser button:hover { background: var(--blue); }
.order.on-home:not(.faq-open) #faq { display: none; }
.order.on-home.faq-open .faq-teaser { display: none; }
.order.on-home:not(.empty-home) .faq-teaser { margin-top: 28px; }
.faq-list { gap: 0; padding: 0 18px; border-radius: 14px; background: var(--white); }
.faq details, .order.on-book .faq details { border: 0; border-radius: 0; background: none; box-shadow: none !important; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { min-height: 54px; padding: 15px 40px 15px 0; font-size: 16px; font-weight: 500; }
.faq summary::after { right: 4px; width: 9px; height: 9px; border-width: 0 2px 2px 0; }
.faq details[open] summary { color: var(--navy); font-weight: 600; }
.faq details p { padding: 0 0 16px; font-weight: 400; line-height: 1.6; }
.order.on-book .faq .faq-list { padding: 0; }
.faq h2 { font-size: 22px; }

/* Hiện dần khi cuộn tới */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }

/* Khối đầu trang chủ xuất hiện */
@media (prefers-reduced-motion: no-preference) {
  .store-head, .store-cta { animation: hero-up .8s cubic-bezier(.2, .7, .2, 1) both; }
  .store-cta { animation-delay: .12s; }
  .store-covers { animation: hero-fade 1s ease-out .15s both; }
  .store-covers .sc-0 { animation: float-a 6s ease-in-out 1.2s infinite; }
}
@keyframes hero-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes hero-fade { from { opacity: 0; transform: translateX(30px); } }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.store-head { padding-bottom: 26px; }
@media (min-width: 900px) {
  .store-grid { min-height: 340px; }
  .store-head { padding-block: 52px 26px; }
  .store-cta { padding-bottom: 52px; }
  .promise { padding-block: 0 56px; }
  .promise-list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0; }
  .promise-list li { padding: 18px 26px; }
  .promise-list li + li { border-top: 0; border-left: 1px solid var(--line); }
  .order.on-home .faq-teaser { padding: 22px 28px; font-size: 16px; }
  .order.empty-home .wrap { max-width: 1200px; }
}
.store-covers .cover { color: var(--ink); }

/* ===== Form đặt hàng gọn (khoảng 2/3) + thẻ sách nhỏ hơn ===== */
.order .wrap { grid-template-columns: minmax(0, 1fr) !important; }
#orderBox h2, .order h2 { font-size: 22px; }
.order-sub { margin: 2px 0 12px; font-size: 14px; }
.picked { margin-bottom: 12px; }
.picked li { padding-block: 8px; font-size: 15px; }
.picked .sub { font-size: 13px; }
.totals { margin-bottom: 12px; font-size: 15px; gap: 2px; }
.totals .grand { font-size: 17px; padding-top: 4px; }
.field { gap: 3px; margin-bottom: 10px; font-size: 13.5px; }
.field input, .field textarea { min-height: 42px; padding: 9px 12px; font-size: 15px; }
.field textarea { min-height: 56px; }
.addr-row { gap: 6px; }
.addr-row select { min-height: 42px; font-size: 14px; }
.submit { min-height: 48px; font-size: 17px; border-radius: 999px; }
.order.on-book #orderBox, .order.on-book #done { padding: 16px; }
@media (max-width: 899px) {
  .field input, .addr-row select { min-height: 44px; font-size: 16px; }
}
@media (min-width: 900px) {
  .order.on-book .wrap, .order.on-home .wrap { max-width: 1200px; }
  #orderBox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: repeat(7, auto) 1fr; column-gap: 32px; align-items: start; }
  #orderBox > * { grid-column: 1; }
  #orderBox > form { grid-column: 2; grid-row: 1 / -1; }
  #orderBox > form[hidden] + * { grid-column: 1; }
  .order.on-book #orderBox { padding: 22px 26px; }
  .order.empty-home { display: none; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); gap: 18px; justify-content: start; }
  .card { border-radius: 12px; }
  .card h3 { font-size: 15px; }
  .card-price b { font-size: 20px; }
  .card-body { padding: 10px 12px; gap: 6px; }
  .card-actions { padding: 0 12px 12px; grid-template-columns: 42px minmax(0, 1fr); gap: 6px; }
  .card-add, .card-buy { min-height: 42px; }
  .card-add svg { width: 24px; height: 24px; }
  .card-buy { font-size: 15px; }
  .detail-body .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); }
}
@media (min-width: 900px) { #detailView, #dat-sach, #pdAbout, #pdMore, #sach { scroll-margin-top: 124px; } }

/* ===== Giỏ hàng mềm mại kiểu TikTok ===== */
.btn { border-radius: 999px; }
.cart-panel { background: #F4F5F7; color: var(--ink); }
@media (min-width: 600px) { .cart-panel { border-radius: 18px 0 0 18px; } }
.cart-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; padding: 10px 8px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.ch-back { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.ch-back:hover { background: var(--mist); }
.ch-title { display: grid; justify-items: center; gap: 1px; text-align: center; }
.ch-title h2 { font-size: 19px; font-weight: 700; }
.ch-title span { color: var(--muted); font-size: 12.5px; }
.cart-strip { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #FDEFF1; color: var(--ink); font-size: 14.5px; }
.cart-strip svg { flex: none; color: var(--sale); }
.cart-strip b { color: var(--sale); font-weight: 700; }
.cart-scroll { padding: 10px 10px 16px; }
.cart-shop { overflow: hidden; border-radius: 16px; background: var(--white); }
.cart-shop[hidden] { display: none; }
.shop-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; font-size: 16px; }
.shop-row img { border-radius: 50%; }
.free-row { display: flex; align-items: center; gap: 8px; margin: 0 10px 4px; padding: 9px 12px; border-radius: 12px; background: #E9F7F2; color: #0B7A5C; font-size: 14.5px; font-weight: 600; }
.cart-list { padding: 0 14px; }
.cart-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-block: 14px; }
.cart-row + .cart-row { border-top: 1px solid #EEF0F3; }
.cart-pic .cover { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #EEF0F4; box-shadow: inset 0 0 0 1px #E3E7EE; }
.cart-pic .cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-pic .ribbons, .cart-pic .deal { display: none; }
.cart-info { gap: 4px; }
.cart-info strong { font-size: 15px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-variant { justify-self: start; padding: 3px 10px; border-radius: 8px; background: #F1F2F5; color: var(--ink); font-size: 13px; }
.cart-price b { display: inline-flex; align-items: baseline; color: var(--sale); font-size: 19px; font-weight: 700; }
.cart-price small { font-size: 12px; text-decoration: underline; margin-left: 1px; }
.cart-old { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cart-old s { color: #9AA1AD; }
.cart-old em { padding: 0 6px; border-radius: 6px; background: #FDEFF1; color: var(--sale); font-style: normal; font-weight: 600; }
.cart-actions { margin-top: 4px; }
.cart-info .stepper { width: 118px; grid-template-columns: 36px 1fr 36px; box-shadow: none; background: #F1F2F5; border-radius: 10px; font-weight: 600; }
.cart-info .stepper button { height: 34px; font-size: 20px; font-weight: 400; }
.cart-info .stepper span { box-shadow: inset 1px 0 #DDE1E7, inset -1px 0 #DDE1E7; line-height: 22px; }
.cart-rm { padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.cart-rm:hover { color: var(--sale); }
.cart-empty { margin: 24px 6px; padding: 24px; border-radius: 16px; background: var(--white); text-align: center; }
.cart-upsell { margin-top: 10px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--white); }
.cart-upsell h3 { font-size: 15px; font-weight: 700; }
.cart-upsell li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cart-upsell .cover { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #EEF0F4; }
.cart-upsell .cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-upsell .glyph { font-size: 22px; }
.cart-upsell .ribbons, .cart-upsell .deal, .cart-upsell .tag { display: none; }
.up-txt { display: grid; min-width: 0; font-size: 14px; }
.up-txt strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-txt b { color: var(--sale); font-weight: 700; }
.up-add { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--gold-soft); color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1px #E9D9A8; cursor: pointer; }
.cart-nudge { padding: 10px 14px; background: #FDEFF1; border-top: 1px solid #F6D3D8; }
.cart-nudge .nudge { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; }
.cart-nudge .nudge strong { flex: 1; color: var(--ink); font-weight: 500; line-height: 1.4; }
.cart-nudge .nudge-add { flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--sale); color: var(--white); box-shadow: none; font-size: 14px; font-weight: 700; }
.cart-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 14px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--white); }
.cf-sum { display: grid; justify-items: end; line-height: 1.25; }
.cf-total { display: inline-flex; align-items: baseline; color: var(--sale); font-size: 24px; font-weight: 700; }
.cf-total small { font-size: 14px; text-decoration: underline; margin-left: 1px; }
.cf-ship { color: var(--muted); font-size: 13px; }
.cf-ship.free { color: #0B7A5C; font-weight: 600; }
.cf-saved { color: var(--sale); font-size: 13px; }
.cf-buy, .cf-more { min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cf-buy:hover { filter: brightness(1.05); }
.cf-more { flex: 1; background: var(--navy); color: var(--white); }

/* ===== Tóm tắt đơn hàng kiểu Coolmate ===== */
.summary { margin: 4px 0 14px; padding: 16px 18px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.summary h3 { margin-bottom: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.sum-list { margin: 0; display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-size: 15px; }
.sum-row dt { color: var(--muted); }
.sum-row dd { margin: 0; display: grid; justify-items: end; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-row dd small { color: var(--muted); font-size: 12.5px; font-style: italic; }
.sum-row dd small b { color: var(--blue); font-weight: 600; }
.sum-row.free dd { color: #0B7A5C; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #F4F6FA; }
.sum-total > span { font-size: 16px; font-weight: 600; }
.sum-total div { display: grid; justify-items: end; }
.sum-total b { font-size: 21px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-total small { color: #D65A5A; font-size: 13px; }
.order.on-book #orderBox .summary { box-shadow: inset 0 0 0 1px #E6EAF0; }
.field textarea#f-address { min-height: 72px; line-height: 1.45; }
.field textarea[aria-invalid="true"] { border: 2px solid var(--danger); }

/* ===== Trang thanh toán kiểu Coolmate ===== */
.co-cart[hidden], .co-pay[hidden], .co-bar[hidden] { display: none !important; }
body.co-mode main { background: var(--white); }
.order.checkout { padding-block: 20px 40px; background: var(--white); }
.checkout #orderTotals, .checkout #picked, .checkout #submit, .checkout .order-sub { display: none !important; }
.checkout #orderBox { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0 !important; background: none !important; box-shadow: none !important; }
.checkout #coCart { order: -1; }
.checkout #orderTitle, #orderBox .co-cart > h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.co-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #E8ECF8; color: var(--blue); font-size: 15px; }
.co-banner[hidden] { display: none; }
.co-banner > svg { flex: none; color: var(--white); fill: var(--navy); stroke: var(--white); }
.co-banner span { flex: 1; }
.co-banner button { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--navy); cursor: pointer; }
.co-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; color: var(--muted); font-size: 15px; }
.co-head[hidden] { display: none; }
.co-clear { padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.co-clear:hover { color: var(--sale); }
.co-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.co-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-check span { width: 22px; height: 22px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--navy); background: var(--white); position: relative; transition: background .15s; }
.co-check input:checked + span { background: var(--white); }
.co-check input:checked + span::after { content: ""; position: absolute; inset: 4px; border-radius: 3px; background: var(--navy); }
.co-check input:indeterminate + span::after { content: ""; position: absolute; left: 5px; right: 5px; top: 9px; height: 3px; border-radius: 2px; background: var(--navy); }
.co-check input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.co-items { list-style: none; margin: 0; padding: 0; }
.co-row { display: grid; grid-template-columns: 22px 96px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 16px; }
.co-row + .co-row { border-top: 1px solid #EEF0F3; }
.co-pic .cover { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #ECEEF2; }
.co-pic .cover img { width: 100%; height: 100%; object-fit: cover; }
.co-pic .glyph { font-size: 36px; }
.co-pic .ribbons, .co-pic .deal, .co-pic .tag { display: none; }
.co-info { display: grid; gap: 10px; align-self: stretch; align-content: space-between; min-width: 0; }
.co-name { color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.co-name:hover { color: var(--blue); }
.co-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.co-variant { padding: 8px 16px; border-radius: 999px; background: #F1F2F5; color: var(--ink); font-size: 14px; }
.co-mid .stepper { width: 112px; grid-template-columns: 34px 1fr 34px; border-radius: 999px; box-shadow: inset 0 0 0 1px #DCE0E6; background: var(--white); font-weight: 500; }
.co-mid .stepper button { height: 38px; font-size: 18px; font-weight: 400; border-radius: 999px; }
.co-price { margin-left: auto; display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.co-price b { font-size: 17px; font-weight: 700; color: var(--ink); }
.co-price s { color: #9AA1AD; font-size: 14px; }
.co-rm { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.co-rm:hover { color: var(--sale); }
#coSummary { margin-top: 8px; }
#coSummary .summary { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none !important; background: none; }
#coSummary .summary h3 { font-size: 22px; }
#coSummary .nudge { margin-bottom: 12px; }
.co-free { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #FDEFF1; color: var(--ink); font-size: 14px; }
.co-free b { color: var(--sale); }
.co-pay { margin: 8px 0 4px; }
.co-pay h3 { margin-bottom: 10px; font-size: 20px; font-weight: 800; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--navy); background: #F6F8FC; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--navy); position: relative; }
.pay-opt input:checked + .pay-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--navy); }
.pay-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.pay-opt strong { display: block; font-size: 15px; font-weight: 700; }
.pay-opt small { color: var(--muted); font-size: 13px; }
/* Thanh đặt hàng dưới cùng */
.co-bar { display: flex; align-items: center; gap: 14px; max-width: 1200px; }
.cob-pay { display: none; align-items: center; gap: 10px; padding-right: 18px; margin-right: auto; border-right: 1px solid var(--line); color: var(--navy); }
.cob-pay span { display: grid; line-height: 1.2; }
.cob-pay b { font-size: 15px; }
.cob-pay small { color: var(--muted); font-size: 12.5px; }
.cob-total { display: grid; justify-items: end; margin-left: auto; line-height: 1.2; }
.cob-total small { color: var(--muted); font-size: 12.5px; }
.cob-total b { color: var(--sale); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cob-total em { color: var(--muted); font-size: 12.5px; font-style: normal; }
.cob-total em.free { color: #0B7A5C; font-weight: 600; }
.cob-go { min-height: 54px; padding: 0 34px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
.cob-go:hover { filter: brightness(1.05); }
@media (min-width: 900px) {
  .order.checkout { padding-block: 32px 56px; }
  .checkout #orderBox { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 56px; row-gap: 0; align-items: start; }
  .checkout #orderBox > * { grid-column: 1; }
  .checkout #orderBox > form { grid-column: 1; grid-row: auto; }
  .checkout #orderBox > #coCart { grid-column: 2; grid-row: 1 / -1; order: 0; padding-left: 40px; border-left: 1px solid var(--line); }
  .checkout #orderTitle, #orderBox .co-cart > h2 { font-size: 34px; }
  .co-row { grid-template-columns: 22px 120px minmax(0, 1fr); gap: 16px; }
  .cob-pay { display: flex; }
  .cob-go { min-width: 240px; }
}
@media (max-width: 899px) {
  .checkout #orderBox > #coCart { padding-bottom: 8px; border-bottom: 8px solid #F4F5F7; margin-inline: -16px; padding-inline: 16px; }
  .cob-go { padding: 0 24px; }
}

/* ===== Loại địa chỉ + hình thức thanh toán + màn hình QR ===== */
.addr-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.addr-mode label { cursor: pointer; }
.addr-mode input { position: absolute; opacity: 0; }
.addr-mode span { display: grid; gap: 1px; height: 100%; padding: 9px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #CDD3DD; background: var(--white); transition: box-shadow .15s, background .15s; }
.addr-mode b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.addr-mode small { color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.35; }
.addr-mode input:checked + span { box-shadow: inset 0 0 0 2px var(--navy); background: #F6F8FC; }
.addr-mode input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
#districtWrap[hidden] { display: none; }
.addr-row:has(#districtWrap[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co-pay { display: grid; gap: 8px; }
.pay-opt { box-shadow: inset 0 0 0 1px #CDD3DD; background: var(--white); transition: box-shadow .15s, background .15s; }
.pay-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--navy); background: #F6F8FC; }
.pay-opt input:focus-visible ~ .pay-dot { outline: 3px solid var(--blue); outline-offset: 2px; }
.qr-pay { max-width: 760px; margin-inline: auto; padding: 22px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.qr-head { display: flex; gap: 12px; align-items: flex-start; }
.qr-ok { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #E3F5EE; color: #0B7A5C; }
.qr-head h3 { font-size: 22px; font-weight: 800; }
.qr-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.qr-head b { color: var(--ink); }
.qr-body { display: grid; gap: 18px; margin-top: 18px; }
.qr-img { justify-self: center; width: min(300px, 100%); }
.qr-img img { display: block; width: 100%; border-radius: 14px; box-shadow: 0 4px 16px rgba(0, 27, 64, .1); }
.qr-missing { display: grid; place-items: center; aspect-ratio: 1; margin: 0; padding: 24px; border-radius: 14px; background: #F4F6FA; color: var(--muted); text-align: center; font-size: 14px; }
.qr-info { margin: 0; display: grid; gap: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.qr-info div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; font-size: 15px; }
.qr-info div + div { border-top: 1px solid #EEF0F3; }
.qr-info dt { color: var(--muted); }
.qr-info dd { margin: 0; display: flex; align-items: center; gap: 8px; text-align: right; color: var(--ink); font-weight: 600; }
.qr-info dd b { color: var(--sale); }
.qr-copy { padding: 4px 10px; border: 0; border-radius: 999px; background: #F1F2F5; color: var(--navy); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.qr-status { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #FFF7E6; color: #8A5A00; font-size: 15px; font-weight: 600; }
.qr-status.paid, .qr-status.sent { background: #E9F7F2; color: #0B7A5C; }
.qr-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: qr-spin .9s linear infinite; }
@keyframes qr-spin { to { transform: rotate(360deg); } }
.qr-note { margin: 10px 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.qr-done { width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
@media (min-width: 760px) { .qr-body { grid-template-columns: 280px minmax(0, 1fr); align-items: center; } }
#qrPay { scroll-margin-top: 76px; }
@media (min-width: 900px) { #qrPay { scroll-margin-top: 96px; } }
.addr-mode label, .pay-opt { position: relative; }
.addr-mode input, .pay-opt input { left: 0; top: 0; width: 1px; height: 1px; margin: 0; }


/* Nút đặt hàng khi đang gửi */
.is-sending { position: relative; cursor: wait !important; opacity: .85; }
.is-sending::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: qr-spin .8s linear infinite; }
#qrBank { display: grid; justify-items: end; gap: 1px; }
.qr-bank-full { color: var(--muted); font-size: 13px; font-weight: 500; }
.qr-info dt, .qr-copy { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .qr-info div { padding: 10px 12px; font-size: 14px; } .qr-info dd { gap: 6px; } }

/* Nhãn "Shop đề xuất" cho combo */
.rec-tag { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 0 0 10px 0; background: linear-gradient(135deg, #F3D27A, var(--gold)); color: var(--navy); font-size: 12.5px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 2px 6px rgba(0, 27, 64, .18); }
.rec-tag svg { flex: none; }
.card.is-rec { box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(186, 151, 58, .18); }
@media (hover: hover) { .card.is-rec:hover { box-shadow: 0 0 0 2px var(--gold), 0 12px 26px rgba(186, 151, 58, .28); } }
@media (min-width: 900px) { .rec-tag { font-size: 13.5px; padding: 5px 12px 5px 9px; } }

/* Nhãn đỏ "Đề xuất" trên tab Combo tiết kiệm */
.tab.has-hot { position: relative; padding-right: 26px; overflow: visible; }
.tab-hot { position: absolute; right: -16px; top: -7px; padding: 1px 6px; border-radius: 999px 999px 999px 2px; background: var(--sale); color: var(--white); font-size: 10.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; box-shadow: 0 2px 6px rgba(208, 2, 27, .3); animation: hot-pop 2.4s ease-in-out infinite; }
.tabs { padding-top: 12px; overflow-y: visible; }
@keyframes hot-pop { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-2px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .tab-hot { animation: none; } }
@media (min-width: 900px) { .tab.has-hot { margin-right: 14px; } .tab-hot { font-size: 11.5px; top: -2px; } }
@media (max-width: 899px) { .tab.has-hot { margin-right: 14px; } }

/* ===== v5: giao diện kiểu Coolmate (trắng tối giản, navy thay đen) ===== */
/* Đầu trang: dải tối mỏng, thanh menu trắng, dải thông báo bên dưới */
.utility { background: var(--navy-deep); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.utility .wrap { min-height: 32px; }
.utility a:hover, .utility button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.appbar { border-bottom: 1px solid #EEF0F3; }
body.scrolled .appbar { box-shadow: 0 1px 0 #E3E7EE, 0 10px 28px rgba(0, 20, 50, .06); }
.notice { background: var(--navy); color: var(--white); padding-block: 9px; font-size: 13px; font-weight: 500; letter-spacing: .03em; }
@media (min-width: 900px) {
  .appbar .wrap { min-height: 76px; gap: 28px; }
  .ab-nav { gap: 2px; }
  .ab-nav a { padding: 26px 16px; border-radius: 0; font-size: 15px; font-weight: 600; letter-spacing: .03em; }
  .ab-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
  .ab-nav a:hover::after, .ab-nav a[aria-current="true"]::after { transform: scaleX(1); }
  .ab-search { flex-basis: 300px; height: 46px; }
  .brand-name { font-size: 19px; }
}

/* Banner đầu trang */
.hero { padding-inline: 0; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slide.is-on { opacity: 1; visibility: visible; }
.hero-default { padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.hero-default .store-grid { position: relative; z-index: 1; min-height: 440px; align-items: end; padding-bottom: 72px; }
.hero-copy { display: grid; gap: 14px; justify-items: start; }
.hero-eyebrow { margin: 0; color: var(--gold-on-navy); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-default h1, .hero-title { color: var(--white); font-size: clamp(36px, 7vw, 64px); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.hero-copy .slogan { margin: 0; color: var(--gold); font-size: clamp(17px, 2.4vw, 22px); font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; margin-top: 10px; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s, gap .2s; }
.hero-btn:hover { background: var(--gold); gap: 14px; }
.hero-link { color: var(--white); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero-link:hover { color: var(--gold-on-navy); }
.store-covers { display: none; }
.hero-img { display: block; position: relative; color: var(--white); text-decoration: none; }
.hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.hero-img.has-copy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 20, 50, .6)); pointer-events: none; }
.hero-img .hero-copy { position: absolute; z-index: 2; left: max(16px, calc((100vw - 1200px) / 2)); bottom: 52px; max-width: 540px; }
.hero-ctl { position: absolute; z-index: 3; right: max(16px, calc((100vw - 1200px) / 2)); bottom: 24px; display: flex; align-items: center; gap: 16px; }
.hero-ctl[hidden] { display: none; }
.hero-lines { display: flex; gap: 8px; }
.hero-line { position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-line::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(255, 255, 255, .35); }
.hero-line i { position: absolute; left: 0; top: 11px; height: 2px; width: 0; background: var(--white); }
.hero-line.on i { animation: hero-fill 5.5s linear forwards; }
@keyframes hero-fill { to { width: 100%; } }
.hero-arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(0, 20, 50, .25); color: var(--white); cursor: pointer; backdrop-filter: blur(4px); transition: background .2s, color .2s; }
.hero-arrow:hover { background: var(--white); color: var(--navy); }
@media (min-width: 900px) {
  .hero-default .store-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 480px; padding-bottom: 80px; gap: 32px; }
  .store-covers { display: block; align-self: center; height: 340px; margin-bottom: -40px; }
}
@media (max-width: 760px) {
  .hero-img img { aspect-ratio: 1 / 1; }
  .hero-img .hero-copy { bottom: 56px; }
  .hero-arrow { display: none; }
  .hero-ctl { left: 16px; right: 16px; bottom: 16px; }
  .hero-lines { flex: 1; }
  .hero-line { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } .hero-line.on i { animation: none; width: 100%; } }

/* Mục sách ở trang chủ */
.shelf { background: var(--white); padding-block: 40px 52px; }
.shelf .shelf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 28px; margin-bottom: 26px; border-bottom: 0; }
.shelf .shelf-head h2 { padding: 0; font-size: clamp(30px, 5vw, 52px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.shelf .shelf-head .tabs { margin: 0; border: 0; gap: 4px; }
.shelf .tab { min-height: 46px; padding: 0 14px; font-size: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.shelf .tab[aria-pressed="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
@media (min-width: 900px) { .shelf { padding-block: 64px 76px; } .shelf .shelf-head { margin-bottom: 36px; } }

/* Thẻ sách phẳng, ảnh trên nền xám nhạt */
.shelf .grid { gap: 32px 14px; }
.card { position: relative; container-type: inline-size; background: transparent; border-radius: 0; overflow: visible; box-shadow: none; }
.card:hover { translate: none; box-shadow: none; }
.card .cover { border-radius: 8px; background: #F2F2F2; }
.card-body { padding: 14px 2px 0; gap: 6px; }
.card h3 { font-size: 16px; font-weight: 400; line-height: 1.35; color: #1A1A1A; min-height: 2.7em; }
.card-price b { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.card-price s { font-size: 14px; }
.card .deal { top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.card .rec-tag { left: 10px; top: 10px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--gold); box-shadow: none; }
.card .tag { left: 10px; top: 10px; border-radius: 999px; }
.card-actions { padding: 12px 0 0; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.card-add { min-height: 42px; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.card-buy { min-height: 42px; background: var(--navy); color: var(--white); font-size: 15px; font-weight: 600; }
.card-add:hover { background: var(--mist); filter: none; }
.card-buy:hover { background: var(--blue); filter: none; }
@media (min-width: 900px) {
  .shelf .grid { gap: 44px 20px; }
  .card h3 { font-size: 16px; }
  .card-price b { font-size: 18px; }
  .card-body { padding: 16px 2px 0; }
}
@media (min-width: 900px) and (hover: hover) {
  .card-actions { position: absolute; z-index: 3; left: 12px; right: 12px; top: calc(100cqw - 62px); padding: 0; opacity: 0; translate: 0 10px; pointer-events: none; transition: opacity .25s ease, translate .25s ease; }
  .card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; translate: 0 0; pointer-events: auto; }
  .card-add, .card-buy { min-height: 44px; box-shadow: 0 6px 16px rgba(0, 20, 50, .18); }
  .card-add { box-shadow: inset 0 0 0 1.5px var(--navy), 0 6px 16px rgba(0, 20, 50, .18); }
}

/* Cam kết: nền xám nhạt, thẻ trắng phẳng */
.promise { background: #F4F5F7; padding-block: 40px 44px; }
.promise-list li { background: var(--white); box-shadow: none; }
@media (min-width: 900px) { .promise { padding-block: 56px 64px; } }

/* Chân trang gọn hơn */
.foot { font-size: 14px; }
.foot-contact b { font-size: 20px; font-weight: 600; }
.fc-ico { width: 46px; height: 46px; border-radius: 50%; }
.foot-listen h2 { font-size: 20px; font-weight: 600; }
.foot-btn { min-height: 40px; padding: 0 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.foot-cols h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.foot-cols a, .foot-cols button { color: rgba(255, 255, 255, .76); }
.foot-cols a:hover, .foot-cols button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* Chỉnh thêm sau khi xem thử */
.card.is-rec, .card.is-rec:hover { box-shadow: none; }
.shelf .tab-hot { right: -12px; top: -4px; font-size: 10px; padding: 0 6px; animation: none; box-shadow: none; }
@media (max-width: 760px) {
  .hero-default .store-grid { min-height: 360px; padding-bottom: 60px; }
  .hero-default h1 { font-size: clamp(34px, 9vw, 44px); }
  .card .rec-tag { left: 8px; top: 8px; padding: 3px 8px; font-size: 11px; }
  .card .rec-tag svg { display: none; }
  .card .deal { top: 8px; right: 8px; padding: 2px 8px; font-size: 12px; }
}

/* ===== v5 đợt 2: trang sách, giỏ hàng, thanh toán kiểu Coolmate ===== */
.crumbs { display: none; }
.pd-acc { background: var(--white); border-radius: 12px; padding: 2px 16px; }
.pd-acc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; list-style: none; cursor: pointer; color: var(--ink); font-size: 16px; font-weight: 600; }
.pd-acc > summary::-webkit-details-marker { display: none; }
.pd-acc > summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; }
.pd-acc[open] > summary::after { content: "–"; }
.pd-acc-body { padding: 0 0 14px; }
.pd-acc .specs th, .pd-acc .specs td { font-size: 14px; }
.pd-acc-specs { display: none; }

@media (min-width: 900px) {
  body.pd-mode { background: var(--white); }
  .pd-tabs { display: none; }
  .detail { padding-block: 18px 48px; }
  .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 22px; font-size: 13px; color: var(--muted); }
  .crumbs a { color: inherit; text-decoration: none; }
  .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .crumbs i { font-style: normal; opacity: .45; }
  .crumbs span { color: var(--ink); font-weight: 500; }

  .pd-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; margin-top: 0; padding: 0; border-radius: 0; background: none; }

  /* Ảnh xếp lưới như Coolmate */
  .pd-gallery { position: static; display: block; }
  .pd-gallery .pd-stage { overflow: visible; border-radius: 0; }
  .pd-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; scroll-snap-type: none; }
  .pd-slide { flex: none; overflow: hidden; border-radius: 8px; background: #F2F2F2; }
  .pd-slide:first-child:not(:last-child) { grid-column: 1 / -1; }
  .pd-gallery .thumbs, .pd-stage .pd-arrow, .pd-stage .pd-count, .pd-stage .ribbons, .pd-stage .pd-pill { display: none !important; }

  /* Cột thông tin dính theo khi cuộn */
  .pd-side { position: sticky; top: 96px; align-self: start; gap: 18px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
  .pd-side .pd-head h1 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
  .pd-side .pd-band { padding: 0; border-radius: 0; background: none; justify-content: flex-start; gap: 4px 16px; }
  .pd-band .pd-price-top b { font-size: 30px; font-weight: 700; }
  .pd-band .pd-off { padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
  .pd-band-right { display: flex; flex-wrap: wrap; gap: 0 8px; text-align: left; align-items: baseline; font-size: 14px; }
  .pd-band-right strong { font-size: 14px; font-weight: 500; }
  .pd-side .pd-head .lead { font-size: 15px; color: var(--muted); }
  .pd-side .buy-row .btn { min-height: 52px; font-size: 16px; font-weight: 600; }
  .btn.gold.cta { background: var(--navy); color: var(--white); }
  .btn.gold.cta:hover { background: var(--blue); filter: none; }

  .pd-side .pd-card.pd-offer { padding: 18px 20px; border-radius: 10px; background: var(--navy); color: var(--white); box-shadow: none; }
  .pd-side .pd-offer h2 { margin-bottom: 6px; color: var(--gold-on-navy); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
  .pd-side .pd-offer p { margin: 0 0 12px; color: var(--white); font-weight: 500; }
  .pd-side .pd-offer .pd-link { display: inline-flex; width: auto; min-height: 40px; background: var(--white); color: var(--navy); box-shadow: none; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
  .pd-side .pd-offer .pd-parts a, .pd-side .pd-offer .pd-parts span { color: var(--white); }
  .pd-side .pd-acc { padding: 0; border-radius: 0; background: none; border-top: 1px solid var(--line); }
  .pd-side .pd-acc:last-of-type { border-bottom: 1px solid var(--line); }
  .pd-side .pd-acc-specs { display: block; order: 7; }
  .pd-side .pd-trust { order: 8; }
  .pd-side .pd-shop { display: none; }

  /* Mô tả: nền xám, tiêu đề lớn */
  .detail-more { padding-block: 64px 80px; background: #F2F2F2; }
  .detail-body { gap: 56px; }
  .detail-body > .pd-card { padding: 0; border-radius: 0; background: none; }
  .detail-body .pd-card > h2 { margin-bottom: 28px; font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
  .detail-body .pd-specs { display: none; }
  .detail-body .card .cover { background: var(--white); }
  .detail-body .story-img img, .detail-body .inside img { border-radius: 8px; }

  /* Form đặt sách trên trang sách */
  body.pd-mode .order.on-book #orderBox, body.pd-mode .order.on-book #done { padding: 28px; border-radius: 12px; background: #F4F5F7; }
  body.pd-mode .order.on-book .field input, body.pd-mode .order.on-book .field textarea { background: var(--white); }

  /* Nút chính: navy thay đen */
  .cf-buy, .cob-go, .sheet-go, .pd-buy { background: var(--navy); color: var(--white); }
  .cf-buy:hover, .cob-go:hover, .sheet-go:hover, .pd-buy:hover { background: var(--blue); filter: none; }
  .cob-go { color: var(--white); }
  .co-pic .cover, .cart-pic .cover { background: #F2F2F2; }
}

/* Logo header: biểu tượng nền trong suốt, chữ navy + vàng */
@media (min-width: 1181px) {
  .appbar .brand img { width: 50px; height: 50px; border-radius: 0; }
  .brand-name { color: var(--navy); font-size: 17px; font-weight: 800; letter-spacing: .02em; line-height: 1.12; text-transform: uppercase; }
  .brand-name small { color: var(--moon); font-size: 17px; font-weight: 800; letter-spacing: .14em; }
}
.appbar .brand img { border-radius: 0; }

/* Đầu trang: chỉ hiện bìa trước của 3 cuốn */
.store-covers .sc-face { position: absolute; top: 50%; left: 50%; height: 92%; width: auto; max-width: none; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); transition: transform .35s; }
.store-covers .sc-face.sc-0 { transform: translate(-50%, -50%); z-index: 3; }
.store-covers .sc-face.sc-1 { transform: translate(-142%, -47%) rotate(-5deg) scale(.9); z-index: 2; }
.store-covers .sc-face.sc-2 { transform: translate(42%, -47%) rotate(5deg) scale(.9); z-index: 1; }

/* Nhãn "Shop đề xuất" và giảm giá nằm trên ảnh, không đè chữ trong ảnh */
.card .card-tags { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 30px; padding-bottom: 6px; }
.card .card-tags .rec-tag { position: static; margin: 0; padding: 3px 10px 3px 8px; font-size: 12.5px; }
.card .card-tags .deal { position: static; margin-left: auto; padding: 3px 9px; border-radius: 6px; font-size: 13px; font-weight: 800; }
@media (max-width: 899px) {
  .card .card-tags { min-height: 26px; padding-bottom: 5px; }
  .card .card-tags .rec-tag { padding: 2px 8px 2px 6px; font-size: 11px; }
  .card .card-tags .deal { padding: 2px 7px; font-size: 12px; }
}
