/* =========================================================
   Products page (loaded after style.css)
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* page head */
.page-head { width: min(880px, 100% - 48px); padding-top: 128px; text-align: center; }
.crumbs { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { margin-top: 6px; font-size: clamp(32px, 4vw, 52px); line-height: 1.5; }
.page-head > p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.summary li { display: flex; flex-direction: column; align-items: center; padding: 14px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.summary b { font-size: 18px; line-height: 1.7; color: var(--green-ink); }
.summary li > span { font-size: 12.5px; color: var(--muted); }

/* filters */
.catalog-wrap { padding-top: 44px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line-2);
  transition: color .2s, background-color .2s, border-color .2s;
}
.filter svg { width: 16px; height: 16px; color: var(--c-ink, var(--green-ink)); }
.filter .en { font-size: 11.5px; line-height: 1.8; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--dim); }
.filter:hover { color: var(--ink); border-color: var(--dim); }
.filter.on { color: #06140d; background: var(--green); border-color: var(--green); }
.filter.on svg { color: #06140d; }
.filter.on .en { background: rgba(0, 0, 0, .14); color: #06140d; }

/* product detail cards */
.catalog { display: grid; gap: 18px; }
.pd {
  --c: var(--green); --c-ink: var(--green-ink); --c-rgb: 25, 195, 125;
  display: grid; grid-template-columns: 250px 1fr 300px; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: 100px; transition: border-color .25s;
}
.pd[hidden] { display: none; }
.pd:hover { border-color: rgba(var(--c-rgb), .5); }
.pd-art { display: flex; min-height: 250px; background: #111714; border-inline-end: 1px solid var(--line); }
.sum-logos { display: flex; justify-content: center; gap: 8px; padding: 4px 0 5px; }
.sum-logos svg { width: 24px; height: 24px; }
.pd-main { padding: 24px 28px; }
.pd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pd-cat { display: inline-flex; align-items: center; gap: 6px; padding: 1px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--c-ink); background: rgba(var(--c-rgb), .1); }
.pd-cat svg { width: 14px; height: 14px; }
.pd-badge { padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink); }
.pd h2 { margin-top: 10px; font-size: 24px; line-height: 1.6; text-align: start; }
.pd-tag { color: var(--muted); font-size: 13.5px; }
.pd-desc { margin-top: 12px; max-width: 46em; color: #c9d3ce; font-size: 14px; line-height: 2.05; }
.pd .feats { margin: 14px 0 0; grid-template-columns: 1fr 1fr; gap: 6px 18px; flex: none; }

.pd-side { display: flex; flex-direction: column; padding: 24px; background: #131a17; border-inline-start: 1px solid var(--line); }
.pd-price { display: flex; align-items: flex-end; gap: 10px; }
.pd-price > b { font-size: 52px; font-weight: 700; line-height: 1.15; color: var(--c-ink); }
.pd-price > span { display: flex; flex-direction: column; line-height: 1.5; padding-bottom: 8px; }
.pd-price > span b { font-size: 17px; }
.pd-price > span small { color: var(--muted); font-size: 12.5px; }
.pd-pm { align-self: flex-start; margin-top: 6px; padding: 1px 10px; border-radius: 10px; font-size: 12px; color: var(--c-ink); background: rgba(var(--c-rgb), .1); }
.specs { flex: 1; margin: 14px 0 18px; }
.spec { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line-2); font-size: 13.5px; }
.spec:first-child { border-top: 0; }
.spec svg { width: 18px; height: 18px; color: var(--c-ink); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; text-align: end; }
.btn-order { width: 100%; padding: 12px; font-size: 15px; color: #06140d; background: var(--c); }
.btn-order:hover { background: var(--c-ink); }

.pd-ask { grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px 28px; border-style: dashed; border-color: var(--line-2); }
.ask-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--green-ink); background: var(--surface-2); border: 1px solid var(--line-2); }
.ask-ic svg { width: 24px; height: 24px; }
.pd-ask h2 { margin: 0; font-size: 19px; }
.pd-ask p { margin-top: 2px; color: var(--muted); font-size: 13.5px; }

/* comparison table */
.table-wrap { overflow-x: auto; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 14px 18px; text-align: start; vertical-align: middle; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.compare tbody th a { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.compare tbody th img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.compare tbody tr { --c: var(--green); --c-ink: var(--green-ink); --c-rgb: 25, 195, 125; }
.compare tbody tr:hover { background: rgba(255, 255, 255, .015); }
.t-price b { font-size: 20px; color: var(--c-ink); }
.t-price small { display: block; font-size: 11.5px; color: var(--muted); }
.t-order { display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px; border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 600; border: 1px solid rgba(var(--c-rgb), .5); transition: background-color .2s, color .2s; }
.t-order svg { width: 16px; height: 16px; }
.t-order:hover { background: var(--c); color: #06140d; }

/* warranty */
.w-steps { display: grid; gap: 12px; }
.w-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.w-ic { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.w-ic svg { width: 24px; height: 24px; }
.w-ic.g { color: var(--green-ink); } .w-ic.b { color: var(--blue-ink); } .w-ic.r { color: var(--rose-ink); }
.w-steps h3 { font-size: 16.5px; line-height: 1.7; }
.w-steps p { color: var(--muted); font-size: 13.5px; }
.noscript { text-align: center; color: var(--muted); }

/* accent colours by data-color (must come after the defaults above) */
[data-color="green"] { --c: #19c37d; --c-ink: #3fd394; --c-rgb: 25, 195, 125; }
[data-color="blue"]  { --c: #4c8dff; --c-ink: #7aa9ff; --c-rgb: 76, 141, 255; }
[data-color="rose"]  { --c: #ff5a68; --c-ink: #ff8590; --c-rgb: 255, 90, 104; }
[data-color="amber"] { --c: #f5b14c; --c-ink: #f7c172; --c-rgb: 245, 177, 76; }

@media (max-width: 1080px) {
  .pd { grid-template-columns: 220px 1fr; }
  .pd-side {
    grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line);
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 32px;
  }
  .pd-price { grid-column: 1; grid-row: 1; }
  .pd-pm { grid-column: 1; grid-row: 2; }
  .specs { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .spec:nth-child(2) { border-top: 0; }
  .btn-order { grid-column: 1 / -1; margin-top: 14px; }
}
@media (max-width: 700px) {
  .page-head { width: min(880px, 100% - 32px); padding-top: 104px; }
  .summary { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd-art { border-inline-end: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; }
  .pd-art { min-height: 0; }
  .pd-main { padding: 20px; }
  .pd .feats { grid-template-columns: 1fr; }
  .pd-side { display: flex; padding: 20px; }
  .specs { margin: 14px 0 16px; display: block; }
  .spec:nth-child(2) { border-top: 1px dashed var(--line-2); }
  .btn-order { margin-top: 0; }
  .pd-ask { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  #compare { display: none; }

  .table-wrap { background: none; border: 0; border-radius: 0; overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 12px; }
  .compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
  .compare th, .compare td { padding: 0; border: 0; }
  .compare tbody th { grid-column: 1 / -1; }
  .compare td::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--dim); }
  .compare td:last-child { grid-column: 1 / -1; }
  .compare td:last-child::before { display: none; }
  .t-order { width: 100%; justify-content: center; padding: 8px; }
}

/* =========================================================
   Single product landing page (/chatgpt-plus, /gemini-pro …)
   ========================================================= */
.pp-hero { padding-top: 120px; }
.pp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; margin-top: 18px; }
.pp-copy h1 { margin-top: 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.45; }
.pp-copy h1 .accent { display: block; }
.pp-intro { margin-top: 14px; max-width: 38em; color: var(--muted); font-size: 15.5px; }
.pp-copy .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 22px; flex: none; }
.pp-buy { position: sticky; top: 96px; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pp-art { display: flex; aspect-ratio: 16 / 8; border-bottom: 1px solid var(--line); }
.pp-buy-body { display: flex; flex-direction: column; padding: 22px 24px; }
.pp-buy .specs { flex: none; margin: 14px 0 18px; }
.pp-buy .rate-info { justify-content: flex-start; margin-top: 12px; text-align: start; }
.pp-about { display: grid; gap: 14px; padding-top: 72px; }
.pp-block { padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pp-block h2 { font-size: 19px; line-height: 1.6; }
.pp-block p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 2; }
.pp .cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mini {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s;
}
.mini:hover { border-color: rgba(var(--c-rgb), .55); }
.mini-txt b { display: block; font-size: 15.5px; line-height: 1.6; }
.mini-txt small { color: var(--muted); font-size: 12.5px; }
.mini-price { white-space: nowrap; font-size: 13px; color: var(--muted); }
.mini-price b { font-size: 22px; color: var(--c-ink); }

@media (max-width: 980px) {
  .pp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pp-buy { position: static; }
}
@media (max-width: 600px) {
  .pp-hero { padding-top: 100px; }
  .pp-copy .feats { grid-template-columns: 1fr; }
  .mini { grid-template-columns: auto 1fr; }
  .mini-price { grid-column: 2; }
}
