:root {
  color-scheme: light;
  --ink: #292348;
  --muted: #645e75;
  --purple: #6553c8;
  --purple-dark: #5140ae;
  --lavender: #e9e2ff;
  --mint: #7ddcc3;
  --cream: #fffdf7;
  --line: #ded9e9;
  --soft: #f6f3fb;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 0.9375rem; line-height: 1.55; background: var(--cream); }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button, select, input { min-height: 44px; }
button { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px 16px; font-weight: 650; }
button:hover:not(:disabled) { border-color: var(--purple); background: #f7f4ff; }
button:disabled { cursor: default; opacity: .5; }
input, select { background: #fff; border: 1px solid #aaa3bc; border-radius: 10px; padding: 10px 12px; max-width: 100%; }
input::placeholder { color: #766f87; opacity: 1; }
input[type=checkbox] { accent-color: var(--purple); width: 20px; height: 20px; min-height: auto; flex-shrink: 0; margin: 0; }
select { padding-right: 30px; }
a { color: var(--purple-dark); text-underline-offset: 3px; }
button, a.buy, .site-nav a { transition: background .16s ease, border-color .16s ease, transform .16s ease; }
:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: 3px solid var(--purple-dark); outline-offset: 6px; border-radius: 5px; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: 1.75rem; }
time { font-variant-numeric: tabular-nums; }
.page-width { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 20px; top: -100px; background: white; padding: 12px; z-index: 20; border-radius: 8px; }
.skip:focus { top: 12px; }
.small { font-size: 0.8125rem; }

/* One header on every page: brand, the three main destinations and, on Offers, the Saved toggle. */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.5rem; font-weight: 800; letter-spacing: -.055em; }
.brand-icon { width: 42px; height: 42px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.site-nav a:hover { background: #f1ecfb; }
.site-nav a[aria-current=page] { background: var(--lavender); color: var(--purple-dark); }
.saved-button { display: flex; align-items: center; gap: 8px; background: transparent; border-color: transparent; font-size: 0.875rem; }
.saved-button::before { content: '♡'; font-size: 1.5rem; font-weight: 500; line-height: 1; }
.saved-button[aria-pressed=true] { background: var(--lavender); border-color: #b6a4ec; }
.saved-button[aria-pressed=true]::before { content: '♥'; color: var(--purple); }

/* Offers page copy sits below the live band (styles at the end of this file). */
.eyebrow { font-size: 0.75rem; letter-spacing: .17em; font-weight: 750; margin-bottom: 12px; color: #645283; }
.eyebrow span { font-size: 0.9375rem; margin-right: 5px; color: var(--purple); }
h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -.055em; font-weight: 800; }

.search-panel { position: relative; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px 6px; box-shadow: 0 5px 18px #39236905; }
.search-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.search-topline h2 { font-size: 0.9375rem; letter-spacing: -.01em; font-weight: 650; }
.country { display: inline-flex; flex-wrap: wrap; border: 1px solid #e5e0ed; background: #f6f3fa; border-radius: 13px; padding: 4px; gap: 3px; }
.country button { border: 1px solid transparent; background: transparent; min-height: 44px; padding: 8px 15px; border-radius: 9px; font-size: 0.8125rem; }
.country button span { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-left: 5px; }
.country button[aria-pressed=true] { background: var(--purple); color: white; border-color: var(--purple); box-shadow: 0 2px 4px #44328314; }
.country button[aria-pressed=true] span { color: white; opacity: .85; }
#search-form { display: flex; align-items: stretch; gap: 10px; }
.search-field { min-width: 0; flex: 1; position: relative; }
.search-field svg { position: absolute; left: 18px; top: 17px; color: #807491; pointer-events: none; }
#query, .search-field input { width: 100%; min-height: 56px; border-radius: 13px; background: #fcfbff; padding: 13px 15px 13px 51px; border-color: #c3b9d8; font-size: 1rem; }
.primary { background: var(--purple); color: white; border-color: var(--purple); }
.primary:hover:not(:disabled) { background: var(--purple-dark); color: white; border-color: var(--purple-dark); }
#search-submit { min-width: 120px; border-radius: 13px; }
.browse-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-block: 12px 14px; }
.quick-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.quick-searches > span { font-size: 0.75rem; color: var(--muted); padding-right: 2px; }
.quick-searches button { border-color: transparent; background: #f5f2fa; border-radius: 22px; font-size: 0.8125rem; padding: 7px 14px; min-height: 40px; font-weight: 550; }
#filter-panel { text-align: left; }
summary { min-height: 44px; padding: 11px 0; font-weight: 650; }
#filter-panel > summary { display: flex; align-items: center; gap: 8px; list-style: none; font-size: 0.8125rem; min-height: 40px; padding: 8px 12px; border-radius: 10px; }
#filter-panel > summary:hover { background: #f5f2fa; }
summary::-webkit-details-marker { display: none; }
.details-chevron { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .16s ease; }
details[open] .details-chevron { transform: rotate(180deg); }
#filter-panel[open] { flex-basis: 100%; }
#filter-panel[open] > summary { justify-content: flex-end; width: max-content; margin-left: auto; margin-top: -54px; }
.filter-content { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
label { display: block; font-size: 0.75rem; font-weight: 650; margin-bottom: 5px; }
.filters select, .filters input[type=number] { width: 100%; font-size: 0.8125rem; }
.check { display: flex; align-items: center; gap: 10px; align-self: end; min-height: 44px; margin-bottom: 0; font-size: 0.8125rem; font-weight: 500; cursor: pointer; }
.text-button { border: 0; background: transparent; color: var(--purple-dark); text-decoration: underline; text-underline-offset: 3px; font-size: 0.8125rem; padding: 9px 6px; }
.text-button:hover:not(:disabled) { background: #f5f2fa; }
.filter-content > .text-button { margin-top: 10px; }
.active-filter-row { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; }
#active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
#active-filters button { background: var(--lavender); border-color: #d5c8f4; font-size: 0.8125rem; padding: 7px 12px; min-height: 40px; border-radius: 22px; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
#clear-active { flex-shrink: 0; }

.results-section { padding-block: 28px 20px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-kicker { font-size: 0.75rem; letter-spacing: .18em; font-weight: 750; color: var(--purple); margin-bottom: 6px; }
#results-heading { font-size: 1.562rem; }
#result-count { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.sort-field { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.sort-field label { margin: 0; white-space: nowrap; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.sort-field select { font-size: 0.8125rem; border-color: var(--line); background: white; max-width: 240px; }
.connection { color: var(--muted); font-size: 0.8125rem; margin-top: 10px; }
.connection.danger, .notice.danger { color: #8b3228; background: #fff0e9; border-radius: 10px; padding: 11px 14px; }
.connection.warning { color: #715316; }
.notice { margin-block: 14px; padding: 14px; border-radius: 12px; }
.notice.warning { background: #fff3cd; color: #6a5212; }
.results-note { color: var(--muted); font-size: 0.8125rem; margin-top: 2px; margin-bottom: 16px; }
.saved-note { background: #f0eafd; color: #594880; border: 1px solid #dfd2f5; padding: 14px; border-radius: 12px; font-size: 0.8125rem; margin-block: 14px; }

/* Offer cards: product-type picture beside the title, then store, price, stock and actions. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-card { align-self: start; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 3px 10px #29234803; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.offer-card:hover { border-color: #bdb0d9; box-shadow: 0 8px 24px #503b8110; transform: translateY(-2px); }
.card-product { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 12px; }
.card-product-copy { flex: 1; min-width: 0; }
.product-illustration { flex: 0 0 68px; display: flex; justify-content: center; align-items: center; width: 68px; height: 68px; background: #f7f4fe; border-radius: 14px; overflow: hidden; }
.product-illustration.format-box { background: #f3f0fd; }
.product-illustration.format-pack { background: #eef9f3; }
.product-illustration.format-tin { background: #fff7e7; }
.product-illustration.format-cards { background: #fff0eb; }
.product-illustration img { width: 58px; height: 44px; object-fit: contain; }
.product-illustration.format-generic img { width: 34px; height: 34px; }
.product-title { font-size: 0.9375rem; line-height: 1.4; font-weight: 750; letter-spacing: -.015em; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.card-store { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eeeaf3; }
.card-store strong { font-size: 0.8125rem; font-weight: 650; }
.seller { color: #66503d; background: #fff5e9; border-radius: 6px; padding: 5px 7px; font-size: 0.8125rem; margin-top: 5px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.price-detail { margin-top: 10px; }
.price { font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -.045em; }
.price-change { display: inline-block; font-size: 0.8125rem; margin-top: 4px; padding: 3px 7px; background: #eff6f1; color: #37614a; border-radius: 6px; }
.price-change.up { background: #fff2e6; color: #875313; }
.price-more { font-size: 0.8125rem; }
.price-more summary { color: var(--purple-dark); font-weight: 550; min-height: 44px; display: flex; align-items: center; padding: 0; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
.price-more summary::after { content: ' +'; text-decoration: none; white-space: pre; }
.price-more[open] summary::after { content: ' −'; }
.price-more p, .price-more time { font-size: 0.8125rem; margin-block: 4px; }
.price-more time { display: block; }
.price-more a { display: inline-flex; align-items: center; min-height: 44px; }
.card-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 10px; margin-top: auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 9px; font-weight: 600; font-size: 0.8125rem; line-height: 1.4; color: #576072; background: #f0f2f5; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.in_stock { color: #23634f; background: #e6f7ee; }
.pill.stale { color: #76541c; background: #fff3d8; }
.pill.invalid, .pill.out_of_stock { color: #7e3e43; background: #fbeaec; }
.pill.preorder, .pill.pre_order, .pill.backorder { color: #5d4389; background: #eee7fa; }
.stamp { color: var(--muted); font-size: 0.8125rem; }
.card-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-top: 12px; }
.buy { display: flex; justify-content: center; align-items: center; flex: 1 1 120px; min-height: 44px; padding: 10px 8px; border: 1px solid #dacef1; background: #f0eafd; color: #5140a0; text-decoration: none; border-radius: 10px; font-size: 0.8125rem; font-weight: 700; }
.buy:hover { background: var(--purple); color: white; border-color: var(--purple); }
.watch { min-width: 76px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; font-size: 0.8125rem; font-weight: 600; border-radius: 10px; }
.watch svg { width: 15px; height: 15px; }
.watch[aria-pressed=true] { color: var(--purple-dark); background: #f0eafd; border-color: #c7b9e9; }
.watch[aria-pressed=true] svg { fill: #c8b6ef; }
.radar-track { font-size: 0.8125rem; padding: 7px 12px; border-radius: 10px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-top: 24px; }
.pagination button { font-size: 0.8125rem; min-width: 104px; }
#page-count { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.results-actions { display: flex; justify-content: center; margin-top: 6px; }
.empty, .loading-state { text-align: center; padding: 42px 25px; border: 1px dashed #cfc3e6; border-radius: 20px; background: #faf8ff; }
.empty h3 { font-size: 1.5rem; margin-block: 8px 10px; }
.empty p { color: var(--muted); max-width: 420px; margin-inline: auto; font-size: 0.875rem; }
.empty button { margin-top: 20px; }
.loading-state { color: #655c79; font-size: 0.875rem; }
.loading-spark { display: block; color: var(--purple); font-size: 2.5rem; margin-bottom: 10px; }

.good-to-know { margin-top: 26px; padding-block: 26px 8px; border-top: 1px solid var(--line); }
.good-to-know-intro { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.small-star { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #fff0b3; color: #85701f; border-radius: 13px; font-size: 1.562rem; }
.good-to-know h2 { font-size: 1.188rem; letter-spacing: -.02em; }
.good-to-know-intro p { color: var(--muted); font-size: 0.8125rem; margin-top: 4px; }
.help-panel { border-bottom: 1px solid var(--line); }
.help-panel > summary { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; padding: 14px 4px; list-style: none; }
.help-panel > summary::after { content: '+'; margin-left: auto; font-size: 1.25rem; font-weight: 400; }
.help-panel[open] > summary::after { content: '−'; }
.help-content { padding: 0 4px 22px; font-size: 0.8125rem; color: var(--muted); }
.help-content > p, #source-health > p { max-width: 850px; margin-top: 9px; }
.help-content strong { color: #4d4268; }
.source-health-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin-block: 14px 0; }
.source-health-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; border-bottom: 1px solid #eee8f5; padding: 10px 0; }
.store-name { color: #4d4268; font-weight: 650; }
.source-country { color: var(--muted); }
.source-state { text-align: right; font-weight: 600; color: #4d4268; }
.source-state.source-success { color: #23634f; }
.source-state.source-partial { color: #74541b; }
.source-state.source-error, .source-state.source-failed { color: #8b3228; }
.source-state.source-not_integrated { color: var(--muted); font-weight: 500; }
.source-time { grid-column: 1 / -1; color: var(--muted); font-size: 0.75rem; }

/* One footer on every page. */
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: start; margin-top: 16px; padding-block: 24px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.footer-about strong { color: #655580; }
.footer-about p { margin-top: 4px; max-width: 520px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 2px; margin-right: -8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--purple-dark); font-weight: 600; }
.footer-nav a[aria-current=page] { color: var(--ink); text-decoration: none; }
.footer-meta { grid-column: 1 / -1; font-size: 0.75rem; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 11px 18px; background: var(--ink); color: white; border-radius: 12px; font-size: 0.8125rem; box-shadow: 0 5px 25px #29234820; max-width: calc(100% - 32px); text-align: center; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { padding-block: 12px 10px; gap: 8px 12px; }
  .brand { font-size: 1.375rem; gap: 8px; }
  .brand-icon { width: 36px; height: 36px; }
  .site-nav { order: 3; width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: #f3effa; border-radius: 14px; }
  .site-nav a { min-height: 44px; padding: 0 6px; font-size: 0.9375rem; }
  .site-nav a[aria-current=page] { background: white; box-shadow: 0 1px 3px #2923481c; }
  .saved-button { font-size: 0.875rem; padding: 8px 10px; }
  .saved-button::before { font-size: 1.375rem; }
  h1 { font-size: 2rem; }
  .eyebrow { letter-spacing: .12em; margin-bottom: 8px; }
  .search-panel { padding: 16px 18px 4px; border-radius: 19px; }
  .search-topline { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; }
  .search-topline h2 { font-size: 0.8125rem; }
  .country { width: fit-content; }
  #query { padding-left: 42px; min-height: 52px; }
  .search-field svg { left: 13px; top: 15px; width: 20px; height: 20px; }
  #search-submit { min-width: 84px; font-size: 0.875rem; padding: 10px 15px; }
  /* Chips scroll on one row beside Filters; when Filters opens, its content takes a full row below. */
  .browse-tools { align-items: center; margin-block: 10px 10px; gap: 6px; }
  #filter-panel { flex: 0 0 auto; min-width: 0; max-width: 100%; }
  #filter-panel[open] { flex-basis: 100%; }
  /* Quick buttons wrap on phones: nothing hides off-screen. */
  .quick-searches { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; gap: 6px; padding-block: 1px; }
  .quick-searches button { flex: 0 0 auto; white-space: nowrap; }
  .quick-searches > span { display: none; }
  .quick-searches button, #active-filters button { min-height: 44px; }
  #filter-panel > summary { min-height: 44px; padding-inline: 8px; }
  #filter-panel[open] > summary { margin-top: 0; margin-left: 0; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .check { flex-wrap: wrap; }
  .check span { min-width: 0; flex: 1 1 100px; overflow-wrap: anywhere; }
  .filter-content { margin-top: 5px; }
  .active-filter-row { align-items: flex-start; gap: 7px; }
  .results-section { padding-top: 22px; }
  .results-toolbar { align-items: flex-start; gap: 10px; }
  #results-heading { font-size: 1.375rem; }
  .sort-field { align-items: flex-end; flex-direction: column; gap: 3px; }
  .sort-field select { padding: 8px 26px 8px 8px; max-width: 180px; }
  .cards { gap: 12px; }
  .offer-card { padding: 15px 16px; }
  .source-health-list { column-gap: 20px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 22px 26px; }
  .footer-nav { justify-content: flex-start; margin: 0 0 0 -8px; }
}
@media (max-width: 520px) {
  .page-width { width: calc(100% - 28px); }
  .brand { font-size: 1.3rem; }
  .brand-icon { width: 34px; height: 34px; }
  h1 { font-size: 1.625rem; }
  .eyebrow { font-size: 0.6875rem; letter-spacing: .1em; margin-bottom: 6px; }
  .eyebrow span { font-size: 0.75rem; margin-right: 2px; }
  .search-panel { padding: 12px 12px 2px; }
  .search-topline { margin-bottom: 10px; }
  .search-topline h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .country { width: 100%; }
  .country button { flex: 1; font-size: 0.8125rem; padding-inline: 8px; }
  .country button span { margin-left: 4px; }
  #search-form { gap: 7px; }
  #query { padding-left: 36px; padding-right: 6px; }
  .search-field svg { width: 17px; height: 17px; left: 12px; top: 17px; }
  #search-submit { min-width: 72px; font-size: 0.8125rem; padding-inline: 12px; }
  .quick-searches button { font-size: 0.8125rem; padding: 6px 11px; }
  #filter-panel > summary { gap: 5px; padding-inline: 6px; }
  #filter-panel > summary svg { width: 15px; height: 15px; }
  .results-toolbar { align-items: center; }
  #results-heading { font-size: 1.25rem; }
  .sort-field select { max-width: 152px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .product-illustration { flex-basis: 60px; width: 60px; height: 60px; }
  .product-illustration img { width: 50px; height: 38px; }
  .price { font-size: 1.625rem; }
  .watch { min-width: 82px; }
  .pagination { gap: 10px; }
  .pagination button { min-width: 92px; padding: 9px; }
  .source-health-list { grid-template-columns: minmax(0, 1fr); }
  .good-to-know h2 { font-size: 1.062rem; }
}
@media (max-width: 350px) {
  h1 { font-size: 1.5rem; }
  .quick-searches button { padding-inline: 8px; }
  #filter-panel > summary svg { display: none; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .results-toolbar { flex-wrap: wrap; }
  .sort-field { flex-direction: row; align-items: center; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .offer-card:hover { transform: none; }
}

.comparison { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; font-size: .8125rem; }
.comparison summary { min-height: 44px; display: flex; align-items: center; color: var(--purple-dark); cursor: pointer; }
.comparison summary::before { content: '+ '; margin-right: 5px; }
.comparison[open] summary::before { content: '− '; }
.comparison ul { padding: 0; list-style: none; }
.comparison li { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.comparison-link { display: flex; align-items: center; min-height: 44px; color: var(--purple-dark); }

/* Help, About, Privacy and Page not found. */
.policy { max-width: 740px; margin: 34px auto 48px; }
.policy h1 { font-size: 2rem; }
.policy h2 { margin-top: 28px; font-size: 1.2rem; }
.policy p, .policy li { margin-top: 14px; }
.policy a { color: var(--purple-dark); }
/* Links inside sentences keep a comfortable tap height without changing line spacing. */
.policy p a, .help-content p a { padding-block: 4px; }
.not-found { text-align: center; }
.not-found img { display: block; margin: 0 auto 18px; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; list-style: none; margin-top: 22px; }
.not-found-links li { margin: 0; }
.not-found-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #dacef1; border-radius: 12px; background: #f0eafd; font-weight: 650; text-decoration: none; }
.not-found-links a:hover { background: var(--purple); color: white; }

.seller-issue { color: #74541b; background: #fff4d9; padding: 6px 8px; border-radius: 6px; font-size: .8125rem; margin-top: 6px; }

/* Stock radar and drops use the same readable, responsive shopping design system. */
.results-topline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.store-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.radar-page { padding-block: 10px 40px; }
.radar-intro { max-width: 860px; padding-block: 16px 24px; }
.radar-intro h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 14px; }
.radar-intro p + p { margin-top: 12px; }
.radar-caveat { color: var(--muted); font-size: .875rem; }
.radar-controls { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); margin-bottom: 20px; }
.radar-options { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-block: 18px 12px; }
.radar-options label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 44px; margin: 0; font-size: .875rem; }
.radar-options .check { font-weight: 600; align-self: center; }
#radar-budget { width: 130px; }
.radar-section { margin-top: 32px; }
.radar-section h2 { margin-bottom: 8px; }
.radar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 18px; }
.radar-target, .radar-event { border: 1px solid var(--line); border-radius: 18px; background: white; padding: 20px; overflow-wrap: anywhere; }
.radar-target { display: flex; flex-direction: column; gap: 8px; }
.radar-target h3, .radar-event h3 { font-size: 1.0625rem; line-height: 1.35; }
.radar-target .eyebrow { margin: 0; letter-spacing: .06em; }
.radar-target button { margin-top: auto; }
.radar-state { font-weight: 700; }
.radar-state.paused { color: #74541b; }
.radar-meta { color: var(--muted); font-size: .8125rem; }
.radar-meta time { display: inline; }
.radar-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.radar-list > .radar-empty { grid-column: 1 / -1; }
.radar-event > * + * { margin-top: 8px; }
.radar-empty { padding: 26px 20px; background: var(--soft); border-radius: 14px; }
#radar-feedback { margin-block: 12px; min-height: 1.5em; }
@media (max-width: 850px) { .radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .radar-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .radar-grid { grid-template-columns: 1fr; } .radar-controls { padding: 16px; } .radar-options { align-items: stretch; flex-direction: column; } .radar-options > * { align-self: stretch; } .radar-options button { width: 100%; } }
.radar-page .radar-controls .country { max-width: 100%; }
.radar-page .radar-options { min-width: 0; }

/* ---------- Home: hero, "Right now" lists ----------
   One message, one button. Everything sits on the same 1120px grid with 16px rhythm. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; padding: 28px 0 8px; }
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-lead { margin-top: 14px; font-size: 1.0625rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.cta { display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: 14px; background: var(--purple); color: #fff; font-weight: 800; font-size: 1.0625rem; text-decoration: none; border: 1px solid var(--purple-dark); transition: background .16s ease, transform .16s ease; }
.cta:hover { background: var(--purple-dark); transform: translateY(-1px); }
.cta svg { stroke-width: 2; }
.text-link { color: var(--purple-dark); font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }
.hero-status { display: block; margin-top: 16px; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.hero-status .live-dot { display: inline-block; vertical-align: middle; margin-right: 8px; margin-top: -2px; }
.hero-latency { margin-top: 4px; font-size: 0.8125rem; color: #23634f; font-weight: 650; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #b9b3cb; flex-shrink: 0; }
.live-dot.on { background: #2bb57f; animation: live-pulse 2.2s ease-out infinite; }
.hero-mascot { width: 260px; height: auto; justify-self: end; animation: scrab-bob 4.5s ease-in-out infinite; }
.hero.pulse .hero-mascot { animation: scrab-hop .6s ease-out 1; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 #2bb57f80; } 70% { box-shadow: 0 0 0 9px #2bb57f00; } 100% { box-shadow: 0 0 0 0 #2bb57f00; } }
@keyframes scrab-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes scrab-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-22px) rotate(-6deg); } 100% { transform: translateY(0); } }
.now-note { margin-top: 2px; font-size: 0.8125rem; color: var(--muted); }
.now-list { list-style: none; margin: 10px 0 0; padding: 0; }
.now-item { padding: 10px 0; border-top: 1px solid #eeeaf6; }
.now-title { display: block; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; min-height: 24px; }
.now-title:hover { text-decoration: underline; }
.now-meta { margin-top: 3px; font-size: 0.8125rem; color: var(--muted); }
.now-label { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 10px; background: #e6f7ee; color: #23634f; font-weight: 700; }
.now-empty { padding: 14px 0 8px; color: var(--muted); font-size: 0.9375rem; }
.search-panel h2 { font-size: 1.25rem; margin-bottom: 12px; }
.results-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.results-toolbar h2 { font-size: 1.25rem; }
.good-to-know h2 { font-size: 1.25rem; margin-bottom: 10px; }
@media (max-width: 1050px) { .now { grid-template-columns: 1fr; gap: 12px; } .hero { grid-template-columns: minmax(0, 1fr) 200px; } .hero-mascot { width: 200px; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 10px; }
  .hero-mascot { display: none; }
  .hero-actions { gap: 8px 14px; margin-top: 14px; }
  .hero-actions .cta { flex: 1 1 100%; justify-content: center; min-height: 52px; }
  .hero h1 { font-size: 2rem; }
  .hero-lead { margin-top: 10px; font-size: 1rem; line-height: 1.45; }
  .hero-status { margin-top: 12px; }
  .now { margin: 14px 0 18px; }
  .now-note { margin-bottom: 2px; }
}
/* Landing copy per market: the Worker sets data-market on <html>. */
.au-only { display: none; }
html[data-market="AU"] .au-only { display: initial; }
html[data-market="AU"] p.au-only { display: block; }
html[data-market="AU"] .sg-only { display: none; }
/* Quick buttons under the search box share one row; the Saved toggle is one of them. */
.quick-searches button[aria-pressed=true] { background: var(--lavender); border-color: #b6a4ec; }
#watch-only::before { content: '♡ '; }
#watch-only[aria-pressed=true]::before { content: '♥ '; color: var(--purple); }

/* Cards line up: the product block takes a fixed minimum height so store, price and actions sit at the
   same height across a row; the actions row is pinned to the bottom. */
@media (min-width: 761px) {
  .offer-card { align-self: stretch; }
  .card-product { min-height: 92px; }
  .card-store { min-height: 40px; }
  .price-detail { flex: 1 1 auto; }
}
.card-stock { margin-top: 8px; }
/* Phones: one column, so the card is compact — no reserved heights, store name right under the title. */
@media (max-width: 760px) {
  .offer-card { align-self: start; padding: 14px 16px; }
  .card-product { min-height: 0; }
  .card-store { min-height: 0; margin-top: 8px; padding-top: 0; border-top: 0; }
  .card-store strong { font-weight: 550; color: var(--muted); }
  .price-detail { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
  .price-detail .price { font-size: 1.375rem; }
  .card-stock { margin-top: 6px; padding-top: 0; }
  .card-actions { margin-top: 10px; }
}
.details-chevron { transform-origin: center; }
/* Market-only links beat the footer's own link rule. */
html:not([data-market="AU"]) .footer-nav a.au-only, html[data-market="AU"] .footer-nav a.sg-only { display: none; }

/* Phone nav links keep a 44px hit area even for short labels; the hero never pushes past the viewport. */
.site-nav a { min-width: 44px; }
.hero-text { min-width: 0; }
.cta { max-width: 100%; white-space: normal; text-align: center; }
#watch-only { min-height: 44px; }
.quick-searches button { min-height: 44px; }

.footer-nav a { min-width: 44px; justify-content: center; }
.hero h1 { overflow-wrap: anywhere; }
@media (max-width: 1050px) { .quick-searches button, #watch-only { min-height: 44px; } }
/* Below desktop, the quick buttons take their own row and More filters sits beneath them: no overlap. */
@media (max-width: 1050px) {
  .browse-tools { flex-wrap: wrap; }
  .quick-searches { flex: 1 1 100%; flex-wrap: wrap; }
  #filter-panel { flex: 1 1 100%; }
  #filter-panel > summary { width: fit-content; }
  #filter-panel[open] > summary { margin-top: 0; margin-left: 0; justify-content: flex-start; }
}

/* On phones each list shows four items so the search box stays within reach. */

/* Product pictures: the shop's own picture replaces the format icon once it has loaded. */
.product-illustration { position: relative; }
.product-illustration .product-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; opacity: 0; transition: opacity .25s ease; }
.product-illustration.has-photo .product-photo { opacity: 1; }
.product-illustration.has-photo > img:not(.product-photo) { visibility: hidden; }
@media (max-width: 760px) { .product-illustration { flex-basis: 76px; width: 76px; height: 76px; } }
.now-item { display: grid; grid-template-columns: 1fr; gap: 2px 12px; align-content: start; }
.now-item.has-photo { grid-template-columns: 56px minmax(0, 1fr); }
.now-item > * { min-width: 0; overflow-wrap: anywhere; }
.now-item.has-photo > :not(.now-photo) { grid-column: 2; }
.now-photo { grid-row: 1 / span 6; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: white; border: 1px solid var(--line); }
.now-item:not(.has-photo) .now-photo { display: none; }

.now-list { min-height: 64px; }
#filter-panel > summary { flex-wrap: nowrap; white-space: nowrap; }

/* One page: a sticky bar of section links under the hero, then the four feeds, then shop prices. */
.section-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 6px; padding: 8px 0; background: #fffdf7f0; backdrop-filter: blur(6px); }
.section-bar-label { font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.section-bar a, .section-bar button { flex: 0 1 auto; max-width: 100%; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 20px; background: #f5f2fa; border: 1px solid transparent; color: var(--ink); font-size: 0.8125rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-bar a:hover, .section-bar button:hover { background: #ece6f8; }
.section-bar button[aria-pressed=true] { background: var(--lavender); border-color: #b6a4ec; color: var(--purple-dark); }
.feed { padding: 16px 0 6px; scroll-margin-top: 64px; }
.feed .results-toolbar { align-items: baseline; }
.feed-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 48px; }
.feed .now-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; min-width: 0; }
.feed .now-empty { grid-column: 1 / -1; padding: 12px 0 4px; }
.feed-more { margin-top: 10px; }
.now-estimate { margin-top: 6px; font-size: 0.8125rem; padding: 8px 10px; background: #f7f4fe; border-radius: 10px; line-height: 1.45; }
.now-estimate strong { color: var(--purple-dark); }
.now-note-line { margin-top: 4px; font-size: 0.8125rem; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.now-countdown { margin-top: 4px; font-weight: 800; color: var(--purple-dark); font-size: 0.9375rem; }
.now-countdown.now { color: #0f6b4f; }
.now-countdown.past { color: var(--muted); font-weight: 650; }
.now-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.now-follow { min-height: 36px; padding: 5px 12px; border-radius: 10px; font-size: 0.8125rem; font-weight: 600; }
.now-follow[aria-pressed=true] { color: var(--purple-dark); background: #f0eafd; border-color: #c7b9e9; }
.now-label.release { background: #eee7fa; color: #5d4389; }
.now-label.soon { background: #e6f7ee; color: #23634f; }
.search-panel .now-note { margin: 4px 0 12px; }
@media (max-width: 760px) {
  .feed-list { grid-template-columns: 1fr; gap: 8px; }
  /* On phones the bar wraps to two rows, so it stays in flow rather than covering content while sticky. */
  .section-bar { margin: 6px 0 2px; position: static; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-right: 28px; mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .section-bar::-webkit-scrollbar { display: none; }
  .section-bar > * { flex: 0 0 auto; scroll-snap-align: start; }
  .section-bar a, .section-bar button, .now-follow { min-height: 44px; }
  .feed { scroll-margin-top: 58px; }
}
@media (max-width: 1050px) { .feed-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product page */
.product-page { padding-block: 6px 40px; }
.crumbs { margin: 8px 0 14px; color: var(--muted); }
.crumbs a { color: var(--purple-dark); }
.product-hero { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.product-picture { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.product-picture img { width: 100%; height: 100%; object-fit: contain; }
.product-picture img.fallback { width: 120px; height: 120px; opacity: .6; }
.product-copy h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.product-shop { margin-top: 8px; }
.product-price { margin-top: 10px; font-size: 2rem; }
.product-live { margin-top: 6px; color: var(--muted); min-height: 1.4em; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.product-actions .buy { flex: 0 1 auto; padding-inline: 16px; }
.product-actions .cta { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; }
.variant-list, .shop-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.variant-list li, .shop-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.shop-row { display: flex; flex: 1 1 240px; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; min-height: 32px; }
.shop-row-name { flex: 1; font-weight: 650; }
.small-buy { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; }
.product-section { margin-top: 28px; }
.product-section h2 { font-size: 1.25rem; margin-bottom: 8px; }
.product-signals { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .product-hero { grid-template-columns: 1fr; gap: 14px; }
  .product-picture { max-width: 260px; margin: 0 auto; padding: 12px; }
  .product-actions .buy, .product-actions .cta { flex: 1 1 100%; justify-content: center; }
}
/* Card titles are links to the product page: a comfortable tap area, no underline until hover. */
.product-title a { color: inherit; text-decoration: none; display: inline-block; padding-block: 2px; min-height: 24px; }
.product-title a:hover { text-decoration: underline; }
@media (max-width: 760px) { .product-title a { min-height: 44px; display: flex; align-items: center; } }
@media (max-width: 760px) { .radar-track, .watch { min-height: 44px; } }
@media (max-width: 760px) { .feed-list { grid-template-columns: 1fr; } }
.likely-heading { font-size: 0.9375rem; margin-top: 16px; color: var(--muted); font-weight: 650; }
.shop-row-title { font-weight: 500; color: var(--muted); }
/* Focus rings for keyboard users only; a tap or click on a heading should not draw a box. */
h2:focus:not(:focus-visible), h1:focus:not(:focus-visible) { outline: none; }
#filter-panel > summary { width: max-content; max-width: 100%; }
/* Collector tags: set, product type, language. */
.now-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: #f3effa; color: #5140a0; }
.tag:first-child { background: #ede7fb; }
.product-copy .now-tags { margin-top: 8px; }
/* The moment: a restock that arrived while the page was open gets one green sweep; the chip gets a dot. */
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.feed .now-item.just-now { border-color: #8fd3b0; background-image: linear-gradient(100deg, transparent 30%, #e6f7ee 50%, transparent 70%); background-size: 220% 100%; animation: sweep 1.4s ease-out 1; }
.section-bar a.has-new { position: relative; }
.section-bar a.has-new::after { content: ''; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #1f9d64; box-shadow: 0 0 0 2px #fff; }
@media (prefers-reduced-motion: reduce) { .feed .now-item.just-now { animation: none; background-image: none; background: #f0faf4; } }
.hero-latency strong { font-weight: 700; }
/* Stats page */
.stats-page { padding-block: 6px 40px; }
.stats-page h1 { font-size: 1.75rem; }
.stats-page section { margin-top: 24px; }
.stats-page h2 { font-size: 1.125rem; margin-bottom: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi strong { font-size: 1.5rem; letter-spacing: -.02em; }
.kpi span { font-size: 0.8125rem; color: var(--muted); }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats-table th, .stats-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eeeaf6; }
.stats-table th { font-size: 0.75rem; color: var(--muted); font-weight: 650; }
.stats-table td:last-child, .stats-table th:last-child { text-align: right; }
/* Region switcher in the header: flag + code, the current one filled. Links go to each market's own site. */
.region { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.region-link { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border-radius: 9px; font-size: 0.8125rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.region-link .flag { font-size: 1rem; line-height: 1; }
.region-link:hover { background: #f5f2fa; color: var(--ink); }
.region-link[aria-current=page] { background: var(--lavender); color: var(--purple-dark); }
@media (max-width: 760px) { .region { order: 2; margin-left: auto; padding: 2px; } .region-link { min-height: 44px; min-width: 44px; } .site-nav { order: 3; } }
/* Unlock card: the first page of a feed is open; the rest asks for an email or a Telegram tap. */
.unlock { margin-top: 10px; padding: 16px 18px; border: 1px solid #d9cff3; border-radius: 16px; background: linear-gradient(135deg, #f7f4fe, #fffdf7); }
.unlock h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.unlock-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.unlock-form input { flex: 1 1 220px; min-height: 46px; border-radius: 12px; padding: 10px 14px; font-size: 1rem; }
.unlock-form .primary { min-height: 46px; padding-inline: 18px; }
.unlock .small { margin-top: 8px; }
.unlock-note:empty { display: none; }
.dev-banner { margin: 0; padding: 4px 16px; background: #fff3cd; color: #5c4400; font-size: 0.875rem; text-align: center; }
.dev-banner p { margin: 0; }
.dev-banner a { color: inherit; display: inline-block; padding: 6px 2px; }
