/* Bangladesh Everyday: one stylesheet, no framework. */

:root {
  --brand: #0a7b55;
  --brand-600: #086a49;
  --brand-700: #06573c;
  --brand-50: #e9f6f0;
  --brand-100: #cdeadc;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #f4f6f8;
  --card: #ffffff;
  --surface-2: #fafbfc;  /* table heads, hover rows */
  --surface-3: #eef2f6;  /* segmented controls, code, quiet fills */
  --media: #ffffff;      /* behind product photos and shop logos, which mostly have white backgrounds */
  --brand-deep: #06573c; /* fixed dark green for bands with white text */
  --on-brand: #ffffff;
  --brand-hover: #086a49;
  --media-blend: normal;
  --footer-bg: #0b1220; --footer-ink: #e2e8f0; --footer-text: #94a3b8; --footer-link: #cbd5e1; --footer-line: #1e293b;
  --good: #047857;
  --good-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --bad: #b91c1c;
  --bad-bg: #fef2f2;
  --drop: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", "Hind Siliguri", "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked a theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #0b7a55; --brand-hover: #0d8a60; --brand-600: #6fb193; --brand-700: #8cc4aa; --brand-50: #1a2420; --brand-100: #24362d;
    --ink: #e8e6e3; --ink-2: #c4c1bc; --muted: #94918b; --line: #2e2d2b; --line-2: #403e3b;
    --bg: #161615; --card: #1d1d1b; --surface-2: #222220; --surface-3: #2a2a27; --media: #e4e3e0; --media-blend: multiply;
    --good: #8cc4aa; --good-bg: #1a2420; --warn: #d4a556; --warn-bg: #2a2519; --bad: #dd8478; --bad-bg: #2d1f1c; --drop: #b8463b;
    --footer-bg: #121211; --footer-ink: #e8e6e3; --footer-text: #94918b; --footer-link: #c4c1bc; --footer-line: #2e2d2b;
    --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #0b7a55; --brand-hover: #0d8a60; --brand-600: #6fb193; --brand-700: #8cc4aa; --brand-50: #1a2420; --brand-100: #24362d;
  --ink: #e8e6e3; --ink-2: #c4c1bc; --muted: #94918b; --line: #2e2d2b; --line-2: #403e3b;
  --bg: #161615; --card: #1d1d1b; --surface-2: #222220; --surface-3: #2a2a27; --media: #e4e3e0; --media-blend: multiply;
  --good: #8cc4aa; --good-bg: #1a2420; --warn: #d4a556; --warn-bg: #2a2519; --bad: #dd8478; --bad-bg: #2d1f1c; --drop: #b8463b;
  --footer-bg: #121211; --footer-ink: #e8e6e3; --footer-text: #94918b; --footer-link: #c4c1bc; --footer-line: #2e2d2b;
  --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; color: var(--ink); }
h1 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
button, input, select { font: inherit; color: inherit; }
code { background: var(--surface-3); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
:focus-visible { outline: 3px solid rgba(10, 123, 85, .45); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.page { padding-top: 16px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.ok { color: var(--good); font-weight: 600; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid transparent; border-radius: 10px; padding: .55rem 1rem; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--card); color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-lg { padding: .75rem 1.25rem; font-size: 1rem; }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-3); }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-text b { margin-left: 4px; font-size: .7rem; vertical-align: 3px; background: var(--brand); color: #fff; padding: 2px 5px; border-radius: 5px; letter-spacing: .04em; }
.logo-light { color: #fff; }
.nav-toggle { display: none; }
.header-links { display: flex; gap: 4px; margin-left: auto; }
.header-links a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.header-links a:hover { background: var(--surface-3); text-decoration: none; }
.header-links .count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--drop); color: #fff; font-size: .7rem; display: grid; place-items: center; }

/* Search */
.search { position: relative; display: flex; align-items: center; flex: 1; max-width: 640px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 12px; transition: border-color .15s, background .15s, box-shadow .15s; }
.search:focus-within { background: var(--card); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10, 123, 85, .12); }
.search-icon { color: var(--muted); display: inline-flex; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 10px; outline: none; font-size: .95rem; }
.search input::-webkit-search-cancel-button { display: none; }
.search-btn { padding: .5rem 1rem; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a.is-active { background: var(--brand-50); }
.suggest img, .suggest .no-image { width: 44px; height: 44px; object-fit: contain; flex: none; background: var(--media); border-radius: 6px; }
.suggest .s-title { flex: 1; min-width: 0; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-price { font-weight: 700; white-space: nowrap; }
.suggest .s-all { justify-content: center; color: var(--brand-600); font-weight: 600; border-top: 1px solid var(--line); }

/* Category nav */
.cat-nav { border-top: 1px solid var(--line); background: var(--card); }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-item { position: relative; }
.cat-item > a { display: flex; align-items: center; gap: 7px; padding: 11px 12px; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.cat-item > a .icon { color: var(--brand); }
@media (max-width: 1320px) { .cat-item > a .icon { display: none; } .cat-item > a { padding: 11px 10px; } }
.cat-item:hover > a { color: var(--brand-700); border-bottom-color: var(--brand); }
.mega { display: none; position: fixed; min-width: 240px; margin-top: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.cat-item:hover .mega, .cat-item:focus-within .mega { display: grid; }
.mega a { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; text-decoration: none; }
.mega a:hover { background: var(--brand-50); color: var(--brand-700); }
.mega a span { color: var(--muted); font-size: .8rem; }
.mega .mega-all { font-weight: 700; color: var(--brand-700); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }

/* Hero */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 56px 20px; text-align: center; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px; text-align: left; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin-bottom: 14px; max-width: 15ch; }
.hero-sub { max-width: 540px; margin: 0 0 28px; color: var(--ink-2); font-size: 1.06rem; line-height: 1.6; }
.hero-inner:not(.hero-split) h1, .hero-inner:not(.hero-split) .hero-sub, .hero-inner:not(.hero-split) .search-hero { margin-left: auto; margin-right: auto; }
.search-hero { max-width: 600px; background: var(--card); border: 1.5px solid var(--line-2); padding: 5px 5px 5px 16px; border-radius: 12px; text-align: left; }
.search-hero:focus-within { background: var(--card); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10, 123, 85, .12); }
.search-hero input { font-size: 1.02rem; padding: 12px 8px; color: var(--ink); }
.search-hero .search-btn { padding: .75rem 1.25rem; font-size: .98rem; border-radius: 8px; }
.hero-popular { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.hero-popular a { color: var(--ink-2); font-weight: 600; }
.hero-popular a:hover { color: var(--brand-600); }
.hero-facts { display: flex; gap: 40px; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 600px; }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dt { color: var(--muted); font-size: .85rem; }
.hero-facts dd { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.hero-table { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06); overflow: hidden; }
.ht-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ht-head img { width: 56px; height: 56px; flex: none; object-fit: contain; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--media); }
.ht-title { display: flex; flex-direction: column; min-width: 0; }
.ht-title a { color: var(--ink); font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ht-title span { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.hero-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hero-table tr + tr { border-top: 1px solid var(--line); }
.hero-table th, .hero-table td { padding: 11px 18px; text-align: left; vertical-align: middle; }
.hero-table th { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; width: 42%; }
.ht-meta { color: var(--muted); font-size: .8rem; padding-left: 0 !important; }
.ht-meta span + span::before { content: " · "; }
.ht-official { color: var(--good); }
.ht-price { text-align: right !important; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ht-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 4px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; vertical-align: 1px; }
.hero-table tr.is-best { background: var(--brand-50); }
.hero-table tr.is-best .ht-price { color: var(--brand-700); }
.hero-table tr.ht-gap td { padding: 6px 18px; text-align: center; color: var(--muted); font-size: .78rem; background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--surface-3) 6px 7px); }
.hero-table tr.is-top .ht-price { color: var(--bad); }
.ht-tag-top { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 1px currentColor; }
.ht-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .88rem; }
.ht-foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ht-foot a .icon { width: 16px; height: 16px; }
.ht-foot span { color: var(--muted); }

/* Sections */
.section { padding-top: 56px; }
.section-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -.02em; margin: 0; }
.section-head h2 .icon { color: var(--drop); }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-link { margin-left: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: .9rem; transition: border-color .15s, background .15s; }
.section-link:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-50); }
.section-link .icon { width: 16px; height: 16px; transition: transform .15s; }
.section-link:hover .icon { transform: translateX(2px); }

/* Category shelves: each root category with its newest products in a row
   that scrolls sideways. Off-screen shelves skip rendering until needed. */
.shelves { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.shelf { min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 400px; }
.shelf-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.shelf-head h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.shelf-head h3 a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.shelf-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); }
.shelf-icon .icon { width: 18px; height: 18px; }
.shelf-count { color: var(--muted); font-size: .88rem; }
.shelf-subs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.shelf-subs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: .84rem; font-weight: 500; text-decoration: none; transition: border-color .15s, background .15s; }
.shelf-subs a:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.shelf-subs a span { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, calc((100% - 5 * 12px) / 6)); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 2px 2px 10px; scrollbar-width: thin; }
.shelf-row > li { scroll-snap-align: start; min-width: 0; }
.mini-card { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.mini-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.mini-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 10px; padding: 8px; border-radius: var(--radius-sm); background: var(--media); }
.mini-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--media-blend); }
.mini-media .badge-drop { top: 6px; left: 6px; padding: 2px 6px; font-size: .72rem; }
.mini-media .badge-drop .icon { width: 12px; height: 12px; }
.mini-brand { color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mini-title { margin: 2px 0 8px; font-size: .88rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card:hover .mini-title { color: var(--brand-600); }
.mini-price { margin-top: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-price span { color: var(--muted); font-size: .75rem; font-weight: 500; }
.mini-shops { color: var(--muted); font-size: .78rem; }
.shelf-more a { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; height: 100%; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-2); font-size: .9rem; text-decoration: none; }
.shelf-more a strong { font-size: 1.6rem; color: var(--ink); letter-spacing: -.02em; }
.shelf-more a:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
@media (max-width: 520px) {
  .shelves { gap: 28px; }
  .shelf-head { flex-wrap: nowrap; }
  .shelf-count { display: none; }
  .shelf-head .section-link { padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
  .shelf-row { grid-auto-columns: 46%; margin: 0 -14px; padding: 2px 14px 10px; scroll-padding-inline: 14px; }
  .shelf-subs { flex-wrap: nowrap; overflow-x: auto; margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
  .shelf-subs li { flex: none; }
}

.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.category-tile { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.category-tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile-icon { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); transition: background .15s, color .15s; }
.category-tile:hover .tile-icon { background: var(--brand); color: #fff; }
.tile-icon .icon { width: 24px; height: 24px; }
.tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tile-name { font-weight: 700; }
.tile-sub { color: var(--muted); font-size: .85rem; }
.tile-arrow { color: var(--line-2); transition: color .15s, transform .15s; }
.tile-arrow .icon { width: 18px; height: 18px; }
.category-tile:hover .tile-arrow { color: var(--brand); transform: translateX(3px); }

.how-wrap { margin-top: 64px; padding: 64px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-head { text-align: center; max-width: 600px; margin: 0 auto 36px; }
.how-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.how-head p:last-child { color: var(--muted); margin: 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-item { position: relative; padding: 28px 24px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.how-item h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.how-item p { color: var(--muted); margin: 0; font-size: .94rem; }
.how-step { position: absolute; top: 20px; right: 22px; font-size: 2rem; font-weight: 800; color: var(--line); letter-spacing: -.04em; line-height: 1; }
.how-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.brand-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.brand-name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-count { font-size: .8rem; color: var(--muted); }

.store-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.store-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.store-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.store-card > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card .store-logo { width: 36px; height: 36px; border-radius: 10px; }

.cta-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 36px 40px; border-radius: 20px; color: #fff; background: var(--brand-deep); }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.02em; margin-bottom: 4px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .78); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #e9f6f0; }
main > .section:last-child { padding-bottom: 56px; }

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-table { max-width: 600px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 2rem; }
  .hero-facts { gap: 28px; }
  .hero-facts dd { font-size: 1.2rem; }
  .hero-table th, .hero-table td { padding: 10px 14px; }
  .ht-meta { display: none; }
  .hero-table th { width: auto; max-width: none; white-space: normal; }
  .category-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .category-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .tile-arrow { display: none; }
  .how-wrap { padding: 44px 0; margin-top: 44px; }
  .cta-band { padding: 28px 22px; }
  .cta-band .btn { width: 100%; }
  .section { padding-top: 40px; }
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: .88rem; font-weight: 600; text-decoration: none !important; }
.chip:hover { border-color: var(--brand); color: var(--brand-700); }
.chip span { color: var(--muted); font-weight: 500; }
.chip-active { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.chip-active .icon { width: 14px; height: 14px; }
.store-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.store-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none !important; }
.store-pill:hover { border-color: var(--brand); }

/* Store logo with initials fallback */
.store-logo { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: .85rem; overflow: hidden; border: 1px solid var(--line); }
.store-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--media); padding: 4px; }
.store-pill .store-logo { width: 32px; height: 32px; border-radius: 50%; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--media); padding: 14px; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.no-image { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line-2); }
.card-media.img-failed img { display: none; }
.no-image .icon { width: 40%; height: 40%; max-width: 64px; max-height: 64px; }
.badge.badge-drop { position: absolute; top: 10px; left: 10px; background: var(--drop); color: #fff; border: 0; font-weight: 700; }
.card-body { padding: 12px 14px 4px; flex: 1; }
.card-brand { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card-title { font-size: .95rem; font-weight: 600; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); }
.card-specs { color: var(--muted); font-size: .82rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { padding: 8px 14px 14px; }
.card-price { font-size: 1.2rem; }
.card-price .from { font-size: .8rem; color: var(--muted); }
.card-price strong { font-weight: 800; letter-spacing: -.01em; }
.card-was { font-size: .8rem; color: var(--muted); margin-top: -2px; }
.card-was s { margin-left: 2px; }
.card-stores { font-size: .82rem; color: var(--muted); margin: 2px 0 10px; }
.compare-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px dashed var(--line-2); border-radius: 8px; background: transparent; color: var(--ink-2); font-size: .82rem; font-weight: 600; cursor: pointer; }
.compare-toggle .icon { width: 15px; height: 15px; }
.compare-toggle:hover { border-color: var(--brand); color: var(--brand-700); }
.compare-toggle[aria-pressed="true"] { border-style: solid; border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.compare-toggle-wide { margin-top: 12px; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; background: var(--surface-3); color: var(--ink-2); border: 1px solid transparent; }
.badge .icon { width: 14px; height: 14px; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.stock { font-weight: 600; }
.stock-in_stock { color: var(--good); }
.badge.stock-in_stock { background: var(--good-bg); }
.stock-out_of_stock { color: var(--bad); }
.badge.stock-out_of_stock { background: var(--bad-bg); }
.stock-preorder, .stock-upcoming { color: var(--warn); }
.badge.stock-preorder, .badge.stock-upcoming { background: var(--warn-bg); }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-600); }

/* Listing */
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.h1-sub { font-weight: 500; color: var(--muted); font-size: .65em; }
.lead { color: var(--muted); max-width: 760px; margin: 0; }
.subcats { margin-bottom: 18px; }
.listing-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; scrollbar-width: thin; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 4px; }
.filters-head h2 { margin: 0; font-size: 1.05rem; }
.filters-close { display: none; }
.facet { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0; }
.facet:first-of-type { border-top: 0; }
.facet legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.facet legend + * { clear: both; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: .9rem; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; flex: none; }
.check span { flex: 1; }
.check em { font-style: normal; color: var(--muted); font-size: .8rem; }
.more summary { cursor: pointer; color: var(--brand-600); font-size: .85rem; font-weight: 600; padding: 4px 0; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { display: none; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); }
.price-range span { color: var(--muted); font-size: .85rem; }
.filters-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.filters-actions .btn { flex: 1; }
.js .filters-actions .btn-primary { display: none; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.filters-open { display: none; }
.result-count { margin: 0; color: var(--muted); }
.result-count strong { color: var(--ink); }
.sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.sort select { padding: 7px 30px 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; color: var(--ink); cursor: pointer; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 12px; border-radius: 8px; text-align: center; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.pagination a:hover { border-color: var(--brand); text-decoration: none; }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { border: 0; background: transparent; }
.empty-state { text-align: center; padding: 48px 24px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-state > .icon { width: 44px; height: 44px; color: var(--brand); margin-bottom: 8px; }
.empty-state h1, .empty-state h2 { color: var(--ink); }
.empty-state p { max-width: 560px; margin: 0 auto 12px; }
.small-empty { padding: 20px; }
.error-state { padding: 64px 24px; }
.search-inline { margin: 20px auto; max-width: 520px; background: var(--card); }

/* Store header */
.store-head { display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 18px; }
.store-head .store-logo { width: 64px; height: 64px; border-radius: 14px; font-size: 1.2rem; }
.store-head-main { flex: 1; min-width: 0; }
.store-head h1 { margin-bottom: 2px; }
.store-head p { margin: 0 0 8px; }
.store-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; font-size: .9rem; color: var(--ink-2); }
.store-facts .icon { color: var(--brand); margin-right: 3px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.store-card { display: flex; gap: 14px; padding: 16px; color: var(--ink); text-decoration: none !important; }
.store-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.store-card h2 { font-size: 1.05rem; margin: 0; }
.store-card p { margin: 2px 0 0; }
.store-card .store-logo { width: 52px; height: 52px; }

/* Product page */
.product-page { padding-bottom: 64px; }
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 8px 0 40px; border-bottom: 1px solid var(--line); }
.gallery { align-self: start; position: sticky; top: 124px; }
.gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--media); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 64px; height: 64px; flex: none; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--media); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--ink); }
.product-brand { font-weight: 600; font-size: .92rem; color: var(--muted); }
.product-brand:hover { color: var(--brand-600); }
.product-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; margin: 4px 0 8px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .88rem; margin: 0 0 20px; }

.variants { margin: 20px 0 4px; }
.variants-head { font-size: .92rem; font-weight: 600; margin-bottom: 8px; }
.variant-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.variant { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none !important; transition: border-color .15s; }
.variant:hover { border-color: var(--ink-2); }
.variant.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.variant-label { font-weight: 600; font-size: .9rem; }
.variant-price { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

.buy-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.buy-label { margin: 0; font-size: .92rem; color: var(--muted); }
.buy-price { margin: 0; font-size: clamp(2.2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.buy-where { margin: 4px 0 18px; color: var(--ink-2); }
.buy-where a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.buy-where a:hover { text-decoration-color: currentColor; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-actions .btn { flex: 1 1 200px; }
.buy-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 22px 0 0; padding: 0; }
.buy-facts dt { font-size: .82rem; color: var(--muted); }
.buy-facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-facts dd .muted { font-weight: 400; }
.price-insight { padding: 10px 12px; border-radius: 8px; font-size: .9rem; margin: -6px 0 16px; border-left: 3px solid; }
.price-insight.is-good { background: var(--good-bg); color: var(--good); }
.price-insight.is-neutral { background: var(--surface-3); color: var(--ink-2); border-color: var(--line-2); }
.price-insight.is-high { background: var(--warn-bg); color: var(--warn); }
.compare-toggle-wide { margin-top: 18px; }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-sm .icon { width: 14px; height: 14px; }

.offers { padding: 40px 0 8px; scroll-margin-top: 130px; }
.offers-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.offers-head h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.015em; }
.offers-sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.offer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .9rem; }
.offer-controls .sort { margin-left: 0; }
.segmented { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 3px; }
.segmented button { border: 0; background: transparent; padding: 5px 11px; border-radius: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }

.offer-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.offer-table thead th { padding: 10px 16px; text-align: left; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.offer-table td { padding: 14px 16px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.offer-table tbody tr:last-child td { border-bottom: 0; }
.offer-table tbody tr:hover { background: var(--surface-2); }
.offer-table tr.is-best, .offer-table tr.is-best:hover { background: var(--brand-50); }
.o-shop { width: 26%; }
.o-shop > .store-logo { float: left; width: 36px; height: 36px; border-radius: 8px; margin-right: 12px; }
.o-shop > div { overflow: hidden; }
.o-shop-name { display: block; font-weight: 700; color: var(--ink); }
.o-sub { display: block; color: var(--muted); font-size: .8rem; }
.o-sub s { color: var(--muted); }
.o-title { color: var(--ink-2); margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.o-facts { color: var(--muted); font-size: .82rem; }
.o-facts span + span::before { content: " · "; color: var(--line-2); }
.o-warranty-official { color: var(--good); font-weight: 600; }
.o-warranty-unofficial { color: var(--warn); }
.o-colors { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.o-price { text-align: right !important; white-space: nowrap; width: 1%; }
.o-amount { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.o-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 4px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; vertical-align: 3px; letter-spacing: 0; }
.is-best .o-amount { color: var(--brand-700); }
.save { color: var(--good); font-weight: 700; }
.delivery-line b { color: var(--ink); }
.delivery-line:empty { display: none; }
.o-cta { width: 1%; white-space: nowrap; text-align: right; }
.offers-empty { text-align: center; padding: 16px; }
.offers-more { display: flex; margin: 12px auto 0; }
.fine-print { color: var(--muted); font-size: .8rem; margin: 14px 0 0; max-width: 820px; }

.product-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.side-col { position: sticky; top: 124px; }
.p-section { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.p-section > h2, .p-section-head h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 0 0 12px; }
.p-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.p-section-head h2 { margin: 0; }
.related .section-head { margin-bottom: 16px; }
.related .section-head h2 { font-size: 1.2rem; }
.chart { position: relative; height: 260px; margin-top: 8px; }
.chart.is-empty { height: auto; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line); }
.chart .axis-label { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#chart-fill); }
.chart .high { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .dot { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.chart .cross { stroke: var(--line-2); stroke-dasharray: 3 3; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--card); padding: 6px 10px; border-radius: 8px; font-size: .8rem; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow-lg); }
.chart-tip b { font-size: .95rem; }
.chart-empty { margin: 0; color: var(--muted); font-size: .92rem; }
.history-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.history-stats b { color: var(--ink); }
.legend-line { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--brand); vertical-align: middle; margin-right: 6px; }
.legend-line.dashed { border-top: 1.5px dashed var(--line-2); }

.prose { color: var(--ink-2); line-height: 1.7; max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { font-size: 1.05rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.spec-table, .mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 45%; padding-right: 12px; color: var(--muted); font-weight: 400; }
.spec-table td { font-weight: 600; }
.spec-table tr.is-variant td { color: var(--ink); }
.mini-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .num { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 10px; }
.mini-table tr.is-current a { color: var(--ink); font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq .prose { margin-top: 8px; }

@media (max-width: 1080px) {
  .product-body { grid-template-columns: 1fr; gap: 0; }
  .side-col { position: static; }
}
@media (max-width: 860px) {
  .product-top { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .gallery-main { aspect-ratio: 4 / 3; padding: 16px; }
  .offer-table thead { display: none; }
  .offer-table, .offer-table tbody { display: block; }
  .offer-table tr.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .offer-table tr.offer[hidden] { display: none; }
  .offer-table tbody tr:last-child { border-bottom: 0; }
  .offer-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .o-info { grid-column: 1 / -1; grid-row: 2; }
  .o-cta { grid-column: 1 / -1; text-align: left; }
  .o-cta .btn { width: 100%; }
}
@media (max-width: 520px) {
  .buy-facts { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .offers-head { align-items: flex-start; }
  .p-section { padding-top: 24px; margin-top: 24px; }
}

/* Compare */
.compare-scroll { overflow-x: auto; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .92rem; }
.compare-table tbody th { width: 200px; color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; left: 0; }
.compare-table tr.differ td { background: var(--warn-bg); font-weight: 600; }
.compare-table.only-diff tr[data-same] { display: none; }
.compare-corner { background: var(--card); }
.compare-product { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.compare-media { display: grid; place-items: center; height: 120px; }
.compare-media img { width: auto; height: auto; max-width: 100%; max-height: 120px; object-fit: contain; }
.compare-name { color: var(--ink); font-weight: 700; }
.compare-price { font-size: 1.25rem; font-weight: 800; }
.compare-remove { position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; }
.compare-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

/* Compare tray */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(15, 23, 42, .12); }
.compare-tray-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.compare-tray-items { flex: 1; display: flex; gap: 10px; overflow-x: auto; }
.tray-item { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 30px 6px 6px; border: 1px solid var(--line); border-radius: 10px; width: 250px; flex: none; }
.tray-item img, .tray-item .no-image { width: 40px; height: 40px; object-fit: contain; flex: none; }
.tray-item span { font-size: .78rem; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tray-item button { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.compare-tray-actions { display: flex; gap: 8px; flex: none; }
body.has-tray { padding-bottom: 72px; }

/* Footer */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--footer-line); color: var(--footer-text); margin-top: 56px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.site-footer h3 { color: var(--footer-ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--footer-link); }
.footer-about p { margin-top: 14px; }
.footer-notes li { line-height: 1.45; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-top: 16px; padding-bottom: 24px; font-size: .82rem; }

.scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 55; }

/* Responsive */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .nav-toggle { display: inline-grid; order: 0; }
  .logo { order: 1; }
  .header-links { order: 2; }
  .header-links span { display: none; }
  .site-header .search { order: 3; flex-basis: 100%; max-width: none; }
  .site-header .search-btn { display: none; }
  .cat-nav { display: none; }
  .cat-nav.is-open { display: block; }
  .cat-nav.is-open ul { flex-direction: column; overflow: visible; padding: 8px 0; }
  .cat-nav.is-open .mega { display: none !important; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); max-height: none; border-radius: 0; z-index: 60; transform: translateX(-105%); transition: transform .2s ease; }
  .filters.is-open { transform: none; }
  .filters-close, .filters-open { display: inline-flex; }
  .filters-actions { position: sticky; bottom: -16px; background: var(--card); padding-bottom: 16px; }
  .js .filters-actions .btn-primary { display: inline-flex; }
  .how-grid { grid-template-columns: 1fr; }
  .store-head { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .container { padding: 0 14px; }
  .hero-inner { padding: 32px 14px 36px; }
  .search-hero { flex-wrap: wrap; padding: 6px; }
  .search-hero .search-icon { display: none; }
  .search-hero input { flex-basis: 100%; }
  .search-hero .search-btn { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 2px; }
  .card-foot { padding: 6px 10px 12px; }
  .card-price { font-size: 1.05rem; }
  .compare-tray-row { flex-wrap: wrap; }
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .result-count { white-space: nowrap; }
  .sort { font-size: 0; gap: 0; }
  .sort select { font-size: .88rem; }
  .offer-controls { gap: 8px 12px; }
  .compare-tray-actions { width: 100%; }
  .compare-tray-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Photos blend into their well, so white backgrounds are not bright boxes in dark mode. */
.card-media img, .gallery-main img, .thumb img { mix-blend-mode: var(--media-blend); }

/* Theme menu: System (the default), Light or Dark */
.theme-menu { position: relative; display: inline-flex; }
.theme-toggle i { display: none; font-style: normal; }
:root:not([data-theme]) .theme-toggle .icon-system,
:root[data-theme="light"] .theme-toggle .icon-light,
:root[data-theme="dark"] .theme-toggle .icon-dark { display: inline-grid; }
.theme-options { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 160px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.theme-options button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: .9rem; text-align: left; cursor: pointer; }
.theme-options button:hover, .theme-options button:focus-visible { background: var(--surface-3); color: var(--ink); outline: none; }
.theme-options button .icon { width: 18px; height: 18px; color: var(--muted); }
.theme-options button[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.theme-options button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--brand-700); }
.chart stop { stop-color: var(--brand); }
