/* TechVerge storefront — design system + components.
   Colors come from the TechVerge logo (charcoal #333, yellow #ffcc00). */

:root {
  --tv-yellow: #ffcc00;
  --tv-yellow-600: #f0bd00;
  --tv-yellow-50: #fff8db;
  --tv-charcoal: #333333;
  --tv-ink: #1c1d1f;
  --tv-ink-2: #3c4043;
  --tv-muted: #61666b;
  --tv-subtle: #8a8f94;
  --tv-line: #e2e4e7;
  --tv-line-2: #cdd1d5;
  --tv-bg: #f2f3f5;
  --tv-surface: #ffffff;
  --tv-nav: #2b2b2b;
  --tv-nav-2: #3a3a3a;
  --tv-link: #0a5cad;
  --tv-sale: #c8102e;
  --tv-good: #0b7a35;
  --tv-good-bg: #e7f5ec;
  --tv-warn: #a35d00;
  --tv-warn-bg: #fff2df;
  --tv-focus: #1a73e8;

  --grade-a: #0b7a35;  --grade-a-bg: #e7f5ec;
  --grade-b: #0a5cad;  --grade-b-bg: #e6f0fa;
  --grade-c: #a35d00;  --grade-c-bg: #fff2df;
  --grade-parts: #6b6f74; --grade-parts-bg: #eef0f2;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, .14);
  --shadow-3: 0 20px 48px rgba(16, 24, 40, .22);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --page-max: 1400px;
  --gutter: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--tv-ink); background: var(--tv-bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
/* Components set their own display; never let that override the hidden attribute. */
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--tv-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--tv-focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; background: var(--tv-yellow); color: var(--tv-ink);
  padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none !important;
  transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--tv-yellow); color: var(--tv-ink); border-color: var(--tv-yellow-600); }
.btn-primary:hover { background: var(--tv-yellow-600); }
.btn-dark { background: var(--tv-charcoal); color: #fff; }
.btn-dark:hover { background: #1f1f1f; }
.btn-outline { background: var(--tv-surface); color: var(--tv-ink); border-color: var(--tv-line-2); }
.btn-outline:hover { border-color: var(--tv-ink-2); }
.btn-ghost { background: transparent; color: var(--tv-ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--tv-link); font-size: 14px; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.tv-header { position: sticky; top: 0; z-index: 900; background: var(--tv-surface); box-shadow: 0 1px 0 var(--tv-line); }
.tv-topbar { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.tv-logo img { height: 44px; width: auto; }
.tv-deliver { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 8px; border-radius: var(--radius-sm); text-align: left; line-height: 1.2; }
.tv-deliver:hover { background: var(--tv-bg); }
.tv-deliver small { display: block; color: var(--tv-muted); font-size: 12px; }
.tv-deliver strong { font-size: 14px; }
.tv-search { display: flex; height: 46px; border: 2px solid var(--tv-charcoal); border-radius: 999px; background: #fff; position: relative; }
.tv-search > :first-child, .tv-scope-btn { border-radius: 999px 0 0 999px; }
.tv-search > button[type=submit] { border-radius: 0 999px 999px 0; }
.tv-search:focus-within { border-color: var(--tv-ink); box-shadow: 0 0 0 4px rgba(255, 204, 0, .45); }
.tv-scope { position: relative; display: flex; }
.tv-scope-btn { display: flex; align-items: center; gap: 6px; border: 0; border-right: 1px solid var(--tv-line); background: var(--tv-bg);
  padding: 0 12px 0 18px; font-size: 14px; font-weight: 600; color: var(--tv-ink); white-space: nowrap; max-width: 190px; }
.tv-scope-btn span { overflow: hidden; text-overflow: ellipsis; }
.tv-scope-btn:hover, .tv-scope-btn[aria-expanded="true"] { background: #e6e8eb; }
.tv-scope-btn svg { flex: none; transition: transform .15s; color: var(--tv-muted); }
.tv-scope-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.tv-scope-list { display: none; position: absolute; left: 0; top: calc(100% + 8px); min-width: 230px; max-height: 360px; overflow: auto; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--tv-line); border-radius: var(--radius); box-shadow: var(--shadow-2); z-index: 955; outline: none; }
.tv-scope-list.open { display: block; animation: drop .12s ease-out; }
.tv-scope-list li { padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tv-scope-list li.active { background: var(--tv-bg); }
.tv-scope-list li[aria-selected="true"] { font-weight: 700; }
.tv-scope-list li[aria-selected="true"]::after { content: ""; margin-left: auto; width: 16px; height: 16px; background: no-repeat center / 16px
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1d1f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 4.5 4.5L19 7'/></svg>"); }
.tv-search input { flex: 1; border: 0; padding: 0 16px; font-size: 15px; min-width: 0; outline: none; }
.tv-search > button[type=submit] { border: 0; background: var(--tv-yellow); width: 58px; display: grid; place-items: center; flex: none; }
.tv-search > button[type=submit]:hover { background: var(--tv-yellow-600); }
.tv-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--tv-line);
  border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 6px; z-index: 950; display: none; }
.tv-suggest.open { display: block; }
.tv-suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--tv-ink); }
.tv-suggest a:hover, .tv-suggest a.active { background: var(--tv-bg); text-decoration: none; }
.tv-suggest .s-cat { margin-left: auto; color: var(--tv-muted); font-size: 12px; }
.tv-actions { display: flex; align-items: center; gap: 6px; }
.tv-action { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--tv-ink); line-height: 1.15; background: none; border: 0; }
.tv-action:hover { background: var(--tv-bg); text-decoration: none; }
.tv-action small { display: block; font-size: 12px; color: var(--tv-muted); }
.tv-action strong { font-size: 14px; }
.tv-cart-btn { position: relative; }
.tv-cart-count { position: absolute; top: 0; left: 22px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--tv-yellow);
  color: var(--tv-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }

.tv-navbar { background: var(--tv-nav); color: #fff; border-bottom: 3px solid var(--tv-yellow); }
.tv-navbar .container { display: flex; align-items: center; gap: 6px; min-height: 48px; position: relative; }
.show-sm { display: none; }
.tv-menu-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.tv-menu-btn:hover, .tv-menu-btn[aria-expanded="true"] { background: var(--tv-yellow); color: var(--tv-ink); border-color: var(--tv-yellow); }
.tv-menu-btn svg { transition: transform .15s; }
.tv-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.tv-quick { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.tv-quick a { color: #fff; font-size: 14px; padding: 6px 10px; border-radius: var(--radius-sm); }
.tv-quick a:hover { background: var(--tv-nav-2); text-decoration: none; }
.tv-quick a.hot { color: var(--tv-yellow); font-weight: 600; }

.tv-mega { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 3px); background: #fff; color: var(--tv-ink);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-3); display: none; padding: 28px 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 300px; gap: 32px; z-index: 940; }
.tv-mega.open { display: grid; animation: drop .14s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tv-mega h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tv-muted); margin: 0 0 12px; }
.tv-mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tv-mega li a { color: var(--tv-ink); display: block; padding: 5px 0; }
.tv-mega li a:hover { color: var(--tv-link); }
.tv-mega-promo { background: var(--tv-charcoal); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tv-mega-promo strong { font-size: 20px; line-height: 1.25; }
.tv-mega-promo span { color: #d6d6d6; font-size: 14px; }
.tv-mega-promo .btn { align-self: flex-start; margin-top: auto; }
.tv-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 800; display: none; }
.tv-backdrop.open { display: block; }

/* ---------- Page scaffolding ---------- */
main { padding-bottom: 48px; }
.crumbs { font-size: 13px; color: var(--tv-muted); padding: 14px 0; }
.crumbs a { color: var(--tv-muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.section { margin-top: 24px; }
.panel { background: var(--tv-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.section-head a { font-size: 14px; font-weight: 600; }
.sample-note { background: var(--tv-warn-bg); color: var(--tv-warn); border: 1px solid #f3d3a5; border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin-top: 16px; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 20px; }
.hero-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; background: var(--tv-charcoal); }
.hero-slide { position: absolute; inset: 0; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px;
  color: #fff; opacity: 0; visibility: hidden; transition: opacity .45s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide .eyebrow { color: var(--tv-yellow); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.hero-slide h1, .hero-slide h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; margin: 0; max-width: 620px; letter-spacing: -.02em; }
.hero-slide p { margin: 0; max-width: 520px; color: #e2e2e2; font-size: 17px; }
.hero-slide .btn { align-self: flex-start; }
.hero-slide .art { position: absolute; right: -40px; bottom: -40px; width: 46%; opacity: .95; pointer-events: none; }
.hero-dots { position: absolute; left: clamp(28px, 4vw, 56px); bottom: 20px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.4); padding: 0; }
.hero-dots button[aria-current="true"] { width: 28px; background: var(--tv-yellow); }
.hero-ctrl { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 8px; }
.hero-ctrl button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; }
.hero-side { display: grid; gap: 16px; }
.hero-card { border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; color: var(--tv-ink); text-decoration: none !important; min-height: 172px; }
.hero-card strong { font-size: 20px; line-height: 1.2; }
.hero-card span { font-size: 14px; color: var(--tv-ink-2); }
.hero-card em { margin-top: auto; font-style: normal; font-weight: 700; font-size: 14px; }
.hero-card.yellow { background: var(--tv-yellow); }
.hero-card.light { background: var(--tv-surface); box-shadow: var(--shadow-1); }
.hero-card:hover em { text-decoration: underline; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--tv-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); margin-top: 16px; }
.trust div { display: flex; gap: 12px; align-items: center; padding: 18px 20px; }
.trust div + div { border-left: 1px solid var(--tv-line); }
.trust svg { flex: none; }
.trust strong { display: block; font-size: 14px; }
.trust span { font-size: 13px; color: var(--tv-muted); }

.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; border-radius: var(--radius); color: var(--tv-ink); text-align: center; font-size: 14px; font-weight: 600; }
.cat-tile:hover { background: var(--tv-bg); text-decoration: none; }
.cat-tile .cat-icon { width: 76px; height: 76px; border-radius: 999px; background: var(--tv-yellow-50); display: grid; place-items: center; transition: transform .15s; }
.cat-tile:hover .cat-icon { transform: scale(1.06); }

.grade-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grade-card { border: 1px solid var(--tv-line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.grade-card p { margin: 0; font-size: 14px; color: var(--tv-ink-2); }

.split-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.banner { border-radius: var(--radius-lg); padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.banner h2 { margin: 0; font-size: 26px; line-height: 1.15; }
.banner p { margin: 0; max-width: 460px; }
.banner .btn { align-self: flex-start; margin-top: auto; }
.banner.dark { background: var(--tv-charcoal); color: #fff; }
.banner.dark p { color: #dcdcdc; }
.banner.yellow { background: var(--tv-yellow); }

/* ---------- Shelves / carousels ---------- */
.shelf { position: relative; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: thin; }
.shelf-track > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .shelf-track { grid-auto-columns: calc((100% - 5 * 16px) / 6); } }
.shelf-arrow { position: absolute; top: 38%; z-index: 5; width: 44px; height: 44px; border-radius: 999px; background: #fff; border: 1px solid var(--tv-line-2);
  box-shadow: var(--shadow-2); display: grid; place-items: center; }
.shelf-arrow:hover { border-color: var(--tv-ink-2); }
.shelf-arrow.prev { left: -14px; } .shelf-arrow.next { right: -14px; }
.shelf-arrow[hidden] { display: none; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--tv-muted); }
.empty-state strong { display: block; color: var(--tv-ink); font-size: 18px; margin-bottom: 6px; }

/* ---------- Product card ---------- */
.card { background: var(--tv-surface); border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; padding: 12px; position: relative; border: 1px solid transparent;
  transition: box-shadow .15s, border-color .15s; min-width: 0; }
.grid .card, .shelf .card { border-color: var(--tv-line); }
.card:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.card-media { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); background: #f7f8f9; display: grid; place-items: center; overflow: hidden; }
.card-media img, .card-media svg { width: 78%; height: 78%; object-fit: contain; transition: transform .2s; }
.card:hover .card-media img, .card:hover .card-media svg { transform: scale(1.04); }
.card-badges { position: absolute; top: 18px; left: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.card-fav { position: absolute; top: 16px; right: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 999px; background: #fff; border: 1px solid var(--tv-line); display: grid; place-items: center; }
.card-fav[aria-pressed="true"] svg { fill: var(--tv-sale); stroke: var(--tv-sale); }
.card-title { font-size: 14px; line-height: 1.35; color: var(--tv-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 57px; }
.card-title:hover { color: var(--tv-link); }
.card-meta { font-size: 12px; color: var(--tv-muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.price-now sup { font-size: 12px; top: -.7em; margin-right: 1px; }
.price-was { font-size: 13px; color: var(--tv-muted); }
.price-was s { margin-left: 2px; }
.save-pill { background: var(--tv-sale); color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 2px 6px; }
.fulfil { font-size: 13px; color: var(--tv-ink-2); display: block; line-height: 1.4; }
.fulfil svg { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.fulfil b { color: var(--tv-good); font-weight: 600; }
.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.compare-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tv-ink-2); }
.compare-check input { width: 16px; height: 16px; accent-color: var(--tv-charcoal); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 3px 7px; line-height: 1.2; }
.badge-sample { background: var(--tv-warn-bg); color: var(--tv-warn); border: 1px dashed #e0a861; }
.badge-deal { background: var(--tv-sale); color: #fff; }
.badge-new { background: var(--tv-charcoal); color: #fff; }
.grade { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 3px 8px; }
.grade::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.grade-A { color: var(--grade-a); background: var(--grade-a-bg); }
.grade-B { color: var(--grade-b); background: var(--grade-b-bg); }
.grade-C { color: var(--grade-c); background: var(--grade-c-bg); }
.grade-parts { color: var(--grade-parts); background: var(--grade-parts-bg); }
.grade-new { color: var(--tv-ink); background: var(--tv-yellow-50); }

.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tv-muted); }
.stars i { --pct: 0%; display: inline-block; width: 80px; height: 15px; background: linear-gradient(90deg, #f5a623 var(--pct), #d7dade var(--pct));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 15'><g><path d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/><path transform='translate(16 0)' d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/><path transform='translate(32 0)' d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/><path transform='translate(48 0)' d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/><path transform='translate(64 0)' d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/></g></svg>") no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 15'><g><path d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/><path transform='translate(16 0)' d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/><path transform='translate(32 0)' d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/><path transform='translate(48 0)' d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/><path transform='translate(64 0)' d='M7.5 0l2.3 4.8 5.2.6-3.9 3.6 1 5.1-4.6-2.5-4.6 2.5 1-5.1L0 5.4l5.2-.6z'/></g></svg>") no-repeat; }

.battery { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tv-ink-2); }
.battery-bar { width: 34px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; padding: 1px; }
.battery-bar::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.battery-bar span { display: block; height: 100%; border-radius: 1px; background: var(--tv-good); }
.battery.low .battery-bar span { background: var(--tv-warn); }

/* ---------- Listing page ---------- */
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 16px; flex-wrap: wrap; }
.listing-head h1 { margin: 0; font-size: 28px; letter-spacing: -.01em; }
.listing-head p { margin: 4px 0 0; color: var(--tv-muted); }
.facets { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; background: var(--tv-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); padding: 8px 18px 18px; }
.facet { border-bottom: 1px solid var(--tv-line); padding: 14px 0; }
.facet:last-child { border-bottom: 0; }
.facet summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; cursor: pointer; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: "–"; color: var(--tv-muted); font-weight: 400; }
.facet:not([open]) summary::after { content: "+"; }
.facet-opts { display: grid; gap: 6px; margin-top: 10px; }
.facet-opts label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.facet-opts input { width: 17px; height: 17px; accent-color: var(--tv-charcoal); }
.facet-opts .count { margin-left: auto; color: var(--tv-subtle); font-size: 12px; }
.facet-opts label.disabled { color: var(--tv-subtle); cursor: default; }
.price-range { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.price-range input { width: 100%; height: 38px; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); padding: 0 10px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--tv-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); padding: 10px 14px; margin-bottom: 14px; }
.toolbar .count { font-size: 14px; color: var(--tv-ink-2); }
.toolbar .spacer { flex: 1; }
.toolbar select { height: 38px; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); padding: 0 10px; background: #fff; }
.view-toggle { display: inline-flex; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { background: #fff; border: 0; width: 38px; height: 36px; display: grid; place-items: center; }
.view-toggle button[aria-pressed="true"] { background: var(--tv-charcoal); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--tv-surface); border: 1px solid var(--tv-line-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.chip button { background: none; border: 0; padding: 0; line-height: 1; font-size: 16px; color: var(--tv-muted); }
.chip.clear { background: none; border-color: transparent; color: var(--tv-link); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.grid.list { grid-template-columns: 1fr; }
.grid.list .card { display: grid; grid-template-columns: 200px 1fr 220px; gap: 20px; align-items: start; }
.grid.list .card-badges { top: 18px; left: 18px; }
.grid.list .card-title { -webkit-line-clamp: 2; min-height: 0; font-size: 16px; }
.filters-btn, .icon-btn.filters-btn { display: none; }

.compare-tray { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); width: min(920px, calc(100% - 24px)); background: var(--tv-charcoal);
  color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 12px 14px; display: flex; gap: 12px; align-items: center; z-index: 850; transition: transform .2s; }
.compare-tray.open { transform: translate(-50%, 0); }
.compare-tray .slots { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.compare-tray .slot { background: #444; border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; white-space: nowrap; max-width: 240px; }
.compare-tray .slot span { overflow: hidden; text-overflow: ellipsis; }
.compare-tray .slot button { background: none; border: 0; color: #ccc; font-size: 16px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; position: sticky; top: 150px; }
.gallery-thumbs { display: grid; gap: 8px; align-content: start; }
.gallery-thumbs button { width: 72px; height: 72px; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); background: #fff; padding: 6px; }
.gallery-thumbs button[aria-current="true"] { border: 2px solid var(--tv-charcoal); }
.gallery-main { background: #fff; border-radius: var(--radius-lg); aspect-ratio: 1 / 1; display: grid; place-items: center; box-shadow: var(--shadow-1); overflow: hidden; }
.gallery-main img, .gallery-main svg { width: 82%; height: 82%; object-fit: contain; }
.pdp-info h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 8px; letter-spacing: -.01em; }
.pdp-sub { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--tv-muted); }
.pdp-block { border-top: 1px solid var(--tv-line); margin-top: 18px; padding-top: 18px; }
.pdp-block h2 { font-size: 17px; margin: 0 0 10px; }
.cond-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cond-opt { border: 1px solid var(--tv-line-2); border-radius: var(--radius); padding: 10px 12px; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--tv-ink); text-decoration: none !important; }
.cond-opt:hover { border-color: var(--tv-ink-2); }
.cond-opt[aria-current="true"] { border: 2px solid var(--tv-charcoal); background: var(--tv-yellow-50); padding: 9px 11px; }
.cond-opt b { font-size: 14px; }
.cond-opt span { font-size: 13px; color: var(--tv-ink-2); }
.cond-explain { margin-top: 10px; font-size: 14px; color: var(--tv-ink-2); background: var(--tv-bg); border-radius: var(--radius); padding: 12px 14px; }
.highlights { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.buybox { position: sticky; top: 150px; background: var(--tv-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 22px; display: grid; gap: 14px; }
.buybox .price-now { font-size: 32px; }
.buybox .stock { font-weight: 700; color: var(--tv-good); }
.buybox .stock.low { color: var(--tv-warn); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--tv-line-2); border-radius: 999px; overflow: hidden; height: 40px; }
.qty button { width: 40px; height: 100%; border: 0; background: #fff; font-size: 18px; }
.qty input { width: 44px; text-align: center; border: 0; height: 100%; }
.buy-rows { display: grid; gap: 10px; font-size: 14px; }
.buy-row { display: flex; gap: 10px; align-items: flex-start; }
.buy-row svg { flex: none; margin-top: 2px; }
.buy-row small { display: block; color: var(--tv-muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--tv-line); vertical-align: top; }
.spec-table th { width: 38%; color: var(--tv-ink-2); font-weight: 600; background: #fafbfc; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 14px; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist li.fail { color: var(--tv-warn); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tv-line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 16px; font-weight: 600; color: var(--tv-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--tv-ink); border-bottom-color: var(--tv-yellow); }
.tab-panel[hidden] { display: none; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 10px; border-bottom: 1px solid var(--tv-line); text-align: left; vertical-align: top; }
.compare-table thead td { vertical-align: bottom; }
.compare-table .this { background: var(--tv-yellow-50); }
.faq details { border-bottom: 1px solid var(--tv-line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--tv-ink-2); font-size: 14px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-layout:has(> #cart-summary[hidden]) { grid-template-columns: 1fr; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--tv-line); }
.cart-line:first-child { padding-top: 0; }
.cart-thumb { width: 110px; height: 110px; background: #f7f8f9; border-radius: var(--radius); display: grid; place-items: center; }
.cart-thumb img, .cart-thumb svg { width: 80%; height: 80%; object-fit: contain; }
.cart-line h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; line-height: 1.35; }
.cart-line-actions { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; font-size: 14px; }
.cart-line .line-price { font-size: 18px; font-weight: 700; text-align: right; }
.summary { position: sticky; top: 150px; display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; }
.summary-row.total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--tv-line); padding-top: 12px; }
.checkout-note { font-size: 13px; color: var(--tv-muted); background: var(--tv-bg); border-radius: var(--radius); padding: 10px 12px; }

/* ---------- Drawer + toast ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 1000; box-shadow: var(--shadow-3);
  transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--tv-line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { padding: 16px 20px; overflow: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--tv-line); display: grid; gap: 10px; }
.drawer-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: 14px; }
.drawer-item .cart-thumb { width: 64px; height: 64px; }
.added { display: flex; gap: 10px; align-items: center; color: var(--tv-good); font-weight: 700; }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--tv-bg); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); opacity: 0; visibility: hidden; background: var(--tv-ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 14px; z-index: 1100; transition: transform .2s; box-shadow: var(--shadow-2); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.tv-footer { background: var(--tv-nav); color: #d9d9d9; margin-top: 40px; flex-shrink: 0; }
.tv-footer a { color: #d9d9d9; }
.tv-footer a:hover { color: #fff; }
.footer-top { background: var(--tv-charcoal); text-align: center; }
.footer-top button { background: none; border: 0; color: #fff; padding: 14px; width: 100%; font-size: 14px; }
.footer-top button:hover { background: #3d3d3d; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr) 1.3fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
.footer-grid h3 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.newsletter p { font-size: 14px; margin: 0 0 12px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; height: 42px; border-radius: 999px; border: 0; padding: 0 16px; }
.footer-contact { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 22px; padding-bottom: 22px; }
.footer-contact::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid #444; }
.footer-brand img { height: 40px; width: auto; display: block; }
.footer-contact > span { color: #bdbdbd; font-size: 14px; letter-spacing: .02em; }
.footer-reach { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; align-items: center; }
.footer-reach a { color: #fff; font-weight: 600; }
.footer-bottom { position: relative; padding-top: 18px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 13px; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid #444; }
.footer-bottom .legal { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }

.mobile-buybar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buybox { grid-column: 2; position: static; }
  .gallery { grid-row: span 2; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .tv-topbar { grid-template-columns: auto 1fr auto; }
  .tv-deliver { display: none; }
  .tv-search { grid-column: 1 / -1; order: 5; }
  .tv-action .label { display: none; }
  .tv-quick { display: none; }
  .tv-mega { grid-template-columns: 1fr 1fr; left: 8px; right: 8px; max-height: 75vh; overflow: auto; }
  .tv-mega-promo { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(3) { border-left: 0; }
  .trust div:nth-child(n+3) { border-top: 1px solid var(--tv-line); }
  .grade-guide, .split-banner { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: 1fr; }
  .facets { position: fixed; inset: 0 auto 0 0; width: min(340px, 90vw); max-height: none; z-index: 1000; border-radius: 0; transform: translateX(-105%); transition: transform .2s; top: 0; }
  .facets.open { transform: none; }
  .filters-btn { display: inline-flex; }
  .icon-btn.filters-btn { display: grid; }
  .grid.list .card { grid-template-columns: 120px 1fr; }
  .grid.list .card-actions { grid-column: 2; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; grid-row: auto; }
  .gallery-thumbs { grid-auto-flow: column; justify-content: start; order: 2; }
  .buybox { grid-column: auto; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .mobile-buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 870; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12);
    padding: 10px var(--gutter); gap: 14px; align-items: center; justify-content: space-between; }
  .mobile-buybar strong { display: block; font-size: 20px; }
  .mobile-buybar small { color: var(--tv-muted); }
  body[data-page="product"] .tv-footer { padding-bottom: 72px; } /* room for the sticky buy bar */
}
@media (max-width: 560px) {
  .hide-sm { display: none; } .show-sm { display: inline; }
  .tv-menu-btn { padding: 5px 11px; font-size: 13px; }
  .tv-navbar .container { gap: 6px; }
  .tv-logo img { height: 34px; }
  .hero-slider { min-height: 420px; }
  .hero-side, .grade-guide, .split-banner { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust div + div { border-left: 0; border-top: 1px solid var(--tv-line); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cart-line { grid-template-columns: 80px 1fr; }
  .cart-line .line-price { grid-column: 2; text-align: left; }
  .cart-thumb { width: 80px; height: 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-reach { margin-left: 0; }
  .tv-scope { display: none; }
  .tv-search input { border-radius: 999px 0 0 999px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   Content pages (sell, repairs, support, policies, about, status).
   Markup is ported from the live site; these rules restyle its classes.
   ===================================================================== */
.tv-content { padding-bottom: 0; }
body[data-page="content"] .tv-footer { margin-top: 0; }  /* content pages end on a full-width section */
.tv-content .shell { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.tv-content .shell.narrow { max-width: 720px; }
.tv-content .page-hero { background: var(--tv-charcoal); color: #fff; padding: 36px 0 44px; position: relative; overflow: hidden; }
.tv-content .page-hero::after { content: ""; position: absolute; right: -80px; top: -40px; width: 380px; height: 260px; background: var(--tv-yellow);
  transform: skewX(-18deg); opacity: .95; pointer-events: none; }
.tv-content .page-hero .shell { position: relative; z-index: 1; }
.tv-content .page-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 12px; max-width: 760px; }
.tv-content .page-hero .lede { color: #e4e4e4; max-width: 680px; }
.tv-content .breadcrumbs { font-size: 13px; color: #bdbdbd; margin-bottom: 18px; }
.tv-content .breadcrumbs a { color: #e4e4e4; }
.tv-content .eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 700; color: var(--tv-warn); margin: 0 0 6px; }
.tv-content .eyebrow.light { color: var(--tv-yellow); }
.tv-content .lede { font-size: 18px; line-height: 1.55; margin: 0 0 12px; }
.tv-content .muted { color: var(--tv-muted); }
.tv-content .section { padding: 40px 0; margin: 0; }
.tv-content .section-white { background: var(--tv-surface); }
.tv-content .section-dark { background: var(--tv-nav); color: #fff; }
.tv-content .section-dark .lede { color: #dcdcdc; }
.tv-content .section-dark a:not(.btn) { color: var(--tv-yellow); }
.tv-content h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 12px; }
.tv-content h3 { font-size: 18px; margin: 0 0 8px; }
.tv-content .section-head { display: block; margin-bottom: 20px; }
.tv-content .split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tv-content .split > div:last-child:not(.card) { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tv-content .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.tv-content .card, .tv-content .side-card, .tv-content .form-card { background: var(--tv-surface); border: 1px solid var(--tv-line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-1); color: var(--tv-ink); }
.tv-content .section-white .card { background: var(--tv-bg); box-shadow: none; }
.tv-content .side-card { position: sticky; top: 150px; }
.tv-content .process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tv-content .process-card { background: var(--tv-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 24px; display: flex; flex-direction: column; gap: 6px;
  border-top: 4px solid var(--tv-yellow); }
.tv-content .process-card .num { font-weight: 800; font-size: 13px; color: var(--tv-ink); background: var(--tv-yellow); border-radius: 999px; width: 34px; height: 34px;
  display: grid; place-items: center; margin-bottom: 6px; }
.tv-content .process-card p { margin: 0 0 8px; }
.tv-content .process-card .text-link { margin-top: auto; }
.tv-content .text-link { font-weight: 600; }
.tv-content .check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tv-content .check-list li { position: relative; padding-left: 30px; }
.tv-content .check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 999px; background: var(--tv-good-bg)
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m6 12 4 4 8-8'/></svg>") center / 13px no-repeat; }
.tv-content .check-list.compact { gap: 6px; font-size: 14px; }
.tv-content .notice { background: var(--tv-yellow-50); border: 1px solid #f2dc8a; border-left: 4px solid var(--tv-yellow); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0; font-size: 14px; }
.tv-content .notice-danger { background: #fdecee; border-color: #f2b8bf; border-left-color: var(--tv-sale); }
.tv-content .legal { max-width: 860px; font-size: 16px; line-height: 1.7; }
.tv-content .legal h2 { font-size: 21px; margin: 32px 0 10px; padding-top: 8px; }
.tv-content .legal h2:first-child { margin-top: 0; }
.tv-content .legal ul, .tv-content .legal ol { padding-left: 22px; display: grid; gap: 6px; }
.tv-content .legal p { margin: 0 0 14px; }
.tv-content .cta-band { background: var(--tv-yellow); border-radius: var(--radius-lg); padding: 28px 32px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tv-content .cta-band h2 { margin: 0; }
/* Buttons in ported markup: plain .btn is the primary action. */
.tv-content .btn:not(.btn-ghost):not(.btn-light):not(.btn-outline):not(.btn-dark) { background: var(--tv-yellow); color: var(--tv-ink); border-color: var(--tv-yellow-600); }
.tv-content .btn:not(.btn-ghost):not(.btn-light):not(.btn-outline):not(.btn-dark):hover { background: var(--tv-yellow-600); }
.tv-content .btn-ghost { background: var(--tv-surface); color: var(--tv-ink); border-color: var(--tv-line-2); }
.tv-content .btn-light { background: #fff; color: var(--tv-ink); }
/* Forms */
.tv-content .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tv-content .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 16px 0; }
.tv-content .field { display: grid; gap: 6px; }
.tv-content .field.full, .tv-content .field-grid > .full { grid-column: 1 / -1; }
.tv-content label { font-weight: 600; font-size: 14px; }
.tv-content input:not([type=checkbox]):not([type=radio]):not([type=file]), .tv-content select, .tv-content textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; font-size: 15px; }
.tv-content textarea { min-height: 120px; resize: vertical; }
.tv-content input:focus, .tv-content select:focus, .tv-content textarea:focus { outline: none; border-color: var(--tv-ink); box-shadow: 0 0 0 4px rgba(255, 204, 0, .45); }
.tv-content input[type=file] { font-size: 14px; padding: 10px; border: 1px dashed var(--tv-line-2); border-radius: var(--radius-sm); width: 100%; background: var(--tv-bg); }
.tv-content input[type=checkbox], .tv-content input[type=radio] { width: 18px; height: 18px; accent-color: var(--tv-charcoal); flex: none; margin-top: 2px; }
.tv-content .field small, .tv-content .tv-status-field small { color: var(--tv-muted); font-weight: 400; }
.tv-content .choice-grid { display: grid; gap: 10px; margin: 16px 0; }
.tv-content .choice { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; border: 1px solid var(--tv-line); border-radius: var(--radius); padding: 14px 16px; background: #fff; cursor: pointer; }
.tv-content .choice:has(input:checked) { border-color: var(--tv-charcoal); background: var(--tv-yellow-50); }
.tv-content form[data-intake-wizard], .tv-content .form-card { background: var(--tv-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: clamp(20px, 3vw, 32px); }
.tv-content form[data-intake-wizard] h2 { outline: none; }
.tv-content .form-card form[data-intake-wizard] { background: none; box-shadow: none; padding: 0; border-radius: 0; }  /* already inside a card */
.tv-content .wizard-progress { display: flex; gap: 8px; margin-bottom: 24px; }
.tv-content .step-dot { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--tv-muted); }
.tv-content .step-dot::before { content: ""; height: 6px; border-radius: 999px; background: var(--tv-line); }
.tv-content .step-dot[aria-current="step"] { color: var(--tv-ink); }
.tv-content .step-dot[aria-current="step"]::before { background: var(--tv-yellow); }
.tv-content .step-dot.is-done::before { background: var(--tv-charcoal); }
.tv-content .wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tv-line); }
.tv-content .status-form { display: grid; gap: 18px; }
.tv-content .tv-status-field { display: grid; gap: 6px; }

@media (max-width: 960px) {
  .tv-content .split, .tv-content .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .tv-content .side-card { position: static; }
  .tv-content .page-hero::after { width: 200px; height: 140px; right: -90px; opacity: .9; }
}
@media (max-width: 560px) {
  .tv-content .field-grid { grid-template-columns: 1fr; }
  .tv-content .wizard-actions .btn { flex: 1; }
  .tv-content .step-dot { font-size: 12px; white-space: nowrap; }
}

/* ---------- Account flyout + account pages ---------- */
.tv-account { position: relative; }
.tv-account-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 420px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: 20px; z-index: 960; }
.tv-account-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; } /* hover bridge */
.tv-account:hover .tv-account-menu, .tv-account:focus-within .tv-account-menu { display: block; animation: drop .14s ease-out; }
.tv-account-new { text-align: center; font-size: 13px; margin: 8px 0 14px; color: var(--tv-muted); }
.tv-account-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--tv-line); padding-top: 14px; }
.tv-account-cols h4 { margin: 0 0 8px; font-size: 14px; }
.tv-account-cols a { display: block; font-size: 14px; color: var(--tv-ink); padding: 3px 0; }
.tv-account-cols a:hover { color: var(--tv-link); }

.auth-wrap { max-width: 460px; margin: 32px auto 0; }
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 28px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 26px; margin: 0; }
.auth-card .field { display: grid; gap: 6px; }
.auth-card label { font-weight: 600; font-size: 14px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text], .auth-card input[type=tel] {
  width: 100%; height: 46px; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); padding: 0 12px; font-size: 15px; }
.auth-card input:focus { outline: none; border-color: var(--tv-ink); box-shadow: 0 0 0 4px rgba(255, 204, 0, .45); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px !important; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: 0; background: var(--tv-bg); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
.pw-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--tv-muted); }
.pw-rules li::before { content: "○"; display: inline-block; width: 18px; }
.pw-rules li.pass { color: var(--tv-good); }
.pw-rules li.pass::before { content: "✓"; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.auth-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400 !important; }
.auth-check input { width: 17px; height: 17px; accent-color: var(--tv-charcoal); margin-top: 2px; flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--tv-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--tv-line); }
.auth-status { background: var(--tv-yellow-50); border: 1px solid #f2dc8a; border-left: 4px solid var(--tv-yellow); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; outline: none; }
.auth-perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--tv-ink-2); }
.auth-perks li { display: flex; gap: 10px; align-items: center; }
.auth-fine { font-size: 12px; color: var(--tv-muted); text-align: center; }

.account-signedout { text-align: center; max-width: 640px; margin: 28px auto 0; display: grid; gap: 10px; justify-items: center; }
.account-signedout h1 { margin: 0; font-size: 28px; }
.account-signedout p { margin: 0; color: var(--tv-ink-2); }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.account-head { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 14px; }
.account-head h1 { margin: 0; font-size: 28px; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-tile { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 18px 20px;
  color: var(--tv-ink); border: 1px solid transparent; }
.account-tile:hover { text-decoration: none; border-color: var(--tv-line-2); box-shadow: var(--shadow-2); }
.account-tile svg { flex: none; color: var(--tv-ink); background: var(--tv-yellow-50); border-radius: 999px; padding: 8px; width: 48px; height: 48px; }
.account-tile span { display: grid; gap: 2px; font-size: 13px; color: var(--tv-muted); }
.account-tile strong { color: var(--tv-ink); font-size: 15px; }
.order-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--tv-line); }
.order-row:last-child { border-bottom: 0; }
.order-row .cart-thumb { width: 90px; height: 90px; }
.order-status { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--tv-link); background: var(--grade-b-bg); border-radius: 4px; padding: 3px 8px; }
.order-status.done { color: var(--tv-good); background: var(--tv-good-bg); }
.order-actions { display: flex; flex-direction: column; gap: 8px; }
.pref { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
@media (max-width: 960px) {
  .account-grid { grid-template-columns: 1fr 1fr; }
  .order-row { grid-template-columns: 70px 1fr; }
  .order-row .cart-thumb { width: 70px; height: 70px; }
  .order-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .tv-account-menu { display: none !important; } /* touch: the icon goes straight to the account page */
}
@media (max-width: 560px) { .account-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Trust, discovery & conversion features
   ===================================================================== */
/* Lowest-price badge (only rendered when the 30-day history supports it) */
.lowest { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--tv-good); background: var(--tv-good-bg); border-radius: 4px; padding: 3px 7px; align-self: flex-start; }
.buybox .lowest { font-size: 13px; }
/* Stars, larger variant */
.stars-lg { font-size: 14px; color: var(--tv-ink-2); }
.stars-lg i { width: 96px; height: 18px; -webkit-mask-size: 96px 18px; mask-size: 96px 18px; }
.pdp-rating { display: inline-block; margin: -2px 0 6px; }
.pdp-rating:hover { text-decoration: none; }
/* Pay over time */
.bnpl { margin: 0; font-size: 14px; color: var(--tv-ink-2); }
.bnpl-preview { display: flex; align-items: center; gap: 8px; background: var(--tv-bg); border-radius: var(--radius-sm); padding: 8px 10px; }
/* Price alerts link + dialog */
.alert-link { display: inline-flex; align-items: center; gap: 6px; justify-self: center; }
.dlg { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow-3); }
.dlg::backdrop { background: rgba(0, 0, 0, .45); }
.dlg-body { padding: 26px; display: grid; gap: 10px; position: relative; }
.dlg-body h2 { margin: 0; font-size: 21px; padding-right: 36px; }
.dlg-body p { margin: 0; }
.dlg-body label { font-weight: 600; font-size: 14px; }
.dlg-body input[type=email] { height: 46px; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); padding: 0 12px; font-size: 15px; }
.dlg-body input:focus { outline: none; border-color: var(--tv-ink); box-shadow: 0 0 0 4px rgba(255, 204, 0, .45); }
.dlg-x { position: absolute; top: 12px; right: 12px; }
/* Frequently bought together */
.fbt { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.fbt-items { display: flex; align-items: center; gap: 10px; }
.fbt-thumb { width: 96px; height: 96px; background: #f7f8f9; border-radius: var(--radius); display: grid; place-items: center; border: 1px solid var(--tv-line); }
.fbt-thumb svg, .fbt-thumb img { width: 70%; height: 70%; object-fit: contain; }
.fbt-plus { font-size: 22px; color: var(--tv-muted); font-weight: 300; }
.fbt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.fbt-list label { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; cursor: pointer; }
.fbt-list input { width: 17px; height: 17px; accent-color: var(--tv-charcoal); margin-top: 2px; }
.fbt-list a { color: var(--tv-ink); }
.fbt-price { white-space: nowrap; }
.fbt-total { display: grid; gap: 10px; justify-items: stretch; min-width: 220px; font-size: 16px; }
/* Reviews */
.reviews { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.review-summary { display: grid; gap: 8px; position: sticky; top: 150px; }
.review-avg { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-avg > strong { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.hist-row { display: grid; grid-template-columns: 52px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; }
.hist-row span:last-child { text-align: right; color: var(--tv-muted); }
.hist-bar { height: 10px; background: var(--tv-bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--tv-line); }
.hist-bar span { display: block; height: 100%; background: #f5a623; }
.review-summary p { font-size: 13px; margin: 6px 0 0; }
.review-list { display: grid; gap: 0; }
.review { padding: 16px 0; border-bottom: 1px solid var(--tv-line); }
.review:first-of-type { padding-top: 0; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review-top .stars { font-size: 0; }
.review p { margin: 8px 0 0; color: var(--tv-ink-2); }
.verified { color: var(--tv-good); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.review-empty { display: flex; gap: 16px; align-items: flex-start; background: var(--tv-bg); border-radius: var(--radius); padding: 18px 20px; }
.review-empty svg { flex: none; color: #f5a623; }
.review-empty p { margin: 4px 0 0; max-width: 640px; }
/* Price history chart */
.price-chart { width: 100%; max-width: 560px; height: auto; display: block; margin: 8px 0 16px; }
.price-chart .axis { stroke: var(--tv-line-2); }
.price-chart .line { fill: none; stroke: var(--tv-charcoal); stroke-width: 2.5; }
.price-chart circle { fill: var(--tv-yellow); stroke: var(--tv-charcoal); stroke-width: 2; }
.price-chart .lbl { font-size: 12px; fill: var(--tv-muted); font-family: var(--font); }
/* Store rating badge */
.store-rating { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: 13px; }
.store-rating:hover { text-decoration: none; }
.tv-footer .store-rating { color: #d9d9d9; }
/* Returns flow */
.ret-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 4px; }
.ret-card { display: grid; gap: 16px; }
.ret-card h1 { margin: 0; font-size: 28px; }
.ret-card h2 { margin: 0; font-size: 19px; }
.rsteps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; counter-reset: s; }
.rsteps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--tv-muted); counter-increment: s; }
.rsteps li::before { content: ""; height: 6px; border-radius: 999px; background: var(--tv-line); }
.rsteps li.on { color: var(--tv-ink); } .rsteps li.on::before { background: var(--tv-yellow); }
.rsteps li.done::before { background: var(--tv-charcoal); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ret-card .field, .auth-card .field { display: grid; gap: 6px; }
.ret-card label, .ret-card legend { font-weight: 600; font-size: 14px; }
.ret-card input[type=text], .ret-card input[type=email], .ret-card select, .ret-card textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 15px; background: #fff; }
.ret-card input:focus, .ret-card select:focus, .ret-card textarea:focus { outline: none; border-color: var(--tv-ink); box-shadow: 0 0 0 4px rgba(255, 204, 0, .45); }
.ret-items { display: grid; gap: 10px; }
.ret-item { display: grid; grid-template-columns: 20px 64px 1fr; gap: 12px; align-items: center; border: 1px solid var(--tv-line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font-weight: 400 !important; }
.ret-item:has(input:checked) { border-color: var(--tv-charcoal); background: var(--tv-yellow-50); }
.ret-item input, .ret-res input { width: 18px; height: 18px; accent-color: var(--tv-charcoal); }
.ret-item .cart-thumb { width: 64px; height: 64px; }
.ret-item > span:last-child { display: grid; gap: 4px; }
.ret-res { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.ret-res legend { margin-bottom: 10px; padding: 0; }
.ret-res .choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--tv-line); border-radius: var(--radius); padding: 12px 14px; font-weight: 400; cursor: pointer; }
.ret-res .choice:has(input:checked) { border-color: var(--tv-charcoal); background: var(--tv-yellow-50); }
.ret-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--tv-line); }
.ret-side h2 { margin-top: 0; font-size: 19px; }
.ret-how { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
/* Review form */
.rv-product { display: flex; gap: 12px; align-items: center; background: var(--tv-bg); border-radius: var(--radius); padding: 10px 12px; }
.rv-product:empty { display: none; }
.rv-product .cart-thumb { width: 56px; height: 56px; background: #fff; }
.rv-product > span:last-child { display: grid; gap: 4px; }
.label-like { font-weight: 600; font-size: 14px; }
.rv-stars { display: flex; align-items: center; gap: 4px; }
.rv-stars button { background: none; border: 0; font-size: 34px; line-height: 1; color: #d7dade; padding: 0 2px; transition: transform .1s; }
.rv-stars button.on { color: #f5a623; }
.rv-stars button:hover { transform: scale(1.12); }
.rv-stars span { margin-left: 10px; font-size: 14px; }
.auth-card textarea { width: 100%; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 15px; resize: vertical; }
.auth-card textarea:focus { outline: none; border-color: var(--tv-ink); box-shadow: 0 0 0 4px rgba(255, 204, 0, .45); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
/* Two-step verification row (account preview) */
.twofa { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--tv-line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; }
.twofa > div { display: grid; gap: 2px; font-size: 14px; }
/* Analytics consent (GA4 only) */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: 14px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.consent-bar span { display: flex; gap: 8px; }

@media (max-width: 960px) {
  .fbt { grid-template-columns: 1fr; gap: 16px; }
  .reviews { grid-template-columns: 1fr; gap: 24px; }
  .review-summary { position: static; }
  .ret-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fbt-thumb { width: 72px; height: 72px; }
  .field-pair { grid-template-columns: 1fr; }
  .rsteps li { font-size: 12px; }
}

.store-rating-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.store-rating-row:has(.store-rating-slot[hidden]) { display: none; }

/* ---------- Layout stability (Core Web Vitals: CLS) ----------
   The header is drawn by app.js; reserve its exact height so nothing below jumps when it appears.
   Keep these in sync with the header's real height (the test suite measures it). */
#tv-header { display: block; height: 121px; }
@media (max-width: 960px) { #tv-header { height: 173px; } }
@media (max-width: 1200px) { .tv-action-req .label { display: none; } }
/* With JS, content stays invisible (not removed) until app.js has drawn it, then appears in one frame.
   If a script fails, the animation reveals it anyway after 3 seconds. */
.js:not(.tv-ready) main { visibility: hidden; animation: tv-reveal 0s 3s forwards; }
@keyframes tv-reveal { to { visibility: visible; } }
/* Product pages ship a plain-HTML summary for search engines and no-JS visitors; app.js replaces it. */
.js .pdp-static { display: none; }
.pdp-static { grid-column: 1 / -1; background: #fff; border-radius: var(--radius-lg); padding: 24px; }
.tv-quick { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1060px) { .tv-quick a:nth-child(n+5) { display: none; } } /* Repairs + Help stay in the menus */

.compare-tray { visibility: hidden; transition: transform .2s, visibility 0s .2s; }
.compare-tray.open { visibility: visible; transition: transform .2s, visibility 0s; }
.ret-card [data-rstep] { display: grid; gap: 16px; }
.ret-card [data-rstep] h2 { margin-bottom: -4px; }
.empty-state .empty-title { font-size: 18px; margin: 10px 0 6px; color: var(--tv-ink); }
/* Tab panels carry their own heading: shown when panels are stacked (no JavaScript, crawlers), hidden behind the tabs otherwise. */
.panel-title { font-size: 19px; margin: 8px 0 12px; }
.js .panel-title { display: none; }

/* ---------- Bug fixes: compare page, carousel controls, tap targets, 404 ---------- */
.cmp-wrap { overflow-x: auto; }
.cmp-table { min-width: 640px; }
.cmp-table thead th { vertical-align: top; text-align: left; position: relative; padding: 12px; display: table-cell; min-width: 200px; }
.cmp-table thead th > * + * { margin-top: 8px; }
.cmp-thumb { width: 110px; height: 110px; }
.cmp-name { display: block; color: var(--tv-ink); font-weight: 600; font-size: 14px; line-height: 1.35; }
.cmp-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; }
.cmp-table tbody th { width: 160px; color: var(--tv-ink-2); font-weight: 600; background: #fafbfc; }
.cmp-one { max-width: 260px; margin: 16px auto 0; }
/* carousel dots: 24px tap targets around a small visual dot (WCAG 2.5.8) */
.hero-dots { gap: 0; }
.hero-dots button { width: 24px; height: 24px; background: none; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .2s; }
.hero-dots button[aria-current="true"] { width: 36px; background: none; }
.hero-dots button[aria-current="true"]::before { width: 28px; background: var(--tv-yellow); }
.hero-ctrl button { font-size: 14px; }
/* footer + legal links: comfortable tap targets */
.footer-grid ul a, .footer-bottom .legal a, .footer-reach a { display: inline-block; padding: 4px 0; min-height: 24px; }
.nf-search { max-width: 640px; display: grid; gap: 8px; }
.nf-search div { display: flex; gap: 8px; }
.nf-search input { flex: 1; }
.tv-content .h3 { font-size: 18px; margin: 0 0 8px; }

/* ---------- Category pages ---------- */
.cat-guide { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; }
.cat-guide h2 { margin: 0 0 10px; font-size: 20px; }
.cat-guide ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.cat-guide .btn { align-self: center; }
.listing-head p.cat-intro { max-width: 760px; }
/* ---------- Mobile slide-out menu ---------- */
.tv-burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius-sm); flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.tv-burger span { display: block; height: 2px; background: var(--tv-ink); border-radius: 2px; }
.tv-burger:hover { background: var(--tv-bg); }
.tv-mnav { position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; z-index: 1001; box-shadow: var(--shadow-3);
  transform: translateX(-105%); transition: transform .2s ease; display: flex; flex-direction: column; }
.tv-mnav.open { transform: none; }
.tv-mnav-head { display: flex; align-items: center; justify-content: space-between; background: var(--tv-charcoal); color: #fff; padding: 10px 12px 10px 18px; }
.tv-mnav-head a { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.tv-mnav-head .icon-btn { color: #fff; }
.tv-mnav-head .icon-btn:hover { background: #444; }
.tv-mnav-body { overflow-y: auto; padding: 8px 0 24px; }
.tv-mnav-h { margin: 14px 18px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tv-muted); font-weight: 700; }
.tv-mnav ul { list-style: none; margin: 0; padding: 0; }
.tv-mnav li a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--tv-ink); font-size: 15px; min-height: 44px; }
.tv-mnav li a:hover { background: var(--tv-bg); text-decoration: none; }
.tv-mnav details { border-top: 1px solid var(--tv-line); }
.tv-mnav summary { list-style: none; padding: 14px 18px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; min-height: 48px; }
.tv-mnav summary::-webkit-details-marker { display: none; }
.tv-mnav summary::after { content: "+"; color: var(--tv-muted); font-weight: 400; }
.tv-mnav details[open] summary::after { content: "–"; }
.tv-mnav details li a { padding-left: 30px; font-size: 14px; }
@media (max-width: 960px) {
  .tv-burger { display: inline-flex; }
  .tv-topbar { grid-template-columns: auto auto 1fr auto; gap: 8px 12px; }
  .tv-menu-btn { display: none; }
  .tv-quick { display: flex; margin-left: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .tv-quick::-webkit-scrollbar { display: none; }
  .tv-quick a:nth-child(n+5) { display: inline-block; }
  .cat-guide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .hero-slide .art { display: none; } }
.checklist li .tmark { display: inline-flex; width: 18px; justify-content: center; }
.checklist li.fail { color: var(--tv-sale); }
.checklist li.na { color: var(--tv-muted); }
.tfail { color: var(--tv-sale); font-size: 13px; }

/* ---------- Product gallery + photo viewer ---------- */
.gallery-main { position: relative; }
.gallery.has-photos .gallery-main { display: block; aspect-ratio: 1 / 1; }
.gallery-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; border-radius: var(--radius-lg); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; overflow: hidden; }
.gallery-slide .zoom-btn { border: 0; padding: 0; background: none; width: 100%; height: 100%; cursor: zoom-in; display: grid; place-items: center; overflow: hidden; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; transition: transform .12s ease-out; }
.gallery-slide img.zoomed { transform: scale(2.2); }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: none; justify-content: center; gap: 6px; pointer-events: none; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(0,0,0,.2); }
.gallery-dots span.on { background: var(--tv-charcoal); width: 20px; }
.gallery-hint { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--tv-muted); background: rgba(255,255,255,.9); border-radius: 999px; padding: 4px 10px; display: inline-flex; gap: 5px; align-items: center; pointer-events: none; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,16,18,.96); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.lb-count { font-size: 14px; color: #ddd; }
.lb-x { color: #fff; } .lb-x:hover { background: #333; }
.lb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 8px; min-height: 0; }
.lb-slide img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 12px; overflow-x: auto; }
.lb-thumbs button { width: 64px; height: 64px; border-radius: var(--radius-sm); border: 2px solid transparent; background: #fff; padding: 4px; flex: none; }
.lb-thumbs button[aria-current="true"] { border-color: var(--tv-yellow); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 960px) {
  .gallery-dots { display: flex; }
  .gallery-hint { display: none; }
  .gallery.has-photos .gallery-thumbs { display: none; }  /* swipe + dots on phones, like the big stores' apps */
  .lb-nav { display: none; }
}
.gallery-main .gallery-hint svg { width: 14px; height: 14px; }

/* ---------- Search suggestions ---------- */
.tv-suggest .s-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--tv-muted); font-weight: 700; }
.tv-suggest .s-head .link-btn { text-transform: none; letter-spacing: 0; font-size: 12px; }
.tv-suggest .s-cats { display: grid; grid-template-columns: 1fr 1fr; }
.tv-suggest .s-prod { align-items: center; }
.tv-suggest .s-thumb { width: 44px; height: 44px; flex: none; background: #f7f8f9; border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden; }
.tv-suggest .s-thumb img { width: 100%; height: 100%; object-fit: contain; }
.tv-suggest .s-text { display: grid; gap: 3px; min-width: 0; }
.tv-suggest .s-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-suggest .s-sub { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.tv-suggest .s-all { border-top: 1px solid var(--tv-line); margin-top: 4px; font-weight: 600; color: var(--tv-link); }
/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 24px 0 8px; flex-wrap: wrap; }
.pager button { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tv-line-2); background: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; justify-content: center; }
.pager button:hover:not([disabled]) { border-color: var(--tv-ink-2); }
.pager button[aria-current="page"] { background: var(--tv-charcoal); color: #fff; border-color: var(--tv-charcoal); }
.pager button[disabled] { opacity: .45; cursor: default; }
.pager .gap { padding: 0 4px; color: var(--tv-muted); }
/* ---------- Questions & answers ---------- */
.qa { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.qa-item { padding: 14px 0; border-bottom: 1px solid var(--tv-line); }
.qa-item:first-of-type { padding-top: 0; }
.qa-item p { margin: 0 0 6px; }
.qa-a { color: var(--tv-ink-2); }
.qa-filter { width: 100%; height: 42px; border: 1px solid var(--tv-line-2); border-radius: 999px; padding: 0 16px; margin-bottom: 12px; }
.qa-ask { background: var(--tv-bg); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; }
.qa-ask h3 { margin: 0 0 4px; font-size: 17px; }
.qa-ask label { font-weight: 600; font-size: 14px; }
.qa-ask textarea, .qa-ask input[type=email] { width: 100%; border: 1px solid var(--tv-line-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 15px; background: #fff; }
.qa-ask input[type=email] { height: 44px; }
.qa-ask textarea:focus, .qa-ask input:focus { outline: none; border-color: var(--tv-ink); box-shadow: 0 0 0 4px rgba(255, 204, 0, .45); }
@media (max-width: 960px) { .qa { grid-template-columns: 1fr; } }
.qa-list .sample-note { margin-bottom: 14px; }
@media (max-width: 600px) { .pager { gap: 4px; } .pager button { min-width: 40px; height: 40px; padding: 0 8px; } .pager .pg-label { display: none; } }

/* ---------- LivePcTechies (remote tech support) ---------- */
.pct-logo { display: block; height: auto; max-width: 100%; }
.split-banner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.banner.pct { background: #fff; border: 1px solid var(--tv-line); box-shadow: var(--shadow-1); }
.banner.pct .pct-logo { width: 144px; }
.banner.pct .pct-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.banner.pct .pct-actions .btn { margin-top: 0; }
.banner.pct .pct-phone { font-weight: 700; color: var(--tv-ink); }
.banner.pct small { color: var(--tv-muted); font-size: 12.5px; line-height: 1.45; }
.mega-logo { margin: 0 0 10px; }
.mega-logo .pct-logo { width: 86px; }
.tv-mnav-pct { display: flex; align-items: center; gap: 12px; margin: 12px 16px 20px; padding: 12px 14px; border: 1px solid var(--tv-line); border-radius: var(--radius); color: var(--tv-ink); }
.tv-mnav-pct .pct-logo { width: 94px; flex: none; }
.tv-mnav-pct span { display: grid; font-weight: 600; font-size: 14px; }
.tv-mnav-pct small { font-weight: 400; color: var(--tv-muted); font-size: 12.5px; }
.footer-pct { display: inline-flex; align-items: center; gap: 10px; color: #bdbdbd; font-size: 14px; }
.footer-pct .pct-logo { width: 94px; background: #fff; border-radius: 6px; padding: 4px 6px; box-sizing: content-box; }
.footer-pct:hover { color: #fff; text-decoration: none; }
.pdp-pct { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--tv-line); border-radius: var(--radius); color: var(--tv-ink); font-size: 14px; line-height: 1.4; }
.pdp-pct:hover { border-color: var(--tv-ink-2); text-decoration: none; }
.pdp-pct .pct-logo { width: 80px; flex: none; }
.pdp-pct svg { flex: none; margin-left: auto; color: var(--tv-muted); }
@media (max-width: 1200px) { .split-banner { grid-template-columns: 1fr 1fr; } .banner.pct { grid-column: 1 / -1; } }
@media (max-width: 720px) { .split-banner { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.tv-mega.wide { grid-template-columns: repeat(4, minmax(0, 1fr)) 280px; gap: 28px; }
@media (max-width: 1200px) { .tv-mega.wide .tv-mega-promo { display: none; } .tv-mega.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-pct { gap: 0; }
.footer-pct .pct-logo { width: 122px; background: none; padding: 0; border-radius: 0; }
.footer-pct:hover .pct-logo { opacity: .85; }
.svc-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tv-yellow-50); color: var(--tv-ink); flex: none; }
.svc-group { margin-top: 8px; }
.svc-group + .svc-group { margin-top: 40px; }
.svc-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.svc-group-head h2 { margin: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.svc-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-content: start; background: var(--tv-surface); border: 1px solid var(--tv-line); border-radius: var(--radius-lg); padding: 18px; color: var(--tv-ink); transition: border-color .15s, box-shadow .15s; }
.svc-card:hover { border-color: var(--tv-ink-2); box-shadow: var(--shadow-1); text-decoration: none; }
.svc-card .svc-ico { grid-row: span 3; }
.svc-card strong { font-size: 17px; }
.svc-card span { color: var(--tv-muted); font-size: 14px; line-height: 1.45; }
.svc-card em { font-style: normal; color: var(--tv-link); font-size: 14px; font-weight: 600; }
.svc-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--tv-bg); color: var(--tv-muted); margin-left: 6px; vertical-align: 2px; }
.svc-tag.local { background: var(--tv-yellow-50); color: var(--tv-ink); }
.svc-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.svc-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; }
.svc-steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 999px; background: var(--tv-charcoal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.svc-steps strong { font-size: 16px; }
.svc-steps span { color: var(--tv-ink-2); }
.svc-price { font-size: 15px; background: var(--tv-bg); border-radius: var(--radius); padding: 14px 16px; margin: 18px 0 0; }
.pct-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pct-band .pct-logo { width: 150px; margin-bottom: 10px; }
.plan-table { width: 100%; border-collapse: collapse; background: var(--tv-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); font-size: 15px; }
.plan-table caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.plan-table th, .plan-table td { padding: 12px 14px; border-bottom: 1px solid var(--tv-line); text-align: left; }
.plan-table td.price { font-weight: 700; white-space: nowrap; }
.plan-table thead th { background: var(--tv-charcoal); color: #fff; font-size: 13px; }
.plan-note { font-size: 13px; color: var(--tv-muted); margin: 8px 0 0; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; list-style: none; padding: 0; margin: 16px 0; }
.svc-list li strong { display: block; }
.svc-list li span { color: var(--tv-muted); font-size: 14px; }
.soon-card { text-align: center; padding: 36px 24px; }
.soon-card .svc-ico { margin: 0 auto 10px; }
.form-status { margin: 0 0 14px; }
@media (max-width: 900px) { .pct-band { grid-template-columns: 1fr; } }
.tv-content .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
@media (max-width: 600px) { .tv-content .page-hero .eyebrow, .tv-content .page-hero .breadcrumbs { max-width: calc(100% - 120px); } }
.footer-brands { display: flex; align-items: center; gap: 24px; }
.footer-brands .footer-pct .pct-logo { height: 40px; width: auto; }

/* checkout (NS-03): order lines in the summary */
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tv-line); font-size: 14px; }
.co-line small { color: var(--tv-muted); }
.tv-content #checkout-form h2 { font-size: 20px; margin: 8px 0 0; }
.tv-content #checkout-form h2 + .field-grid { margin-top: 12px; }

/* Support page "Send a message" form (NS-03) */
.tv-content .contact-form-wrap { max-width: 760px; }
.tv-content .contact-form { display: grid; gap: 18px; margin-top: 18px; }
.tv-content .contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tv-content .field-note { color: var(--tv-muted); font-size: 14px; margin: 0; }
@media (max-width: 640px) { .tv-content .contact-row { grid-template-columns: 1fr; } }

/* Ported policy pages (NS-04): order references */
.tv-content .ref { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--tv-bg); border: 1px solid var(--tv-line); border-radius: 4px; padding: 0 5px; }

/* Checkout store credit code (SC-01) */
.tv-content .co-credit { margin: 8px 0 18px; }
.tv-content .co-credit-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.tv-content .co-credit-row .btn { height: 44px; }
@media (max-width: 480px) { .tv-content .co-credit-row { grid-template-columns: 1fr; } }

/* ---- PC Builder (PCB-WEB-2): generated from the old site's builder styles by the port step; do not edit by hand ---- */
.tv-content .pcb-head .badge { margin-bottom: 14px; }
.tv-content .pcb-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--tv-line); margin-bottom: 22px; flex-wrap: wrap; }
.tv-content .pcb-tab { background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 12px 18px; font: inherit; font-weight: 900; color: var(--tv-muted); cursor: pointer; }
.tv-content .pcb-tab[aria-selected="true"] { color: var(--tv-ink); border-bottom-color: var(--tv-yellow); }
.tv-content .pcb-tab:hover { color: var(--tv-ink); }
.tv-content .pcb-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.tv-content .pcb-pill { border-radius: 99px; padding: 9px 16px; background: var(--tv-bg); border: 1px solid var(--tv-line); font-size: .95rem; }
.tv-content .pcb-good { background: var(--tv-good-bg); border-color: #bfe3cc; color: var(--tv-good); }
.tv-content .pcb-ok-so-far { background: #eef4fb; border-color: #c4d8f3; color: #0b4f9c; }
.tv-content .pcb-bad { background: #fdecec; border-color: #f2c4c4; color: #a32020; }
.tv-content .pcb-watt { background: var(--tv-charcoal); border-color: var(--tv-charcoal); color: #fff; }
.tv-content .pcb-watt strong { color: var(--tv-yellow); }
.tv-content .pcb-issues { flex-basis: 100%; margin: 0; padding: 12px 18px 12px 34px; background: #fdecec; border: 1px solid #f2c4c4; border-radius: var(--radius-sm); color: #a32020; }
.tv-content .pcb-list, .tv-content .pcb-pick { width: 100%; border-collapse: collapse; background: #fff; }
.tv-content .pcb-list th, .tv-content .pcb-list td, .tv-content .pcb-pick th, .tv-content .pcb-pick td { padding: 13px 12px; border-bottom: 1px solid var(--tv-line); text-align: left; vertical-align: middle; }
.tv-content .pcb-list thead th, .tv-content .pcb-pick thead th { background: var(--tv-charcoal); color: #fff; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.tv-content .pcb-list tbody th { white-space: nowrap; font-weight: 900; width: 1%; }
.tv-content .pcb-list .num, .tv-content .pcb-pick .num { text-align: right; white-space: nowrap; font-weight: 900; }
.tv-content .pcb-row-empty td { background: #fcfcfa; }
.tv-content .pcb-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 6px; margin-right: 10px; border-radius: 7px;
  background: var(--tv-charcoal); color: var(--tv-yellow); font-size: .72rem; font-weight: 900; letter-spacing: .04em; vertical-align: middle; }
.tv-content .pcb-i-gpu { background: #2f9e52; color: #fff; } .tv-content .pcb-i-cpu { background: #2582d0; color: #fff; }
.tv-content .pcb-i-ram { background: #7a3fe0; color: #fff; } .tv-content .pcb-i-storage { background: #d4761d; color: #fff; }
.tv-content .pcb-i-asm { background: #1f7a3a; color: #fff; }
.tv-content .pcb-opt { display: inline-block; font-size: .7rem; font-weight: 400; color: var(--tv-muted); margin-left: 6px; }
.tv-content .pcb-choose { padding: 8px 16px; font-size: .95rem; }
.tv-content .pcb-specs span { display: inline-block; font-size: .85rem; color: var(--tv-ink-2); background: var(--tv-bg); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.tv-content .pcb-actions { white-space: nowrap; text-align: right; }
.tv-content .pcb-link { background: none; border: 0; color: var(--tv-ink); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px 8px; }
.tv-content .pcb-small { font-size: .88rem; color: var(--tv-muted); margin: 4px 0 0; }
.tv-content .pcb-empty { padding: 30px 16px; text-align: center; }
.tv-content .pcb-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; margin: 26px 0; }
.tv-content .pcb-assembly { display: flex; gap: 20px; align-items: flex-start; border-left: 6px solid #2f9e52; }
.tv-content .pcb-assembly img { flex: 0 0 auto; }
.tv-content .pcb-switch { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-size: 1.02rem; }
.tv-content .pcb-switch input { width: 22px; height: 22px; accent-color: #2f9e52; }
.tv-content .pcb-total .btn-block { margin-top: 10px; }
.tv-content .pcb-total-row { display: flex; justify-content: space-between; padding: 6px 0; }
.tv-content .pcb-grand { border-top: 2px solid var(--tv-ink); margin-top: 6px; padding-top: 12px; font-size: 1.35rem; font-weight: 900; }
.tv-content .pcb-games, .tv-content .pcb-story { margin-top: 22px; }
.tv-content .pcb-controls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin: 14px 0; }
.tv-content .pcb-controls .field { flex: 0 1 200px; }
.tv-content .pcb-controls .field label { display: block; font-weight: 900; font-size: .9rem; margin-bottom: 6px; }
.tv-content .pcb-controls-full { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.tv-content .pcb-chips { flex-basis: 100%; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tv-content .pcb-chips legend { font-weight: 900; font-size: .9rem; margin-bottom: 8px; }
.tv-content .pcb-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--tv-line); border-radius: 99px; padding: 7px 14px; cursor: pointer; background: #fff; }
.tv-content .pcb-chip:has(input:checked) { background: var(--tv-yellow-50); border-color: var(--tv-yellow-600); }
.tv-content .pcb-results { list-style: none; padding: 0; margin: 0; }
.tv-content .pcb-results li { padding: 14px 0; border-top: 1px solid var(--tv-line); }
.tv-content .pcb-tier { display: inline-block; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; border-radius: 99px; padding: 3px 10px; margin-right: 8px;
  background: var(--tv-bg); color: var(--tv-ink-2); border: 1px solid var(--tv-line); }
.tv-content .pcb-tier-good { background: var(--tv-good-bg); color: var(--tv-good); border-color: #bfe3cc; }
.tv-content .pcb-tier-mid { background: var(--tv-warn-bg); color: var(--tv-warn); border-color: #f0dc99; }
.tv-content .pcb-tier-bad { background: #fdecec; color: #a32020; border-color: #f2c4c4; }
.tv-content .pcb-story-list { padding-left: 20px; }
.tv-content .pcb-story-list li { margin: 8px 0; }
.tv-content .pcb-story-sum { list-style: none; margin-left: -20px !important; color: var(--tv-good); }
.tv-content .pcb-option { margin-top: 18px; }
.tv-content .pcb-option-head { display: flex; justify-content: space-between; align-items: baseline; }
.tv-content .pcb-option-total { font-size: 1.5rem; font-weight: 900; }
.tv-content .pcb-option-parts { list-style: none; padding: 0; columns: 2; column-gap: 24px; }
.tv-content .pcb-option-parts li { break-inside: avoid; padding: 5px 0; }
.tv-content .pcb-compromises { padding-left: 20px; }
.tv-content .pcb-modal { position: fixed; inset: 0; z-index: 960; background: rgba(20,22,26,.55); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.tv-content .pcb-modal[hidden] { display: none; }
.tv-content .pcb-dialog { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); width: min(1000px, 100%); padding: 22px; }
.tv-content .pcb-dialog-head { display: flex; justify-content: space-between; align-items: center; }
.tv-content .pcb-dialog-head h2 { margin: 0; }
.tv-content .pcb-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--tv-muted); padding: 0 8px; border-radius: 8px; }
.tv-content .pcb-close:hover { background: var(--tv-bg); color: var(--tv-ink); }
.tv-content .pcb-dialog-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 14px 0; }
.tv-content .pcb-dialog-tools input[type=search] { flex: 1 1 240px; }
.tv-content .pcb-incompatible td { background: #fbfbfb; color: var(--tv-muted); }
.tv-content .pcb-why { color: #a32020; font-size: .85rem; margin-top: 4px; }
body.pcb-noscroll { overflow: hidden; }
@media (max-width: 820px) {
  .tv-content .pcb-grid { grid-template-columns: 1fr; }
  .tv-content .pcb-col-specs { display: none; }
  .tv-content .pcb-assembly { flex-direction: column; }
  .tv-content .pcb-option-parts { columns: 1; }
  .tv-content .pcb-list tbody th { white-space: normal; }
}
.tv-content .pcb-nis { display: inline-block; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--tv-muted);
  background: var(--tv-bg); border: 1px dashed #c9ccd1; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.tv-content #pcb-ask { margin-top: 10px; }
.tv-content .pcb-total .btn-block[hidden] { display: none; }
.tv-content .pcb [hidden] { display: none !important; }
.tv-content .pcb-pick-name { display: flex; gap: 12px; align-items: center; }
.tv-content .pcb-thumb { flex: 0 0 auto; border-radius: 8px; background: var(--tv-bg); object-fit: cover; border: 1px solid var(--tv-line); }
.tv-content .pcb-thumb-sm { width: 56px; height: 42px; }
.tv-content .pcb-thumb-lg { width: 80px; height: 60px; }
@media (max-width: 520px) { .tv-content .pcb-thumb-lg { width: 56px; height: 42px; } }

/* ---------------- OS choice on product pages (OS-005) ---------------- */
.tv-content .os-choice { border: 1px solid var(--tv-line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0; }
.tv-content .os-choice legend { font-weight: 900; padding: 0 6px; }
.tv-content .os-choice.os-missing { border-color: #a32020; box-shadow: 0 0 0 3px #fdecec; }
.tv-content .os-opt { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--tv-line); cursor: pointer; }
.tv-content .os-opt:first-of-type { border-top: 0; }
.tv-content .os-opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--tv-ink); }
.tv-content .os-opt small { grid-column: 2; color: var(--tv-muted); }
.tv-content .os-price { font-weight: 900; color: var(--tv-good); margin-left: 6px; }
.tv-content .os-note { font-size: .88rem; color: var(--tv-muted); margin: 8px 0 0; }
.tv-content .pcb-credit { color: var(--tv-muted); }
.tv-content .pcb .btn:not(.btn-primary):not(.btn-dark):not(.btn-outline):not(.btn-ghost), .tv-content .pcb-modal .btn:not(.btn-ghost) { background: var(--tv-yellow); color: var(--tv-ink); border-color: var(--tv-yellow-600); }
.tv-content .pcb .btn-ghost, .tv-content .pcb-modal .btn-ghost { border-color: var(--tv-line-2); background: var(--tv-surface); }
.tv-content .pcb .table-wrap, .tv-content .pcb-modal .table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--tv-line); }
.tv-content .pcb .msg { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--tv-line); }
.tv-content .pcb .msg-warn { background: var(--tv-warn-bg); color: var(--tv-warn); border-color: #f0dc99; }

/* ---- end PC Builder ---- */
