:root {
  --product-bg: #050914;
  --product-panel: rgba(15, 23, 48, .72);
  --product-blue: #5d8fff;
  --product-blue-bright: #759eff;
  --product-text: #f7f8ff;
  --product-muted: rgba(226, 231, 255, .64);
  --product-line: rgba(255, 255, 255, .105);
  --product-green: #19d7a2;
  --product-red: #ff6671;
  --product-yellow: #ffc861;
  --history-series-1: #5d8fff;
  --history-series-2: #19d7a2;
  --history-series-3: #ffad66;
  --history-series-4: #c084fc;
  --history-series-5: #ff6671;
  --history-series-6: #4dd7f4;
}
* { box-sizing: border-box; }
html { background: var(--product-bg); }
body.product-page {
  min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden;
  background: radial-gradient(circle at 73% 13%,rgba(72,83,189,.2),transparent 31%),radial-gradient(circle at 18% 42%,rgba(0,84,199,.11),transparent 30%),linear-gradient(135deg,#050914 0%,#0a1229 48%,#151334 100%);
  color: var(--product-text); font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.product-page a { color: inherit; text-decoration: none; }
.product-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-skip { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: #fff; color: #050914 !important; transform: translateY(-150%); }
.product-skip:focus { transform: translateY(0); }
.product-currency-rain { position: fixed; z-index: 0; inset: 0; display: flex; justify-content: space-around; overflow: hidden; pointer-events: none; opacity: .23; mask-image: linear-gradient(to bottom,transparent,#000 8%,#000 92%,transparent); -webkit-mask-image: linear-gradient(to bottom,transparent,#000 8%,#000 92%,transparent); }
.product-currency-column { position: relative; flex: 0 0 auto; height: max-content; color: rgba(255,255,255,.13); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: var(--currency-size); font-weight: 700; line-height: 1; letter-spacing: .7em; opacity: var(--currency-opacity); text-orientation: upright; white-space: nowrap; writing-mode: vertical-rl; will-change: transform; animation: product-currency-fall var(--currency-speed) linear infinite; animation-delay: var(--currency-delay); }
@keyframes product-currency-fall { from { transform: translate3d(0,-105%,0); } to { transform: translate3d(0,105vh,0); } }
.product-ambient { position: fixed; z-index: 0; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(117,158,255,.05) 1px,transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom,transparent,#000 15%,#000 88%,transparent); -webkit-mask-image: linear-gradient(to bottom,transparent,#000 15%,#000 88%,transparent); }
.product-page .home-nav { background: rgba(5,9,20,.83); }
.product-main { position: relative; z-index: 2; width: min(100%,1280px); min-height: calc(100vh - 188px); margin: 0 auto; padding: 34px 32px 90px; }
.product-breadcrumb { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 28px; color: var(--product-muted); font-size: 12px; }
.product-breadcrumb a { transition: color .2s; }
.product-breadcrumb a:hover,.product-breadcrumb a:focus-visible { color: #fff; outline: none; }
.product-breadcrumb svg { width: 15px; height: 15px; flex: 0 0 auto; }
[dir="rtl"] .product-breadcrumb svg { transform: scaleX(-1); }
.product-breadcrumb span { overflow: hidden; color: rgba(255,255,255,.82); text-overflow: ellipsis; white-space: nowrap; }
.product-overview { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.95fr); align-items: stretch; gap: 42px; margin-bottom: 84px; }
.product-visual { position: relative; min-height: 540px; display: grid; place-items: center; overflow: hidden; padding: 54px; border: 1px solid var(--product-line); border-radius: 22px; background: linear-gradient(145deg,rgba(35,45,82,.82),rgba(10,16,38,.92)); box-shadow: 0 25px 70px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.035); isolation: isolate; }
.product-visual::before { content:""; position: absolute; z-index: -1; inset: 12%; border-radius: 50%; background: radial-gradient(circle,rgba(117,158,255,.17),transparent 65%); filter: blur(30px); }
.product-image-glow { position: absolute; z-index: -1; right: 12%; bottom: 7%; width: 44%; height: 22%; border-radius: 50%; background: rgba(93,143,255,.22); filter: blur(45px); }
.product-visual img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 430px; display: block; object-fit: contain; filter: drop-shadow(0 28px 32px rgba(0,0,0,.42)); transition: transform .35s ease; }
.product-visual:hover img { transform: translateY(-4px) scale(1.015); }
.product-visual-empty { color: rgba(151,171,226,.58); }
.product-placeholder { width: 118px; height: 118px; }
.live-catalog-chip { position: absolute; z-index: 2; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(25,215,162,.25); border-radius: 999px; background: rgba(6,57,55,.6); color: #a6f7dc; font-size: 11px; font-weight: 700; letter-spacing: .035em; backdrop-filter: blur(10px); }
[dir="rtl"] .live-catalog-chip { right: 20px; left: auto; }
.live-catalog-chip i,.stock-pill i,.availability i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.product-summary { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.product-identity { min-height: 20px; display: flex; align-items: center; gap: 10px; color: var(--product-blue-bright); font-size: 12px; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.product-identity i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }
.product-summary h1 { margin: 10px 0 15px; color: #fff; font-family: "Plus Jakarta Sans",Inter,sans-serif; font-size: clamp(36px,4.3vw,58px); font-weight: 700; line-height: 1.07; letter-spacing: -.055em; overflow-wrap: anywhere; }
[dir="rtl"] .product-summary h1 { font-family: "Noto Kufi Arabic",Tahoma,sans-serif; font-size: clamp(34px,4vw,52px); line-height: 1.35; letter-spacing: -.04em; }
.product-description { max-width: 620px; margin: 0 0 27px; color: var(--product-muted); font-size: 15px; line-height: 1.72; }
.best-price-panel { position: relative; overflow: hidden; padding: 26px; border: 1px solid rgba(117,158,255,.23); border-radius: 17px; background: linear-gradient(135deg,rgba(41,49,101,.7),rgba(25,25,68,.78)); box-shadow: 0 16px 45px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.04); }
.best-price-panel::after { content:""; position: absolute; top: -80px; right: -50px; width: 180px; height: 180px; border-radius: 50%; background: rgba(93,143,255,.18); filter: blur(45px); pointer-events: none; }
[dir="rtl"] .best-price-panel::after { right: auto; left: -50px; }
.best-price-heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.best-price-heading > div { display: flex; flex-direction: column; gap: 2px; }
.best-price-heading small { color: var(--product-muted); font-size: 12px; }
.best-price-heading > div > span { color: rgba(255,255,255,.84); font-size: 13px; font-weight: 600; }
.stock-pill,.availability { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.stock-pill { padding: 6px 9px; border: 1px solid; border-radius: 999px; font-size: 10px; font-weight: 700; }
.stock-pill.in-stock,.availability.in-stock { color: var(--product-green); }
.stock-pill.in-stock { border-color: rgba(25,215,162,.25); background: rgba(25,215,162,.07); }
.stock-pill.unavailable,.availability.unavailable { color: var(--product-red); }
.stock-pill.unavailable { border-color: rgba(255,102,113,.25); background: rgba(255,102,113,.07); }
.stock-pill.unknown,.availability.unknown { color: var(--product-muted); }
.stock-pill.unknown { border-color: var(--product-line); background: rgba(145,154,184,.07); }
.best-price-value { position: relative; z-index: 1; display: block; margin: 18px 0 17px; color: #fff; font-family: "Plus Jakarta Sans",Inter,sans-serif; font-size: clamp(34px,4vw,48px); line-height: 1; letter-spacing: -.045em; }
.best-price-change { position: relative; z-index: 1; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 21px; }
.best-price-change > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.best-price-change small { color: var(--product-muted); font-size: 10px; }
.best-price-change del { color: rgba(255,255,255,.58); font-size: 15px; }
.price-change-badge,.table-change { display: inline-flex; align-items: center; width: max-content; border: 1px solid; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.price-change-badge { padding: 5px 9px; font-size: 11px; }
.price-change-badge.drop,.table-change.drop { border-color: rgba(25,215,162,.28); background: rgba(25,215,162,.08); color: var(--product-green); }
.price-change-badge.rise,.table-change.rise { border-color: rgba(255,102,113,.25); background: rgba(255,102,113,.08); color: var(--product-red); }
.price-change-badge.unchanged,.table-change.unchanged { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.045); color: var(--product-muted); }
.no-previous-price { position: relative; z-index: 1; margin: -3px 0 20px; color: var(--product-muted); font-size: 12px; }
.advice-stack { position: relative; z-index: 1; display: grid; gap: 9px; margin: 0 0 17px; }
.buy-advice { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; padding: 13px 15px; border: 1px solid; border-radius: 13px; }
.buy-advice > svg { width: 20px; height: 20px; margin-top: 1px; }
.advice-kind { display: block; margin-bottom: 3px; opacity: .72; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.buy-advice strong { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.buy-advice p { margin: 3px 0 0; color: var(--product-muted); font-size: 11.5px; line-height: 1.55; }
.buy-advice.advice-buy,.buy-advice.cycle-recently-released { border-color: rgba(25,215,162,.32); background: rgba(25,215,162,.095); color: var(--product-green); }
.buy-advice.advice-wait,.buy-advice.cycle-mid-cycle { border-color: rgba(255,200,97,.32); background: rgba(255,200,97,.095); color: var(--product-yellow); }
.buy-advice.advice-dont-buy,.buy-advice.cycle-update-expected { border-color: rgba(255,102,113,.3); background: rgba(255,102,113,.085); color: var(--product-red); }
/* Cadence without a verdict is information, not a recommendation, so it takes no traffic-light colour. */
.buy-advice.cycle-cadence-only { border-color: var(--product-line); background: rgba(255,255,255,.035); color: var(--product-text); }
.advice-breakdown { display: grid; grid-template-columns: repeat(auto-fit,minmax(148px,1fr)); gap: 14px 18px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--product-line); border-radius: 15px; background: var(--product-panel); }
.advice-breakdown small { display: block; margin-bottom: 5px; color: var(--product-muted); font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.advice-breakdown strong { font-size: 14px; font-weight: 700; }
.advice-delta.drop { color: var(--product-green); }
.advice-delta.rise { color: var(--product-red); }
.advice-delta.unchanged { color: var(--product-muted); }
.advice-pending { margin: 0 0 20px; color: var(--product-muted); font-size: 12px; line-height: 1.6; }
.best-price-action { position: relative; z-index: 1; height: 49px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 9px; background: #0969dc; color: #fff !important; box-shadow: 0 0 24px rgba(9,105,220,.28); font-size: 13px; font-weight: 700; transition: background .2s,box-shadow .2s,transform .2s; }
.best-price-action:hover,.best-price-action:focus-visible { background: var(--product-blue); box-shadow: 0 0 30px rgba(93,143,255,.35); outline: none; transform: translateY(-1px); }
.best-price-action svg,.retailer-action svg { width: 16px; height: 16px; }
.no-product-offers { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 22px; border: 1px dashed rgba(117,158,255,.25); border-radius: 14px; background: rgba(117,158,255,.04); }
.no-product-offers > svg { width: 34px; height: 34px; flex: 0 0 auto; color: var(--product-blue-bright); }
.no-product-offers strong { display: block; margin-bottom: 3px; color: #fff; }
.no-product-offers p { margin: 0; color: var(--product-muted); font-size: 13px; }
.recent-price-insight { display: flex; align-items: center; gap: 16px; margin: 0 0 30px; padding: 20px 22px; border: 1px solid rgba(117,158,255,.25); border-radius: 16px; background: linear-gradient(115deg,#141e3b,#10162e); color: #b8ccff; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.insight-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; background: rgba(93,143,255,.15); border: 1px solid rgba(117,158,255,.2); font-size: 0; }
.insight-icon::after { content: '↗'; color: #91b2ff; font-size: 24px; font-weight: 700; }
.insight-high .insight-icon::after { color: #e7bd83; }
.insight-low .insight-icon::after { content: '↘'; }
.insight-unknown .insight-icon::after, .insight-steady .insight-icon::after, .insight-middle .insight-icon::after { content: '≋'; }
.insight-copy { flex: 1; min-width: 0; font-size: 14px; line-height: 1.7; }
.insight-copy strong { font-size: 15px; }
.insight-copy h2 { margin: 0 0 8px; font-size: 17px; color: inherit; }
.insight-copy p { display: inline; margin: 0; color: #b6bfd7; }
.insight-copy b { color: #e0e8ff; white-space: normal; }
.insight-copy small { display: block; margin-top: 5px; color: #96a3c3; font-size: 11px; }
/* The trailing explainer is its own section, so it needs section rhythm above it. */
.product-main > section.recent-price-insight { margin-top: 56px; }
.recent-price-insight > a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
html[data-theme="light"] .recent-price-insight { background: linear-gradient(115deg,#edf3ff,#f6f8ff); border-color: #cedbf5; color: #315b9d; box-shadow: none; }
html[data-theme="light"] .insight-icon::after { color: #396bcc; }
html[data-theme="light"] .insight-high .insight-icon::after { color: #92601e; }
html[data-theme="light"] .insight-copy b { color: #233e71; }
html[data-theme="light"] .insight-copy p { color: #465668; }
html[data-theme="light"] .insight-copy small { color: #596a79; }
@media (max-width:820px) {
  .recent-price-insight { flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 18px; }
  .insight-copy { flex: 1 1 220px; }
  .recent-price-insight > a { flex: 1 0 100%; }
}
@media (max-width:600px) {
  .recent-price-insight { gap: 10px 12px; padding: 16px; border-radius: 14px; }
  .insight-icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; }
  .insight-icon::after { font-size: 20px; }
  .insight-copy { flex: 1 1 180px; font-size: 13.5px; line-height: 1.65; }
  .insight-copy strong, .insight-copy p { display: block; }
  .insight-copy p { margin-top: 4px; }
  .insight-copy h2 { font-size: 16px; }
}
@media (max-width:380px) {
  .recent-price-insight { padding: 14px; gap: 10px; }
  .insight-copy { flex-basis: 150px; }
}
.retailer-comparison { scroll-margin-top: 100px; }
.comparison-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.comparison-heading > div > span { color: var(--product-blue-bright); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.comparison-heading h2 { margin: 6px 0 0; color: #fff; font-family: "Plus Jakarta Sans",Inter,sans-serif; font-size: 26px; line-height: 1.3; letter-spacing: -.03em; }
[dir="rtl"] .comparison-heading h2 { font-family: "Noto Kufi Arabic",Tahoma,sans-serif; }
.comparison-heading > p { margin: 0; color: var(--product-muted); font-size: 13px; }
.comparison-table-wrap { overflow: hidden; border: 1px solid var(--product-line); border-radius: 16px; background: rgba(11,17,40,.72); box-shadow: 0 20px 55px rgba(0,0,0,.16); backdrop-filter: blur(16px); }
.comparison-table { width: 100%; border-collapse: collapse; text-align: start; }
.comparison-table th { padding: 16px 17px; border-bottom: 1px solid var(--product-line); background: rgba(2,6,23,.42); color: rgba(225,230,253,.5); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-align: start; text-transform: uppercase; white-space: nowrap; }
.comparison-table td { padding: 19px 17px; border-bottom: 1px solid rgba(255,255,255,.065); color: rgba(244,246,255,.82); font-size: 12px; vertical-align: middle; }
.comparison-table tbody tr { transition: background .2s; }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:hover { background: rgba(93,143,255,.045); }
.comparison-table tbody tr.best-row { background: linear-gradient(90deg,rgba(25,215,162,.09),rgba(93,143,255,.055)); box-shadow: inset 3px 0 0 var(--product-green),0 0 28px rgba(25,215,162,.055); }
[dir="rtl"] .comparison-table tbody tr.best-row { box-shadow: inset -3px 0 0 var(--product-blue); }
.retailer-cell { display: flex; align-items: center; gap: 11px; min-width: 145px; }
.retailer-logo { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(117,158,255,.22); border-radius: 8px; background: rgba(93,143,255,.11); color: var(--product-blue-bright); }
.retailer-logo img { position:absolute; inset:0; width:100%; height:100%; display:block; padding:4px; object-fit:contain; background:#fff; }
.retailer-logo { position:relative; }
.retailer-logo-fallback { width:22px; height:22px; }
.retailer-logo img[hidden] { display:none; }
.retailer-logo b { font-size: 12px; }
.retailer-cell > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.retailer-cell strong { color: #fff; font-size: 12px; }
.retailer-cell small { width: max-content; margin-top: 2px; padding: 3px 7px; border: 1px solid rgba(25,215,162,.24); border-radius: 999px; background: rgba(25,215,162,.08); color: var(--product-green); font-size: 8px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.price-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 130px; }
.previous-price-line { display: flex; align-items: baseline; gap: 5px; color: rgba(255,255,255,.46); white-space: nowrap; }
.previous-price-line small { color: rgba(226,231,255,.38); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.previous-price-line del { font-size: 10px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(255,102,113,.7); }
.previous-price-missing { color: rgba(226,231,255,.38); font-size: 10px; }
.current-price { display: block; color: #fff; font-size: 14px; white-space: nowrap; }
.shipping-price { display: block; margin-top: 3px; color: var(--product-muted); font-size: 9px; white-space: nowrap; }
.missing-price { color: rgba(227,231,250,.4); font-size: 11px; white-space: nowrap; }
.table-change { padding: 5px 8px; font-size: 10px; }
.availability { font-size: 11px; }
.availability i { width: 6px; height: 6px; }
.freshness { color: var(--product-muted); white-space: nowrap; }
.freshness.stale { color: #f0a76b; }
.retailer-action-cell { text-align: end; }
.retailer-action { min-width: 110px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(93,143,255,.4); border-radius: 7px; background: rgba(9,105,220,.9); color: #fff !important; font-size: 10px; font-weight: 700; white-space: nowrap; transition: background .2s,border-color .2s,transform .2s; }
.retailer-action:hover,.retailer-action:focus-visible { border-color: var(--product-blue-bright); background: var(--product-blue); outline: none; transform: translateY(-1px); }
.comparison-empty { min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 30px; border: 1px dashed rgba(117,158,255,.25); border-radius: 15px; background: rgba(93,143,255,.04); color: var(--product-muted); text-align: center; }
.comparison-empty svg { width: 35px; height: 35px; color: var(--product-blue-bright); }
.price-history-section { margin-top: 84px; scroll-margin-top: 100px; }
.history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.history-heading h2 { margin: 7px 0 0; color: #fff; font-family: "Plus Jakarta Sans",Inter,sans-serif; font-size: 26px; line-height: 1.3; letter-spacing: -.03em; }
[dir="rtl"] .history-heading h2 { font-family: "Noto Kufi Arabic",Tahoma,sans-serif; }
.history-heading > p { margin: 0; color: var(--product-muted); font-size: 13px; }
.history-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--product-blue-bright); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.history-eyebrow svg { width: 16px; height: 16px; }
.history-panel { padding: 24px; border: 1px solid var(--product-line); border-radius: 16px; background: rgba(11,17,40,.72); box-shadow: 0 20px 55px rgba(0,0,0,.16); backdrop-filter: blur(16px); }
.history-legend { min-height: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 22px; margin-bottom: 18px; }
.history-legend button { display: inline-flex; align-items: center; gap: 7px; padding: 3px 0; border: 0; background: transparent; color: rgba(244,246,255,.78); font: 600 11px/1.3 Inter,sans-serif; cursor: pointer; transition: color .18s,opacity .18s; }
.history-legend button:hover,.history-legend button:focus-visible { color: #fff; outline: none; }
.history-panel .history-legend { gap: 8px; margin-top: 18px; margin-bottom: 22px; }
.history-panel .history-legend button { min-height: 44px; padding: 10px 14px; gap: 9px; border: 1px solid var(--product-line); border-radius: 12px; font-size: 12px; background: rgba(120,145,210,.04); opacity: 1; }
.history-panel .history-legend button::after { content: '+'; font-size: 16px; line-height: 1; opacity: .7; }
.history-panel .history-legend button[aria-pressed="true"] { border-color: var(--series-color); background: color-mix(in srgb,var(--series-color) 16%,transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--series-color) 15%,transparent); }
.history-panel .history-legend button[aria-pressed="true"]::after { content: '✓'; opacity: 1; }
.history-panel .history-legend button:focus-visible { outline: 2px solid var(--series-color); outline-offset: 3px; }
.history-panel > .history-chart-note { margin: 0 0 18px; line-height: 1.65; }
.history-legend-swatch { width: 19px; height: 3px; flex: 0 0 auto; border-radius: 999px; background: var(--series-color); box-shadow: 0 0 9px color-mix(in srgb,var(--series-color) 45%,transparent); }
.history-chart-wrap { position: relative; height: 365px; overflow: hidden; border: 1px solid rgba(117,158,255,.13); border-radius: 12px; background: linear-gradient(180deg,rgba(9,15,38,.58),rgba(8,14,34,.28)); }
.history-chart { width: 100%; height: 100%; display: block; direction: ltr; overflow: visible; }
.history-grid-line { stroke: rgba(218,226,255,.095); stroke-width: 1; vector-effect: non-scaling-stroke; }
.history-axis-line { stroke: rgba(218,226,255,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.history-axis-text { fill: rgba(226,231,255,.5); font: 10px Inter,sans-serif; }
.history-axis-title { fill: rgba(226,231,255,.65); font: 600 10px Inter,sans-serif; letter-spacing: .025em; }
.history-chart text { stroke: none; }
.history-area { fill: var(--series-color); stroke: none; opacity: .055; pointer-events: none; }
.history-line { fill: none; stroke: var(--series-color); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px color-mix(in srgb,var(--series-color) 32%,transparent)); }
.history-point { fill: #0d1531; stroke: var(--series-color); stroke-width: 2.5; vector-effect: non-scaling-stroke; cursor: pointer; transition: r .15s,fill .15s; }
.history-point:hover,.history-point:focus { r: 6.5; fill: var(--series-color); outline: none; }
.history-hover-guide { stroke: rgba(226,231,255,.35); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.history-tooltip { position: absolute; z-index: 5; min-width: 150px; max-width: 220px; padding: 10px 12px; border: 1px solid rgba(117,158,255,.24); border-radius: 9px; background: rgba(3,8,29,.96); color: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.36); font-size: 11px; line-height: 1.45; pointer-events: none; transform: translate(-50%,calc(-100% - 12px)); }
.history-tooltip strong,.history-tooltip span,.history-tooltip b { display: block; }
.history-tooltip strong { margin-bottom: 2px; font-size: 11px; }
.history-tooltip span { color: var(--product-muted); font-size: 9px; }
.history-tooltip b { margin-top: 5px; color: var(--tooltip-color,var(--product-blue-bright)); font-size: 13px; }
.history-chart-note { margin: 14px 0 0; color: var(--product-muted); font-size: 11px; text-align: center; }
.history-empty { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 30px; border: 1px dashed rgba(117,158,255,.25); border-radius: 15px; background: rgba(93,143,255,.04); color: var(--product-muted); }
.history-empty > svg { width: 35px; height: 35px; flex: 0 0 auto; color: var(--product-blue-bright); }
.history-empty strong { display: block; margin-bottom: 4px; color: #fff; }
.history-empty p { margin: 0; font-size: 12px; }
.product-footer { position: relative; z-index: 2; width: 100%; max-width:none; min-height: 108px; margin: 0 auto; display: grid; grid-template-columns: 165px 1fr auto; align-items: center; gap: 24px; padding: 30px max(32px,calc((100% - 1216px)/2)); border-top: 1px solid var(--product-line); background: rgba(5,9,20,.7); color: rgba(220,225,248,.64); }
.product-footer nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; font-size: 12px; }
.product-footer nav a { transition: color .2s; }
.product-footer nav a:hover,.product-footer nav a:focus-visible { color: #fff; outline: none; }
.product-footer p { margin: 0; font-size: 11px; white-space: nowrap; }
@media (max-width: 1050px) {
  .product-overview { grid-template-columns: minmax(0,1fr) minmax(340px,.9fr); gap: 28px; }
  .product-visual { min-height: 480px; padding: 38px; }
  .comparison-table th,.comparison-table td { padding-inline: 12px; }
  .product-footer { grid-template-columns: 165px 1fr; }
  .product-footer p { grid-column: 1/-1; text-align: center; }
}
@media (max-width: 820px) {
  .product-main { padding: 28px 20px 70px; }
  .product-overview { grid-template-columns: 1fr; margin-bottom: 64px; }
  .product-visual { min-height: 430px; }
  .product-summary h1 { font-size: 42px; }

  /* The retailer table becomes a stack of comparison cards. */
  .comparison-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .comparison-table,.comparison-table tbody { display: block; }
  .comparison-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .comparison-table tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 0 14px;
    margin-bottom: 12px;
    padding: 15px 16px 16px;
    border: 1px solid var(--product-line);
    border-radius: 16px;
    background: rgba(11,17,40,.76);
    box-shadow: 0 14px 32px rgba(0,0,0,.2);
  }
  .comparison-table tbody tr:hover { background: rgba(11,17,40,.76); }
  .comparison-table tbody tr.best-row {
    border-color: rgba(25,215,162,.4);
    background: linear-gradient(150deg,rgba(25,215,162,.11),rgba(11,17,40,.86) 58%);
    box-shadow: inset 3px 0 0 var(--product-green),0 14px 34px rgba(25,215,162,.1);
  }
  [dir="rtl"] .comparison-table tbody tr.best-row { box-shadow: inset -3px 0 0 var(--product-green),0 14px 34px rgba(25,215,162,.1); }
  .comparison-table td { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0; border: 0; }
  .comparison-table td::before { display: none; }

  /* Row 1 — card header: logo, retailer, cheapest badge. */
  .comparison-table td:first-child {
    grid-column: 1/-1;
    grid-row: 1;
    margin-bottom: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .retailer-cell { width: 100%; min-width: 0; gap: 12px; }
  .retailer-logo { width: 40px; height: 40px; border-radius: 11px; }
  .retailer-cell > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .retailer-cell strong { font-size: 14.5px; overflow-wrap: anywhere; }
  .retailer-cell small { flex: 0 0 auto; margin-top: 0; }

  /* Row 2 — the price leads, the change sits beside it. */
  .comparison-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .comparison-table td:nth-child(3) { grid-column: 2; grid-row: 2; align-items: flex-end; }
  .price-stack { min-width: 0; gap: 2px; }
  .current-price { font-family: "Plus Jakarta Sans",Inter,sans-serif; font-size: 23px; letter-spacing: -.035em; }
  .previous-price-line { gap: 6px; }
  .previous-price-line del { font-size: 11.5px; }
  .shipping-price { margin-top: 3px; font-size: 10.5px; }
  .table-change { padding: 6px 10px; font-size: 11px; }
  /* An untracked previous price has nothing to compare, so the card drops both placeholders. */
  .previous-price-line:has(.previous-price-missing) { display: none; }
  .comparison-table td:nth-child(3) .missing-price { display: none; }

  /* Row 3 — stock status stays explicit, including unconfirmed offers. */
  .comparison-table td:nth-child(4) { grid-column: 1; grid-row: 3; margin-top: 13px; }
  .comparison-table .availability {
    padding: 6px 11px;
    border: 1px solid var(--product-line);
    border-radius: 999px;
    background: rgba(145,154,184,.08);
    font-size: 11px;
    font-weight: 650;
  }
  .comparison-table .availability.in-stock { border-color: rgba(25,215,162,.26); background: rgba(25,215,162,.08); }
  .comparison-table .availability.unavailable { border-color: rgba(255,102,113,.26); background: rgba(255,102,113,.08); }
  .freshness { font-size: 11px; }

  /* Row 4 — full-width call to action. */
  .comparison-table td:last-child { grid-column: 1/-1; grid-row: 4; align-items: stretch; margin-top: 15px; }
  .retailer-action { width: 100%; height: 46px; border-radius: 12px; font-size: 12px; }
  .retailer-action svg { width: 15px; height: 15px; }

  .history-chart-wrap { height: 330px; }
  .product-footer { display: flex; flex-direction: column; justify-content: center; padding: 35px 20px; }
}
@media (max-width: 560px) {
  .product-breadcrumb a:nth-of-type(2),.product-breadcrumb svg:nth-of-type(2) { display: none; }
  .product-main { padding-inline: 16px; }
  .product-overview { gap: 24px; }
  .product-visual { min-height: 330px; padding: 35px 24px; border-radius: 17px; }
  .product-visual img { max-height: 270px; }
  .product-summary h1 { font-size: 34px; }
  [dir="rtl"] .product-summary h1 { font-size: 31px; }
  .best-price-panel { padding: 20px; }
  .buy-advice { padding: 12px 13px; }
  .advice-breakdown { grid-template-columns: 1fr 1fr; padding: 15px; }
  .best-price-value { font-size: 34px; }
  .comparison-heading { align-items: flex-start; }
  .comparison-heading > p { padding-top: 8px; white-space: nowrap; }
  .comparison-table tr { gap: 0 10px; padding: 14px 14px 15px; border-radius: 15px; }
  .comparison-table td:first-child { margin-bottom: 12px; padding-bottom: 12px; }
  .retailer-logo { width: 36px; height: 36px; border-radius: 10px; }
  .retailer-cell { gap: 10px; }
  .retailer-cell strong { font-size: 13.5px; }
  .current-price { font-size: 21px; }
  .comparison-table td:nth-child(4) { margin-top: 12px; }
  .comparison-table td:last-child { margin-top: 14px; }
  .retailer-action { height: 44px; }
  .price-history-section { margin-top: 64px; }
  .product-main > section.recent-price-insight { margin-top: 40px; }
  .history-heading { align-items: flex-start; }
  .history-heading > p { padding-top: 8px; text-align: end; }
  .history-panel { padding: 16px 12px 14px; }
  .history-legend { gap: 4px 16px; padding-inline: 5px; }
  .history-legend button { min-height: 44px; padding-block: 10px; }
  .history-chart-wrap { height: 300px; }
  .product-footer nav { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-currency-column { animation: none; }
  .product-visual img,.best-price-action,.retailer-action { transition: none; }
}

/* Product pages load their own stylesheet, independently of search results. */
.product-page .public-pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 8px;
  border: 1px solid var(--product-line); border-radius: 16px;
  background: var(--product-panel); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.product-page .public-pagination > a,
.product-page .public-pagination > span[aria-disabled] {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; min-height: 44px; padding: 10px 16px;
  border: 1px solid rgba(117,158,255,.25); border-radius: 10px;
  background: rgba(93,143,255,.1); color: var(--product-blue-bright);
  font-size: 13px; font-weight: 700;
}
.product-page .public-pagination > a:hover { background: rgba(93,143,255,.22); border-color: var(--product-blue); }
.product-page .public-pagination > a:focus-visible { outline: 2px solid var(--product-blue); outline-offset: 3px; }
.product-page .public-pagination > span[aria-disabled] { opacity: .4; }
.product-page .public-pagination > span[aria-current] {
  padding-inline: 8px; color: var(--product-muted); font-size: 12px;
  font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .product-page .public-pagination { width: 100%; gap: 4px; padding: 6px; border-radius: 14px; }
  .product-page .public-pagination > a,
  .product-page .public-pagination > span[aria-disabled] { min-width: 72px; padding-inline: 10px; font-size: 12px; }
  .product-page .public-pagination > span[aria-current] { flex: 1; padding-inline: 2px; }
  .comparison-table td:nth-child(4) { grid-column: 1/-1; }
  .comparison-heading { gap: 12px; flex-wrap: wrap; }
}
