/* Store redesign — donor shop density, sharper type, theme-safe accents.
   Loaded after app.min.css so existing theme variables still drive color. */

:root {
  --radius-card: 16px;
  --radius-pill: 999px;
  --ink-price: var(--ink-heading);
}

body {
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.011em;
}

h1, h2, .cats-title, .card-header-block h1 {
  letter-spacing: -0.035em;
  font-weight: 800;
}

h1, .cats-title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.wrap {
  max-width: 1280px;
}

.topbar {
  gap: 8px;
  padding: 10px 22px 8px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--acc) 18%, transparent);
}

.topbar-row-bottom {
  padding-top: 6px;
}

.topbar-sublink {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.topbar-sublink:hover {
  color: var(--acc);
}

.logo {
  gap: 10px;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 38px;
  height: 38px;
  filter: none;
}

.logo-wordmark,
.footer-wordmark {
  color: var(--ink-heading);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.045em;
  text-transform: none;
}

.logo-wordmark span {
  color: var(--acc);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-logo-img {
  width: 38px;
  height: 38px;
}

.footer-wordmark {
  font-size: 20px;
}

.search-input {
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card-solid);
}

.search-input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-subtle);
}

.cta-mini,
.search-sub-btn.cta-mini {
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.store-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 5vw, 72px) clamp(20px, 6vw, 84px);
  margin: 6px 0 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card-solid);
  overflow: hidden;
}

.store-editorial-copy {
  max-width: 560px;
}

.store-editorial-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--acc);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.store-editorial-copy h1 {
  max-width: 540px;
  margin: 0 0 14px;
  color: var(--ink-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.store-editorial-copy p {
  max-width: 460px;
  margin: 0 0 24px;
  color: var(--mut);
  font-size: 16px;
  line-height: 1.6;
}

.store-editorial-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border-radius: 9px;
  background: var(--acc);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.store-editorial-cta:hover {
  background: var(--acc-deep);
  color: #fff;
}

.store-editorial-note {
  display: block;
  margin-top: 14px;
  color: var(--mut);
  font-size: 12px;
}

.store-editorial-image {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-photo-placeholder);
}

.store-editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.store-editorial-image-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  color: #251a1d;
  font-size: 11px;
  font-weight: 700;
}


.eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--acc-subtle);
  border: 1px solid var(--acc-subtle-border);
  color: var(--acc);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cats-header.center {
  margin-bottom: 6px;
}

.cat-grid {
  gap: 12px;
}

.cat,
.cat-large {
  min-height: 148px;
  padding: 16px 14px 14px;
  border-radius: var(--radius-card);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-sm);
}

.cat-icon-badge {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  border-radius: 18px;
  box-shadow: none;
}

.cat:hover {
  transform: translateY(-3px);
}

.store-banners,
.store-banners-grid {
  gap: 12px;
}

.store-banner-card,
.store-floatcard,
.feature-card,
.bottom-large-banner,
.sell-cta {
  border-radius: var(--radius-card);
}

.feature-card {
  min-height: 0;
  background: var(--bg-card-solid);
}

.grid {
  gap: 20px;
}

.card,
.listing-card {
  border-radius: var(--radius-card);
  background: var(--bg-card-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card:hover,
.listing-card:hover {
  transform: translateY(-3px);
  border-color: var(--acc-subtle-border);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--acc-subtle-border);
}

.card-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-photo-placeholder);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  padding: 14px 14px 15px;
}

.card-title {
  padding: 0;
  min-height: 2.8em;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0;
  margin-top: 0;
}

.card-price {
  color: var(--ink-price);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.card-seller {
  max-width: 100%;
  color: var(--mut);
  font-size: 0.875rem;
  font-weight: 600;
}

.card-vip {
  display: inline-flex;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: 1px;
}
[data-theme="light"] .card-vip {
  background: #111;
  color: #fff;
}

.card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  height: 34px;
  border-radius: 9px;
  background: #111;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}
[data-theme="dark"] .card-cta {
  background: #f4f4f5;
  color: #111;
}

.card:hover .card-cta,
.listing-card:hover .card-cta {
  background: var(--acc);
  color: #fff;
}

.fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card-solid) 82%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.quick-filter-tag,
.category-quick-filters a {
  border-radius: 999px;
}

.card-page {
  gap: 28px;
}

.card-action-box {
  border-radius: 18px;
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-md);
}

.card-price-row .price {
  font-size: 36px;
  letter-spacing: -0.045em;
  color: var(--ink-heading);
}

.card-price-row {
  align-items: center;
}

.card-seller-pill {
  background: var(--acc-subtle);
  border-color: var(--acc-subtle-border);
  color: var(--ink-heading);
}

.variant-chip.active {
  border-color: var(--acc);
  background: var(--acc-subtle);
  box-shadow: inset 0 0 0 1px var(--acc);
}

.card-trust-box {
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 70%, var(--bg-card-solid));
}

.gallery-main,
.gallery,
.product-gallery {
  border-radius: 18px;
  overflow: hidden;
}

.mobile-bottom-buy-bar {
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.btn-cta,
.btn-primary,
.sell-btn {
  border-radius: 12px;
  min-height: 46px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer {
  border-top: 1px solid var(--line);
}

.home-seo-inner {
  max-width: 860px;
  color: var(--mut);
  font-size: 14px;
  line-height: 1.65;
}

/* Store identity overrides: consistent editorial shop shell across all themes. */
:root,
[data-theme="light"] {
  --bg: #f7f4f1;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f2ecee;
  --bg-card: #ffffff;
  --bg-card-hover: #fff9fb;
  --bg-card-solid: #ffffff;
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;
  --bg-header: rgba(247, 244, 241, 0.96);
  --bg-footer: #f1ebed;
  --bg-photo-placeholder: #eee7e9;
  --ink: #34272c;
  --ink-heading: #251a1d;
  --mut: #65585c;
  --muted: #65585c;
  --dim: #72646a;
  --primary: #b01255;
  --acc: #b01255;
  --acc-deep: #77113d;
  --acc-hover: #8f1649;
  --acc-glow: rgba(176, 18, 85, 0.14);
  --acc-subtle: rgba(176, 18, 85, 0.07);
  --acc-subtle-border: rgba(176, 18, 85, 0.2);
  --acc-gradient: linear-gradient(135deg, #77113d 0%, #b01255 100%);
  --acc-gradient-hover: linear-gradient(135deg, #641034 0%, #8f1649 100%);
  --line: #e6dde0;
  --line-strong: #d4c6cc;
  --line-hover: rgba(176, 18, 85, 0.44);
  --glass-blur: none;
  --shadow-sm: 0 2px 10px rgba(44, 25, 34, 0.055);
  --shadow-md: 0 12px 32px rgba(44, 25, 34, 0.11);
  --shadow-hit: 0 6px 22px rgba(176, 18, 85, 0.12);
}

[data-theme="dark"] {
  --bg: #171114;
  --bg-surface: #21181c;
  --bg-surface-hover: #2b2025;
  --bg-card: #21181c;
  --bg-card-hover: #2b2025;
  --bg-card-solid: #21181c;
  --bg-input: #1b1417;
  --bg-input-focus: #241a1f;
  --bg-header: rgba(23, 17, 20, 0.97);
  --bg-footer: #120d0f;
  --bg-photo-placeholder: #302328;
  --ink: #eee4e7;
  --ink-heading: #fff8fa;
  --mut: #c4b5ba;
  --muted: #c4b5ba;
  --dim: #9b858d;
  --acc: #f05a91;
  --acc-deep: #c7336d;
  --acc-hover: #ff82ab;
  --acc-glow: rgba(240, 90, 145, 0.18);
  --acc-subtle: rgba(240, 90, 145, 0.12);
  --acc-subtle-border: rgba(240, 90, 145, 0.26);
  --acc-gradient: linear-gradient(135deg, #c7336d 0%, #f05a91 100%);
  --acc-gradient-hover: linear-gradient(135deg, #a92358 0%, #e54882 100%);
  --line: #49383e;
  --line-strong: #634a53;
  --line-hover: rgba(240, 90, 145, 0.5);
  --glass-blur: none;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-hit: 0 6px 22px rgba(240, 90, 145, 0.14);
}

/* Store themes: one storefront structure with distinct, theme-safe palettes. */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f4f1; --bg-surface: #fff; --bg-surface-hover: #f2ecee;
  --bg-card: #fff; --bg-card-hover: #fff9fb; --bg-card-solid: #fff;
  --bg-input: #fff; --bg-input-focus: #fff; --bg-header: rgba(247,244,241,.96);
  --bg-footer: #f1ebed; --bg-photo-placeholder: #eee7e9;
  --ink: #34272c; --ink-heading: #251a1d; --mut: #65585c; --muted: #65585c; --dim: #72646a;
  --primary: #b01255; --acc: #b01255; --acc-deep: #77113d; --acc-hover: #8f1649;
  --acc-glow: rgba(176,18,85,.14); --acc-subtle: rgba(176,18,85,.07); --acc-subtle-border: rgba(176,18,85,.2);
  --acc-gradient: linear-gradient(135deg,#77113d 0%,#b01255 100%); --acc-gradient-hover: linear-gradient(135deg,#641034 0%,#8f1649 100%);
  --line: #e6dde0; --line-strong: #d4c6cc; --line-hover: rgba(176,18,85,.44); --glass-blur: none;
  --shadow-sm: 0 2px 10px rgba(44,25,34,.055); --shadow-md: 0 12px 32px rgba(44,25,34,.11); --shadow-hit: 0 6px 22px rgba(176,18,85,.12);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171114; --bg-surface: #21181c; --bg-surface-hover: #2b2025;
  --bg-card: #21181c; --bg-card-hover: #2b2025; --bg-card-solid: #21181c;
  --bg-input: #1b1417; --bg-input-focus: #241a1f; --bg-header: rgba(23,17,20,.97);
  --bg-footer: #120d0f; --bg-photo-placeholder: #302328;
  --ink: #eee4e7; --ink-heading: #fff8fa; --mut: #c4b5ba; --muted: #c4b5ba; --dim: #9b858d;
  --acc: #f05a91; --acc-deep: #c7336d; --acc-hover: #ff82ab; --acc-glow: rgba(240,90,145,.18);
  --acc-subtle: rgba(240,90,145,.12); --acc-subtle-border: rgba(240,90,145,.26);
  --acc-gradient: linear-gradient(135deg,#c7336d 0%,#f05a91 100%); --acc-gradient-hover: linear-gradient(135deg,#a92358 0%,#e54882 100%);
  --line: #49383e; --line-strong: #634a53; --line-hover: rgba(240,90,145,.5); --glass-blur: none;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.18); --shadow-md: 0 12px 32px rgba(0,0,0,.28); --shadow-hit: 0 6px 22px rgba(240,90,145,.14);
}

.editorial-hub-hero {
  margin: 16px 0 36px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card-solid);
}

.editorial-hub-hero h1 {
  margin: 10px 0;
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.editorial-hub-hero p {
  max-width: 58ch;
  margin: 0 0 22px;
  color: var(--mut);
  line-height: 1.6;
}

.editorial-hub-section {
  margin: 28px 0 42px;
}

.editorial-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.editorial-hub-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-card-solid);
  color: var(--ink);
  text-decoration: none;
}

.editorial-hub-card:hover {
  border-color: var(--acc-subtle-border);
  box-shadow: var(--shadow-hit);
  transform: translateY(-2px);
}

.editorial-hub-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 9px;
  object-fit: cover;
}

.editorial-hub-card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.editorial-hub-card p { margin: 0; color: var(--mut); font-size: 13px; line-height: 1.5; }
.editorial-hub-category { color: var(--acc); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.editorial-hub-read { margin-top: auto; color: var(--acc); font-size: 13px; font-weight: 750; }
.editorial-hub-actions { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 40px; }
.editorial-hub-actions a { padding:10px 15px; border:1px solid var(--line); border-radius:999px; background:var(--bg-card-solid); color:var(--ink); }

@media (max-width: 760px) {
  .editorial-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px; }
  .editorial-hub-card { padding:10px; }
  .editorial-hub-card h3 { font-size:15px; }
}

@media (max-width: 380px) {
  .editorial-hub-grid { grid-template-columns: minmax(0,1fr); }
}

.seller-landing-hero {
  max-width: 780px;
  margin: 30px auto 36px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card-solid);
}

.seller-landing-hero h1 {
  margin: 12px 0;
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.seller-landing-hero p {
  max-width: 60ch;
  margin: 0 0 22px;
  color: var(--mut);
  line-height: 1.6;
}

.seller-landing-checklist {
  max-width: 780px;
  margin: 0 auto 24px;
}

.seller-landing-checklist li {
  margin: 10px 0;
  color: var(--ink);
}

.seller-landing-note {
  max-width: 780px;
  margin: 0 auto 36px;
  color: var(--mut);
  font-size: 13px;
}

.store-seller-grid .seller-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-sm);
}

.store-seller-grid .seller-card:hover {
  border-color: var(--acc-subtle-border);
  box-shadow: var(--shadow-hit);
  transform: translateY(-2px);
}

.seller-directory-hero {
  padding: 28px 0 24px;
  background-color: #0f1115;
}

.seller-directory-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.04em;
}

.seller-directory-points span {
  border-radius: 999px;
  border-color: var(--line);
  background: var(--bg-card-solid);
}

.cabinet-wrap,
.cabinet-page-header,
.cabinet-form-card,
.cabinet-tariff-panel,
.cabinet-listings-section,
.cabinet-empty-card {
  border-color: var(--line);
}

.cabinet-page-header,
.cabinet-form-card,
.cabinet-tariff-panel,
.cabinet-listings-section,
.cabinet-empty-card,
.seller-dashboard-hero,
.seller-billing-alert {
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-sm);
}

.cabinet-page-title,
.seller-hero-title,
.cabinet-section-title {
  letter-spacing: -.035em;
}

.cabinet-page-eyebrow,
.seller-brand-tag,
.seller-directory-eyebrow {
  color: var(--acc);
}

.seller-cta-btn,
.cabinet-add-btn-compact,
.form-save-btn {
  border-radius: 9px;
}

.cab-list .cab-row,
.seller-listing-row {
  border-color: var(--line);
  background: var(--bg-card-solid);
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 14px;
  }

  .topbar {
    padding: 10px 12px;
  }

  h1, .cats-title {
    font-size: 26px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-body {
    min-height: 108px;
    padding: 10px;
  }

  .card-title {
    font-size: 12.5px;
  }

  .card-price {
    font-size: 16px;
  }

  .card-cta {
    height: 38px;
    font-size: 12px;
  }
}

/* Shop headings, category index, and product-search presentation. */
.catalog-header {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.catalog-top-tag {
  color: var(--acc);
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 800;
}

.catalog-title {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.catalog-subtitle {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.55;
}

.catalog-cards-grid {
  gap: 14px;
}

.cat-card {
  min-height: 190px;
  border-radius: var(--radius-card);
  background: var(--bg-card-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--acc-subtle-border);
  box-shadow: var(--shadow-hit);
}

.cat-card-count {
  font-size: 12px;
  color: var(--mut);
}

.cat-card-title {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card, .cat, .cat-card, .feature-card, .card-action-box,
.catalog-filter, .catalog-filters-bar, .authbox {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 3px;
}

button, a, input, select, textarea, label {
  touch-action: manipulation;
}

.fav-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-sublink,
.filter-toggle-btn,
.quick-filter-tag,
.variant-chip,
.search-btn,
.mobile-nav-btn {
  min-height: 44px;
}

.authbox input,
.authbox textarea,
.authbox select,
.card-action-box input,
.card-action-box textarea,
.card-action-box select {
  min-height: 44px;
  border-radius: 8px;
}

.card-title,
.card-seller,
.cat-large-title,
.catalog-subtitle {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .store-editorial-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px;
    margin: 4px 0 20px;
  }

  .store-editorial-kicker {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .store-editorial-copy h1 {
    max-width: 32rem;
    margin-bottom: 8px;
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.04;
  }

  .store-editorial-copy p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .store-editorial-cta {
    min-height: 44px;
  }

  .store-editorial-note {
    margin-top: 8px;
  }

  .store-editorial-image {
    max-height: 160px;
  }

  .store-editorial-image img {
    min-height: 0;
    max-height: 160px;
    aspect-ratio: 2 / 1;
  }

  .store-editorial-image-caption {
    right: 8px;
    bottom: 8px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .catalog-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cat-card {
    min-height: 160px;
    padding: 14px;
  }

  .card-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-action-box {
    position: static;
    padding: 18px;
  }

  .card-price-row .price {
    font-size: 32px;
  }

  .mobile-bottom-buy-bar {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .catalog-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .card-body {
    padding: 9px;
  }
}

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

/* Верхнее меню: 8 пунктов как на доноре — не даём ему расползаться на ноутбуках */
@media (min-width: 1024px) and (max-width: 1380px) {
  .topbar-nav-left {
    gap: 12px;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .topbar-sublink {
    font-size: 12.5px;
  }
}

/* Единый SVG-набор иконок (Heroicons): размер по кеглю текста */
.ico {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: -0.16em;
  flex: none;
  stroke-width: 1.7;
}
.ico-lg {
  width: 1.6em;
  height: 1.6em;
  vertical-align: -0.3em;
}
.footer-links li a { gap: 7px; }
.fav-btn { color: var(--ink); }
.fav-btn.active { background: var(--acc); border-color: var(--acc); color: #fff; }

/* Чипы в хиро продавцов: тёмная подложка читается на фоне баннера в любой теме */
.seller-directory-points span {
  background: rgba(15, 17, 21, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Золотой текст: на светлых темах используем тёмный оттенок */
:root, [data-theme="light"] { --gold-ink: #854d0e; }
[data-theme="dark"] { --gold-ink: #eab308; }

/* Контраст мелкого текста в светлых темах */
[data-theme="light"] .badge-published { color: #047857; }
[data-theme="light"] .footer-legal-line, [data-theme="light"] .footer-legal-line strong { color: #6b5a5f; }
[data-theme="light"] .blog-hero-note-bottom { color: #6b5a5f; }

/* Мобильная панель покупки не должна наезжать на нижнюю навигацию */
@media (max-width: 768px) {
  .mobile-bottom-buy-bar {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    padding: 8px 12px;
    gap: 8px;
  }
  .mobile-buy-bar-price { min-width: 0; }
  .mobile-buy-bar-val { font-size: 16px; white-space: nowrap; }
  .mobile-buy-bar-btn {
    flex: 0 1 170px;
    min-width: 132px;
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .card-page { padding-bottom: 86px; }
}

/* На карточке товара нижняя навигация уступает место панели покупки */
@media (max-width: 768px) {
  body:has(.mobile-bottom-buy-bar) .app-bottom-nav { display: none; }
  body:has(.mobile-bottom-buy-bar) { padding-bottom: 76px; }
  .mobile-bottom-buy-bar { bottom: 0; }
}


/* Иконки разделов каталога */
.cat-icon-svg { width: 44px; height: 44px; color: var(--acc); }
.cat-card-icon .cat-icon-svg { color: inherit; }
.cat-subcategory-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  max-width: 84px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--acc-subtle);
  border: 1px solid var(--acc-subtle-border);
  color: var(--acc);
}
.cat-subcategory-svg { width: 40px; height: 40px; }

/* ==========================================================================
   Дизайн-система Fetish Store — этап 1: поверхности, геометрия, ритм
   ========================================================================== */
:root,
[data-theme="light"] {
  --bg-base: var(--bg);
  --bg-elevated: var(--bg-card-solid);
  --bg-accent-section: rgba(176, 18, 85, 0.05);
  --border-subtle: var(--line);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-card: 12px;
}

[data-theme="dark"] {
  --bg-base: var(--bg);
  --bg-elevated: var(--bg-card-solid);
  --bg-accent-section: rgba(240, 90, 145, 0.07);
  --border-subtle: var(--line);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-card: 12px;
}

/* Карточки товаров: геометрия по шкале, спокойная тень, подсветка рамки */
.card,
.listing-card {
  border-radius: var(--radius-md);
  box-shadow: none;
}
.card:hover,
.listing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--acc-subtle-border);
}

/* ==========================================================================
   Этап 2: единый язык иконок (Heroicons, тонкий штрих)
   ========================================================================== */
.ico {
  stroke-width: 1.5;
}
.ico-lg {
  stroke-width: 1.4;
}

/* Иконки в шапке — 20px */
.main-nav .ico,
.topbar .ico,
.header-links .ico,
.mobile-nav-btn .ico {
  width: 20px;
  height: 20px;
  vertical-align: -0.2em;
}

/* Блоки преимуществ: тонкая круглая обводка вместо цветной плашки */
.feature-card-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-heading);
}
.feature-card-icon .ico {
  width: 26px;
  height: 26px;
  stroke-width: 1.4;
}

/* ==========================================================================
   Этап 4: карточка товара — иерархия и микро-интерактивность
   ========================================================================== */
.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.56em;
}
.card-price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.card:hover .card-photo img {
  transform: scale(1.03);
}

/* ==========================================================================
   Этап 5: полоса гарантий и приватности
   ========================================================================== */
.trust-strip { margin: 18px 0 34px; }
.trust-strip-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-strip-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.35;
}
.trust-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--acc);
}
.trust-strip-icon .ico { width: 18px; height: 18px; stroke-width: 1.5; }
@media (max-width: 900px) { .trust-strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust-strip-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Этап 3: баннеры — глубина фото и промо-поверхность
   ========================================================================== */
.store-editorial-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.30) 100%);
  pointer-events: none;
}
.sell-cta:not(.has-custom-bg),
.bottom-seller-cta:not(.has-custom-bg),
.hero-sell-block:not(.has-custom-bg) {
  background: var(--bg-accent-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Оптическая шкала иконок: 16 / 20 / 24–28
   ========================================================================== */
/* 16px — внутри кнопок, метаданных карточек и инпутов */
.card-meta .ico,
.card-seller .ico,
.card .ico,
.price .ico,
form .ico,
input + .ico,
label .ico,
.btn-cta .ico,
.btn-secondary .ico,
.btn-sec .ico { width: 16px; height: 16px; }

/* 20px — навигация шапки, фильтры, футер */
.main-nav .ico,
.topbar .ico,
.header-links .ico,
.mobile-nav-btn .ico,
.site-menu-item .ico,
.filters .ico,
.filter .ico,
.footer .ico { width: 20px; height: 20px; }

/* 24–28px — блоки преимуществ и смысловые акценты */
.feature-card-icon .ico { width: 26px; height: 26px; }
.trust-strip-icon .ico { width: 18px; height: 18px; }

/* Доводка оптической шкалы: убрать мельче 16px и выровнять элементы */
.tariff-limit-tag .ico,
.tariff-features-list .ico,
.chk-icon .ico,
.chk .ico { width: 16px; height: 16px; }
.lightbox-close .ico { width: 20px; height: 20px; }
.lightbox-nav .ico { width: 24px; height: 24px; }
.trust-icon .ico { width: 20px; height: 20px; }
/* Крупные декоративные знаки — тоньше штрих, чтобы не «жирнили» */
.cat-icon-svg,
.blog-cover-fallback .ico,
.blog-cover-fallback .ico-lg { stroke-width: 1.4; }
.blog-card-meta .ico,
.blog-hero-media-badge .ico,
.card-seller-pill .ico { width: 16px; height: 16px; }

/* ==========================================================================
   Арт-слой: тактильные текстуры (код-нарисованные, без внешних файлов)
   Единая палитра; паттерны дифференцируют категории без цвета.
   ========================================================================== */
:root,
[data-theme="dark"] {
  --art-lace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23f05a91' stroke-opacity='0.10' stroke-width='1'%3E%3Ccircle cx='24' cy='24' r='10'/%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='48' cy='0' r='5'/%3E%3Ccircle cx='0' cy='48' r='5'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3Ccircle cx='24' cy='24' r='2' fill='%23f05a91' fill-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E");
  --art-herring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 12 L12 0 L24 12 L12 24 Z' fill='none' stroke='%23f05a91' stroke-opacity='0.09' stroke-width='1'/%3E%3C/svg%3E");
  --art-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='1.2' fill='%23f05a91' fill-opacity='0.14'/%3E%3C/svg%3E");
  --art-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  --art-silk: linear-gradient(135deg, rgba(240,90,145,0.07) 0%, transparent 30%, transparent 70%, rgba(240,90,145,0.04) 100%);
}
[data-theme="light"] {
  --art-lace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23b01255' stroke-opacity='0.08' stroke-width='1'%3E%3Ccircle cx='24' cy='24' r='10'/%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='48' cy='0' r='5'/%3E%3Ccircle cx='0' cy='48' r='5'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3Ccircle cx='24' cy='24' r='2' fill='%23b01255' fill-opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");
  --art-herring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 12 L12 0 L24 12 L12 24 Z' fill='none' stroke='%23b01255' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
  --art-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='1.2' fill='%23b01255' fill-opacity='0.10'/%3E%3C/svg%3E");
  --art-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  --art-silk: linear-gradient(135deg, rgba(176,18,85,0.05) 0%, transparent 30%, transparent 70%, rgba(176,18,85,0.03) 100%);
}

/* Категории каталога: тонкая текстура поверх карточки */
.cat-card { position: relative; overflow: hidden; }
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--art-lace);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cat-card:hover::after { opacity: 0.85; }
.cat-card-theme-herring::after { background-image: var(--art-herring); background-size: 24px 24px; }
.cat-card-theme-dots::after { background-image: var(--art-dots); background-size: 20px 20px; }

/* Заглушка обложки блога → редакционная сгенерированная обложка */
.blog-cover-fallback {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-card-solid);
  overflow: hidden;
}
.blog-cover-fallback::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--art-silk), radial-gradient(120% 100% at 80% 10%, var(--acc-glow) 0%, transparent 55%);
  pointer-events: none;
}
.blog-cover-fallback::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--art-lace);
  background-size: 48px 48px;
  opacity: 0.6;
  pointer-events: none;
}
.blog-cover-fallback > * { position: relative; z-index: 1; }
.blog-cover-fallback span:first-child {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
}
.blog-cover-fallback span:first-child .ico { width: 30px; height: 30px; }
.blog-cover-fallback em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-heading);
}
.blog-cover-fallback--large span:first-child { width: 80px; height: 80px; }
.blog-cover-fallback--large span:first-child .ico { width: 38px; height: 38px; }
.blog-cover-fallback--large em { font-size: 1.25rem; }

/* Hero: тонкая виньетка + зерно для глубины */
.store-editorial-image::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.32) 100%),
              var(--art-grain);
  background-blend-mode: normal, overlay;
}

@media (prefers-reduced-motion: reduce) {
  .cat-card::after, .blog-cover-fallback::before, .blog-cover-fallback::after { transition: none; }
}

/* Категория с фото: реальное фото + градиент для читаемости текста */
.cat-card--photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--art-photo);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.cat-card--photo:hover::before { transform: scale(1.04); opacity: 1; }
.cat-card--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 9, 0.30) 0%, rgba(10, 8, 9, 0.72) 100%);
  pointer-events: none;
}
.cat-card--photo .cat-card-top,
.cat-card--photo .cat-card-body,
.cat-card--photo .cat-card-footer { position: relative; z-index: 2; }
.cat-card--photo .cat-card-title { color: #ffffff; }
.cat-card--photo .cat-card-subtext { color: rgba(255,255,255,0.82); }
.cat-card--photo .cat-card-count { color: rgba(255,255,255,0.78); }
.cat-card--photo .cat-card-icon {
  background: rgba(18, 15, 16, 0.55);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

/* Пустое состояние: атмосферное фото вместо голой иконки */
.empty-art {
  max-width: 440px;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: var(--bg-card-solid);
  position: relative;
}
.empty-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 8, 9, 0.40) 100%);
  pointer-events: none;
}

/* Split-promo: фоновое фото + overlay */
.split-promo--photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-accent-section) url(var(--promo-photo, none)) center / cover no-repeat;
}
.split-promo--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,8,9,0.75) 0%, rgba(10,8,9,0.55) 100%);
}
.split-promo--photo > * { position: relative; z-index: 1; }
.split-promo--photo .split-promo-kicker { color: #f05a91; }
.split-promo--photo .split-promo-title { color: #ffffff; }
.split-promo--photo .split-promo-text { color: rgba(255,255,255,0.85); }
.split-promo--photo .split-promo-btn {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.split-promo--photo .split-promo-btn:hover { border-color: #f05a91; color: #f05a91; }

/* Нижний промо-баннер: атмосферное фото + затемнение под текст */
.sell-cta--photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-accent-section) url(var(--sell-photo, none)) center / cover no-repeat;
  min-height: 220px;
}
.sell-cta--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,9,0.82) 0%, rgba(10,8,9,0.55) 60%, rgba(10,8,9,0.30) 100%);
  pointer-events: none;
}
.sell-cta--photo > * { position: relative; z-index: 1; }
.sell-cta--photo .sell-cta-body h2,
.sell-cta--photo h2 { color: #fff !important; }
.sell-cta--photo .sell-cta-body p,
.sell-cta--photo p { color: rgba(255,255,255,0.88) !important; }
.sell-cta--photo .sell-cta-body p strong,
.sell-cta--photo p strong { color: #fff !important; }

/* ==========================================================================
   Блочный конструктор CMS-страниц
   ========================================================================== */
.pb { position: relative; }
.pb-inner { width: min(100%, 1100px); margin: 0 auto; padding: 32px 0; }
.pb-narrow { max-width: 780px; }
.pb-center { text-align: center; }
.pb-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink-heading);
  margin: 0 0 16px;
}
.pb-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--acc);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pb-lead {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--mut);
  font-size: var(--fs-body);
  line-height: 1.65;
}
.pb-center.pb-lead { margin-left: auto; margin-right: auto; }
.pb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-top: 48px;
  padding-bottom: 48px;
}
.pb-hero-copy { min-width: 0; }
.pb-hero-media { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.pb-hero-media img { width: 100%; height: 100%; aspect-ratio: 1.3 / 1; object-fit: cover; display: block; }
.pb-figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elevated); }
.pb-figure img { display: block; width: 100%; height: auto; }
.pb-figure figcaption { padding: 12px 16px; font-size: var(--fs-caption); color: var(--mut); }
.pb-prose { color: var(--ink); font-size: var(--fs-body); line-height: 1.75; }
.pb-prose h2, .pb-prose h3, .pb-prose h4 { color: var(--ink-heading); }
.pb-prose a { color: var(--acc); }
.pb-prose p { margin: 0 0 18px; }
.pb-prose ul, .pb-prose ol { padding-left: 24px; }
.pb-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.pb-card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 18px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  background: var(--bg-elevated); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
a.pb-card:hover { border-color: var(--acc-subtle-border); transform: translateY(-3px); }
.pb-card-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--ink-heading); }
.pb-card-text { margin: 0; font-size: var(--fs-secondary); color: var(--mut); line-height: 1.55; }
.pb-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--acc); }
.pb-card-icon .ico { width: 24px; height: 24px; }
.pb-card-media { overflow: hidden; border-radius: var(--radius-sm); }
.pb-card-media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pb-features-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pb-features-list li { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-elevated); }
.pb-feature-icon { flex: 0 0 36px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--acc); }
.pb-feature-icon .ico { width: 18px; height: 18px; }
.pb-feature-body { display: flex; flex-direction: column; gap: 3px; color: var(--mut); font-size: var(--fs-secondary); }
.pb-feature-body strong { color: var(--ink-heading); }
.pb-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 32px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-accent-section); }
.pb-cta-copy { min-width: 0; max-width: 660px; }
.pb-cta-box .pb-lead { margin-bottom: 0; }
.pb-cta-box .btn-cta { flex-shrink: 0; }
.pb-divider { width: 100%; border-top: 1px solid var(--border-subtle); margin: 18px 0; }
@media (max-width: 900px) {
  .pb-hero-grid { grid-template-columns: 1fr; }
  .pb-cards-grid, .pb-features-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pb-inner { padding: 24px 0; }
  .pb-hero-grid { padding-top: 32px; padding-bottom: 32px; }
  .pb-cards-grid, .pb-features-list { grid-template-columns: 1fr; }
  .pb-cta-box { padding: 24px; }
  .pb-cta-box .btn-cta { width: 100%; text-align: center; }
}

/* Каталог: после удаления иконки стрелка прижимается к правому краю */
.cat-card-top .cat-card-arrow { margin-left: auto; }

/* Главная: категории с фото — та же обработка, что .cat-card--photo в каталоге */
.cat--photo {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  min-height: 230px;
  padding: 18px;
  color: #fff;
}
.cat--photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--art-photo);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.cat--photo:hover::before { transform: scale(1.04); opacity: 1; }
.cat--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 9, 0.30) 0%, rgba(10, 8, 9, 0.72) 100%);
  pointer-events: none;
}
.cat--photo .cat-large-title,
.cat--photo .cat-photo-title {
  position: relative; z-index: 2;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}
.cat--photo:hover {
  transform: translateY(-2px);
  border-color: var(--acc-subtle-border);
  box-shadow: var(--shadow-hit);
}

/* Главная: карточки преимуществ с арт-превью сверху */
.features-grid .feature-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.features-grid .feature-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-photo-placeholder);
}
.features-grid .feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.features-grid .feature-card:hover .feature-card-media img { transform: scale(1.04); }
.features-grid .feature-card-icon { margin: 18px 22px 0; }
.features-grid .feature-card-content { padding: 12px 22px 22px; }
.features-grid .feature-card-content h3 { margin: 0 0 6px; }

/* /services/: шаги — вертикальная карточка с полноширинным арт-превью */
.services-step { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; text-align: left; }
.services-step-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  background: var(--bg-photo-placeholder);
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.services-step-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 22px 22px; }
.services-step-body h3 { color: var(--ink-heading); }
.services-step-body span { color: var(--mut); font-size: 13px; line-height: 1.55; }

/* /services/: баннер подбора тарифа с подложкой */
.seller-tariff-intro.has-photo { position: relative; overflow: hidden; }
.seller-tariff-intro.has-photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--tariff-photo, none);
  background-size: cover; background-position: center;
  opacity: 0.55;
  transition: transform 0.5s ease;
}
.seller-tariff-intro.has-photo:hover::before { transform: scale(1.03); }
.seller-tariff-intro.has-photo > * { position: relative; z-index: 1; }

/* /services/: процесс-карточки с подложкой */
.seller-process-card.has-photo { position: relative; overflow: hidden; }
.seller-process-card.has-photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--card-photo, none);
  background-size: cover; background-position: center;
  opacity: 0.45;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.seller-process-card.has-photo:hover::before { transform: scale(1.04); opacity: 0.58; }
.seller-process-card.has-photo > * { position: relative; z-index: 1; }

/* split-promo: фото реально видно справа, текст слева на тёмной части */
.split-promo--photo::after {
  background: linear-gradient(90deg, rgba(10, 8, 9, 0.88) 0%, rgba(10, 8, 9, 0.62) 55%, rgba(10, 8, 9, 0.28) 100%);
}

/* ==========================================================================
   Этап 1: плотность первого экрана (главная, карточка, подкатегории)
   ========================================================================== */

/* Hero: убираем пустую полоску под фото на мобильных (min-height базового правила побеждал max-height) */
@media (max-width: 760px) {
  .store-editorial-image {
    min-height: 0;
    max-height: 160px;
  }

  /* Карточка: галерея 4/5 выталкивала заголовок и цену за нижний край —
     ограничиваем высоту, чтобы название, цена и варианты влезали над сгибом */
  .gallery-main-wrap {
    aspect-ratio: 4 / 3;
    max-height: 300px;
  }

  .card-page {
    gap: 18px;
  }

  /* Карточка (моб.): заголовок, цена и выбор варианта поднимаем над галереей,
     чтобы человек видел суть и SKU до фото. Десктоп не затронут — там сетка 2 колонки. */
  .card-page {
    display: flex;
    flex-direction: column;
  }

  .card-action-box {
    display: contents;
  }

  .card-page > .card-header-block { order: 1; }
  .card-page > .variant-chips-wrap { order: 2; }
  .card-page > .gallery-container { order: 3; }
  .card-page > .contact-block { order: 4; }
  .card-page > .card-trust-box { order: 5; }
  .card-page > .card-specs-widget { order: 6; }

  /* Бывшая «коробка» исчезла (display:contents) — возвращаем воздух и разделители */
  .card-page > .card-header-block { padding-top: 2px; }
  .card-page > .contact-block {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .card-page > .card-trust-box,
  .card-page > .card-specs-widget { margin-top: 4px; }

  /* Плитки подкатегорий: компактные, чтобы товары начинались сразу */
  .subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
  }

  .subcategory-card {
    min-height: 0;
    padding: 12px 10px;
    gap: 8px;
  }

  .cat-subcategory-svg-wrap {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    max-width: 44px;
  }

  .cat-subcategory-svg {
    width: 22px;
    height: 22px;
  }

  .subcategory-card .cat-subcategory-icon {
    width: min(100%, 84px);
    height: 84px;
    flex: 0 0 84px;
  }

  .subcategory-card > span {
    font-size: 13px;
  }
}

/* Hero на десктопе: плотнее, чтобы каталог начинался в первом экране */
@media (min-width: 761px) {
  .store-editorial-hero {
    padding: clamp(24px, 3.4vw, 48px) clamp(20px, 4.5vw, 60px);
    margin: 6px 0 32px;
  }

  .store-editorial-image,
  .store-editorial-image img {
    min-height: 250px;
  }

  .store-editorial-copy h1 {
    font-size: clamp(34px, 3.2vw, 44px);
  }
}


/* === Карточки продавцов: квадратное фото, ВИП-огонёк, счётчик товаров === */
.store-seller-grid .seller-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 14px 16px;
}

.store-seller-grid .seller-card .avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 18px;
  overflow: visible;
  border: 1px solid var(--line);
  background: var(--bg-surface-hover);
  margin: 0 auto;
}

.store-seller-grid .seller-card .avatar-wrapper .seller-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.store-seller-grid .seller-card .avatar-wrapper .seller-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  font-size: 44px;
  font-weight: 800;
  color: var(--mut);
}

.store-seller-grid .seller-card .online-pulse {
  display: none;
}

.store-seller-grid .seller-card .vip-flame {
  position: absolute;
  top: -14px;
  right: -14px;
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(255, 110, 40, 0.5));
  z-index: 2;
}

.store-seller-grid .seller-card .badge-published {
  display: none;
}

.store-seller-grid .seller-card .seller-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink-heading);
  letter-spacing: -.02em;
}

.store-seller-grid .seller-card .seller-count {
  color: var(--mut);
  font-size: 14px;
}

/* Страница продавца: та же стилистика шапки */
.seller-page .avatar-wrapper,
.seller-detail .avatar-wrapper,
[class*="seller"] .avatar-wrapper.vip-holder {
  position: relative;
}

.seller-page .avatar-wrapper.vip-holder .seller-avatar,
.seller-detail .avatar-wrapper.vip-holder .seller-avatar,
.avatar-wrapper.vip-holder .seller-avatar {
  border-radius: 18px;
}

.avatar-wrapper.vip-holder .vip-flame {
  position: absolute;
  top: -14px;
  right: -14px;
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(255, 110, 40, 0.5));
  z-index: 2;
}

/* Шапка карточки продавца: то же квадратное окно фото */
.seller-head .avatar-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-surface-hover);
  flex-shrink: 0;
}

.seller-head .avatar-wrapper .seller-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.seller-head .avatar-wrapper .seller-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 44px;
  font-weight: 800;
  color: var(--mut);
}

.seller-head .avatar-wrapper .online-pulse {
  display: none;
}

/* ==========================================================================
   Этап 2: единая система — акцент выбора, иерархия кнопок, табличные цифры
   ========================================================================== */

/* Выбранный вариант: явная галочка + сильный акцент (читается в светлой и тёмной теме) */
.variant-chip {
  position: relative;
  justify-content: center;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.variant-chip.active {
  border-color: var(--acc);
  background: var(--acc-subtle);
  color: var(--acc);
  box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent);
}

.variant-chip.active::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 7px;
  width: 4px;
  height: 8px;
  border: solid var(--acc);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.variant-chip:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}

/* Цены чипов, характеристики и крупная цена — табличные цифры, ширина не «пляшет» */
.variant-chip-price,
.card-spec-val,
.card-price-row .price,
.price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* Вторичные действия (В корзину / Поделиться): гарантируем перенос длинной
   подписи и полное касание, сетку в колонку на узких экранах задаёт шаблон */
.contact-block > div > button,
.contact-block > div > a {
  min-width: 0;
  touch-action: manipulation;
}

/* Кнопка «В корзину» в блоке действий делит класс .fav-btn с круглой
   иконкой-сердечком из сетки карточек (width:32px). Возвращаем кнопке
   нормальную форму на всю ячейку — сердечки в listing-card не затронуты. */
.contact-block .fav-btn {
  width: 100%;
  height: auto;
  min-height: 44px;
  border-radius: 10px;
}


/* === Табы карточки товара (как на доноре) === */
.card-bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg-card-solid, #fff);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(0,0,0,.08);
}

.card-bottom-tabs a {
  flex: 1 1 auto;
  max-width: 190px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-heading);
  text-decoration: none;
  background: var(--bg-surface-hover, #f6f6f8);
}

.card-bottom-tabs a.is-active,
.card-bottom-tabs a:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--acc-subtle, rgba(225, 29, 111, .06));
}

html { scroll-behavior: smooth; }

[id="description"], [id="attributes"], [id="how-to-buy"], [id="payment"], [id="delivery"] {
  scroll-margin-top: 20px;
}

@media (max-width: 720px) {
  .card-bottom-tabs {
    bottom: 64px; /* над мобильной панелью покупки */
  }
}
