:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --ink: #191919;
  --ink-2: #4a4a55;
  --ink-3: #6a6a78;
  --line: #eceef4;
  --line-2: #e0e3ee;

  --brand: #4550c8;
  --brand-strong: #3742ad;
  --brand-blue: #3b74cc;
  --brand-purple: #771f7b;
  --brand-soft: #eef0fc;
  --brand-grad: linear-gradient(120deg, #3b74cc 0%, #4a4fce 45%, #771f7b 100%);

  --points: #ff7a1a;
  --points-strong: #e8630a;
  --points-soft: #fff1e5;

  --star: #ffb020;
  --ok: #17a568;
  --danger: #e5484d;

  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 12px;
  --radius-pill: 7px;

  --shadow-sm: 0 1px 2px rgba(20,22,40,.06), 0 1px 3px rgba(20,22,40,.04);
  --shadow: 0 4px 16px rgba(30,32,60,.08);
  --shadow-lg: 0 12px 32px rgba(30,32,60,.12);

  --header-h: 72px;
  --maxw: 1240px;
  --gap: 16px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(40px, 6vw, 72px); }
.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; }

:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- Button ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding-inline: 20px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--radius-pill); font-weight: 700; font-size: .95rem;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; box-shadow: 0 6px 16px rgba(69,80,200,.28); }
.btn--primary:hover { --btn-bg: var(--brand-strong); box-shadow: 0 10px 22px rgba(69,80,200,.34); }
.btn--points { --btn-bg: var(--points); --btn-fg: #fff; box-shadow: 0 6px 16px rgba(255,122,26,.3); }
.btn--points:hover { --btn-bg: var(--points-strong); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--surface-2); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand); box-shadow: var(--shadow); }
.btn--lg { height: 54px; padding-inline: 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.brand__mark { font-weight: 900; font-size: 1.35rem; letter-spacing: -.03em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.header__search { flex: 1 1 auto; min-width: 0; }
.header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: transparent; border: none; color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--points); border: 2px solid #fff; }
.header__points { width: auto; min-width: 0; padding: 0 2px; }
.points--sm { font-size: .84rem; padding: 5px 11px; gap: 5px; align-items: center; }
.points--sm svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- SearchBar ---------- */
.searchbar { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 5px 6px 5px 18px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.searchbar:focus-within { background: #fff; border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--brand-soft); }
.searchbar__icon { flex-shrink: 0; color: var(--ink-3); display: flex; }
.searchbar__icon svg { width: 20px; height: 20px; }
.searchbar input { flex: 1 1 auto; min-width: 40px; border: none; outline: none; background: transparent; font-size: .98rem; color: var(--ink); height: 40px; }
.searchbar__cat {
  flex-shrink: 0; border: none; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .9rem;
  border-left: 1px solid var(--line-2); height: 40px; width: 150px; margin-right: 4px;
  padding: 0 30px 0 14px; border-radius: 0;
  -webkit-appearance: none; appearance: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7a88' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.searchbar__cat:hover { color: var(--ink); }
.searchbar__cat:focus-visible { outline-offset: 4px; }
.searchbar__submit { flex-shrink: 0; width: 44px; height: 44px; padding: 0; }
.searchbar__submit svg { width: 21px; height: 21px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; color: var(--brand); background: var(--brand-soft); padding: 7px 14px; border-radius: var(--radius-pill); letter-spacing: .01em; margin-bottom: 20px; }
.hero__eyebrow svg { width: 17px; height: 17px; flex-shrink: 0; }
.hero__title { margin-bottom: 18px; }
.hero__title .accent { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 30em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero__stat span { font-size: .86rem; color: var(--ink-3); }

/* ---------- Hero Banner (full-bleed) ---------- */
.hero-banner { position: relative; overflow: hidden; background: var(--surface-2); }
.hero-banner__media { position: absolute; inset: 0; z-index: 0; }
.hero-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,250,247,.92) 0%, rgba(250,250,247,.6) 38%, rgba(250,250,247,.15) 60%, transparent 72%); }
.hero-banner__caption { position: absolute; z-index: 1; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 34px); display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink); font-weight: 700; font-size: .82rem; padding: 9px 15px; border-radius: var(--radius-pill); box-shadow: var(--shadow); }
.hero-banner__caption svg { width: 17px; height: 17px; color: var(--brand); }
.hero-banner__inner { position: relative; z-index: 1; min-height: clamp(430px, 52vw, 600px); display: flex; align-items: center; padding-block: clamp(32px, 5vw, 56px); }
.hero-card { background: transparent; border-radius: 0; box-shadow: none; padding: 0; max-width: 520px; width: 100%; }
.hero-card .hero__eyebrow { margin-bottom: 16px; }
.hero-card .hero__title { font-size: clamp(1.75rem, 3vw, 2.6rem); margin-bottom: 14px; }
.hero-card .hero__lead { margin-bottom: 22px; font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-card .hero__actions { margin-bottom: 6px; }
.hero-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--brand); font-weight: 700; font-size: .95rem; }
.hero-card__link svg { width: 18px; height: 18px; transition: transform .15s ease; }
.hero-card__link:hover svg { transform: translateX(3px); }
.hero-card .hero__stats { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); gap: 24px; }

/* ---------- Statbar ---------- */
.statbar { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.statbar__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 20px; }
.statbar__item { text-align: center; }
.statbar__item b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.statbar__item span { font-size: .84rem; color: var(--ink-3); }
@media (max-width: 620px) { .statbar__row { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

/* ---------- SectionHeader ---------- */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-header p { color: var(--ink-3); margin-top: 6px; font-size: .98rem; }
.section-header a { color: var(--brand); font-weight: 700; font-size: .92rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.section-header a:hover { text-decoration: underline; }

/* ---------- CategoryCard ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; transition: transform .14s ease, box-shadow .16s ease, border-color .16s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card__ic { width: 52px; height: 52px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.cat-card:hover .cat-card__ic { background: var(--brand); color: #fff; }
.cat-card__ic svg { width: 26px; height: 26px; }
.cat-card span { font-weight: 700; font-size: .88rem; }

/* ---------- ProductCard ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 20px; }
.product-card { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; }
.product-card__link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.product-card__link:focus-visible { outline-offset: 4px; }
.product-card__fav { z-index: 2; }
.product-card__title, .product-card__foot .user-badge { position: relative; z-index: 2; }
.product-card__foot .user-badge { pointer-events: none; }
.product-card__media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 10px; transition: transform .18s ease, box-shadow .2s ease; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__media { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; display: grid; place-items: center; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: transform .12s ease, color .15s ease; }
.product-card__fav:hover { transform: scale(1.08); color: var(--points); }
.product-card__fav svg { width: 20px; height: 20px; }
.product-card__fav[aria-pressed="true"] { color: var(--points); }
.product-card__fav[aria-pressed="true"] svg { fill: currentColor; }
.product-card__cond { position: absolute; left: 10px; top: 10px; background: rgba(25,25,25,.72); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); backdrop-filter: blur(4px); }
.product-card__title { font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-card__meta { display: flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: .82rem; }
.product-card__meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }

/* ---------- PointsBadge ---------- */
.points { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; color: var(--points-strong); background: var(--points-soft); padding: 5px 12px; border-radius: var(--radius-pill); font-size: 1.05rem; letter-spacing: -.01em; }
.points small { font-size: .72em; font-weight: 700; }
.points--lg { font-size: 1.25rem; padding: 7px 15px; }

/* ---------- UserBadge ---------- */
.user-badge { display: inline-flex; align-items: center; gap: 7px; }
.user-badge__av { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; }
.user-badge__name { font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.user-badge__rating { display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.user-badge__rating svg { width: 13px; height: 13px; color: var(--star); fill: var(--star); }

/* ---------- How it works ---------- */
.how { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); }
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.how__step { background: #fff; border-radius: var(--radius); padding: 26px 22px; position: relative; box-shadow: var(--shadow-sm); }
.how__num { position: absolute; top: 22px; right: 22px; font-size: 2.2rem; font-weight: 900; color: var(--brand-soft); line-height: 1; letter-spacing: -.04em; }
.how__ic { width: 54px; height: 54px; border-radius: var(--radius); background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.how__ic svg { width: 28px; height: 28px; }
.how__step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.how__step p { color: var(--ink-2); font-size: .94rem; }
.how__note { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px; background: var(--points-soft); border-radius: var(--radius); }
.how__note svg { width: 26px; height: 26px; color: var(--points-strong); flex-shrink: 0; margin-top: 2px; }
.how__note p { color: var(--ink-2); font-size: .95rem; }
.how__note b { color: var(--ink); }

/* ---------- Trust ---------- */
.trust__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.trust__stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.trust__stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.trust__stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
.trust__stat span { color: var(--ink-3); font-size: .9rem; }
.trust__list { display: flex; flex-direction: column; gap: 16px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__item .tic { width: 44px; height: 44px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.trust__item .tic svg { width: 22px; height: 22px; }
.trust__item h3 { font-size: 1.02rem; margin-bottom: 3px; }
.trust__item p { color: var(--ink-2); font-size: .92rem; }
.sample-tag { font-size: .7rem; font-weight: 700; color: var(--points-strong); background: var(--points-soft); padding: 2px 8px; border-radius: var(--radius-pill); vertical-align: middle; margin-left: 8px; }

/* ---------- CTA ---------- */
.cta { background: var(--brand-grad); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px); text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% -20%, rgba(255,255,255,.18), transparent 55%); pointer-events: none; }
.cta h2 { color: #fff; max-width: 16em; margin-inline: auto; }
.cta p { color: rgba(255,255,255,.85); margin: 14px auto 26px; max-width: 34em; font-size: 1.05rem; position: relative; }
.cta .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 48px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer__brand p { color: var(--ink-3); font-size: .9rem; margin-top: 14px; max-width: 26em; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; }
.footer__social a:hover { background: var(--brand); color: #fff; }
.footer__social svg { width: 20px; height: 20px; }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.footer__col a { display: block; color: var(--ink-2); font-size: .92rem; padding: 5px 0; }
.footer__col a:hover { color: var(--brand); }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }
.footer__bar a { color: var(--brand); font-weight: 600; }

/* ---------- Skeleton ---------- */
.skeleton .product-card__media,
.skeleton .sk-line { position: relative; overflow: hidden; background: var(--surface-2); }
.sk-line { height: 12px; border-radius: 6px; margin-top: 8px; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; }
.skeleton .product-card__media::after,
.sk-line::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------- EmptyState ---------- */
.empty { text-align: center; padding: 56px 20px; max-width: 420px; margin-inline: auto; }
.empty__ic { width: 76px; height: 76px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; margin: 0 auto 18px; }
.empty__ic svg { width: 36px; height: 36px; }
.empty h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty p { color: var(--ink-3); margin-bottom: 20px; }

/* ---------- FilterDrawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,22,40,.42); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 90; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 90vw); background: #fff; z-index: 95; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.1rem; }
.drawer__body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius-pill); padding: 8px 14px; font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: all .14s ease; }
.chip:hover { border-color: var(--brand-blue); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 12px; font-size: .95rem; }

/* ---------- MobileBottomNavigation ---------- */
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: none; padding-bottom: env(safe-area-inset-bottom); }
.mobile-nav ul { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; color: var(--ink-3); font-size: .68rem; font-weight: 600; position: relative; }
.mobile-nav a.active { color: var(--brand); }
.mobile-nav svg { width: 23px; height: 23px; }
.mobile-nav__sell { }
.mobile-nav__sell span.plus { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(69,80,200,.4); }
.mobile-nav__sell span.plus svg { width: 26px; height: 26px; }
.mobile-nav__fav-dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--points); }

/* ---------- Product page (offer) ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--ink-3); padding-block: 18px 4px; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }

.offer__grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: clamp(20px, 3vw, 44px); align-items: start; padding-bottom: 24px; }

.gallery__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3.2; background: var(--surface-2); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__cond { position: absolute; top: 14px; left: 14px; background: rgba(25,25,25,.72); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); backdrop-filter: blur(4px); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.gallery__thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); padding: 0; transition: transform .12s ease, box-shadow .15s ease; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb:not(.is-active) img { opacity: .78; }
.gallery__thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.offer__panel { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.buybox { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2vw, 28px); background: #fff; box-shadow: var(--shadow); }
.buybox__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybox__save { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: color .15s, border-color .15s; }
.buybox__save:hover { color: var(--points); border-color: var(--points); }
.buybox__save[aria-pressed="true"] { color: var(--points); border-color: var(--points); }
.buybox__save[aria-pressed="true"] svg { fill: currentColor; }
.buybox__save svg { width: 20px; height: 20px; }
.offer__cat { font-size: .78rem; color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.offer__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 6px 0 16px; line-height: 1.2; }
.offer__meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); padding: 8px 13px; border-radius: var(--radius-pill); font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.meta-chip svg { width: 15px; height: 15px; color: var(--ink-3); }
.offer__price { margin-bottom: 20px; padding: 16px 18px; background: var(--points-soft); border-radius: var(--radius); }
.offer__price-label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--points-strong); opacity: .8; margin-bottom: 4px; }
.offer__price .points--xl { background: none; padding: 0; font-size: 2.1rem; letter-spacing: -.02em; }
.offer__price .points--xl small { font-size: .5em; }

.offer__actions { display: grid; gap: 10px; margin-bottom: 20px; }
.offer__actions .row { display: flex; gap: 10px; }
.offer__actions .row .btn { flex: 1; }

.offer__trust { display: grid; gap: 11px; padding-top: 20px; border-top: 1px solid var(--line); }
.offer__trust li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.offer__trust svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; }

.seller-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.seller-card__av { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(69,80,200,.28); }
.seller-card__info { flex: 1; min-width: 0; }
.seller-card__name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.seller-card__name .verif { color: var(--brand); display: inline-flex; }
.seller-card__name .verif svg { width: 16px; height: 16px; }
.seller-card__sub { font-size: .84rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.seller-card__sub svg { width: 14px; height: 14px; color: var(--star); fill: var(--star); }
.seller-card a.btn { flex-shrink: 0; }

.offer__section { margin-top: 40px; }
.offer__section > h2 { font-size: 1.3rem; margin-bottom: 16px; padding-left: 14px; position: relative; }
.offer__section > h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 4px; background: var(--brand-grad); }
.offer__desc p { color: var(--ink-2); margin-bottom: 12px; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.spec-list > div { background: #fff; padding: 14px 16px; }
.spec-list dt { font-size: .8rem; color: var(--ink-3); margin: 0; }
.spec-list dd { margin: 3px 0 0; font-weight: 600; }
.safety { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-soft); border-radius: var(--radius); padding: 16px 18px; margin-top: 20px; }
.safety svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.safety p { font-size: .9rem; color: var(--ink-2); }

/* ---------- Catalog (offers list) ---------- */
.catalog { padding-block: 8px 40px; }
.catalog__head { margin-bottom: 20px; }
.catalog__head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.catalog__head p { color: var(--ink-3); margin-top: 4px; }
.catalog__layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 28px; align-items: start; }
.filters-aside { position: sticky; top: calc(var(--header-h) + 14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters-aside h2 { font-size: 1.05rem; margin-bottom: 4px; }
.filters-aside .filter-group { margin-bottom: 22px; }
.filters-aside .filter-group:last-of-type { margin-bottom: 12px; }
.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog__count { color: var(--ink-3); font-size: .92rem; }
.catalog__count b { color: var(--ink); font-weight: 700; }
.catalog__tools { display: flex; align-items: center; gap: 10px; }
.sort-select { height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 0 34px 0 16px; font-size: .9rem; font-weight: 600; color: var(--ink-2); background-color: #fff; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7a88' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.btn--filters-mobile { display: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--line-2); font-weight: 700; font-size: .92rem; color: var(--ink-2); padding: 0 10px; }
.pagination a:hover { border-color: var(--brand-blue); color: var(--brand); }
.pagination [aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { border: none; }

/* ---------- Auth (login) ---------- */
.login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: var(--surface-2); overflow: hidden; }
.login__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 40% at 15% 12%, rgba(59,116,204,.22), transparent 70%),
    radial-gradient(42% 42% at 88% 88%, rgba(119,31,123,.20), transparent 70%),
    radial-gradient(38% 34% at 92% 8%, rgba(255,122,26,.12), transparent 70%); }
.login__card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); }
.login__logo { display: inline-flex; margin-bottom: 22px; }
.login__logo img { height: 28px; width: auto; }
.login__card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.login__sub { color: var(--ink-3); margin-bottom: 26px; font-size: .96rem; }
.login__social { display: grid; gap: 10px; }
.login__foot { text-align: center; margin-top: 22px; color: var(--ink-3); font-size: .92rem; }
.login__foot a { color: var(--brand); font-weight: 700; }
.login__legal { position: relative; z-index: 1; text-align: center; color: var(--ink-3); font-size: .82rem; margin-top: 22px; max-width: 440px; }
.login__legal a { color: var(--ink-2); font-weight: 600; text-decoration: underline; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; }
.field .input-wrap { position: relative; }
.field input { width: 100%; height: 50px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 14px; font-size: .98rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--brand-soft); }
.field .toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; background: transparent; color: var(--ink-3); border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer; }
.field .toggle-pass svg { width: 20px; height: 20px; }
.field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: .88rem; }
.field-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; }
.field-row a { color: var(--brand); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-3); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 10px; transition: background .15s, border-color .15s; }
.social-btn:hover { background: var(--surface-2); }
.social-btn svg { width: 20px; height: 20px; }
.social-btn:focus-visible { outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .catalog .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__collage { max-width: 460px; }
  .trust__grid { grid-template-columns: 1fr; }
  .offer__grid { grid-template-columns: minmax(0,1fr); }
  .offer__panel { position: static; }
  .gallery__main { aspect-ratio: 4/3; }
  .catalog__layout { grid-template-columns: minmax(0,1fr); }
  .filters-aside { display: none; }
  .btn--filters-mobile { display: inline-flex; }
  .auth { grid-template-columns: 1fr; min-height: auto; }
  .auth__brand { display: none; }
  .auth__form-wrap { padding-block: 40px; }
  /* header: przejdź na wyszukiwarkę pod spodem już na tablecie */
  .header__search { display: none; }
  .header__mobile-search { display: block; }
  .header__row { gap: 12px; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .hero-banner__caption { display: none; }
  .hero-banner__scrim { background: linear-gradient(180deg, rgba(250,250,247,.94) 0%, rgba(250,250,247,.8) 40%, rgba(250,250,247,.45) 100%); }
  body { padding-bottom: 64px; }
  .mobile-nav { display: block; }
  .header__row { gap: 10px; }
  .brand img { height: 20px; }
  .header__actions { gap: 2px; }
  .icon-btn { width: 42px; }
  .header__actions .icon-btn:not(.header__msg):not(.header__profile),
  .header__actions .btn { display: none; }
  .header__search { display: none; }
  .header__mobile-search { display: block; }
  .how__steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bar { justify-content: center; text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (min-width: 901px) { .header__mobile-search { display: none; } }
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero__stats { gap: 18px; }
  .trust__stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .offer__actions .row { flex-direction: column; }
  .gallery__thumbs { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 360px) {
  .container { padding-inline: 12px; }
  .product-grid { gap: 14px 8px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-card__foot { gap: 4px; }
  .user-badge__av { width: 22px; height: 22px; }
  .points { font-size: .98rem; padding: 4px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
