/* TAKHFIF / M5M31 — Unified cobalt commerce design system.
 * One source of brand colors across home, search, catalog, product, alerts and account.
 * A green tone is reserved exclusively for verified positive price/stock states.
 * This overrides legacy public/discovery CSS without altering their functional contracts.
 */
:root {
    --bg: #f7f9fe;
    --surface: #ffffff;
    --surface-soft: #f2f5fc;
    --text: #101d39;
    --muted: #64728a;
    --border: #dfe6f3;
    --primary: #294cdb;
    --primary-dark: #1d3fc4;
    --positive: #15734d;
    --positive-bg: #e8f7ef;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow: 0 14px 40px rgba(16, 29, 57, .045);
    --shadow-sm: 0 4px 20px rgba(16, 29, 57, .045);
    --focus-ring: 0 0 0 4px rgba(41, 76, 219, .18);
    --t-accent-soft: #e7edff;
    --t-ink: #101d39;
    --t-muted: #64728a;
    --t-line: #dfe6f3;
}
html { scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--text); line-height: 1.7; }
.shell { width: min(1240px, calc(100% - 64px)); }
:where(main,.shell,.hero-card,.product-summary,.search-v2-content,.opportunity-card) { min-width: 0; }
:where(button,input,textarea,select) { font: inherit; }
:where(a,button,input,textarea,select,summary):focus-visible { outline: 3px solid #294cdb; outline-offset: 3px; }
:where(h1,h2,h3) { letter-spacing: -.025em; color: var(--t-ink); }
:where(p,h1,h2,h3,strong,small,span) { overflow-wrap: break-word; }
:where(button,a,input) { -webkit-tap-highlight-color: transparent; }
button:not(:disabled) { cursor: pointer; }
.skip-link { z-index: 250; }
::selection { background: var(--t-accent-soft); color: var(--t-ink); }

/* Navigation: almost invisible chrome with an unmistakable identity. */
.site-header, .is-home .site-header { position: sticky; top: 0; z-index: 110; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--t-line); backdrop-filter: blur(18px); }
.site-header__inner, .is-home .site-header__inner { min-height: 76px; gap: clamp(14px,2.7vw,36px); }
.brand { gap: 10px; flex: 0 0 auto; }
.brand__mark, .is-home .brand__mark { width: 46px; height: 46px; border-radius: 15px; background: var(--primary); color: #fff; box-shadow: none; font-size: 26px; font-weight: 900; }
.brand strong, .is-home .brand strong { font-size: 24px; line-height: 1.15; letter-spacing: -.05em; color: var(--t-ink); }
.brand small, .is-home .brand small { font-size: 10px; color: var(--t-muted); margin-top: 4px; }
.site-nav, .is-home .site-nav { gap: 3px; }
.site-nav a, .is-home .site-nav a { min-height: 44px; padding: 0 14px; border-radius: 100px; font-size: 13px; font-weight: 700; color: #4d5d7a; }
.site-nav a:hover, .site-nav a.is-active, .is-home .site-nav a.is-active { color: var(--primary-dark); background: #edf2ff; }
.site-search { max-width: 480px; border: 1px solid var(--t-line); border-radius: 100px; background: #f8faff; }
.site-search input { font-size: 14px; color: var(--t-ink); }
.site-search button { color: #fff; background: var(--primary); border-radius: 100px; }
.site-footer, .is-home .site-footer { margin-top: 56px; background: #f3f6ff; border-top: 1px solid var(--t-line); }
.site-footer__inner, .is-home .site-footer__inner { min-height: 112px; padding-block: 20px; }
.site-footer__inner strong, .is-home .site-footer__inner strong { color: var(--t-ink); font-size: 16px; }
.site-footer__inner p, .is-home .site-footer__inner p { font-size: 12px; color: var(--t-muted); }
.site-footer__nav a { font-size: 12px; color: #4d5d7a; }
.mobile-tabbar { display: none; }


/* A compact but brand-defining home masthead. All text remains semantic/crawlable. */
.home-v3-hero { position: relative; isolation: isolate; overflow: visible; border: 0; background: radial-gradient(ellipse at 15% 40%,#edf3ff 0%,transparent 45%),radial-gradient(ellipse at 90% 25%,#f0f4ff 0%,transparent 44%),#fbfcff; color: #101d39; }
.home-v3-hero::before { display: none; }
.home-v3-hero::after { display: none; }
.home-v3-hero__inner { width: min(1120px,calc(100% - 48px)); min-height: 0; padding: 74px 0 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.home-v3-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 0; border: 0; background: transparent; color: #244dde; font-size: 13px; font-weight: 750; }
.home-v3-hero__eyebrow > span { display: none; }
.home-v3-hero h1 { max-width: none; margin: 22px 0 0; color: #101d39; font-weight: 900; font-size: clamp(27px,4.35vw,58px); line-height: 1.35; letter-spacing: -.045em; text-align: center; white-space: nowrap; }
.home-v3-hero__accent { color: #294cdb; }
.home-v3-hero__lead { margin-top: 12px; color: #64728a; font-size: clamp(14px,1.45vw,18px); line-height: 1.8; text-align: center; }
.home-v3-hero .public-search { width: min(880px,100%); height: 70px; margin: 29px auto 0; position: relative; border: 1px solid #d9e1ef; border-radius: 19px; background: #fff; box-shadow: 0 14px 42px rgba(15,37,90,.065); }
.search-v2-hero .public-search { width: min(720px,100%); height: 70px; margin-top: 28px; border: 1px solid #d9e3f5; border-radius: 20px; background: #fff; box-shadow: 0 18px 38px rgba(0,0,0,.12); }
.home-v3-hero .public-search:focus-within { transform: none; border-color: #294cdb; box-shadow: 0 0 0 4px rgba(41,76,219,.12),0 14px 42px rgba(15,37,90,.075); }
.search-v2-hero .public-search:focus-within { transform: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(41,76,219,.12),0 18px 38px rgba(0,0,0,.1); }
.home-v3-hero .public-search input { width: 100%; height: 68px; padding: 0 54px 0 154px; font-size: 16px; color: #101d39; text-align: right; }
.search-v2-hero .public-search input { height: 68px; padding-inline: 150px 52px; font-size: 16px; color: var(--t-ink); }
.home-v3-hero .public-search input::placeholder { color: #7e899b; opacity: 1; }
.search-v2-hero .public-search input::placeholder { color: #75839b; opacity: 1; }
.home-v3-hero .public-search button { top: 8px; right: auto; left: 8px; width: 134px; height: 52px; border-radius: 13px; background: #294cdb; color: #fff; font-size: 14px; font-weight: 850; box-shadow: none; }
.home-v3-hero .public-search button:hover { background: #1d3fc4; }
.search-v2-hero .public-search button { top: 8px; right: 8px; width: 125px; height: 52px; border-radius: 14px; background: var(--t-accent-soft); color: var(--t-ink); font-size: 14px; font-weight: 900; box-shadow: none; }
.home-v3-search__icon { color: #8290a5; right: 19px; left: auto; }
.search-v2-form__icon { color: #7384a3; left: 19px; }
.home-v3-popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 880px; margin: 18px auto 0; }
.home-v3-popular > span { font-size: 12px; color: #66758c; }
.home-v3-popular a { display: inline-block; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 6px 13px; border: 1px solid #dbe3f1; border-radius: 100px; background: #fff; color: #172d57; font-size: 12px; }
.home-v3-popular a:hover { background: #edf2ff; border-color: #294cdb; }
.home-v3-trust, .home-v3-how { display: none; }
.home-v3-content { padding-top: 22px; padding-bottom: 22px; }
.home-v3-content .discovery-section, .home-v3-section { padding-block: 24px; }
.home-v3-section__heading, .discovery-section__heading { align-items: end; margin-bottom: 22px; gap: 18px; }
.home-v3-section__heading h2, .discovery-section__heading h2 { margin: 0; color: var(--t-ink); font-size: clamp(23px,2.6vw,31px); font-weight: 900; line-height: 1.35; }
.discover-kicker, .discovery-kicker { display: inline-block; color: var(--primary); font-weight: 800; font-size: 12px; }
.discovery-section__lead { margin: 5px 0 0; max-width: 590px; color: var(--t-muted); font-size: 13px; }
.discovery-section__actions a { border: 0; background: transparent; color: var(--primary); font-size: 13px; font-weight: 800; }

/* Product cards: photography, two lines of name, one price, one action. */
.opportunity-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
.opportunity-card, .opportunity-card--v3 { min-width: 0; border: 1px solid #e4eaf5; border-radius: 21px; background: #fff; box-shadow: 0 3px 20px rgba(16,29,57,.035); overflow: hidden; transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.opportunity-card:hover { transform: translateY(-3px); border-color: #a9bdf7; box-shadow: 0 14px 34px rgba(16,29,57,.095); }
.opportunity-card--v3 .opportunity-card__media { display: flex; align-items: center; justify-content: center; height: 215px; background: #f8faff; border-bottom: 0; }
.opportunity-card--v3 .opportunity-card__media img { object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
/* Real product images remain primary; missing imagery is explicitly labeled, not simulated. */
.opportunity-card--v3 .opportunity-card__media-stage { background: #f4f7fc; border-color: #e5ebf5; }
.opportunity-card--v3 .opportunity-card__media img[hidden] { display: none !important; }
.opportunity-card--v3 .opportunity-card__media-fallback { width: auto; min-height: 0; max-width: 100%; padding: 10px; gap: 6px; border: 0; background: transparent; box-shadow: none; color: var(--t-muted); }
.opportunity-card--v3 .opportunity-card__media-fallback-icon { width: 64px; height: 64px; border-radius: 19px; background: #e8eefd; color: var(--primary); }
.opportunity-card--v3 .opportunity-card__media-fallback-icon svg { width: 34px; height: 34px; }
.opportunity-card--v3 .opportunity-card__media-fallback-name { max-width: 100%; color: var(--t-ink); font-size: 12px; font-weight: 850; }
.opportunity-card--v3 .opportunity-card__media-fallback small { color: var(--t-muted); font-size: 11px; font-weight: 550; }
.opportunity-card--v3 .opportunity-card__media-fallback--sunscreen .opportunity-card__media-fallback-icon { background: #f1edff; color: #6248b8; }
.opportunity-card--v3 .opportunity-card__media-fallback--charger .opportunity-card__media-fallback-icon,
.opportunity-card--v3 .opportunity-card__media-fallback--power-bank .opportunity-card__media-fallback-icon { background: #e8eefd; color: var(--primary); }
.opportunity-card__media-badge { border: 0; border-radius: 100px; background: #edf2ff; color: var(--primary-dark); font-weight: 900; font-size: 12px; }
.opportunity-card__share--overlay { background: #fff; border-radius: 50%; }
.opportunity-card--v3 .opportunity-card__body { display: flex; flex-direction: column; min-height: 255px; padding: 12px 17px 17px; }
.opportunity-card__meta { min-height: 0; gap: 5px; margin: 0 0 7px; }
.opportunity-card__meta span { padding: 0; background: transparent; border: 0; color: #64728a; font-size: 11px; font-weight: 600; }
.opportunity-card__meta span + span::before { content: '·'; margin-inline: 0 5px; color: #a5b2c7; }
.opportunity-card__title { min-height: 0; }
.opportunity-card__title strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 800; color: var(--t-ink); font-size: 14px; line-height: 1.75; }
.opportunity-card__title small { margin-top: 3px; color: var(--t-muted); font-size: 12px; }
.opportunity-card__price { margin-top: auto; border-top: 1px solid #e7ebf5; padding-top: 11px; }
.opportunity-card__price-main { gap: 5px; }
.opportunity-card__price-main > span { color: var(--t-muted); font-size: 12px; }
.opportunity-card__price-main strong { color: var(--t-ink); font-size: clamp(19px,2vw,25px); font-weight: 900; line-height: 1.45; font-variant-numeric: tabular-nums; }
.opportunity-card__price > small { color: #64728a; font-size: 12px; }
.opportunity-card__drop { background: #eef3ff; border-radius: 10px; }
.opportunity-card__signal { align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; background: #eef3ff; border-radius: 10px; }
.opportunity-card__signal-badge { color: var(--primary-dark); font-size: 11px; }
.opportunity-card__signal-more { min-width: 0; }
.opportunity-card__signal-more summary { cursor: pointer; color: #2448ac; font-size: 11px; font-weight: 700; }
.opportunity-card__signal-more[open] { flex-basis: 100%; }
.opportunity-card__signal-more[open] strong, .opportunity-card__signal-more[open] small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.7; }
.opportunity-card__signal:has(.opportunity-card__signal-more[open]) { flex-wrap: wrap; }
.opportunity-card__actions { margin-top: 12px; }
.opportunity-card__cta { min-height: 46px; border: 0; border-radius: 13px; background: #edf2ff; color: var(--primary-dark); font-size: 13px; font-weight: 900; }
.opportunity-card__cta:hover { background: var(--primary); color: white; }

/* Product detail: the real seller is more important than the scoring algorithm. */
.product-page { padding-block: 20px 56px; }
.breadcrumb { display: flex; gap: 7px; align-items: center; min-width: 0; margin-bottom: 17px; color: #718099; font-size: 12px; }
.breadcrumb a { color: #52627c; }
.hero-card { grid-template-columns: minmax(0,.77fr) minmax(0,1.23fr); gap: 30px; padding: 25px; border: 1px solid var(--t-line); border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.product-visual { min-height: 290px; max-height: 410px; border: 0; border-radius: 19px; background: #f7f9fd; }
.product-visual img { height: 330px; padding: 28px; mix-blend-mode: multiply; object-fit: contain; }
.product-summary { justify-content: flex-start; }
.product-summary h1 { color: var(--t-ink); font-size: clamp(24px,2.9vw,36px); line-height: 1.52; font-weight: 900; }
.product-summary .eyebrow { margin-bottom: 8px; }
.product-summary .eyebrow a { border: 0; background: #eef2ff; color: #415479; font-size: 12px; padding: 4px 12px; border-radius: 100px; }
.selected-variant-context { display: grid; gap: 2px; margin-top: 8px; padding: 9px 0; border: 0; border-top: 1px solid var(--t-line); background: transparent; border-radius: 0; }
.selected-variant-context > span { font-size: 12px; color: var(--t-muted); }
.selected-variant-context > strong { color: #233f78; font-size: 14px; }
.selected-variant-context__attributes small { padding: 2px 8px; border: 1px solid var(--t-line); border-radius: 7px; font-size: 12px; color: var(--t-muted); }
.variant-context-help { margin-top: 4px; color: var(--t-muted); font-size: 12px; }
.variant-context-help summary { width: fit-content; color: var(--primary); }
.variant-context-help p { color: var(--t-muted); font-size: 12px; }
.product-share { margin: 6px 0; }
.product-share .share-action { min-height: 38px; border: 1px solid var(--t-line); border-radius: 12px; background: white; color: var(--primary); font-size: 12px; }
.variant-picker { margin-top: 11px; }
.variant-picker__label { color: var(--t-muted); font-size: 12px; }
.variant-picker__items { gap: 8px; }
.variant-chip { border: 1px solid #e0e6f3; border-radius: 12px; padding: 10px 12px; background: #fff; }
.variant-chip:hover { border-color: var(--primary); }
.variant-chip.is-selected { border-color: var(--primary); background: #eef3ff; }
.variant-chip strong { color: var(--t-ink); font-size: 13px; }
.variant-chip > span, .variant-chip > small { font-size: 12px; color: var(--t-muted); }
.best-price { margin-top: 14px; padding: 16px 18px; background: #eef3ff; border: 1px solid #dbe5ff; border-radius: 17px; }
.best-price__label { color: #536681; font-size: 12px; }
.best-price strong { color: var(--t-ink); font-weight: 900; font-size: clamp(26px,3.2vw,38px); line-height: 1.45; }
.best-price__coverage, .best-price > small { color: #596c88; font-size: 12px; }
.product-primary-actions { margin-top: 13px; }
.product-buy-primary { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 57px; padding: 8px 16px; border: 0; border-radius: 13px; background: var(--primary); color: #fff; font-weight: 900; }
.product-buy-primary:hover { background: var(--primary-dark); color: #fff; }
.product-buy-primary small { color: #e3eaff; font-size: 12px; }
.product-compare-action { border: 1px solid #dbe4f2; border-radius: 13px; background: #fff; color: var(--primary); font-size: 13px; font-weight: 800; }
.product-buy-note, .last-updated { color: #63718a; font-size: 12px; }
.price-watch { margin-top: 10px; padding: 13px; background: #f9fbff; border: 1px solid var(--t-line); border-radius: 14px; }
.price-watch__button { background: #fff; border-color: #b7c9f9; color: var(--primary); font-size: 13px; font-weight: 900; }
.price-watch [data-price-watch-message], .price-alert__feed-link { color: var(--t-muted); font-size: 12px; }
.price-alert__save { background: var(--primary); border-radius: 11px; }
.section-card, .decision-card, .explanation-card, .trust-card { border: 1px solid var(--t-line); border-radius: 22px; box-shadow: none; background: #fff; }
.section-card, .trust-card { scroll-margin-top: 90px; }
.product-page .section-heading h2 { color: var(--t-ink); font-size: clamp(21px,2vw,27px); font-weight: 900; }
#stores { scroll-margin-top: 92px; }
#stores .section-heading .section-kicker { display: none; }
.offer-list { gap: 10px; }
.offer-row { border: 1px solid var(--t-line); border-radius: 16px; background: #fff; }
.offer-row--best { border-color: #b8cbff; background: #f7f9ff; }
.offer-row__shop strong { color: var(--t-ink); font-size: 15px; }
.offer-row__shop div span { color: var(--t-muted); font-size: 12px; }
.offer-row__price strong { color: var(--t-ink); font-size: 19px; font-weight: 900; }
.offer-row__price small { color: var(--primary); font-size: 11px; }
.offer-row__action a { min-height: 46px; border-radius: 12px; background: var(--primary); color: white; font-weight: 800; }
.offer-row__action a:hover { background: var(--primary-dark); }
.fresh-badge { border-radius: 100px; color: var(--positive); background: var(--positive-bg); }
.product-analysis-details { display: block; margin-top: 18px; border: 1px solid var(--t-line); border-radius: 18px; background: #fff; }
.product-analysis-details__summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; list-style: none; cursor: pointer; color: var(--t-ink); font-size: 16px; font-weight: 900; }
.product-analysis-details__summary::-webkit-details-marker { display: none; }
.product-analysis-details__summary::after { content: '+'; color: var(--primary); font: 700 23px/1 Arial,sans-serif; }
.product-analysis-details[open] > .product-analysis-details__summary::after { content: '−'; }
.product-analysis-details__summary small { margin-inline-start: auto; color: var(--t-muted); font-size: 12px; font-weight: 500; }
.product-analysis-details__body { padding: 0 16px 16px; }
.product-analysis-details__body .market-signal-panel { margin-top: 0; }
.product-analysis-details__body .decision-grid { margin-top: 15px; }
.product-analysis-details__body :where(.evidence-list li,.warning-list p,.confidence-block p) { font-size: 13px; }
.history-methodology { margin-top: 16px; }
.history-methodology summary { color: var(--primary); cursor: pointer; font-weight: 700; }
.history-methodology .history-note { color: var(--t-muted); font-size: 12px; }
.trust-card { padding: 18px 22px; background: #f8faff; }
.trust-card p { color: var(--t-muted); font-size: 12px; }

/* Search, categories, price drops, alerts and login follow the SAME visual grammar. */
.search-v2-hero { color: var(--t-ink); background: #f2f6ff; border-bottom: 1px solid #dfe7f8; }
.search-v2-hero__inner { min-height: 0; padding-block: 34px; }
.search-v2-hero--results .search-v2-hero__inner { padding-block: 20px 24px; }
.search-v2-hero__kicker { color: var(--primary); border: 0; background: transparent; font-size: 12px; font-weight: 800; }
.search-v2-hero h1 { margin-top: 6px; color: var(--t-ink); font-size: clamp(25px,3vw,39px); font-weight: 900; }
.search-v2-hero .public-search { margin-top: 15px; box-shadow: 0 9px 24px rgba(16,29,57,.06); }
.search-v2-hero .public-search button { background: var(--primary); color: white; }
.search-v2-content { padding-block: 22px 50px; }
.search-v2-hint, .search-v2-alert { min-height: 82px; border: 1px solid var(--t-line); border-radius: 16px; background: #fff; box-shadow: none; }
.search-v2-hint__icon { color: var(--primary); background: #eef2ff; }
.search-v2-results__heading { margin-bottom: 14px; }
.search-v2-results__heading h2 { font-size: 23px; }
.search-v2-results__heading p { color: var(--t-muted); font-size: 13px; }
/* Native details: fully usable without JS; the tiny enhancement collapses it on mobile. */
.search-filter-panel { min-width: 0; margin-bottom: 17px; }
.search-filter-panel__toggle { display: none; }
.search-filter-panel > .search-v2-toolbar { margin-bottom: 0; }
.search-toolbar { border: 1px solid var(--t-line); border-radius: 16px; background: white; box-shadow: none; }
.search-toolbar__field > span { color: var(--t-muted); font-size: 12px; }
.search-toolbar select { min-height: 46px; border-color: var(--t-line); border-radius: 10px; }
.search-toolbar__actions button { min-height: 45px; background: var(--primary); border-radius: 10px; }
.landing-page { padding-top: 20px; }
.landing-page__heading { padding-block: 10px 16px; }
.landing-page__heading h1 { color: var(--t-ink); font-size: clamp(26px,3vw,38px); font-weight: 900; }
.landing-page__subtitle { max-width: 800px; color: var(--t-muted); font-size: 13px; }
.landing-facts { gap: 10px; margin-bottom: 20px; }
.landing-facts > div { border: 1px solid var(--t-line); border-radius: 15px; background: #fff; }
.landing-facts span { color: var(--t-muted); font-size: 12px; }
.landing-facts strong { color: var(--t-ink); font-size: 15px; font-weight: 800; }
.landing-collection__heading h2, .landing-related__heading h2 { color: var(--t-ink); font-size: 24px; }
.landing-page__guide { margin-top: 18px; border: 1px solid var(--t-line); border-radius: 14px; background: white; }
.landing-page__guide summary { color: var(--primary); }
.landing-related__links a { border-color: var(--t-line); border-radius: 14px; background: #fff; }
.price-drops-page__top h1 { color: var(--t-ink); font-weight: 900; font-size: clamp(26px,3vw,38px); }
.price-drops-page__top p { color: var(--t-muted); font-size: 13px; }
.account-auth__card, .account-page__section, .notifications-summary, .notifications-empty, .public-error-card { background: #fff; border: 1px solid var(--t-line); border-radius: 22px; box-shadow: none; }
.account-auth__card h1, .notifications-hero h1, .public-error-card h1 { color: var(--t-ink); font-weight: 900; }
.account-auth :where(input,button), .account-page :where(input,button) { border-radius: 12px; }
.account-auth :where(button[type=submit]), .account-page :where(button[type=submit]) { background: var(--primary); color: white; }
.notifications-hero p, .notifications-empty p, .public-error-card p { color: var(--t-muted); }
.public-error-card__actions a:first-child { background: var(--primary); color: white; }

@media(max-width:1100px) {
    .opportunity-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .shell { width: min(100% - 40px,1240px); }
    .home-v3-hero__inner { width: min(100% - 40px,1120px); }
}
@media(max-width:800px) {
    .opportunity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .site-header__inner, .is-home .site-header__inner { min-height: 65px; }
    .brand__mark, .is-home .brand__mark { width: 40px; height: 40px; font-size: 22px; }
    .brand strong, .is-home .brand strong { font-size: 20px; }
    .hero-card { gap: 15px; padding: 18px; }
    .product-visual { min-height: 190px; }
    .product-visual img { height: 220px; padding: 14px; }
}
@media(max-width:680px) {
    .shell { width: calc(100% - 28px); }
    /* Mobile filtering is one compact disclosure above the first product. */
    .search-filter-panel { margin-bottom: 12px; border: 1px solid var(--t-line); border-radius: 14px; background: #fff; overflow: clip; }
    .search-filter-panel__toggle { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 10px 13px; cursor: pointer; list-style: none; color: var(--t-ink); }
    .search-filter-panel__toggle::-webkit-details-marker { display: none; }
    .search-filter-panel__toggle > svg:first-child { flex: 0 0 21px; color: var(--primary); }
    .search-filter-panel__toggle strong { font-size: 13px; font-weight: 850; }
    .search-filter-panel__toggle > span { margin-inline-start: auto; color: var(--t-muted); font-size: 11px; }
    .search-filter-panel__chevron { flex: 0 0 18px; color: var(--t-muted); transition: transform .15s ease; }
    .search-filter-panel[open] .search-filter-panel__chevron { transform: rotate(180deg); }
    .search-filter-panel > .search-v2-toolbar { margin: 0; padding: 10px 12px 13px; border: 0; border-top: 1px solid var(--t-line); border-radius: 0; box-shadow: none; }
    .search-filter-panel .search-toolbar__field > span { font-size: 12px; }
    .search-filter-panel .search-toolbar__field select { font-size: 13px; }
    .search-filter-panel .search-toolbar__actions button { font-size: 13px; }
    /* A single item must occupy the available row at tablet and phone widths. */
    .opportunity-grid--single { grid-template-columns: minmax(0,1fr); }
    .opportunity-grid--single .opportunity-card--v3 { max-width: 100%; }

    html { scroll-padding-top: 70px; }
    .site-header, .is-home .site-header { background: #fff; }
    .site-header__inner, .is-home .site-header__inner { min-height: 62px; gap: 10px; }
    .brand small, .is-home .brand small { display: none; }
    .brand strong, .is-home .brand strong { font-size: 22px; }
    .site-search, .site-nav { display: none; }
    /* Mobile navigation must be a real, four-column bottom bar—not an auto-sized grid in document flow. */
    .mobile-tabbar {
        display: grid;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 115;
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(4,minmax(0,1fr));
        align-items: center;
        gap: 0;
        min-height: calc(68px + env(safe-area-inset-bottom, 0px));
        padding: 6px max(10px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));
        box-sizing: border-box;
        background: #fff;
        border-top: 1px solid var(--t-line);
        box-shadow: 0 -7px 20px rgba(16,29,57,.045);
    }
    .mobile-tabbar a {
        display: flex;
        min-width: 0;
        min-height: 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 4px 2px;
        color: #667692;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
    }
    .mobile-tabbar svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
    .mobile-tabbar a span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mobile-tabbar a.is-active { color: var(--primary); }
    .is-home .mobile-tabbar a.is-active { color: #294cdb; }
    body:not(.is-product-page) { padding-bottom: calc(76px + env(safe-area-inset-bottom,0px)); }
    .is-product-page .mobile-tabbar { display: none; }
    .site-footer { margin-top: 24px; }
    .home-v3-hero { background: radial-gradient(ellipse at 10% 15%,#f0f4ff 0%,transparent 62%),#fbfcff; }
    .home-v3-hero::before { display: none; }
    .home-v3-hero::after { display: none; }
    .home-v3-hero__inner { width: calc(100% - 30px); padding: 38px 0 31px; align-items: center; text-align: center; }
    .home-v3-hero__eyebrow { font-size: 12px; }
    .home-v3-hero h1 { margin-top: 14px; font-size: clamp(17px,5.45vw,29px); line-height: 1.55; letter-spacing: -.045em; white-space: nowrap; }
    .home-v3-hero__lead { margin-top: 8px; font-size: 13px; line-height: 1.8; }
    .home-v3-hero .public-search { height: 57px; margin-top: 20px; border-radius: 14px; }
    .search-v2-hero .public-search { height: 57px; margin-top: 16px; border-radius: 14px; }
    .home-v3-hero .public-search input { height: 55px; padding: 0 37px 0 104px; font-size: 13px; }
    .search-v2-hero .public-search input { height: 55px; padding-inline: 105px 39px; font-size: 14px; }
    .home-v3-hero .public-search button { top: 6px; right: auto; left: 6px; width: 92px; height: 43px; border-radius: 10px; font-size: 12px; }
    .search-v2-hero .public-search button { top: 6px; right: 6px; width: 93px; height: 43px; border-radius: 10px; font-size: 12px; }
    .home-v3-search__icon { right: 10px; left: auto; }
    .search-v2-form__icon { left: 10px; }
    .home-v3-popular { max-height: 74px; overflow: hidden; justify-content: center; gap: 6px; margin-top: 14px; }
    .home-v3-popular > span { display: none; }
    .home-v3-popular a { max-width: 110px; padding: 4px 10px; font-size: 11px; }
    .home-v3-content { padding-top: 9px; }
    .home-v3-content .discovery-section, .home-v3-section { padding-block: 18px; }
    .home-v3-section__heading, .discovery-section__heading { margin-bottom: 13px; }
    .home-v3-section__heading h2, .discovery-section__heading h2 { font-size: 21px; }
    .discovery-section__lead { font-size: 12px; }
    .opportunity-grid { gap: 10px; }
    .opportunity-card, .opportunity-card--v3 { border-radius: 17px; }
    .opportunity-card--v3 .opportunity-card__media { height: 152px; }
    .opportunity-card--v3 .opportunity-card__media img { padding: 9px; }
    .opportunity-card--v3 .opportunity-card__body { min-height: 239px; padding: 10px 10px 12px; }
    .opportunity-card__meta { margin-bottom: 4px; }
    .opportunity-card__meta span { font-size: 10px; }
    .opportunity-card__title strong { font-size: 12.5px; line-height: 1.65; }
    .opportunity-card__title small { font-size: 11px; }
    .opportunity-card__price-main strong { font-size: clamp(15px,4.4vw,20px); line-height: 1.45; }
    .opportunity-card__price > small { font-size: 11px; }
    .opportunity-card__signal { padding-inline: 6px; }
    .opportunity-card__cta { min-height: 44px; padding-inline: 5px; font-size: 11px; line-height: 1.5; }
    .product-page { padding-block: 12px 125px; }
    .breadcrumb { margin-bottom: 10px; font-size: 11px; }
    .hero-card { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 12px; padding: 14px; border-radius: 18px; }
    .hero-card .product-visual { grid-row: 1 / 2; min-height: 122px; max-height: 155px; border-radius: 12px; }
    .hero-card .product-visual img { height: 135px; padding: 8px; }
    .hero-card .product-summary { display: contents; }
    .hero-card .product-summary > .eyebrow, .hero-card .product-summary > h1, .hero-card .selected-variant-context, .hero-card .product-share { grid-column: 2; min-width: 0; }
    .hero-card .product-summary > h1 { font-size: 16px; font-weight: 900; line-height: 1.55; }
    .hero-card .selected-variant-context { padding: 5px 0; margin-top: 0; }
    .hero-card .selected-variant-context > strong { font-size: 12px; }
    .hero-card .selected-variant-context__attributes small { font-size: 11px; }
    .hero-card .product-share { margin: 0; }
    .hero-card .variant-picker, .hero-card .best-price, .hero-card .product-primary-actions, .hero-card .product-buy-note, .hero-card .status-callout, .hero-card .last-updated, .hero-card .price-watch { grid-column: 1 / -1; }
    .hero-card .variant-picker { margin-top: 2px; }
    .hero-card .variant-picker__items { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hero-card .variant-chip { min-height: 45px; padding: 7px 9px; }
    .hero-card .best-price { padding: 12px 14px; }
    .hero-card .best-price strong { font-size: clamp(25px,7vw,31px); }
    .hero-card .product-primary-actions { display: none; } /* a single persistent mobile purchase action is enough */
    .hero-card .product-buy-note { margin: 0; }
    .hero-card .price-watch { margin-top: 4px; }
    .hero-card .price-watch__button { min-height: 44px; }
    .product-mobile-dock { display: block; position: fixed; z-index: 140; inset: auto 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t-line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 28px rgba(16,29,57,.11); }
    .product-mobile-dock__inner { gap: 10px; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); }
    .product-mobile-dock__price span { color: var(--t-muted); font-size: 10px; }
    .product-mobile-dock__price strong { color: var(--t-ink); font-size: 14px; overflow-wrap: anywhere; white-space: normal; }
    .product-mobile-dock__actions { gap: 7px; grid-template-columns: minmax(72px,.7fr) minmax(108px,1.3fr); }
    .product-mobile-watch, .product-mobile-buy { min-height: 47px; padding: 6px; font-size: 11px; line-height: 1.45; border-radius: 11px; }
    .product-mobile-watch { background: #eef3ff; color: var(--primary-dark); }
    .product-mobile-buy { background: var(--primary); color: white; }
    #stores { margin-top: 12px; scroll-margin-top: 74px; }
    .section-card { padding: 15px; border-radius: 17px; }
    .product-page .section-heading h2 { font-size: 20px; }
    .offer-row { gap: 10px; padding: 12px; }
    .offer-row__price strong { font-size: 17px; }
    .offer-row__action a { min-height: 46px; }
    .product-analysis-details { margin-top: 12px; border-radius: 15px; }
    .product-analysis-details__summary { padding: 14px; font-size: 14px; }
    .product-analysis-details__summary small { display: none; }
    .product-analysis-details__body { padding: 0 9px 10px; }
    .search-v2-hero__inner, .search-v2-hero--results .search-v2-hero__inner { padding-block: 20px 22px; }
    .search-v2-hero h1 { font-size: 25px; }
    .search-v2-content { padding-block: 14px 34px; }
    .search-v2-results__heading h2 { font-size: 20px; }
    .landing-page { padding-top: 12px; }
    .landing-page__heading { padding-block: 9px 14px; }
    .landing-page__heading h1, .price-drops-page__top h1 { font-size: 24px; }
    .landing-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 13px; }
    .landing-facts > div { min-width: 0; padding: 10px 7px; }
    .landing-facts span { font-size: 10px; line-height: 1.55; }
    .landing-facts strong { font-size: 11px; line-height: 1.65; }
    .landing-page__subtitle { font-size: 12px; }
    .account-auth, .account-page, .notifications-page, .public-error-page { padding-block: 16px 32px; }
    .account-auth__card, .account-page__section { padding: 17px; }
}
@media(max-width:365px) {
    .shell { width: calc(100% - 22px); }
    .hero-card { grid-template-columns: 88px minmax(0,1fr); column-gap: 9px; }
    .hero-card .product-visual { height: 112px; min-height: 112px; }
    .hero-card .product-visual img { height: 112px; }
    .opportunity-card--v3 .opportunity-card__media { height: 128px; }
    .opportunity-card__title strong { font-size: 13px; }
    .opportunity-card__price-main strong { font-size: 17px; }
    .product-mobile-dock__actions { grid-template-columns: minmax(65px,.75fr) minmax(96px,1.25fr); gap: 5px; }
    .product-mobile-watch, .product-mobile-buy { font-size: 10px; }
}
@media(min-width:681px) { .mobile-tabbar { display: none !important; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* Specificity bridges for the older discovery stylesheet (no blue surfaces survive). */
.opportunity-card--v3 .opportunity-card__meta span { padding: 0; border: 0; border-radius: 0; background: transparent; color: #64728a; font-size: 11px; }
.opportunity-card--v3 .opportunity-card__price { display: block; margin-top: auto; padding: 11px 0 0; border: 0; border-top: 1px solid #e7ebf5; border-radius: 0; background: transparent; }
.opportunity-card--v3 .opportunity-card__price strong { color: var(--t-ink); font-weight: 900; font-size: clamp(19px,2vw,24px); }
.opportunity-card--v3 .opportunity-card__cta { margin-top: 0; background: #edf2ff; color: var(--primary-dark); font-size: 13px; }
.opportunity-card--v3 .opportunity-card__cta:hover { background: var(--primary); color: #fff; }
.opportunity-card--v3 .opportunity-card__title { min-height: 0; margin-top: 2px; }
@media(max-width:680px) {
    .hero-card .product-visual { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
    .hero-card .product-summary > .eyebrow { grid-column: 2; grid-row: 1; align-self: start; margin: 0; }
    .hero-card .product-summary > h1 { grid-column: 2; grid-row: 2; align-self: center; }
    .hero-card .selected-variant-context { grid-column: 2; grid-row: 3; align-self: end; }
    .hero-card .product-share { grid-column: 1 / -1; }
    .hero-card .product-share .share-action { min-height: 37px; }
    .opportunity-card--v3 .opportunity-card__price strong { font-size: clamp(16px,4.3vw,20px); }
    .opportunity-card--v3 .opportunity-card__cta { font-size: 12px; }
    .opportunity-grid--single .opportunity-card--v3 { border-color: #cfdaef; }
}
@media(max-width:480px) {
    /* Full-width horizontal cards: readable prices and titles without a 50% empty column. */
    .opportunity-grid { grid-template-columns: minmax(0,1fr); gap: 11px; }
    .opportunity-card--v3 { display: grid; grid-template-columns: minmax(0,35%) minmax(0,65%); min-height: 188px; height: auto; }
    .opportunity-card--v3 .opportunity-card__media-wrap { min-width: 0; height: 100%; padding: 9px 0 9px 9px; }
    .opportunity-card--v3 .opportunity-card__media { min-height: 170px; height: 100%; border-radius: 12px; }
    .opportunity-card--v3 .opportunity-card__media img { padding: 9px; }
    .opportunity-card--v3 .opportunity-card__media-fallback { padding: 6px 2px; gap: 5px; }
    .opportunity-card--v3 .opportunity-card__media-fallback-icon { width: 48px; height: 48px; border-radius: 15px; }
    .opportunity-card--v3 .opportunity-card__media-fallback-icon svg { width: 26px; height: 26px; }
    .opportunity-card--v3 .opportunity-card__media-fallback-name { font-size: 11px; }
    .opportunity-card--v3 .opportunity-card__media-fallback small { font-size: 10px; }
    .opportunity-card--v3 .opportunity-card__media-badge { top: 15px; right: 13px; padding-inline: 6px; font-size: 9px; }
    .opportunity-card--v3 .opportunity-card__share--overlay { top: auto; bottom: 12px; left: 11px; }
    .opportunity-card--v3 .opportunity-card__body { min-width: 0; min-height: 0; padding: 12px 11px 12px 9px; }
    .opportunity-card--v3 .opportunity-card__meta { gap: 4px; }
    .opportunity-card--v3 .opportunity-card__meta span { font-size: 11px; }
    .opportunity-card--v3 .opportunity-card__title strong { font-size: 13.5px; line-height: 1.6; }
    .opportunity-card--v3 .opportunity-card__title small { font-size: 11px; }
    .opportunity-card--v3 .opportunity-card__price { padding-top: 8px; }
    .opportunity-card--v3 .opportunity-card__price strong { font-size: 19px; }
    .opportunity-card--v3 .opportunity-card__price > small { font-size: 11px; }
    .opportunity-card--v3 .opportunity-card__drop { padding: 5px 7px; }
    .opportunity-card--v3 .opportunity-card__signal { margin-top: 5px; padding: 5px 7px; }
    .opportunity-card--v3 .opportunity-card__actions { margin-top: 8px; }
    .opportunity-card--v3 .opportunity-card__cta { min-height: 41px; padding: 5px; font-size: 12px; line-height: 1.4; }
    .search-filter-panel__toggle > span { display: none; }
}
