/* Searchary shop — product-search.html styles */
/* Base shell: css/tokens.css, layout.css, components.css */

body.shop-page { overflow-x: hidden; }

/* Shop page: pure white canvas. */
body.shop-page {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F7F7F7;
  --line: #E5E5E5;
  --line-2: #D7D7D7;
  --shop-grid-cols: 6;
  --shop-grid-gap: var(--space-1);
  --shop-control-border: var(--line-2);
  --shop-control-bg: var(--surface);
  background: var(--bg);
  color: var(--ink);
}

@media (max-width: 760px) {
  .site-nav-item--mobile-hidden { display: none; }
}

.site-header[data-active="shop"] {
  background: transparent;
}

.site-header[data-active="shop"] .site-logo,
.site-header[data-active="shop"] .site-nav,
.site-header[data-active="shop"] .site-nav a {
  color: var(--ink);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4) var(--space-6);
}

  /*
   * Shop browse typography — system sans only.
   * Section headings share one scale; system sans across shop chrome.
   */
  .discover-section-head h2,
  .sidebar-top-heading,
  .filter-summary__text,
  .discover-section-head span,
  .discover-feed-hint,
  .sidebar-promo-kicker,
  .sidebar-promo-name,
  .sidebar-promo-brand,
  .sidebar-top-name,
  .sidebar-top-brand,
  .sidebar-top-rank,
  .empty h3,
  .init-error h2,
  .modal h3 {
    font-family: var(--shop-font-ui);
  }
  .discover-section-head h2 {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  /* Hero */
  .hero {
    position: relative;
    text-align: center;
    padding: var(--space-6) var(--space-3) var(--space-5);
    margin: 0 calc(-1 * var(--space-4));
    min-height: clamp(340px, 38vw, 460px);
    overflow: hidden;
    background-color: var(--bg);
    isolation: isolate;
    border-top-left-radius: clamp(20px, 4vw, 28px);
    border-top-right-radius: clamp(20px, 4vw, 28px);
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    filter: saturate(1) brightness(1.02);
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    animation: hero-bg-cycle 30s ease-in-out infinite;
  }
  .hero-bg--waves {
    background-image: url("../assets/hero-background-waves.png?v=1");
    animation-delay: 0s;
  }
  .hero-bg--primary {
    background-image: -webkit-image-set(
      url("../assets/hero-background.jpg?v=7") 1x,
      url("../assets/hero-background@2x.jpg?v=7") 2x
    );
    background-image: image-set(
      url("../assets/hero-background.jpg?v=7") 1x,
      url("../assets/hero-background@2x.jpg?v=7") 2x
    );
    animation-delay: -10s;
  }
  .hero-bg--mountains {
    background-image: url("../assets/hero-background-mountains.png?v=1");
    animation-delay: -20s;
  }
  @keyframes hero-bg-cycle {
    0%, 26.666% { opacity: 1; }
    33.333%, 93.333% { opacity: 0; }
    100% { opacity: 1; }
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--bg) 13%, transparent) 0%,
      color-mix(in srgb, var(--bg) 8%, transparent) 55%,
      var(--bg) 100%
    );
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
  }
  .hero-inner {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin: 0 auto;
  }
  .hero-title-wrap {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }
  .hero-bubble-dot {
    display: inline-block;
    width: 0.28em;
    height: 0.28em;
    margin-left: 0.04em;
    vertical-align: baseline;
    transform: translateY(0.06em);
    object-fit: contain;
    pointer-events: none;
    user-select: none;
  }
  .hero h1 {
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    padding-bottom: 0.08em;
    margin-bottom: 0;
    color: #fff;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.22);
  }
  .hero .sub {
    position: relative;
    z-index: 2;
    max-width: 540px;
    margin: 0 auto;
    color: #fff;
    font-weight: 500;
    text-shadow:
      0 1px 20px rgba(0, 0, 0, 0.32),
      0 0 1px rgba(0, 0, 0, 0.2);
  }
  .hero h1 em { font-style: italic; font-weight: 300; }
  /* Search inside hero */
  .search-wrap {
    max-width: 520px;
    width: 100%;
    margin: calc(10 * var(--space-1)) auto 0;
    position: relative;
    z-index: 3;
  }
  .search-box {
    background: var(--shop-control-bg, var(--surface));
    border: 1px solid var(--line-2);
    border-radius: 100px;
    padding: 6px 6px 6px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .search-box:focus-within {
    border-color: var(--line-2);
    box-shadow: none;
  }
  .search-box svg { flex-shrink: 0; color: var(--muted); }
  .search-box input {
    flex: 1;
    min-width: 0;
    width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    padding: 14px 0;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }
  .search-box input::placeholder { color: var(--muted); }
  .search-clear-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .search-clear-btn:hover { color: var(--ink); }
  .search-clear-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
  .search-clear-btn[hidden] { display: none; }
  .search-btn {
    flex-shrink: 0;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    padding: 12px 22px;
    font-family: inherit;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  }
  .search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: none;
  }
  .search-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }

  .brand-wordmark {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ink);
  }
  .card-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    color: var(--ink);
    padding: 8px;
    box-sizing: border-box;
  }
  .brand-logo-card { display: block; height: auto; }
  .brand-logo-card--puma { width: min(42%, 68px); }
  .card--app .card-img {
    margin-bottom: 14px;
    border-radius: var(--shop-app-icon-radius, 22%);
    overflow: hidden;
    isolation: isolate;
    box-shadow: none;
    transition: transform var(--motion-fast) var(--motion-ease);
  }
  .card:hover .card--app .card-img,
  .card:focus-visible .card--app .card-img,
  .card.card--show-preview .card--app .card-img {
    box-shadow: none;
  }
  .card-img--app {
    background: transparent;
    padding: 0;
    border-radius: var(--shop-app-icon-radius, 22%);
  }
  .card-app-icon {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    border-radius: inherit;
    display: block;
    object-fit: cover;
    border: none;
    outline: none;
    vertical-align: top;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .card-app-icon--brand {
    object-fit: cover;
    padding: 0;
    background: transparent;
  }
  @media (min-width: 901px) {
    .card .card-img {
      width: calc(100% - var(--shop-app-card-logo-inset, 16px));
      margin-left: auto;
      margin-right: auto;
    }
  }
  .card-brand--app {
    gap: 0;
    padding: 0;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
  }
  .brand-wordmark--app {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    margin-top: auto;
  }
  .card-brand > .brand-wordmark { font-size: 11px; letter-spacing: 0.18em; }
  .card--app .card-name {
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
    margin-bottom: 2px;
  }
  .card--app .card-app-brand {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 4px;
    line-height: 1.2;
  }
  .card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 6px;
    max-width: 100%;
    position: relative;
    z-index: 2;
  }
  .card-category {
    display: inline-block;
    max-width: 100%;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--shop-control-bg, var(--tint));
    border: 1px solid var(--line);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-2);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
  }
  button.card-category,
  a.card-category,
  .card-category {
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .card-category:hover,
  .card-category:focus-visible {
    background: var(--shop-control-bg, var(--surface));
    border-color: var(--ink-2);
    color: var(--ink);
    outline: none;
  }
  .card--app .card-desc,
  .card--app .card-tap-hint {
    display: none;
  }
  .card--app .card-foot {
    margin-top: 0;
  }
  .card-stars .star-row__value {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
  }
  .card--app .card-stars .star-row__value {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
  }

  /* Filters — continuous marquee */
  .filters-wrap {
    position: relative;
    z-index: 4;
    margin: var(--space-4) 0 0;
    padding: 2px 0;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
    --chip-gap: 10px;
    --filters-edge-fade: 48px;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      rgba(0, 0, 0, 0.2) calc(var(--filters-edge-fade) * 0.4),
      rgba(0, 0, 0, 0.75) calc(var(--filters-edge-fade) * 0.75),
      black var(--filters-edge-fade),
      black calc(100% - var(--filters-edge-fade)),
      rgba(0, 0, 0, 0.75) calc(100% - var(--filters-edge-fade) * 0.75),
      rgba(0, 0, 0, 0.2) calc(100% - var(--filters-edge-fade) * 0.4),
      transparent 100%
    );
            mask-image: linear-gradient(
      to right,
      transparent 0,
      rgba(0, 0, 0, 0.2) calc(var(--filters-edge-fade) * 0.4),
      rgba(0, 0, 0, 0.75) calc(var(--filters-edge-fade) * 0.75),
      black var(--filters-edge-fade),
      black calc(100% - var(--filters-edge-fade)),
      rgba(0, 0, 0, 0.75) calc(100% - var(--filters-edge-fade) * 0.75),
      rgba(0, 0, 0, 0.2) calc(100% - var(--filters-edge-fade) * 0.4),
      transparent 100%
    );
  }
  .filters {
    display: flex;
    width: max-content;
    gap: var(--chip-gap);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
  }
  .filters-track {
    display: flex;
    flex-shrink: 0;
    gap: var(--chip-gap);
  }
  .filters-track[aria-hidden="true"] {
    pointer-events: none;
  }
  .chip {
    background: var(--shop-control-bg, var(--surface));
    border: 1px solid var(--line-2);
    color: var(--ink);
    padding: 8px 16px;
    margin: 0;
    border-radius: 100px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
      color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: none;
  }
  .chip:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
  .chip.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    box-shadow: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .filters { transform: none !important; }
  }

  /* Mobile sticky browse bar */
  .shop-sticky-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--shop-sticky-top, 64px);
    z-index: 180;
    padding: 10px 16px 8px;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(calc(-100% - var(--shop-sticky-top, 64px)));
    transition: transform var(--motion-normal) var(--motion-ease);
    pointer-events: none;
  }
  .shop-sticky-bar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
  }
  .shop-sticky-bar__row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .shop-sticky-bar__search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    min-height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    background: var(--shop-control-bg, var(--surface));
    -webkit-tap-highlight-color: transparent;
  }
  .shop-sticky-bar__search svg {
    flex-shrink: 0;
    color: var(--muted);
  }
  .shop-sticky-bar__search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  .shop-sticky-bar__search input::-webkit-search-cancel-button,
  .shop-sticky-bar__search input::-webkit-search-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .shop-sticky-bar__search input::placeholder { color: var(--muted); }
  .shop-sticky-bar__clear {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .shop-sticky-bar__filter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--shop-control-bg, var(--surface));
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
  }
  .shop-sticky-bar__filter svg { color: var(--ink-2); }
  .shop-sticky-bar__badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    background: var(--ink);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
  }
  .shop-sticky-bar__meta {
    margin: 8px 4px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
  }
  .shop-sticky-bar__meta[hidden] { display: none !important; }
  .search-suggestions--sticky {
    display: none;
    top: calc(100% + 2px);
    left: 16px;
    right: 16px;
    z-index: 190;
    max-height: min(320px, 50vh);
  }
  .shop-sticky-bar__search:focus-within {
    border-color: var(--line-2);
    box-shadow: none;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Results header */
  .results-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: var(--space-3) 0 var(--space-3);
  }
  .results-count {
    font-size: 13px;
    color: var(--ink-2);
  }

  .filter-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding: var(--space-2);
    background: var(--shop-control-bg, var(--surface));
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .filter-summary[hidden] { display: none !important; }
  .filter-summary__main {
    min-width: 0;
    flex: 1;
  }
  .filter-summary__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.45;
  }
  .filter-summary__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--shop-control-border, var(--line-2));
    background: var(--shop-control-bg, var(--surface));
    color: var(--ink-2);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }
  .filter-pill:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--shop-control-bg, var(--surface));
  }
  .filter-pill span {
    font-size: 14px;
    line-height: 1;
    color: var(--muted);
  }
  .filter-summary__clear {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--ink-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 4px 0;
  }
  .filter-summary__clear:hover { color: var(--ink); }

  .filter-summary--landing {
    background: transparent;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
  }
  .filter-pill--sort {
    background: var(--shop-control-bg, var(--surface));
    border-color: var(--shop-control-border, var(--line-2));
  }

  .shop-filter-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 16px;
    border-radius: 100px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .shop-filter-trigger__badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    background: var(--ink);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
  }

  .filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    pointer-events: none;
  }
  .filter-sheet.open {
    display: block;
    pointer-events: auto;
  }
  .filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.4);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity var(--motion-normal) var(--motion-ease);
  }
  .filter-sheet.open .filter-sheet__backdrop {
    opacity: 1;
  }
  .filter-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    box-shadow: none;
    transform: translateY(100%);
    transition: transform var(--motion-normal) var(--motion-ease);
  }
  .filter-sheet.open .filter-sheet__panel {
    transform: translateY(0);
  }
  .filter-sheet__head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
  }
  .filter-sheet__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
  }
  .filter-sheet__close:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
  .filter-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
  }
  .filter-sheet__body .discover-select-wrap {
    width: 100%;
  }
  .filter-sheet__footer {
    flex-shrink: 0;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }
  .filter-sheet__apply {
    width: 100%;
    justify-content: center;
  }

  body.filter-sheet-open {
    overflow: hidden;
  }

  @media (max-width: 760px) {
    body.shop-page.search-scroll-locked {
      overflow: hidden;
      touch-action: none;
    }

    body.shop-page.search-scroll-locked .search-suggestions,
    body.shop-page.search-scroll-locked .search-suggestions--sticky {
      touch-action: pan-y;
    }
  }

  @media (max-width: 760px) {
    body.shop-page.account-dropdown-open .shop-sticky-bar__search,
    body.shop-page.account-dropdown-open .hero .search-wrap {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      overflow: hidden;
    }

    body.shop-page.account-dropdown-open .shop-sticky-bar__search {
      flex: 0 0 0;
      max-width: 0;
      min-width: 0;
      padding: 0;
      border-width: 0;
      margin: 0;
    }

    body.shop-page.account-dropdown-open .hero .search-wrap {
      max-height: 0;
      margin: 0;
    }

    body.shop-page.account-dropdown-open .shop-sticky-bar__meta,
    body.shop-page.account-dropdown-open .search-suggestions--sticky {
      display: none !important;
    }
  }

  body.shop-page.filter-sheet-open .site-mobile-nav,
  body.shop-page.filter-sheet-open .site-mobile-nav.is-visible {
    transform: translateY(calc(100% + 12px));
    pointer-events: none;
    visibility: hidden;
  }

  body.shop-page.filter-sheet-open.mobile-nav-visible {
    padding-bottom: 0;
  }

  .browse-main.has-active-filters .results-count {
    display: none;
  }

  .sort {
    font-size: 13px;
    color: var(--ink-2);
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
  }

  /* Grid — flex wrap; column count via --shop-grid-cols token */
  .grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-grid-gap);
    padding: var(--space-1) 0;
  }
  .grid .card,
  .grid .skeleton-card {
    flex: 0 0 calc((100% - var(--shop-grid-gap) * (var(--shop-grid-cols) - 1)) / var(--shop-grid-cols));
    max-width: calc((100% - var(--shop-grid-gap) * (var(--shop-grid-cols) - 1)) / var(--shop-grid-cols));
    min-width: 0;
  }
  .grid .empty,
  .grid .init-error,
  .add-product-banner {
    flex: 0 0 100%;
    width: 100%;
  }
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 24px;
  }
  .card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
  }
  .card-hit:focus-visible {
    outline: none;
  }
  .card-hit:focus-visible ~ .card-img {
    box-shadow: var(--focus-ring);
    transform: translate3d(0, -3px, 0);
  }
  .card:focus-visible {
    outline: none;
  }
  .card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--shop-user-card-img-margin, 14px);
    border-radius: var(--shop-user-card-radius, 24px);
    box-shadow: none;
    transition: transform var(--motion-fast) var(--motion-ease);
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .card:hover .card-img,
  .card:has(.card-hit:hover) .card-img,
  .card:has(.card-hit:focus-visible) .card-img,
  .card.card--show-preview .card-img {
    transform: translate3d(0, -3px, 0);
  }
  .card:has(.card-hit:focus-visible) .card-img {
    box-shadow: var(--focus-ring);
  }
  .card-tag {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ink);
    color: var(--bg);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 100px;
    z-index: 2;
  }
  .card-cat { display: none; }
  .card-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .card-desc { display: none; }
  .card-tap-hint {
    display: none;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
  }
  .card-hover-preview {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px 12px 14px;
    background: linear-gradient(
      to top,
      rgba(17, 17, 17, 0.9) 0%,
      rgba(17, 17, 17, 0.7) 34%,
      rgba(17, 17, 17, 0.34) 62%,
      rgba(17, 17, 17, 0.08) 84%,
      transparent 100%
    );
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    border-radius: 0 0 var(--shop-user-card-radius, 24px) var(--shop-user-card-radius, 24px);
    opacity: 0;
    transform: none;
    transition: opacity var(--motion-normal) var(--motion-ease);
    pointer-events: none;
    z-index: 3;
  }
  .card--app .card-hover-preview {
    font-size: 11px;
    line-height: 1.35;
    height: 100%;
    padding: 28px 10px 12px;
    border-radius: var(--shop-app-icon-radius, 22%);
    background: transparent;
    isolation: isolate;
  }
  .card--app .card-hover-preview__text {
    display: none;
  }
  .card--app .card-hover-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(17, 17, 17, 0.92) 0%,
      rgba(17, 17, 17, 0.72) 18%,
      rgba(17, 17, 17, 0.36) 32%,
      rgba(17, 17, 17, 0.08) 44%,
      transparent 52%
    );
    -webkit-mask-image: var(--card-icon-mask, linear-gradient(#000, #000));
    mask-image: var(--card-icon-mask, linear-gradient(#000, #000));
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .card-hover-preview__text {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
  }
  .card:hover .card-hover-preview,
  .card:has(.card-hit:hover) .card-hover-preview,
  .card:has(.card-hit:focus-visible) .card-hover-preview,
  .card:active .card-hover-preview,
  .card.card--show-preview .card-hover-preview {
    opacity: 1;
    transform: none;
    background: linear-gradient(
      to top,
      rgba(17, 17, 17, 0.92) 0%,
      rgba(17, 17, 17, 0.72) 34%,
      rgba(17, 17, 17, 0.36) 62%,
      rgba(17, 17, 17, 0.08) 84%,
      transparent 100%
    );
  }
  .card--app:hover .card-hover-preview,
  .card--app:has(.card-hit:hover) .card-hover-preview,
  .card--app:has(.card-hit:focus-visible) .card-hover-preview,
  .card--app:active .card-hover-preview,
  .card--app.card--show-preview .card-hover-preview {
    background: transparent;
  }
  .card-foot {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
  }
  .card-rating {
    display: inline-flex;
    align-items: center;
  }
  .card-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    border-radius: 0;
  }

  .search-suggestion:hover,
  .search-suggestion:focus-visible {
    background: color-mix(in srgb, var(--shop-control-bg, var(--bg)) 92%, transparent);
    border-color: var(--shop-control-border, var(--line-2));
    outline: none;
  }
  .search-suggestions-section {
    padding: 2px 0;
  }
  .search-suggestions-label {
    display: block;
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .search-recent {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid transparent;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
    border-radius: 10px;
  }
  .search-recent:hover,
  .search-recent:focus-visible {
    background: color-mix(in srgb, var(--shop-control-bg, var(--bg)) 92%, transparent);
    border: 1px solid var(--shop-control-border, var(--line-2));
    color: var(--ink);
    outline: none;
  }

  /* Skeleton loading */
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  .skeleton-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .skeleton-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, var(--tint) 25%, var(--line) 50%, var(--tint) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
  }
  .skeleton-text {
    height: 12px;
    width: 70%;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--tint) 25%, var(--line) 50%, var(--tint) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease infinite;
  }
  .skeleton-text--short { width: 45%; height: 10px; }

  .modal-thumb--skeleton {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 18px;
    margin-bottom: 0;
  }
  .modal-product-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-top: 4px;
  }
  .modal-skeleton-line--title {
    width: 85%;
    height: 16px;
  }

  /* Grid transition */
  .grid {
    transition: opacity var(--motion-medium) var(--motion-ease);
  }
  .grid--enter {
    animation: grid-content-in var(--motion-medium) var(--motion-ease);
  }
  @keyframes grid-content-in {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Search autocomplete */
  .search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--shop-control-bg, var(--surface));
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 6px;
    box-shadow: none;
    max-height: 320px;
    overflow-y: auto;
    isolation: isolate;
  }
  .search-wrap--open {
    z-index: 100;
  }
  body.suggestions-open .hero {
    z-index: 30;
    overflow: visible;
  }
  body.suggestions-open .filters-wrap {
    z-index: 1;
  }
  body.suggestions-open .card-tag {
    visibility: hidden;
  }
  .search-suggestions[hidden] { display: none; }
  @media (max-width: 760px) {
    body.shop-page .search-suggestions:not([hidden]) {
      background: transparent;
      border-color: var(--line-2);
      backdrop-filter: blur(12px) saturate(150%);
      -webkit-backdrop-filter: blur(12px) saturate(150%);
    }

    body.shop-page .search-suggestion:hover,
    body.shop-page .search-suggestion:focus-visible,
    body.shop-page .search-recent:hover,
    body.shop-page .search-recent:focus-visible {
      background: color-mix(in srgb, var(--shop-control-bg, var(--bg)) 78%, transparent);
      backdrop-filter: blur(10px) saturate(140%);
      -webkit-backdrop-filter: blur(10px) saturate(140%);
    }

    .shop-sticky-bar .search-suggestions--sticky:not([hidden]) {
      display: block;
      left: 50vw;
      right: auto;
      width: min(calc(100vw - 32px), 520px);
      transform: translateX(-50%);
    }
    body.suggestions-open--sticky #search-suggestions {
      display: none !important;
    }
  }
  .search-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
  }
  .search-suggestion:hover,
  .search-suggestion:focus-visible {
    background: color-mix(in srgb, var(--shop-control-bg, var(--bg)) 92%, transparent);
    border-color: var(--shop-control-border, var(--line-2));
    outline: none;
  }
  .search-suggestion-emoji {
    width: 32px;
    height: 32px;
    background: color-mix(in srgb, var(--shop-control-bg, var(--bg)) 88%, var(--tint));
    border: 1px solid var(--shop-control-border, var(--line-2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .search-suggestion-emoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }
  .search-suggestion-info {
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  .search-suggestion-name {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .search-suggestion-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    min-width: 0;
    text-align: left;
  }
  .search-suggestion-cat {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
  }
  .search-suggestion-tag {
    flex-shrink: 0;
    background: var(--ink);
    color: var(--bg);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 7px;
    border-radius: 100px;
  }

  /* Empty state */
  .empty { text-align: center; padding: 100px 20px; color: var(--muted); }
  .empty h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
  }
  .empty p { font-size: 14px; margin-bottom: 18px; }
  .empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
  }
  .empty-suggestions {
    margin-top: 20px;
  }
  .empty-suggestions-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
  }
  .empty-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .empty-chip {
    background: var(--surface);
    border: 1px solid var(--line-2);
    color: var(--ink-2);
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }
  .empty-chip:hover { border-color: var(--ink); color: var(--ink); }
  .empty-chip:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }

  /* Review modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--motion-normal) var(--motion-ease),
      visibility 0s linear var(--motion-normal);
  }
  .modal-overlay.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition:
      opacity var(--motion-normal) var(--motion-ease),
      visibility 0s;
  }
  #signin-modal,
  #signup-modal { z-index: 300; }

  body.auth-modal-open [data-site-header],
  body.auth-modal-open .shop-sticky-bar {
    visibility: hidden;
    pointer-events: none;
  }
  .modal {
    background: var(--surface);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: none;
    transform: translateY(16px);
    opacity: 0;
    transition:
      transform var(--motion-normal) var(--motion-ease),
      opacity var(--motion-normal) var(--motion-ease);
  }
  .modal-overlay.open .modal {
    transform: translateY(0);
    opacity: 1;
  }
  .modal--content-loading .modal-price,
  .modal--content-loading .modal-desc,
  .modal--content-loading .modal-member-actions,
  .modal--content-loading .modal-brand-about,
  .modal--content-loading .modal-store-row,
  .modal--content-loading #review-rate-section {
    visibility: hidden;
  }
  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--tint);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--ink-2);
  }
  .modal-close:hover { background: var(--line); color: var(--ink); }
  .modal-close:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
  .modal-product {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .modal-thumb {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .modal-thumb .card-brand { gap: 4px; padding: 4px; }
  .modal-thumb .brand-logo-card--puma { width: 36px; }
  .modal-thumb .brand-wordmark { font-size: 8px; }
  .modal-title {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .modal-meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
  .modal-rating-note {
    font-size: 11px;
    line-height: 1.45;
    color: var(--muted);
    margin: 0 0 8px;
  }
  .rating-unrated {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
  }
  .card-rating .rating-unrated {
    font-size: 11px;
    font-weight: 600;
  }
  .review-item--highlight {
    animation: review-highlight 1.6s ease;
  }
  @keyframes review-highlight {
    0%, 100% { background: transparent; }
    20% { background: var(--tint); }
  }
  .modal-price {
    display: none !important;
  }
  .modal-thumb .card-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
  }
  .modal-desc {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .modal-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0 20px;
  }
  .modal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    min-height: 44px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  }
  .modal-action-btn:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
  }
  .modal-action-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
  .modal-action-btn.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }
  #modal-save-btn {
    background: var(--tint);
  }
  #modal-save-btn.active {
    background: var(--ink);
  }
  #modal-follow-btn {
    border-color: var(--ink);
  }
  #modal-follow-btn.active {
    background: var(--tint);
    color: var(--ink-2);
    border-color: var(--line-2);
  }
  #modal-follow-btn.active:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
  .modal-member-msg {
    flex-basis: 100%;
    min-height: 1.2em;
    font-size: 12px;
    color: var(--muted);
  }
  .modal-brand-about {
    margin: 14px 0 4px;
    padding: 14px 16px;
    background: var(--tint);
    border-radius: 12px;
  }
  .modal-brand-about-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .modal-brand-about-text {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.55;
  }
  .modal-store-row {
    margin: 20px 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .modal-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 100px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  }
  .modal-store-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: none;
  }
  .modal-brand {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .modal-cat {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0;
  }
  .modal-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }
  .review-gate {
    background: var(--tint);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin: 18px 0 14px;
  }
  .review-gate p {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 14px;
    line-height: 1.45;
  }
  .review-gate-btn {
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    padding: 11px 22px;
    font-family: inherit;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
  }
  .review-gate-btn:hover { opacity: 0.88; }
  .review-gate-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .review-gate-btn--secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-2);
  }
  .review-gate-btn--secondary:hover { border-color: var(--ink); }
  .review-signed-as {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .signin-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 6px;
  }
  .signin-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
  }
  .signin-form input:focus { border-color: var(--ink); }
  .signin-submit {
    width: 100%;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    padding: 12px;
    min-height: 44px;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
  }
  .signin-submit:hover { opacity: 0.88; }
  .auth-legal-note {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
  }
  .auth-legal-note a {
    color: var(--ink-2);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .auth-legal-note a:hover { color: var(--ink); }
  .signin-note {
    margin-top: 16px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.45;
  }
  .signin-forgot {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
  }
  .signin-forgot:hover { color: var(--ink); text-decoration: underline; }
  .signin-method-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    padding: 4px;
    background: var(--tint);
    border-radius: 999px;
  }
  .signin-method-tab {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .signin-method-tab:hover { color: var(--ink); }
  .signin-method-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: none;
  }
  .signin-method-tab:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
  .init-error {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    padding: 48px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
  }
  .init-error h2 {
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 8px;
  }
  .init-error p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
  .auth-error {
    font-size: 13px;
    color: var(--error);
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 0;
  }
  .auth-error:empty { display: none; }
  .signup-captcha {
    margin-bottom: 14px;
    min-height: 65px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  #signup-turnstile {
    width: 100%;
    max-width: 100%;
    min-height: 65px;
  }

  #signup-turnstile iframe {
    max-width: 100%;
  }
  .signup-otp-input {
    letter-spacing: 0.35em;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
  }
  .signup-verify-email {
    font-weight: 600;
    color: var(--ink);
  }
  .signup-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    margin-bottom: 4px;
    justify-content: center;
  }
  .signup-link-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
  }
  .signup-link-btn:hover { color: var(--ink); }
  .signup-link-btn:disabled { opacity: 0.45; cursor: not-allowed; }
  .signup-demo-code {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--tint);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.45;
  }
  .signup-demo-code strong {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.12em;
    color: var(--ink);
  }
  .signin-submit:disabled { opacity: 0.5; cursor: not-allowed; }
  .modal h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
  }
  .star-row {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    vertical-align: middle;
  }
  .star-icon,
  .star-input button img {
    display: block;
    flex-shrink: 0;
  }
  .star-icon--partial-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--star-size, 16px);
    height: var(--star-size, 16px);
    flex-shrink: 0;
    line-height: 0;
  }
  .star-icon--partial-asset {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
  .star-icon--partial {
    position: relative;
    display: inline-block;
    width: var(--star-size, 16px);
    height: var(--star-size, 16px);
    line-height: 0;
    flex-shrink: 0;
  }
  .star-icon--partial .star-icon__empty {
    display: block;
    width: 100%;
    height: 100%;
  }
  .star-icon--partial .star-icon__full--partial-mask {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: var(--star-size, 16px);
    height: var(--star-size, 16px);
    max-width: none;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .star-icon--partial .star-icon__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
  }
  .star-icon--partial .star-icon__full {
    display: block;
    width: var(--star-size, 16px);
    height: var(--star-size, 16px);
    max-width: none;
  }
  .star-row__value {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
  }
  .star-input {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
  }
  .star-input button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
  }
  .star-input button img {
    width: 24px;
    height: 24px;
    opacity: 0.4;
    transition: opacity 0.1s, transform 0.1s;
  }
  .star-input button.on img { opacity: 1; }
  .star-input button:hover img { transform: scale(1.1); }
  .modal-meta .star-row { vertical-align: -2px; }
  .review-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 6px;
  }
  .review-form input,
  .review-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
  }
  .review-form input:focus,
  .review-form textarea:focus { border-color: var(--ink); }
  .review-form textarea { resize: vertical; min-height: 80px; }
  .review-submit {
    width: 100%;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    padding: 12px;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
  }
  .review-submit:hover { opacity: 0.88; }
  #review-rate-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  #review-rate-section .review-list {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  #review-rate-section .review-list h3 {
    margin-top: 0;
  }
  .review-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .review-item:last-child { border-bottom: none; }
  .review-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
  }
  .review-item-name { font-size: 13px; font-weight: 500; }
  .review-item-stars {
    display: inline-flex;
    align-items: center;
  }
  .review-item-text { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
  .review-item-date { font-size: 11px; color: var(--muted); margin-top: 4px; }
  .review-empty { font-size: 13px; color: var(--muted); }
  .review-blocked {
    background: var(--tint);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 8px;
  }
  .review-blocked p,
  .review-already-msg {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.45;
    margin: 0;
  }
  .review-already-msg {
    background: var(--tint);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 8px;
  }
  .review-item-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .review-item-actions--mod {
    background: rgba(0, 0, 0, 0.04);
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 8px 10px;
  }
  .review-mod-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: auto;
  }
  .review-mod-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
  }
  .review-mod-btn:hover { border-color: var(--ink); color: var(--ink); }
  .review-mod-btn--danger {
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.35);
  }
  .review-hidden-notice {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
    background: var(--tint);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
  }
  .review-item--hidden-own {
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 4px;
  }
  .review-reauth-btn {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    font-weight: 600;
    color: var(--accent, #1d9bf0);
    cursor: pointer;
    text-decoration: underline;
  }
  .review-flag-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
  }
  .review-flag-btn:hover { color: var(--ink); }
  .review-flag-btn:disabled { opacity: 0.55; cursor: default; text-decoration: none; }
  .review-own-btn {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent, #1d9bf0);
    cursor: pointer;
    text-decoration: underline;
  }
  .review-own-btn--danger { color: #c0392b; }
  .review-delete-btn {
    margin-top: 8px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 12px;
    color: #c0392b;
    cursor: pointer;
  }
  .review-delete-btn:hover { border-color: #c0392b; }
  .review-item--hidden-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
  }
  .card-review-hint {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
  }
  .add-product-banner {
    position: relative;
    margin: 10px 0 16px;
    padding: 28px 32px 32px;
    border-radius: 26px;
    overflow: hidden;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .add-product-banner__bg,
  .add-product-banner__bg-color,
  .add-product-banner__bg-default,
  .add-product-banner__bg-alt {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .add-product-banner__bg-default,
  .add-product-banner__bg-alt {
    z-index: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 1.4s var(--motion-ease);
  }
  .add-product-banner__bg-alt {
    background-image: url("../assets/add-product-banner-blue.png");
    opacity: 1;
  }
  .add-product-banner__bg-color {
    z-index: 1;
    background: linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.74) 44%,
      rgba(255, 255, 255, 0.62) 100%
    );
    transition: background 1.4s var(--motion-ease);
  }
  .add-product-banner--alt-bg .add-product-banner__bg-color {
    background: linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.06) 40%,
      rgba(17, 17, 17, 0.42) 100%
    );
  }
  .add-product-banner__layout,
  .add-product-banner__kicker,
  .add-product-banner__title,
  .add-product-banner__text,
  .add-product-banner__steps li {
    transition: color 1.4s var(--motion-ease), border-color 1.4s var(--motion-ease), background 1.4s var(--motion-ease);
  }
  .add-product-banner--alt-bg .add-product-banner__kicker,
  .add-product-banner--alt-bg .add-product-banner__title {
    color: rgba(255, 255, 255, 0.96);
  }
  .add-product-banner--alt-bg .add-product-banner__text {
    color: rgba(255, 255, 255, 0.84);
  }
  .add-product-banner--alt-bg .add-product-banner__steps li {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
  }
  .add-product-banner--alt-bg .add-product-banner__steps li span {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
  }
  .add-product-banner--alt-bg .add-product-banner__rule {
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.28) 12%,
      rgba(255, 255, 255, 0.28) 88%,
      transparent 100%
    );
  }
  @media (prefers-reduced-data: reduce) {
    .add-product-banner__bg-alt {
      display: none;
    }
  }
  .add-product-banner__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 22px;
    min-height: 148px;
  }
  .add-product-banner__brand {
    max-width: 220px;
  }
  .add-product-banner__kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.35;
  }
  .add-product-banner__kicker-dot {
    display: none;
  }
  .add-product-banner__stage {
    display: grid;
    grid-template-columns: minmax(180px, 0.95fr) 1px minmax(0, 1.05fr);
    align-items: center;
    gap: 28px 32px;
  }
  .add-product-banner__headline {
    min-width: 0;
  }
  .add-product-banner__title {
    font-family: var(--font-sans);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.98;
    text-transform: uppercase;
    margin: 0;
  }
  .add-product-banner__title span {
    display: block;
  }
  .add-product-banner__title em {
    font-family: var(--font-sans);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.02em;
  }
  .add-product-banner__rule {
    align-self: stretch;
    width: 1px;
    min-height: 112px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(17, 17, 17, 0.14) 12%,
      rgba(17, 17, 17, 0.14) 88%,
      transparent 100%
    );
  }
  .add-product-banner__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .add-product-banner__text {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.6;
    max-width: 52ch;
    margin: 0;
  }
  .add-product-banner__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .add-product-banner__steps li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line-2);
    border-radius: 100px;
    padding: 5px 11px 5px 5px;
  }
  .add-product-banner__steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .add-product-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
  }
  .add-product-banner__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 20px;
    border-radius: 100px;
    background: linear-gradient(180deg, #333 0%, #161616 100%);
    color: var(--bg);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 10px 24px -12px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transition: transform 0.22s var(--motion-ease), box-shadow 0.22s var(--motion-ease);
  }
  .add-product-banner__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 66%);
    background-size: 220% 100%;
    background-position: 120% 0;
    transition: background-position 0.6s var(--motion-ease);
    pointer-events: none;
  }
  .add-product-banner__cta-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 36px;
    border-radius: 100px;
    background: var(--surface);
    color: var(--ink);
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.22s var(--motion-ease), background 0.22s var(--motion-ease), box-shadow 0.22s var(--motion-ease);
  }
  .add-product-banner__cta svg {
    flex-shrink: 0;
    transition: transform 0.22s var(--motion-ease);
  }
  .add-product-banner__cta:hover {
    transform: translateY(-2px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1) inset,
      0 16px 30px -12px rgba(0, 0, 0, 0.6);
  }
  .add-product-banner__cta:hover::before {
    background-position: -20% 0;
  }
  .add-product-banner__cta:hover .add-product-banner__cta-icon {
    background: var(--surface);
    transform: scale(1.08);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  }
  .add-product-banner__cta:hover svg {
    transform: translateX(2px);
  }
  .add-product-banner__cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 6px 14px -10px rgba(0, 0, 0, 0.5);
  }
  .add-product-banner__cta:focus-visible {
    outline: none;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 10px 24px -12px rgba(0, 0, 0, 0.55),
      var(--focus-ring);
  }
  .add-product-banner__note {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.01em;
  }
  @media (prefers-reduced-motion: reduce) {
    .add-product-banner__cta,
    .add-product-banner__cta::before,
    .add-product-banner__cta-icon,
    .add-product-banner__cta svg,
    .add-product-banner__bg-default,
    .add-product-banner__bg-alt,
    .add-product-banner__bg-color,
    .add-product-banner__layout,
    .add-product-banner__kicker,
    .add-product-banner__title,
    .add-product-banner__text,
    .add-product-banner__steps li {
      transition: none;
    }
  }

  /* Browse layout — left dropdown + main content */
  .browse-layout {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: var(--space-4) var(--space-5);
    margin-top: var(--space-4);
    align-items: start;
  }
  .browse-sidebar {
    position: sticky;
    top: var(--space-3);
    align-self: start;
  }
  .discover-select-wrap {
    position: relative;
  }
  .sidebar-filters > .discover-select-wrap + .discover-select-wrap:not([hidden]) {
    margin-top: 12px;
  }
  .sidebar-promos {
    margin-top: var(--space-2);
    padding: 16px;
    border: 1px solid var(--shop-control-border);
    border-radius: 22px;
    background: var(--shop-control-bg);
    box-shadow: none;
    font-family: var(--font-sans);
  }
  .sidebar-promo-day {
    margin-bottom: 16px;
    padding: 4px 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    text-align: center;
  }
  .sidebar-promo-day__card {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    text-align: center;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.18s var(--motion-ease);
  }
  .sidebar-promo-day__card:hover,
  .sidebar-promo-day__card:focus-visible {
    transform: translateY(-2px);
    outline: none;
  }
  .sidebar-promo-day__card:focus-visible {
    box-shadow: var(--focus-ring);
  }
  .sidebar-promo-kicker {
    display: block;
    margin-bottom: 8px;
    font-family: var(--shop-font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .sidebar-promo-day > .sidebar-promo-kicker {
    color: var(--ink);
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .sidebar-promo-schedule {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--muted);
  }
  .sidebar-promo-countdown {
    display: none;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
  }
  .sidebar-promo-thumb {
    width: 84px;
    height: 84px;
    margin: 0 auto 10px;
    border-radius: var(--shop-app-icon-radius, 22%);
    background: transparent;
    border: none;
    display: block;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    box-shadow:
      0 1px 2px rgba(24, 24, 27, 0.06),
      0 10px 24px rgba(24, 24, 27, 0.1);
  }
  .sidebar-promo-day .sidebar-promo-thumb .card-brand,
  .sidebar-promo-day .sidebar-promo-thumb .card-brand--app {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: block;
    transform: none;
  }
  .sidebar-promo-day .sidebar-promo-thumb .card-app-icon {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: inherit;
    object-fit: cover;
    display: block;
  }
  .sidebar-promo-name {
    display: block;
    font-family: var(--shop-font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
  }
  .sidebar-promo-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 11px;
    color: var(--muted);
  }
  .sidebar-top-scroll {
    position: relative;
    margin-top: 0;
    height: min(560px, calc(100vh - 360px));
    max-height: 560px;
    min-height: 280px;
  }
  .sidebar-top-scroll::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(to bottom, transparent, var(--bg) 78%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1;
  }
  .sidebar-top-scroll.is-scrollable:not(.is-at-bottom)::after {
    opacity: 1;
  }
  .sidebar-top-list {
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 52px;
    scroll-padding-bottom: 52px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .sidebar-top-list--scrollable {
    overflow-y: scroll;
  }
  .sidebar-top-list::-webkit-scrollbar {
    width: 6px;
  }
  .sidebar-top-list::-webkit-scrollbar-track {
    background: transparent;
  }
  .sidebar-top-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
  }
  .sidebar-top-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
  }
  .sidebar-top-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 4px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--shop-control-border);
    border-radius: 999px;
    background: var(--shop-control-bg);
    color: var(--ink-2);
    box-shadow: none;
    cursor: pointer;
    transform: translateX(-50%);
    transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .sidebar-top-scroll-hint[hidden] {
    display: none;
  }
  .sidebar-top-scroll-hint:hover,
  .sidebar-top-scroll-hint:focus-visible {
    border-color: var(--ink);
    color: var(--ink);
    transform: translateX(-50%) translateY(1px);
    outline: none;
    box-shadow: none;
  }
  .sidebar-top-group + .sidebar-top-group {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .sidebar-top-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 8px;
    padding: 8px 2px 8px;
    font-family: var(--shop-font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--ink-2);
    background: var(--shop-control-bg);
  }
  .sidebar-top-item {
    display: grid;
    grid-template-columns: 22px 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 5px 6px 5px 2px;
    border: none;
    border-radius: 11px;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .sidebar-top-item:hover {
    background: rgba(24, 24, 27, 0.045);
    transform: translateX(2px);
  }
  .sidebar-top-item:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
  .sidebar-top-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: transparent;
    color: var(--ink-2);
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .sidebar-top-thumb {
    width: 30px;
    height: 30px;
    border-radius: var(--shop-app-icon-radius, 22%);
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    line-height: 0;
  }
  .sidebar-top-thumb .card-brand,
  .sidebar-top-thumb .card-brand--app,
  .sidebar-top-thumb .card-app-icon {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    border-radius: inherit;
    object-fit: cover;
    transform: none;
  }
  .sidebar-top-copy {
    min-width: 0;
  }
  .sidebar-top-name {
    display: block;
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .sidebar-top-brand {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .sidebar-promo-brand {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
  }
  .sidebar-top-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
  }
  .discover-select-menu--scroll {
    max-height: 280px;
    overflow-y: auto;
  }
  .discover-select {
    position: relative;
    width: 100%;
    min-height: 46px;
    padding: 11px 42px 11px 14px;
    border: 1px solid var(--shop-control-border);
    border-radius: 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    background: var(--shop-control-bg);
    box-shadow: none;
    cursor: pointer;
    outline: none;
    appearance: none;
    text-align: left;
    transition:
      border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .discover-select:hover {
    border-color: var(--ink);
  }
  .discover-select::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23727272' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .discover-select[aria-expanded="true"]::after {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
  .discover-select:focus,
  .discover-select:focus-visible {
    border-color: var(--ink);
    box-shadow: none;
  }
  .discover-select[aria-expanded="true"] {
    border-color: var(--ink);
    color: #fff;
    background: var(--ink);
    box-shadow: none;
  }
  .discover-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  .discover-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    padding: 7px;
    list-style: none;
    background: var(--shop-control-bg);
    border: 1px solid var(--shop-control-border);
    border-radius: 14px;
    box-shadow: none;
    transform-origin: top center;
    animation: discover-menu-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes discover-menu-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .discover-select-menu[hidden] { display: none; }
  .discover-select-menu li {
    margin: 0;
    padding: 0;
  }
  .discover-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 39px;
    padding: 9px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
  }
  .discover-select-option:hover,
  .discover-select-option:focus {
    background: rgba(24, 24, 27, 0.055);
    outline: none;
  }
  .discover-select-option:focus-visible {
    box-shadow: inset 0 0 0 1px var(--line-2);
  }
  .discover-select-option[aria-selected="true"] {
    font-weight: 650;
    background: rgba(24, 24, 27, 0.075);
    color: var(--ink);
  }
  .discover-select-option[aria-selected="true"]:hover,
  .discover-select-option[aria-selected="true"]:focus {
    background: rgba(24, 24, 27, 0.1);
  }
  .discover-select-option-label {
    flex: 1;
    min-width: 0;
  }
  .discover-select-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    border: 1.5px solid var(--line-2);
    box-sizing: border-box;
    line-height: 1;
  }
  .discover-select-check.is-checked {
    background: var(--ink);
    border-color: transparent;
    color: #fff;
  }

  /* Discover sections */
  .discover { margin-top: 0; }
  .discover-section { margin-bottom: var(--space-4); }
  .discover-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding: 0 4px;
  }
  .discover-section-head span {
    font-size: 12px;
    color: var(--muted);
  }
  .discover-feed-hint {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
    margin: -8px 4px 20px;
    max-width: 520px;
  }
  .discover-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .discover-row .card {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }

  /* Toasts — shop-only (not shared site.css) */
  .toast-stack {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: min(92vw, 420px);
  }
  .toast {
    background: var(--ink);
    color: var(--bg);
    padding: 12px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: none;
  }
  .toast.show { opacity: 1; transform: translateY(0); }
  .toast--error { background: var(--error); }

  @media (prefers-reduced-motion: reduce) {
    .card, .grid, .modal-overlay, .modal, .toast, .filter-sheet__panel, .filter-sheet__backdrop { transition: none !important; }
    .shop-sticky-bar { transition: none !important; }
    .grid--enter { animation: none !important; }
    .skeleton-img, .skeleton-text { animation: none !important; }
    .hero-bg { animation: none; }
    .hero-bg--waves { opacity: 1; }
    .hero-bg--primary,
    .hero-bg--mountains { display: none; }
  }

  @media (max-width: 900px) {
    body.shop-page { --shop-grid-cols: 4; }
  }

  @media (max-width: 760px) {
    .container {
      padding: 0 var(--space-2) var(--space-5);
    }
    .filters-wrap { display: none; }
    body.shop-page .site-header.is-scrolled {
      background: transparent;
      pointer-events: none;
    }
    body.shop-page .site-header.is-scrolled .site-header-actions {
      pointer-events: auto;
      transform: translateY(-4px);
    }
    .shop-sticky-bar {
      display: block;
      top: 0;
      right: calc(88px + var(--space-1));
      padding: 14px 0 8px 16px;
      transform: translateY(-100%);
    }
    .shop-sticky-bar__row {
      flex-direction: row-reverse;
    }

    body.shop-page .shop-sticky-bar.is-visible .shop-sticky-bar__search,
    body.shop-page .shop-sticky-bar.is-visible .shop-sticky-bar__filter {
      background: transparent;
      border-color: var(--line-2);
      backdrop-filter: blur(12px) saturate(150%);
      -webkit-backdrop-filter: blur(12px) saturate(150%);
    }

    body.shop-page .shop-sticky-bar.is-visible .shop-sticky-bar__search input {
      background: transparent;
    }

    body.shop-page .shop-sticky-bar.is-visible .shop-sticky-bar__filter svg {
      color: var(--ink-2);
    }

    .filter-sheet__panel {
      top: 0;
      right: auto;
      bottom: 0;
      left: 0;
      width: min(88vw, 320px);
      max-height: none;
      height: 100%;
      border-radius: 0 20px 20px 0;
      padding: max(20px, env(safe-area-inset-top)) 18px 12px;
      border: none;
      background: var(--surface);
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      transform: translateX(-100%);
    }
    .filter-sheet.open .filter-sheet__panel {
      transform: translateX(0);
    }
    .filter-sheet__body .discover-select {
      display: none;
    }
    .filter-sheet__body .discover-select-wrap + .discover-select-wrap,
    .filter-sheet__body .sidebar-category-wrap,
    .filter-sheet__body .sidebar-platform-wrap {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--line);
    }
    .filter-sheet__body .discover-select-menu {
      position: static;
      display: block !important;
      margin: 0;
      padding: 0;
      border: none;
      border-radius: 0;
      box-shadow: none;
      max-height: none;
      overflow: visible;
    }
    .filter-sheet__body .discover-select-menu[hidden] {
      display: block !important;
    }
    .filter-sheet__footer {
      padding-bottom: env(safe-area-inset-bottom);
    }
    .hero {
      padding: var(--space-4) var(--space-2) var(--space-4);
      margin: 0 calc(-1 * var(--space-2));
    }
    .hero-bg {
      background-position: center center;
    }
    .hero::after {
      height: auto;
    }
    .hero h1 { font-size: clamp(32px, 9vw, 44px); }
    .hero .sub { font-size: 14px; margin-bottom: var(--space-3); }
    .search-wrap {
      max-width: 100%;
      margin-top: var(--space-3);
    }
    .search-box {
      padding: 4px 4px 4px 14px;
      gap: 6px;
    }
    .search-box svg {
      width: 16px;
      height: 16px;
    }
    .search-box input {
      font-size: 16px;
      padding: 12px 0;
    }
    .search-clear-btn {
      width: 36px;
      height: 36px;
      font-size: 14px;
    }
    .search-btn {
      padding: 10px 14px;
      font-size: 12px;
    }
    .review-gate-actions {
      gap: 8px;
    }
    .review-gate-btn {
      flex: 1 1 0;
      min-width: 0;
      padding: 10px 12px;
      font-size: 12px;
    }
    .signup-captcha {
      margin-left: 0;
      margin-right: 0;
    }
    #signup-modal .modal,
    #signin-modal .modal {
      padding: 24px 16px;
    }
    .browse-layout {
      grid-template-columns: 1fr;
      gap: var(--space-3);
      margin-top: var(--space-3);
    }
    .browse-sidebar { display: none; }
    .shop-filter-trigger { display: none; }
    .sidebar-top-scroll {
      height: min(420px, calc(100vh - 320px));
      max-height: 420px;
    }
    .results-bar { flex-direction: column; gap: var(--space-2); align-items: flex-start; }
    .grid { gap: var(--space-3) var(--space-2); }
    .grid .card,
    .grid .skeleton-card {
      flex: 0 0 calc((100% - var(--space-2) * (var(--shop-grid-cols) - 1)) / var(--shop-grid-cols));
      max-width: calc((100% - var(--space-2) * (var(--shop-grid-cols) - 1)) / var(--shop-grid-cols));
    }
    .filter-sheet__body .discover-select-option {
      min-height: 44px;
      display: flex;
      align-items: center;
    }
    .filter-sheet__apply {
      min-height: 48px;
    }
    .card-img { font-size: 44px; }
    .card-tap-hint { display: block; }
    .add-product-banner {
      padding: 22px 18px 24px;
    }
    .add-product-banner__layout {
      gap: 18px;
      min-height: 0;
    }
    .add-product-banner__stage {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .add-product-banner__rule {
      display: none;
    }
    .add-product-banner__title {
      font-size: clamp(24px, 7vw, 34px);
    }
    .add-product-banner__actions {
      width: 100%;
      flex-direction: column;
      align-items: stretch;
    }
    .add-product-banner__cta {
      width: 100%;
      justify-content: space-between;
    }
    .add-product-banner__note {
      text-align: center;
    }
    .modal { padding: 28px 22px; }
  }

  @media (max-width: 540px) {
    body.shop-page { --shop-grid-cols: 3; }
    .modal-overlay {
      padding: 12px;
    }
    #signup-modal .modal,
    #signin-modal .modal {
      padding: 22px 14px;
    }
  }
