/* ══════════════════════════════════════════════
   Product Page (.pp prefix)
   ══════════════════════════════════════════════ */
.pp { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* ── Hero ───────────────────────────── */
.hero { background: var(--surface); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 1rem; pointer-events: none; }
.hero-site-logo { height: 5rem; width: auto; position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.hero-site-logo-link { display: contents; }
.hero-brand-badge { width: 4.5rem; height: 4.5rem; position: absolute; top: 1rem; right: 1rem; z-index: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.25); overflow: hidden; text-decoration: none; }
.hero-brand-logo { width: 3.75rem; height: 3.75rem; object-fit: contain; border-radius: 50%; }
.hero-img { width: 200px; height: 200px; object-fit: contain; border-radius: 0.75rem; background: #fff; margin-bottom: 0.75rem; }
.hero-img--fallback { display: flex; align-items: center; justify-content: center; }
.hero-fallback-logo { max-width: 60%; max-height: 60%; object-fit: contain; }
.hero h1 { margin: 0 0 0.2rem; font-size: 1.6rem; color: var(--text-bright); line-height: 1.3; }
.hero-sub { font-size: 0.9rem; color: #9ca3af; margin-bottom: 0.5rem; }
.hero-price-line { font-size: 1.35rem; color: var(--accent); font-weight: 700; }
.hero-price-line small { font-size: 0.8rem; color: #9ca3af; font-weight: 400; margin-right: 0.35rem; }
.hero-stores-line { font-size: 0.85rem; color: #9ca3af; margin-top: 0.35rem; }
.vetted-score { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; position: relative; }
.vetted-score-title { font-size: 0.78rem; color: #9ca3af; display: inline-flex; align-items: center; gap: 0.2rem; }
.vetted-info-btn { background: none; border: none; color: #9ca3af; font-size: 0.85rem; cursor: pointer; padding: 0; line-height: 1; }
.vetted-info-btn:hover { color: var(--accent); }
.vetted-score-num { font-size: 0.78rem; color: #9ca3af; }
.vetted-tooltip { display: none; position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); width: max-content; max-width: 16rem; font-size: 0.75rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; line-height: 1.45; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 10; }
.vetted-tooltip::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--border); }
.vetted-tooltip::after { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-bottom-color: var(--surface); }
.vetted-tooltip.visible { display: block; }
.hero-source-links { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 1rem; flex-wrap: wrap; }
.hero-source-link { position: relative; display: flex; align-items: center; justify-content: center; width: 2.64rem; height: 2.64rem; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #d1d5db; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease; text-decoration: none; }
.hero-source-link:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); transform: scale(1.08); }
.hero-source-link svg { height: 1.43rem; width: 1.43rem; }

/* ── Badges ───────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.badge { background: rgba(249,166,29,0.12); color: var(--accent); border: 1px solid rgba(249,166,29,0.25); font-size: 0.78rem; padding: 0.25rem 0.65rem; border-radius: 2rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }
.badge-icon { height: 1rem; width: 1rem; object-fit: contain; filter: brightness(0) invert(1); }

/* ── Spec grid ────────────────────────── */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.spec-item { background: var(--surface); border: 1px solid var(--border); border-radius: 0.65rem; padding: 0.65rem 0.85rem; display: flex; flex-direction: column; gap: 0.15rem; }
.spec-label { font-size: 0.72rem; color: #9ca3af; }
.spec-value { font-size: 0.9rem; color: var(--text-bright); font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.spec-icon { height: 1.1rem; width: 1.1rem; object-fit: contain; filter: brightness(0) invert(1); }

/* ── Section titles ───────────────────── */
.section-title { font-size: 1.1rem; color: var(--text-bright); font-weight: 700; margin: 0 0 0.75rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--accent); display: inline-block; }

/* ── Variation cards ──────────────────── */
.var-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.var-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; text-align: center; position: relative; transition: border-color 0.2s, transform 0.15s; cursor: pointer; text-decoration: none; display: block; }
.var-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.var-card--best { border-color: var(--accent); }
.var-best-badge { position: absolute; top: -0.55rem; right: 50%; transform: translateX(50%); background: var(--accent); color: #000; font-size: 0.65rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 1rem; white-space: nowrap; }
.var-weight { font-size: 0.8rem; color: #9ca3af; font-weight: 400; margin-top: 0.15rem; }
.var-price { font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.var-stores { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }

/* ── Store logos ──────────────────────── */
.store-logos { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1.5rem; }
.store-logo-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 0.35rem; text-decoration: none; transition: transform 0.15s; }
.store-logo-link:hover { transform: translateY(-1px); }
.store-logo { height: 2rem; width: auto; border-radius: 0.35rem; background: #fff; padding: 0.15rem 0.35rem; opacity: 0.85; }
.store-logo--dark { background: #1a1a1a; }

/* ── CTA ──────────────────────────────── */
.hero-cta { display: inline-block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); margin-top: 0.75rem; }
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Bottom CTA ───────────────────────── */
.bottom-cta { display: block; background: var(--accent); color: #000; font-weight: 700; font-size: 1rem; padding: 0.75rem 2rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); text-align: center; margin: 1.5rem auto 0; max-width: 22rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.bottom-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Back to top ──────────────────────── */
.back-to-top { display: block; text-align: center; color: #9ca3af; font-size: 0.8rem; margin-top: 1.25rem; text-decoration: none; }
.back-to-top:hover { color: var(--accent); }

/* ── Footer ───────────────────────────── */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: #9ca3af; margin-bottom: 1rem; }
.breadcrumb a, .breadcrumb span { unicode-bidi: isolate; }
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .bc-sep { color: #9ca3af; }
.pp-footer { text-align: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.pp-footer a { color: var(--link); font-size: 0.85rem; }

/* ── No data ──────────────────────────── */
.no-data { text-align: center; color: #9ca3af; padding: 2.5rem 1rem; background: var(--surface); border-radius: 0.75rem; border: 1px dashed var(--border); }

/* ── Mobile ───────────────────────────── */
@media (max-width: 600px) {
    .hero { padding: 1.25rem 1rem; }
    .hero-site-logo-link { display: block; }
    .hero-site-logo { position: static; height: 6rem; }
    .hero-img { width: 160px; height: 160px; }
    .hero h1 { font-size: 1.3rem; margin-top: 0.5rem; }
    .hero-cta { width: 100%; text-align: center; }
    .hero-source-link { width: 2.42rem; height: 2.42rem; }
    .hero-source-link svg { width: 1.27rem; height: 1.27rem; }
    .vetted-score { justify-content: center; }
    .specs { grid-template-columns: 1fr 1fr; }
    .var-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════
   Category Page (.cp prefix)
   ══════════════════════════════════════════════ */
.cp { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* ── Hero ───────────────────────────── */
.cp-hero { background: var(--surface); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; text-align: center; }
.cp-hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 1rem; pointer-events: none; }
.cp-site-logo { height: 5rem; width: auto; position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.cp-site-logo-link { display: contents; }
.cp-hero h1 { margin: 0 0 0.35rem; font-size: 1.5rem; color: var(--text-bright); line-height: 1.3; }
.cp-hero-desc { font-size: 0.9rem; color: #9ca3af; margin: 0.25rem 0 0; line-height: 1.5; }
.cp-hero-cta { display: inline-block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); margin-top: 0.75rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.cp-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Brand grid ───────────────────────── */
.bg { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.bc { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.15s; }
.bc:hover { border-color: var(--accent); transform: translateY(-2px); }
.bc-logo-wrap { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fff; padding: 1rem; }
.bc-logo-wrap--empty { background: var(--surface); }
.bc-logo { max-width: 80%; max-height: 80%; object-fit: contain; }
.bc-body { padding: 0.85rem; flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.bc-name { font-size: 0.95rem; color: var(--text-bright); font-weight: 600; }
.bc-name-he { font-size: 0.82rem; color: #9ca3af; }
.bc-stats { font-size: 0.8rem; color: #9ca3af; }

/* ── Filter card ──────────────────────── */
.cp-filter { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; margin-bottom: 1rem; }
.cp-filter-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.cp-filter-title { font-size: 0.95rem; color: var(--text-bright); font-weight: 700; margin: 0; }
.cp-filter-count { font-size: 0.82rem; color: #9ca3af; }
.cp-filter-search { width: 100%; background: transparent; border: 1px solid var(--border); color: var(--text-bright); font-size: 0.85rem; padding: 0.4rem 0.75rem; border-radius: 999px; font-family: var(--font); outline: none; transition: border-color 0.15s; }
.cp-filter-search:focus { border-color: var(--accent); }
.cp-filter-search::placeholder { color: #6b7280; }
.cp-no-results { display: none; text-align: center; color: #9ca3af; padding: 2rem 1rem; background: var(--surface); border-radius: 0.75rem; border: 1px dashed var(--border); margin-bottom: 1.5rem; }
.cp-no-results.is-visible { display: block; }

/* ── CTA bottom ───────────────────────── */
.cp-cta--bottom { display: block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); text-align: center; margin: 1.5rem auto 0; max-width: 22rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.cp-cta--bottom:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── More categories ──────────────────── */
.cp-more { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: 0.85rem; }
.cp-more-label { color: #9ca3af; }
.cp-more-link { color: var(--link); text-decoration: none; background: var(--surface); border: 1px solid var(--border); padding: 0.3rem 0.75rem; border-radius: 2rem; transition: border-color 0.15s; }
.cp-more-link:hover { border-color: var(--accent); }

/* ── Footer (cp) ──────────────────────── */
.section-heading { font-size: 1.15rem; color: var(--text-bright); margin: 0 0 0.75rem; }
.cp-footer { text-align: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.cp-footer a { color: var(--link); font-size: 0.85rem; }

/* ── Mobile (cp) ──────────────────────── */
@media (max-width: 600px) {
    .cp-hero { padding: 1.25rem 1rem; }
    .cp-site-logo-link { display: block; }
    .cp-site-logo { position: static; height: 6rem; }
    .bg { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
}

/* ══════════════════════════════════════════════
   Brand Page (.bp prefix)
   ══════════════════════════════════════════════ */
.bp { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* ── Hero ───────────────────────────── */
.bp-hero { background: var(--surface); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; }
.bp-hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 1rem; pointer-events: none; }
.bp-site-logo { height: 5rem; width: auto; position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.bp-site-logo-link { display: contents; }
.bp-logo-badge { width: 4.5rem; height: 4.5rem; position: absolute; top: 1rem; right: 1rem; z-index: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.25); overflow: hidden; }
.bp-logo { width: 3.75rem; height: 3.75rem; object-fit: contain; border-radius: 50%; }
.bp-hero-sub { font-size: 0.9rem; color: #9ca3af; margin-bottom: 0.5rem; }
.bp-hero h1 { margin: 0 0 0.35rem; font-size: 1.5rem; color: var(--text-bright); line-height: 1.3; }
.bp-hero-desc { font-size: 0.85rem; color: #9ca3af; line-height: 1.55; margin: 0.35rem 0 0; max-width: 32rem; padding: 0 5.5rem; }
@media (max-width: 640px) { .bp-hero-desc { padding: 0 1rem; } }
.bp-source-links { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 1rem; flex-wrap: wrap; }
.bp-source-link { position: relative; display: flex; align-items: center; justify-content: center; width: 2.64rem; height: 2.64rem; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #d1d5db; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease; text-decoration: none; }
.bp-source-link:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); transform: scale(1.08); }
.bp-source-link svg { height: 1.43rem; width: 1.43rem; }

/* ── Filters ──────────────────────────── */
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.filters-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.filters-title { font-size: 0.85rem; color: #9ca3af; font-weight: 600; }
.filters-count { font-size: 0.82rem; color: #9ca3af; }
.fg { margin-bottom: 0.65rem; display: flex; flex-direction: column; gap: 0.35rem; }
.fg:last-child { margin-bottom: 0; }
.fg-label { display: block; font-size: 0.78rem; color: #9ca3af; }
.fg-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fp { background: transparent; border: 1px solid var(--border); color: var(--text); font-size: 0.78rem; padding: 0.3rem 0.7rem; border-radius: 2rem; cursor: pointer; font-family: var(--font); transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.fp:hover { border-color: var(--accent); color: var(--accent); }
.fp.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.fp-icon { height: 0.9rem; width: 0.9rem; object-fit: contain; filter: brightness(0) invert(1); }
.fp.active .fp-icon { filter: brightness(0); }
.filters-search { flex: 1; min-width: 0; background: transparent; border: 1px solid var(--border); color: var(--text-bright); font-size: 0.85rem; padding: 0.4rem 0.75rem; border-radius: 999px; font-family: var(--font); outline: none; transition: border-color 0.15s; }
.filters-search:focus { border-color: var(--accent); }
.filters-search::placeholder { color: #6b7280; }

/* ── Product grid ─────────────────────── */
.pg { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.pc { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.15s; }
.pc:hover { border-color: var(--accent); transform: translateY(-2px); }
.pc-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.pc-img--empty { background: var(--surface); }
.pc-img--fallback { display: flex; align-items: center; justify-content: center; }
.pc-fallback-logo { max-width: 60%; max-height: 60%; object-fit: contain; }
.pc-body { padding: 0.85rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.pc-name { font-size: 0.92rem; color: var(--text-bright); font-weight: 600; line-height: 1.35; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.15rem; }
.pc-tag { font-size: 0.7rem; background: rgba(249,166,29,0.12); color: var(--accent); border: 1px solid rgba(249,166,29,0.25); padding: 0.15rem 0.5rem; border-radius: 1.5rem; display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.pc-tag-icon { height: 0.8rem; width: 0.8rem; object-fit: contain; filter: brightness(0) invert(1); }
.pc-price { font-size: 0.95rem; color: var(--accent); font-weight: 700; margin-top: auto; padding-top: 0.35rem; }
.pc-weight { font-size: 0.78rem; color: #9ca3af; font-weight: 400; }
.pc-bag { font-size: 0.7rem; color: #9ca3af; font-weight: 400; }
.bp-bag { font-size: 0.85em; color: #9ca3af; font-weight: 400; }
.pc-stores { font-size: 0.75rem; color: #9ca3af; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pc-rating { display: inline-flex; align-items: center; gap: 0.25rem; }
.pc-score-num { font-size: 0.7rem; color: #9ca3af; }

/* ── No results ───────────────────────── */
.no-results { display: none; text-align: center; color: #9ca3af; padding: 2.5rem 1rem; background: var(--surface); border-radius: 0.75rem; border: 1px dashed var(--border); margin-bottom: 1.5rem; }
.no-results.visible { display: block; }

/* ── CTA (bp) ─────────────────────────── */
.bp-cta { display: inline-block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); text-align: center; margin-top: 0.75rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.bp-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }
.bp-cta--bottom { display: block; margin: 1.5rem auto 0; max-width: 22rem; }

/* ── Footer (bp) ──────────────────────── */
.bp-footer { text-align: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.bp-footer a { color: var(--link); font-size: 0.85rem; }

/* ── Mobile (bp) ──────────────────────── */
@media (max-width: 600px) {
    .bp-hero { padding: 1.25rem 1rem; }
    .bp-site-logo-link { display: block; }
    .bp-site-logo { position: static; height: 6rem; }
    .bp-source-link { width: 2.42rem; height: 2.42rem; }
    .bp-source-link svg { width: 1.27rem; height: 1.27rem; }
    .pg { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .bp-cta { width: 100%; text-align: center; }
    .pc-body { padding: 0.65rem; }
    .pc-name { font-size: 0.82rem; }
}

/* ══════════════════════════════════════════════
   Stores List Page (.sp prefix)
   ══════════════════════════════════════════════ */
.sp { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* ── Hero ───────────────────────────── */
.sp-hero { background: var(--surface); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; text-align: center; }
.sp-hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 1rem; pointer-events: none; }
.sp-site-logo { height: 5rem; width: auto; position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.sp-site-logo-link { display: contents; }
.sp-hero h1 { margin: 0 0 0.35rem; font-size: 1.5rem; color: var(--text-bright); line-height: 1.3; }
.sp-hero-stats { font-size: 0.85rem; color: #9ca3af; }
.sp-hero-desc { font-size: 0.85rem; color: #9ca3af; line-height: 1.55; margin: 0.5rem auto 0; max-width: 32rem; }
.sp-hero-cta { display: inline-block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); margin-top: 0.75rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.sp-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Store grid ───────────────────────── */
.sg { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.sc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; transition: border-color 0.2s, transform 0.2s; text-decoration: none; color: inherit; }
.sc:hover { border-color: var(--accent); transform: translateY(-2px); }
.sc-header { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; }
.sc-logo { width: 2.8rem; height: 2.8rem; object-fit: contain; border-radius: 0.5rem; background: #fff; padding: 0.25rem; flex-shrink: 0; }
.sc-logo--dark { background: #1a1a1a; }
.sc-title { flex: 1; }
.sc-name { font-size: 0.92rem; color: var(--text-bright); font-weight: 700; line-height: 1.35; }
.sc-stats { font-size: 0.8rem; color: #9ca3af; margin-top: 0.15rem; }
.sc-meta { margin-top: 0.15rem; }
.sc-rating { display: flex; align-items: center; gap: 0.2rem; font-size: 0.75rem; margin-top: 0.1rem; direction: ltr; }
.sc-rating-icon { width: 1.3em; height: 1.3em; flex-shrink: 0; border-radius: 2px; }
.sc-rating-value { font-weight: 600; color: var(--text-bright); }
.sc-image-wrap { line-height: 0; margin-top: auto; }
.sc-img { display: block; width: 100%; height: 10rem; object-fit: contain; background: #fff; padding: 0.75rem; }
.sc-image-wrap--dark { background: #1a1a1a; }
.sc-image-wrap--dark .sc-img { background: #1a1a1a; }

/* ── Footer (sp) ──────────────────────── */
.hero-updated { display: inline-block; font-size: 0.75rem; color: #a1aabd; background: rgba(107,114,128,0.1); padding: 0.15rem 0.55rem; border-radius: 0.3rem; white-space: nowrap; margin-inline-start: auto; }
.sp-footer { text-align: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.sp-footer a { color: var(--link); font-size: 0.85rem; }

/* ── CTA bottom (sp) ─────────────────── */
.sp-cta--bottom { display: block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); text-align: center; margin: 1.5rem auto 0; max-width: 22rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.sp-cta--bottom:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Promo ─────────────────────────────── */
.cp-promo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: rgba(167,139,250,0.08); border: 1px dashed rgba(167,139,250,0.5); border-radius: 0.75rem; padding: 0.4rem 1.25rem; margin-bottom: 1rem; font-size: 0.9rem; color: #d1d5db; text-align: center; }
.cp-promo a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cp-promo a:hover { text-decoration: underline; }

/* ── Mobile (sp) ──────────────────────── */
@media (max-width: 600px) {
    .sp-hero { padding: 1.25rem 1rem; }
    .sp-site-logo-link { display: block; }
    .sp-site-logo { position: static; height: 6rem; }
    .sg { grid-template-columns: 1fr; gap: 0.75rem; }
    .sc-header { padding: 1rem 0.75rem; gap: 0.65rem; }
    .sc-logo { width: 2.2rem; height: 2.2rem; }
}

/* ══════════════════════════════════════════════
   Store Detail Page (.sd prefix)
   ══════════════════════════════════════════════ */
.sd { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* ── Hero ───────────────────────────── */
.sd-hero { background: var(--surface); border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sd-hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 1rem; pointer-events: none; }
.sd-site-logo { height: 5rem; width: auto; position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.sd-site-logo-link { display: contents; }
.sd-source-logo-badge { width: 4.5rem; height: 4.5rem; position: absolute; top: 1rem; right: 1rem; z-index: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.sd-source-logo-badge--dark { background: #1a1a1a; }
.sd-source-logo { width: 3.25rem; height: 3.25rem; object-fit: contain; border-radius: 50%; }
.sd-hero h1 { margin: 0 0 0.35rem; font-size: 1.5rem; color: var(--text-bright); line-height: 1.3; }
.sd-hero-sub { font-size: 0.9rem; color: #9ca3af; margin-bottom: 0.5rem; }
.sd-hero-desc { font-size: 0.85rem; color: #9ca3af; line-height: 1.55; margin: 0; margin-top: 0.75rem; max-width: 32rem; }
.sd-ai-badge { display: inline-flex; align-items: center; gap: 0.05rem; font-size: 0.7rem; color: #9ca3af; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 0.15rem 0.55rem; margin-top: 0.75rem; margin-bottom: -0.25rem; }
.sd-ai-badge svg { width: 1rem; height: 1rem; }
.sd-hero-rating { display: flex; align-items: center; justify-content: center; gap: 0.3rem; font-size: 0.9rem; margin-top: 0.5rem; direction: ltr; position: relative; }
.sd-rating-icon { width: 1.4em; height: 1.4em; flex-shrink: 0; border-radius: 2px; }
.sd-rating-value { font-weight: 700; color: var(--text-bright); }
.sd-info-btn { background: none; border: none; color: #9ca3af; font-size: 0.85rem; cursor: pointer; padding: 0; line-height: 1; }
.sd-info-btn:hover { color: var(--accent); }
.sd-hero-tooltip { display: none; position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); width: max-content; max-width: 16rem; font-size: 0.75rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.75rem; line-height: 1.45; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 10; }
.sd-hero-tooltip::before { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--border); }
.sd-hero-tooltip::after { content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-bottom-color: var(--surface); }
.sd-hero-tooltip.visible { display: block; }

/* ── Source links (icons row) ─────────── */
.sd-source-links { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 0.75rem; flex-wrap: wrap; }
.sd-source-link { position: relative; display: flex; align-items: center; justify-content: center; width: 2.64rem; height: 2.64rem; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #d1d5db; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.sd-source-link svg { height: 1.43rem; width: 1.43rem; object-fit: contain; }
@media (hover: hover) {
    .sd-source-link:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        color: var(--accent);
        border-color: var(--accent);
    }
}

.sd-hero-cta { display: inline-block; background: var(--accent); color: #000; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.8rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); margin-top: 1.5rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.sd-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── CTA bottom (sd) ─────────────────── */
.sd-cta--bottom { display: block; background: var(--accent); color: #000; font-weight: 700; font-size: 1rem; padding: 0.75rem 2rem; border-radius: 0.6rem; text-decoration: none; font-family: var(--font); text-align: center; margin: 1.5rem auto 0; max-width: 22rem; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 14px rgba(249,166,29,0.3); }
.sd-cta--bottom:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,166,29,0.4); }

/* ── Category cards ───────────────────── */
.sd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.sd-cat { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.25rem; transition: border-color 0.2s, transform 0.15s; }
.sd-cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.sd-cat-label { font-size: 0.95rem; color: var(--text-bright); font-weight: 600; }
.sd-cat-count { font-size: 0.8rem; color: #9ca3af; }

/* ── Footer (sd) ──────────────────────── */
.sd-footer { text-align: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.sd-footer a { color: var(--link); font-size: 0.85rem; }

/* ── Mobile (sd) ──────────────────────── */
@media (max-width: 600px) {
    .sd-hero { padding: 1.25rem 1rem; }
    .sd-site-logo-link { display: block; }
    .sd-site-logo { position: static; height: 6rem; }
    .sd-source-link { width: 2.42rem; height: 2.42rem; }
    .sd-source-link svg { width: 1.27rem; height: 1.27rem; }
    .sd-cats { grid-template-columns: 1fr 1fr; }
}

/* ── Inline style replacements ────────── */
.pp-brand-sub { font-size: 0.6em; color: #9ca3af; font-weight: 400; }
.bp-brand-sub { font-size: 0.75em; color: #9ca3af; font-weight: 400; }
.store-logos-more { color: #9ca3af; font-size: 0.85rem; }
.sd-cta-emoji { margin-right: 0.3rem; }
/* ── Menu toggle button (matches .menu-icon-btn from React) ── */
.menu-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 3.5vw, 16px);
    width: 2.34em;
    height: 2.34em;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .menu-toggle:hover { background: #222325; }
}
.menu-toggle:active { background: #292c31; }
.menu-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}
.menu-toggle .bar {
    width: 1.25em;
    height: 0.125em;
    background-color: #f9fafb;
    border-radius: 1px;
}

/* ── Side menu panel ───────────────── */
/* em units used inside panel so sizes are relative to this
   element's font-size (matching React's rem-based layout). */
.side-menu {
    position: fixed;
    top: 0;
    right: -21em;
    width: 21em;
    height: 100dvh;
    background-color: #1f2937;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 1em 1.25em 0;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: normal;
    direction: ltr;
}
.side-menu.open { right: 0; }

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.375em;
}
.side-menu-title {
    margin: 0;
    text-align: right;
    font-weight: 800;
    color: #f9fafb;
    font-size: 1.25em;
}
.menu-close-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .menu-close-btn:hover { background: #374151; }
}
.menu-close-btn:active { background: #292c31; }

.side-menu-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5em;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.side-menu-body::-webkit-scrollbar { display: none; }

.side-menu-item {
    background: none;
    border: none;
    padding: 0.57em 0.715em;
    text-align: right;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 700;
    transition: background-color 0.2s ease;
    color: #f9a61d;
    text-decoration: none;
    display: block;
    font-family: inherit;
}
.side-menu-item:hover { background-color: #374151; }

.side-menu-divider {
    border-top: 1px solid #374151;
    margin: 0.667em 0.715em 0;
    width: 50%;
    align-self: flex-end;
}
.side-menu-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #d1d5db;
    padding: 0.475em 0.715em 0.285em;
    margin-top: 0.38em;
    text-align: right;
    letter-spacing: 0.03em;
}

.side-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    padding: 0.5em 0.75em;
    border-top: 1px solid #374151;
}
.side-menu-footer-row {
    display: flex;
    align-items: center;
    gap: 0.4em;
}
.side-menu-footer-item {
    background: none;
    border: none;
    padding: 0.2em 0;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 400;
    transition: color 0.2s ease;
    color: #9ca3af;
    text-decoration: none;
    font-family: inherit;
}
.side-menu-footer-item:hover { color: #f9fafb; }
.side-menu-footer-sep { color: #4b5563; }

.side-menu-promo {
    display: block;
    margin: 0.5em 0.715em;
    padding: 0.6em 0.715em;
    background: rgba(167,139,250,0.08);
    border: 1px dashed rgba(167,139,250,0.5);
    border-radius: 8px;
    font-size: 0.9em;
    color: #d1d5db;
    text-align: center;
    text-decoration: none;
}
.side-menu-promo span { color: #f9a61d; font-weight: 700; }
.side-menu-promo:hover { background: rgba(167,139,250,0.14); }

/* ── Overlay ───────────────────────── */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}
.side-menu-overlay.open { display: block; }
/* ── Toolbar ──────────────────────── */
.toolbar {
    margin-top: -1.2rem;
    margin-bottom: 0;
    margin-right: -0.1em;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}
.toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.toolbar .breadcrumb {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.toolbar .breadcrumb a, .toolbar .breadcrumb span { unicode-bidi: isolate; }
.toolbar .breadcrumb a { color: var(--link); text-decoration: none; }
.toolbar .breadcrumb a:hover { text-decoration: underline; }
.toolbar .breadcrumb .bc-sep { color: #9ca3af; margin: 0 0.2rem; }
.hero-updated {
    display: block;
    font-size: 0.75rem;
    color: #a1aabd;
    background: rgba(107,114,128,0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    text-align: end;
    margin-top: 0;
    width: fit-content;
    align-self: flex-end;
}
.show-more-btn { display: block; width: fit-content; margin: 1.25rem auto 0; background: var(--surface); border: 1.5px solid var(--border); color: var(--accent, #f9a61d); font-weight: 700; font-size: 0.9rem; padding: 0.6rem 2rem; border-radius: 0.6rem; cursor: pointer; font-family: var(--font); transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.show-more-btn:hover { border-color: var(--accent); background: rgba(249,166,29,0.06); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,166,29,0.15); }
.show-more-btn:active { transform: translateY(0); }
/* ── Related articles ────────────── */
.bp-related-articles { margin-top: 1rem; }
.bp-related-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.5rem; }
.bp-related-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-bright); margin: 0; }
.bp-related-see-all { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: opacity 0.2s; }
.bp-related-see-all:hover { opacity: 0.8; }
.bp-related-row { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; gap: 0.65rem; }
.bp-related-card { position: relative; border-radius: 0.75rem; overflow: hidden; cursor: pointer; text-decoration: none; border: 1px solid #374151; }
.bp-related-card:first-child { grid-row: span 2; }
.bp-related-card > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.bp-related-card:hover > img { transform: scale(1.09); }
.bp-related-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 0.75rem 0.6rem; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.5) 65%, rgba(0,0,0,0.15) 80%, transparent 100%); }
.bp-related-title { font-size: 0.82rem; font-weight: 700; color: #f9fafb; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-related-card:first-child .bp-related-title { font-size: 1rem; font-weight: 800; -webkit-line-clamp: 3; }
@media (max-width: 600px) {
    .bp-related-row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8rem; }
    .bp-related-card:first-child { grid-column: span 2; grid-row: span 1; }
}
.bp-related-card .bc-reviewer { margin-bottom: 0; margin-top: 0.3rem; }
.bp-related-card .bc-reviewer-pic { width: 18px !important; height: 18px !important; max-width: 18px; max-height: 18px; min-width: 18px; min-height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); margin-left: 0.3rem; flex-shrink: 0; }
.bc-reviewer { display: flex; align-items: center; flex-wrap: wrap; row-gap: 0.15rem; column-gap: 0; margin-bottom: 0.4rem; margin-top: 0.5rem; font-size: 0.78rem; color: #9ca3af; line-height: 1.4; }
.bc-reviewer-pic { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); margin-left: 0.3rem; }
.bc-reviewer-label { color: var(--accent); font-weight: 700; margin-left: 0.25rem; }
.bc-reviewer-name { font-weight: 700; color: var(--text); }
.bc-reviewer-title { font-weight: bold; }
.star-rating { display: inline-flex; align-items: center; direction: ltr; }
.star-rating svg { width: 1em; height: 1em; }
.star-rating-lg svg { width: 1.1em; height: 1.1em; }
.star-rating-sm svg { width: 0.9em; height: 0.9em; }
