/* ── Mobile — Shared Stylesheet ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('../shared/eo/eo-base.css'); /* hiệu ứng CSS lõi dùng chung: chuyển trang, nút nhún, gạch chân link, ảnh hiện dần */
/* CSS của các module thư viện + thanh hành động: nạp SẴN ở đây (không để JS chèn <link> — chèn đúng lúc trang mới hiện làm Chrome huỷ hiệu ứng
   chuyển trang). Bật thêm module trong _components.js (loadEoFx) thì thêm 1 dòng @import tương ứng ở đây. */
@import url('../shared/eo/eo-ui.css');
@import url('../shared/eo/eo-lightbox.css');
@import url('../shared/eo/eo-video.css');
@import url('../shared/eo/eo-slide.css');
@import url('../shared/eo/eo-gallery.css');
@import url('../shared/eo/eo-shop.css');
@import url('../shared/eo-action-bar.css');

/* ── Tokens: Light ── */
:root {
  --c-bg:          #f8f9fa;
  --c-surface:     #ffffff;
  --c-surface2:    #f1f3f5;
  --c-text:        #0d1117;
  --c-text2:       #424751;
  --c-muted:       #8b949e;
  --c-border:      #e0e4e9;
  --c-accent:      #0066ff;
  --c-accent2:     #0050cc;
  --c-red:         #e53935;
  --c-green:       #2e7d32;
  --c-gold:        #f59e0b;
  --c-nav-bg:      rgba(248,249,250,.94);
  --c-nav-text:    #0d1117;
  --c-footer-bg:   #0d1117;
  --c-footer-text: rgba(255,255,255,.6);
  --radius:        12px;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --nav-h:         64px;
  --ff-display:    'Space Grotesk', 'Inter', sans-serif;
  --ff-body:       'Inter', 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:       #0d1117;
    --c-surface:  #161b22;
    --c-surface2: #21262d;
    --c-text:     #e6edf3;
    --c-text2:    #8b949e;
    --c-muted:    #6e7681;
    --c-border:   #30363d;
    --c-accent:   #4d9fff;
    --c-accent2:  #79b8ff;
    --c-red:      #f85149;
    --c-green:    #3fb950;
    --c-nav-bg:   rgba(13,17,23,.94);
    --c-nav-text: #e6edf3;
  }}
:root[data-theme="dark"] {
  --c-bg:       #0d1117;
  --c-surface:  #161b22;
  --c-surface2: #21262d;
  --c-text:     #e6edf3;
  --c-text2:    #8b949e;
  --c-muted:    #6e7681;
  --c-border:   #30363d;
  --c-accent:   #4d9fff;
  --c-accent2:  #79b8ff;
  --c-red:      #f85149;
  --c-green:    #3fb950;
  --c-nav-bg:   rgba(13,17,23,.94);
  --c-nav-text: #e6edf3;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* clip (not hidden): stops reveal translateX from widening the mobile viewport without breaking position:sticky */
html, body { overflow-x: clip; }
body { font-family: var(--ff-body); background: var(--c-bg); color: var(--c-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine){a:hover{ text-decoration: underline; }}
h1,h2,h3,h4 { font-family: var(--ff-display); line-height: 1.2; text-wrap: balance; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-nav-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border); height: var(--nav-h);
}
.site-nav .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.nav-logo-wrap { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo-icon { font-size: 24px; }
.nav-logo-name { display: block; font-family: var(--ff-display); font-size: 18px; font-weight: 800; color: var(--c-text); }
.nav-logo-tag { display: block; font-size: 10px; letter-spacing: .05em; color: var(--c-muted); }
.nav-links { list-style: none; display: flex; gap: 2px; margin-left: auto; }
.nav-links a { display: block; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--c-text2); text-decoration: none; transition: background .16s, color .16s; }
.nav-links a[aria-current]{ background: var(--c-surface2); color: var(--c-accent); }@media (hover: hover) and (pointer: fine){.nav-links a:hover{ background: var(--c-surface2); color: var(--c-accent); }}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone-btn { font-size: 13px; font-weight: 600; color: var(--c-text2); text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine){.nav-phone-btn:hover{ color: var(--c-accent); text-decoration: none; }}
.nav-cta-btn { background: var(--c-accent); color: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .16s; }
@media (hover: hover) and (pointer: fine){.nav-cta-btn:hover{ background: var(--c-accent2); text-decoration: none; color: #fff; }}
.nav-cart-btn { position:relative; font-size:20px; text-decoration:none; color:var(--c-text2); padding:4px 8px; transition:color .16s; line-height:1; }
@media (hover: hover) and (pointer: fine){.nav-cart-btn:hover{ color:var(--c-accent); text-decoration:none; }}
.nav-cart-btn .cart-count { position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:var(--c-red); color:#fff; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; }

/* ── Drawer ── */
.nav-drawer { position: fixed; inset: 0; z-index: 200; transform: translateX(100%); background: var(--c-bg); padding: 80px 28px 40px; display: flex; flex-direction: column; gap: 4px; transition: transform .28s cubic-bezier(.4,0,.2,1); overflow-y: auto; }
.nav-drawer.open { transform: none; }
.nav-drawer a { display: block; padding: 12px 0; font-size: 18px; font-weight: 700; color: var(--c-text); border-bottom: 1px solid var(--c-border); text-decoration: none; }
@media (hover: hover) and (pointer: fine){.nav-drawer a:hover{ color: var(--c-accent); }}
.drawer-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--c-text); padding: 8px; }

/* ── Sections ── */
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-dark { background: var(--c-surface2); }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--c-accent); margin-bottom: 10px; }
.section-label::before { content:''; display:block; width:20px; height:2px; background:var(--c-accent); border-radius:2px; }
.section-title { font-size: clamp(24px,3.5vw,40px); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--c-text2); font-size: 15px; max-width: 520px; }

/* ── Reveal ── */
[data-reveal] { opacity:0; transform:translateY(18px); transition:opacity .45s,transform .45s; }
[data-reveal].is-visible { opacity:1; transform:none; }
[data-reveal="left"] { transform:translateX(-24px); }
[data-reveal="left"].is-visible { transform:none; }
[data-reveal="right"] { transform:translateX(24px); }
[data-reveal="right"].is-visible { transform:none; }

/* ── Cards ── */
.card { background:var(--c-surface); border-radius:var(--radius); border:1px solid var(--c-border); overflow:hidden; box-shadow:var(--shadow); transition:transform .2s,box-shadow .2s; }
@media (hover: hover) and (pointer: fine){.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }}

/* ── Buttons ── */
.btn { display:inline-flex; align-items:center; gap:8px; padding:10px 24px; border-radius:8px; font-weight:700; font-size:14px; cursor:pointer; border:none; text-decoration:none; transition:opacity .16s,transform .16s; }
@media (hover: hover) and (pointer: fine){.btn:hover{ opacity:.88; transform:translateY(-1px); text-decoration:none; }}
.btn-primary { background:var(--c-accent); color:#fff; }
.btn-secondary { background:var(--c-surface2); color:var(--c-text); }
.btn-outline { background:transparent; color:var(--c-accent); border:2px solid var(--c-accent); }
.btn-red { background:var(--c-red); color:#fff; }
.btn-sm { padding:6px 14px; font-size:12px; }

/* ── Price ── */
.price-now { font-weight:800; color:var(--c-red); font-variant-numeric:tabular-nums; }
.price-old { text-decoration:line-through; color:var(--c-muted); font-size:.85em; }
.badge-sale { background:#fef2f2; color:var(--c-red); padding:2px 8px; border-radius:6px; font-size:11px; font-weight:700; }
.badge-new { background:#eff6ff; color:var(--c-accent); padding:2px 8px; border-radius:6px; font-size:11px; font-weight:700; }
.badge-hot { background:#fff7ed; color:#c2410c; padding:2px 8px; border-radius:6px; font-size:11px; font-weight:700; }

/* ── Page hero ── */
.page-hero { background:var(--c-surface2); padding:48px 0; text-align:center; border-bottom:1px solid var(--c-border); }
.breadcrumb { display:flex; justify-content:center; gap:6px; font-size:13px; color:var(--c-muted); margin-top:10px; }
.breadcrumb a { color:var(--c-muted); }
@media (hover: hover) and (pointer: fine){.breadcrumb a:hover{ color:var(--c-accent); }}

/* ── Forms ── */
.form-group { display:flex; flex-direction:column; gap:6px; min-width:0; }   /* min-width:0 — ô nhập không đẩy cột lưới rộng hơn khung form ở màn 320px (11/10) */
.form-label { font-size:13px; font-weight:600; color:var(--c-text2); }
.form-input,.form-select,.form-textarea { padding:10px 14px; border-radius:8px; border:1.5px solid var(--c-border); background:var(--c-surface); color:var(--c-text); font-family:var(--ff-body); font-size:14px; transition:border-color .16s; }
.form-input:focus,.form-select:focus,.form-textarea:focus { outline:none; border-color:var(--c-accent); }
.form-textarea { resize:vertical; min-height:100px; }

/* ── Footer ── */
.site-footer { background:var(--c-footer-bg); color:var(--c-footer-text); padding:52px 0 28px; }
.footer-top { display:grid; gap:36px; grid-template-columns:minmax(0,2fr) repeat(4,minmax(0,1fr)); }
.footer-brand .footer-logo-name { font-family:var(--ff-display); font-size:20px; font-weight:800; color:#fff; margin-bottom:10px; }
.footer-desc { font-size:13px; color:var(--c-footer-text); }
.footer-col-title { font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:rgba(255,255,255,.4); margin-bottom:12px; }
.footer-col { display:flex; flex-direction:column; gap:8px; }
.footer-col a,.site-footer a { font-size:13px; color:var(--c-footer-text); text-decoration:none; transition:color .16s; }
@media (hover: hover) and (pointer: fine){.footer-col a:hover,.site-footer a:hover{ color:#fff; text-decoration:none; }}
.footer-col p { font-size:13px; }
.footer-divider { border:none; border-top:1px solid rgba(255,255,255,.08); margin:28px 0 20px; }
.footer-bottom-bar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:12px; color:rgba(255,255,255,.3); }

/* ── Back to top ── */
#phone-back-top { position:fixed; bottom:28px; right:20px; z-index:50; width:40px; height:40px; border-radius:8px; background:var(--c-accent); color:#fff; border:none; cursor:pointer; font-size:16px; opacity:0; pointer-events:none; transition:opacity .2s; box-shadow:0 4px 12px rgba(0,0,0,.2); }
#phone-back-top.visible { opacity:1; pointer-events:auto; }

/* ── Toast ── */
#eo-toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--c-text); color:var(--c-bg); padding:10px 20px; border-radius:8px; font-size:14px; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; z-index:300; white-space:nowrap; }
#eo-toast.toast-show { opacity:1; transform:translateX(-50%) translateY(0); }
#eo-toast.toast-success { background:var(--c-green); color:#fff; }
#eo-toast.toast-error { background:var(--c-red); color:#fff; }

/* ── Grid ── */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.grid-auto { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; }

/* ── Responsive ── */
@media (max-width:900px) {
  .nav-links,.nav-phone-btn { display:none; }
  .nav-hamburger { display:flex; }
  .footer-top { grid-template-columns:1fr 1fr; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }}
@media (max-width:600px) {
  .section { padding:48px 0; }
  .footer-top { grid-template-columns:1fr; }
  .grid-2,.grid-3,.grid-4,.grid-auto { grid-template-columns:1fr; }}

/* ── Industry pages: search, filters, trả góp, thu cũ, bảo hành, flash sale, reviews, sticky CTA (2026-09-28) ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-search { display: flex; align-items: center; background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: 999px; padding: 0 4px 0 14px; min-width: 0; }
.nav-search input { border: 0; background: transparent; outline: none; font-size: 14px; width: 170px; min-height: 40px; color: var(--c-text); }
.nav-search button { border: 0; background: transparent; cursor: pointer; min-width: 40px; min-height: 40px; font-size: 16px; }
.nav-search-drawer { margin: 8px 24px 12px; }
.nav-search-drawer input { width: 100%; font-size: 16px; }
@media (max-width: 1200px) { .site-nav .nav-search:not(.nav-search-drawer) { display: none; }}
.nav-drawer > a { display: flex; align-items: center; min-height: 48px; }

.ps-filters { display: grid; gap: 12px; }
.ps-filter { display: grid; gap: 4px; font-size: 13px; color: var(--c-muted); }
.ps-filter select { min-height: 44px; border-radius: 10px; border: 1px solid var(--c-border); background: var(--c-surface); padding: 0 10px; font-size: 15px; color: var(--c-text); }
.ps-filter-reset { min-height: 44px; border: 1px dashed var(--c-border); background: none; border-radius: 10px; cursor: pointer; color: var(--c-text2); font-weight: 600; }
.ps-discount { display: inline-block; margin-left: 6px; background: var(--c-red); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }

.ps-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-surface); }
.ps-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ps-table th { text-align: left; background: #0a1628; color: #fff; padding: 12px 16px; }
.ps-table td { padding: 12px 16px; border-top: 1px solid var(--c-border); color: var(--c-text); }
.ps-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ps-list li { position: relative; padding-left: 22px; color: var(--c-text2); }
.ps-list li::before { content: '•'; position: absolute; left: 6px; color: var(--c-accent); font-weight: 800; }
.ps-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ps-steps li { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--c-text); }
.ps-steps li span { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--c-accent2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ps-way h3, .ps-promo h3, .ps-finance h3, .ps-store h3 { font-size: 18px; margin: 8px 0 6px; color: var(--c-text); }
.ps-way p, .ps-promo p, .ps-finance p, .ps-store p { color: var(--c-text2); }
.ps-calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; padding: var(--pad-card, 20px); }   /* khung có viền: nhãn + ô chọn không được sát mép (06/10) */
.ps-calc-out { grid-column: 1 / -1; font-size: 17px; color: var(--c-text); background: var(--c-surface2); border-radius: 10px; padding: 14px; }
.ps-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.ps-form { display: grid; gap: 12px; padding: var(--pad-card, 24px); }

.ps-home-search { display: flex; gap: 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; padding: 10px; box-shadow: 0 8px 28px rgba(13, 17, 23, .06); }
.ps-home-search input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 16px; min-height: 48px; padding: 0 10px; background: transparent; color: var(--c-text); }
.ps-brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ps-brand { display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; min-height: 72px; border-radius: 14px; background: var(--c-surface); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); }
.ps-brand small { color: var(--c-muted); }
.ps-flash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ps-flash-timer { background: var(--c-red); color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.ps-deal { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--c-text); padding: 12px; }
.ps-deal-visual { position: relative; aspect-ratio: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 56px; margin-bottom: 6px; }
.ps-deal-visual .ps-discount { position: absolute; top: 8px; left: 8px; margin: 0; }
.ps-finance { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.ps-more { color: var(--c-accent2); font-weight: 700; margin-top: 4px; }
.ps-detail-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ps-reviews { margin-top: 40px; }
.ps-reviews h2 { font-size: 22px; margin-bottom: 14px; }
.ps-reviews h2 span { font-size: 15px; color: #b45309; font-weight: 700; margin-left: 8px; }
.ps-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ps-review { margin: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ps-stars { color: #b45309; letter-spacing: 2px; }
.ps-stars span { color: var(--c-border); }
.ps-review blockquote { margin: 0; color: var(--c-text); line-height: 1.6; flex: 1; }
.ps-review figcaption { color: var(--c-muted); font-size: 13px; }
.ps-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--c-border); }
.ps-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.ps-map-link { display: flex; align-items: center; justify-content: center; min-height: 44px; background: var(--c-surface); color: var(--c-accent2); font-weight: 700; text-decoration: none; }

.ps-sticky-cta { display: none; }
@media (max-width: 768px) {
  .ps-sticky-cta { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--c-surface); box-shadow: 0 -6px 24px rgba(13, 17, 23, .16); }
  .ps-sticky-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; font-weight: 700; text-decoration: none; }
  .ps-sticky-call { background: #ecfdf5; color: #065f46; }
  .ps-sticky-zalo { background: #eff6ff; color: #1d4ed8; }
  .ps-sticky-buy { background: var(--c-accent2); color: #fff; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  #phone-back-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }}
@media (max-width: 900px) {
  .ps-split, .ps-calc { grid-template-columns: 1fr; }
  .ps-brands { grid-template-columns: repeat(3, 1fr); }
  .ps-review-grid { grid-template-columns: 1fr; }}
/* header: 7 menu items + search + cart + phone → no wrapping; hamburger until everything fits */
.nav-links a { white-space: nowrap; }
@media (max-width: 1439px) { .site-nav .nav-search:not(.nav-search-drawer) { display: none; } .site-nav .nav-phone-btn { display: none; }}
@media (max-width: 1179px) { .nav-links { display: none; } .nav-hamburger { display: flex; }}
.page-hero .section-sub { margin-left: auto; margin-right: auto; text-align: center; }
.ps-table td:first-child, .ps-table th:first-child { white-space: nowrap; }
/* contrast rule (PIPELINE.md): --c-accent #0066ff = 4.35:1 on white, muted tagline 2.9:1 → darker ink */
.nav-links a[aria-current]{ color: var(--c-accent2); }@media (hover: hover) and (pointer: fine){.nav-links a:hover{ color: var(--c-accent2); }}
.nav-logo-tag { color: var(--c-text2); }
/* touch targets ≥ 44px */
.nav-cart-btn, .nav-cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.nav-hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.drawer-close { min-width: 44px; min-height: 44px; }
.btn-sm { min-height: 44px; }
.btn { min-height: 44px; }
/* forms on phones: 16px text (no iOS auto-zoom) + 44px tap height; buttons ≥ 44px */
.btn { min-height: 44px; }
@media (max-width: 768px) { .form-input, .form-select, .form-textarea, form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), form select, form textarea { font-size: 16px; min-height: 44px; }}

/* ── Ảnh sản phẩm / blog (PHONE_COMP.visual / .cover) ── */
.eo-render { display: block; height: 86%; width: auto; max-width: 86%; object-fit: contain; margin: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
:is(.product-visual, .ps-deal-visual, .related-visual, .product-main-visual) .eo-render { position: relative; z-index: 0; }
:has(> .eo-cover) { position: relative; overflow: hidden; }
.eo-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-card-mini .eo-render { height: 96px; width: 96px; margin: 0 auto 10px; }
.compare-visual .eo-render, .cart-emoji .eo-render { height: 64px; width: 64px; max-width: none; margin: 0 auto; }
.sidebar-emoji:has(> .eo-cover) { display: block; width: 72px; height: 54px; border-radius: 8px; flex-shrink: 0; }
.ps-thumb-sm { display: inline-block; width: 40px; height: 40px; flex-shrink: 0; }
.ps-thumb-sm .eo-render { height: 40px; width: 40px; max-width: none; }

/* ── Khoảng đệm chuẩn (PIPELINE.md "Khoảng đệm"): chữ cách mép thẻ/panel/bảng/form ≥ 24px desktop, ≥ 16px mobile ──
   Token duy nhất --pad-card; thẻ có ảnh trên cùng → đệm phần thân (*-body), thẻ chỉ có chữ → đệm chính thẻ. */
:root { --pad-card: 24px; }
@media (max-width: 767px) { :root { --pad-card: 16px; }}
html body :is(.ps-finance, .ps-way, .ps-note, .ps-store, .ps-promo, .ps-deal, .cta-box, .ps-review, .filters-panel,
  .widget-card, .info-card, .sidebar-card, .ps-calc-out) { padding: var(--pad-card); }
html body :is(.product-body, .blog-body, .related-body) { padding: var(--pad-card); }
html body .faq-item :is(.faq-q, .faq-a) { padding-left: var(--pad-card); padding-right: var(--pad-card); }
html body .ps-table :is(td, th):first-child { padding-left: var(--pad-card); }
html body .ps-table :is(td, th):last-child { padding-right: var(--pad-card); }
@media (max-width: 480px) { html body .ps-table td:first-child { white-space: normal; }} /* bảng vừa khung, không cắt chữ bên phải */

/* ── Một hệ thiết kế cho mọi trang (D3): trang con dùng cùng nền hero tối với trang chủ ── */
:root {
  --hero-bg: linear-gradient(140deg, #0d1117 0%, #0a1628 50%, #001033 100%);
  --hero-text: #ffffff; --hero-muted: rgba(255, 255, 255, .74); --hero-accent: #6aa8ff;
}
html body .hero { background: var(--hero-bg); }
.page-hero { background: var(--hero-bg); border-bottom: 0; position: relative; overflow: hidden; padding: 56px 0 52px; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 75% 40%, rgba(0, 102, 255, .18) 0%, transparent 60%); pointer-events: none; }
.page-hero > * { position: relative; }
.page-hero :is(h1, h2, .section-title, .page-title) { color: var(--hero-text); }
.page-hero :is(p, .section-sub, .page-sub) { color: var(--hero-muted); }
.page-hero .section-label { color: var(--hero-accent); }
.page-hero .section-label::before { background: var(--hero-accent); }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: var(--hero-muted); }
@media (hover: hover) and (pointer: fine){.page-hero .breadcrumb a:hover{ color: #fff; }}
.phone-mini-price { color: var(--hero-accent); }
.page-hero + .section, .page-hero + section { padding-top: 40px; }
@media (min-width: 1180px) { .nav-logo-tag { white-space: nowrap; }} /* header 1 dòng khi có menu ngang */
@media (min-width: 1180px) and (max-width: 1320px) { .nav-links { gap: 0; } .nav-links a { padding-left: 9px; padding-right: 9px; }} /* 8 mục menu vừa 1 dòng, giữ lề phải */
@media (max-width: 768px) { .nav-cta-btn { display: none; }} /* mobile: Zalo đã có ở thanh dính đáy — nhường chỗ cho hamburger */
.compare-visual:has(> .eo-render) { width: 110px; height: 110px; margin: 0 auto 8px; }
.compare-visual .eo-render { height: 110px; width: 110px; }
@media (max-width: 768px) {
  html body .hero { min-height: auto; padding: 48px 0 56px; }          /* không để khoảng trống dưới hero khi ảnh máy ẩn */
  html body .grid-4.ps-deals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } /* deal 2 cột như app bán hàng */
  html body .grid-4.ps-deals .ps-deal { padding: var(--pad-card); }}
/* dòng giá xuống hàng khi thẻ hẹp (4 cột ở tablet) — không để nhãn % lòi khỏi thẻ */
html body :is(.product-price-row, .product-price) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 4px; }
html body .post-body blockquote, html body .post-content blockquote { padding: var(--pad-card); }
/* thanh hành động dùng chung đang chạy → ẩn thanh/nút cũ */
html.eo-ab #phone-back-top, html.eo-ab .ps-sticky-cta { display: none !important; }
:root { --eo-ab-cta-bg: var(--c-accent); }

/* Mobile không tràn (PIPELINE "Mobile — không tràn, không che"): cột lưới được co nhỏ hơn nội dung,
   nội dung dài tự xuống dòng; bảng rộng cuộn trong khung riêng (.ps-table-wrap/.table-wrap) */
:where([class*="grid"], [class*="layout"], [class*="split"], .ps-calc) > * { min-width: 0; }
:where(input, select, textarea, img, video, iframe, table) { max-width: 100%; }
:where(h1, h2, h3, p, li, dd, td) { overflow-wrap: anywhere; }
html body .price-block { flex-wrap: wrap; row-gap: 6px; } /* giá + giá cũ + % xuống hàng trên máy hẹp */
@media (max-width: 1023.98px) { html.eo-ab .nav-cta-btn { display: none !important; }} /* < 1024: CTA chỉ ở thanh đáy (không trùng header) */
/* 10/10/2026 — cùng lỗi với mẫu nhà hàng: nút CTA ở header hiện rồi tắt khi tải trang trên điện thoại (quy tắc ẩn phụ thuộc class html.eo-ab do JS gắn muộn).
   < 1024px ẩn bằng CSS thuần ngay từ lần vẽ đầu (thanh đáy luôn có nút CTA). */
@media (max-width: 1023.98px) { .nav-cta-btn { display: none !important; } }
/* Mục đang xem được làm nổi cả trong menu ☰ (quy tắc menu 11/10) */
.nav-drawer > a[aria-current="page"] { color: var(--c-accent); box-shadow: inset 4px 0 0 var(--c-accent); padding-left: 14px; }
