:root {
  --bg: #ffffff;
  --ink: #171a20;
  --muted: #5c5e62;
  --line: #e8e8e8;
  --red: #e82127;
  --plaid: #c44bff;
  --card: #f4f4f4;
  --dark: #0a0a0a;
  --max: 1120px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* —— Accessibility utilities —— */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #171a20;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid #171a20;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid #e82127;
  outline-offset: 2px;
}

/* Global visible focus (keyboard) — >= 3:1 against adjacent colors */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid #e82127;
  outline-offset: 2px;
}
.chip:focus-visible,
.featured-dot:focus-visible,
.featured-nav:focus-visible,
.featured-toggle:focus-visible,
.featured-cta:focus-visible,
.search-clear:focus-visible,
.sort-link:focus-visible,
.btn:focus-visible,
.show-more-btn:focus-visible,
.nav a:focus-visible,
.nav-icon:focus-visible,
.footer-icon:focus-visible,
.footer-links a:focus-visible,
.card-title-link:focus-visible,
.search-input:focus-visible,
.sort-select:focus-visible {
  outline: 3px solid #e82127;
  outline-offset: 2px;
}
.search-input:focus-visible,
.sort-select:focus-visible {
  border-color: #171a20;
  box-shadow: 0 0 0 3px rgba(232, 33, 39, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .featured-track {
    transition: none !important;
  }
  .featured.is-reduced-motion .featured-track {
    transition: none !important;
  }
}

.topbar {
  border-bottom: 1px solid #1a1a1a;
  position: sticky; top: 0;
  background: rgba(10,10,10,.94);
  backdrop-filter: blur(10px); z-index: 10;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 1rem;
}

.logo { display: inline-flex; text-decoration: none; align-items: center; }
.logo-img { height: auto; width: auto; }
.logo-img--nav { height: 52px; width: auto; max-width: min(100%, 320px); }
.logo-img--footer {
  height: 64px;
  width: auto;
  max-width: min(100%, 340px);
  margin: 0;
  opacity: .98;
  display: block;
}
.logo-hero { display: block; margin: 0 auto; text-align: center; }

.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: #b0b0b0; font-size: .92rem; }
.nav a:hover { color: #fff; }

/* Featured carousel hero — T Sportline–style full-bleed ads */
.hero {
  padding: 0;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
  text-align: left;
}
.hero--featured { overflow: hidden; }
.featured {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  aspect-ratio: 2165 / 726;
  min-height: 255px;
  max-height: 420px;
  overflow: hidden;
  background: #0c0c0c;
}
.featured-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.85s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.featured-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}
.featured-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-user-drag: none;
}
.featured-slide::after {
  content: none;
}
.featured-copy {
  position: absolute;
  top: 0;
  bottom: 0;
  /* just right of center — small gap from product */
  left: 50%;
  right: 18%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.25rem 1rem;
  color: #f2f2f2;
  pointer-events: none;
  box-sizing: border-box;
}
.featured-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 6px 16px rgba(0, 0, 0, 0.45);
}
.featured-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 8px 22px rgba(0, 0, 0, 0.45);
  max-width: 14ch;
  text-align: center;
}
.featured-blurb {
  display: none !important;
  margin: 0;
  color: rgba(230, 230, 230, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 28rem;
  font-weight: 400;
}
.featured-blurb:empty { display: none; }
.featured-cta {
  pointer-events: auto;
  margin-top: 0.55rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e82127;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.72rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.featured-cta:hover { background: #ff2d34; }
.featured-cta:active { transform: translateY(1px); }

/* featured art-only ads */
.featured-slide--art {
  cursor: pointer;
}
.featured-copy--art {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0;
  display: block;
  pointer-events: none;
}
.featured-cta--hotspot {
  position: absolute;
  left: 4.5%;
  bottom: 14%;
  width: 18%;
  min-width: 8.5rem;
  max-width: 14rem;
  height: 16%;
  min-height: 2.4rem;
  max-height: 3.4rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0;
  pointer-events: auto;
  cursor: pointer;
}
.featured-cta--hotspot:hover,
.featured-cta--hotspot:active {
  background: transparent;
  transform: none;
}
.featured-cta--hotspot:focus-visible {
  outline: 2px solid #e82127;
  outline-offset: 3px;
  background: rgba(232, 33, 39, 0.12);
}
@media (max-width: 720px) {
  .featured-cta--hotspot {
    left: 3.5%;
    bottom: 12%;
    width: 36%;
    height: 18%;
  }
}

.featured-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 0;
  background: rgba(20, 20, 20, 0.45);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}
.featured-nav:hover { background: rgba(232, 33, 39, 0.85); }
.featured-nav--prev { left: 0.85rem; }
.featured-nav--next { right: 0.85rem; }
.featured-toggle {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  min-height: 2rem;
  min-width: 4.25rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.featured-toggle:hover { background: rgba(232, 33, 39, 0.85); }
.featured-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 3;
  padding-right: 5.5rem; /* room for pause control */
}
.featured-dot {
  /* Visual 8px dot inside >=24px tap target */
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}
.featured-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease, width 0.2s ease;
}
.featured-dot.is-active::after { background: #fff; width: 1.15rem; }
.featured-dot:hover::after { background: rgba(255, 255, 255, 0.8); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.5rem 0 1rem;
}
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; cursor: pointer;
  min-height: 2rem;
  min-width: 2rem;
}
.chip.active, .chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; }

/* —— Shop filters: categories / models / search+sort —— */
#shop {
  padding-top: 1.15rem;
}
.shop-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 0 1.1rem;
  overflow: visible;
}
.shop-filters .toolbar {
  padding: 0;
  gap: 0.45rem;
}
.shop-filters .toolbar-models {
  gap: 0.4rem;
}
.shop-filters .chip-model {
  font-size: 0.8rem;
  padding: 0.38rem 0.8rem;
  background: #fafafa;
}
.shop-filters .chip-model.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.toolbar-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.15rem 0 0;
}
.search-wrap {
  position: relative;
  flex: 0 1 22rem;
  max-width: 22rem;
  margin: 0;
  margin-right: auto;
}
.search-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 2.25rem 0.55rem 1.05rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  min-height: 2.5rem;
}
.search-input::placeholder { color: #6b6b6b; opacity: 1; }
.search-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 26, 32, 0.08);
}
.search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #555;
  font-size: 1.15rem;
  line-height: 1;
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.search-clear:hover { background: #f0f0f0; color: #111; }

.sort-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.sort-label {
  font-size: 0.8rem;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 2.15rem 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  background-size: 10px 6px;
  color: var(--ink);
  cursor: pointer;
  min-width: 11.5rem;
  min-height: 2.5rem;
}
.sort-select:hover,
.sort-select:focus {
  border-color: var(--ink);
  outline: none;
}
.sort-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem; padding-bottom: 3rem;
}
.card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
}
.card-media { aspect-ratio: 4/3; background: var(--card); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.card .blurb { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: .35rem;
  width: 100%;
}
.price {
  font-weight: 600;
  font-size: .95rem;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.15;
  min-height: 2.6rem;
  box-sizing: border-box;
}
.card .btn {
  flex-direction: column;
  width: 9.4rem;
  min-width: 9.4rem;
  max-width: 9.4rem;
  height: 2.95rem;
  padding: 0.3rem 0.5rem;
  gap: 0.05rem;
}
.btn-main { display: block; line-height: 1.1; }
.btn-paid {
  display: block;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.8;
  letter-spacing: 0.01em;
}
.btn:hover { background: #7b2ff7; }

/* —— Show more (product grid pagination) —— */
.show-more-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 2.25rem;
}
.show-more-btn {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  min-height: 2.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.show-more-btn:hover { background: #7b2ff7; }
.show-more-btn:active { transform: translateY(1px); }


.empty { color: var(--muted); padding: 2rem 0 3rem; }

.footer {
  border-top: 1px solid #1a1a1a;
  padding: 1.15rem 0 1.25rem;
  background: var(--dark);
  color: #b0b0b0;
  font-size: .85rem;
  box-sizing: border-box;
}
.footer-inner { display: flex; flex-direction: column; gap: 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 48px;
}
.footer-brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
}
/* .footer strong neutralized for uniform footer weight */
.footer-catch {
  color: #8a8a8a;
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin: 0.15rem 0 0;
  text-align: right;
}
.disclosure { display: none; }
/* Footer text — both lines identical size/weight/color */
.footer-line,
.footer-links,
.footer-links a,
.affiliate-note {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  color: #b0b0b0;
  font-family: inherit;
  text-align: center;
}
.footer-line,
.affiliate-note {
  max-width: 52rem;
  white-space: normal;
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.85rem;
  padding-top: 0.25rem;
}

.footer-disclaimer { display: none; }
.footer-links {
  margin: 0.45rem 0 0;
}
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-links a:hover { color: #fff; }
.footer-links span[aria-hidden] {
  margin: 0 0.35rem;
  color: #b0b0b0;
  font-size: inherit;
  font-weight: inherit;
}
.footer strong { color: inherit; font-weight: inherit; }
.affiliate-note code { display: none; }
.footer-bottom {
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding-top: 0.15rem;
}

.shop-affiliate {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  color: #6b6b6b;
  letter-spacing: 0.01em;
}
.model-tags {
  margin: 0;
  font-size: 0.75rem;
  color: #6b6b6b;
}


@media (max-width: 640px) {
  .toolbar-tools {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.1rem 0 0;
  }
  .search-wrap { max-width: none; }
  .sort-wrap { margin-left: 0; justify-content: flex-end; }
}

/* Social logo icons */
.social-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  text-decoration: none;
  padding: 0.2rem;
  border-radius: 6px;
  line-height: 0;
}
.nav-icon:hover {
  color: #fff;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8b8b8;
  text-decoration: none;
  line-height: 0;
}
.footer-icon .social-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.footer-icon:hover {
  color: #fff;
}

.footer-social {
  grid-column: 3;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  justify-self: end;
}


/* —— Mobile polish (clean phone layout) —— */
@media (max-width: 640px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .shop-filters { overflow: visible; max-width: 100%; }
  .shop-filters .toolbar:not(.toolbar-tools) { max-width: 100%; }
  .topbar-inner {
    min-height: 56px;
    gap: 0.5rem;
  }
  .logo-img--nav { height: 40px; max-width: 240px; }
  .nav { gap: 0.65rem; }
  .nav a { font-size: 0.8rem; }
  .hero { padding: 0; }
  .featured {
    aspect-ratio: 16 / 9;
    min-height: 220px;
    max-height: 280px;
    width: 100%;
  }
  .featured-slide img { object-position: center center; }
  .featured-slide::after {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 35%,
      rgba(8, 8, 10, 0.45) 55%,
      rgba(8, 8, 10, 0.88) 78%,
      rgba(8, 8, 10, 0.94) 100%
    );
  }
  .featured-copy {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    height: 42%;
    padding: 0.85rem 1rem 1.1rem;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(8,8,10,0.92) 35%);
  }
  .featured-copy h2 { font-size: 1.45rem; max-width: none; }
  .featured-blurb { font-size: 0.88rem; max-width: none; }
  .featured-nav { width: 2.15rem; height: 2.15rem; font-size: 1.25rem; }
  .featured-nav--prev { left: 0.4rem; }
  .featured-nav--next { right: 0.4rem; }
  .logo-img--footer { height: 48px; max-width: 260px; }
  .footer { padding: 1rem 0 1.1rem; }
  .footer-top {
    grid-template-columns: 1fr auto 1fr;
    min-height: 40px;
  }
  .footer-brand {
    align-items: center;
    text-align: center;
    width: auto;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
  }
  .footer-line,
  .footer-links,
  .footer-links a,
  .affiliate-note {
    white-space: normal;
    text-align: center;
    width: 100%;
    font-size: 0.8rem; /* keep identical to desktop footer type */
    font-weight: 400;
    color: #b0b0b0;
  }
  .featured-toggle {
    right: 0.45rem;
    bottom: 0.55rem;
    font-size: 0.68rem;
    padding: 0.4rem 0.7rem;
  }
  .featured-dots { padding-right: 4.75rem; bottom: 0.65rem; }
  .nav-icon, .footer-icon {
    min-width: 2rem;
    min-height: 2rem;
  }
  .sort-link {
    min-height: 1.5rem;
    padding: 0.25rem 0.35rem !important;
  }
  /* Swipeable chip rows — full labels, soft edge fade */
  .shop-filters .toolbar:not(.toolbar-tools) {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* room so last chip clears the fade when scrolled to the end */
    padding-inline-end: 2.5rem;
    scroll-padding-inline: 0.25rem 2.5rem;
    /* soft hint that more chips are off-screen to the right */
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 1.4rem), transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 1.4rem), transparent 100%);
  }
  .shop-filters .toolbar:not(.toolbar-tools)::-webkit-scrollbar { display: none; }
  .shop-filters .chip {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
  }
  .shop-filters .toolbar:not(.toolbar-tools).is-scroll-end {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .toolbar {
    padding: 1rem 0 0.65rem;
    gap: 0.4rem;
  }
  .chip {
    flex: 0 0 auto;
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
  }
  .shop-filters .toolbar.toolbar-tools {
    flex-wrap: nowrap;
    overflow: visible;
    padding: 0.1rem 0 0;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
  }
  .toolbar-tools {
    padding-top: 0;
    gap: 0.75rem;
  }
  .sort-wrap { margin-top: 0; gap: 0.25rem; }
  .search-wrap { margin-bottom: 0; }
  .search-input {
    font-size: 1rem; /* avoid iOS zoom */
    padding: 0.65rem 2.25rem 0.65rem 1rem;
  }
  .sort-select {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 0.55rem 0.75rem;
  }
  .sort-wrap { width: 100%; justify-content: stretch; }
  .sort-wrap .sort-label { flex: 0 0 auto; }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding-bottom: 2.5rem;
  }
  .card { border-radius: 12px; }
  .card-media { aspect-ratio: 1 / 1; }
  .card-body { padding: 0.65rem 0.7rem 0.85rem; gap: 0.3rem; }
  .card h3 { font-size: 0.82rem; line-height: 1.3; }
  .card .blurb {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card .model-tags { font-size: 0.68rem; }
  .card .meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.25rem;
  }
  .card .price {
    font-size: 0.92rem;
    font-weight: 600;
    width: 100%;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card .btn {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-shrink: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0.3rem 0.5rem;
    font-size: 0.875rem;
    box-sizing: border-box;
    white-space: nowrap;
    min-height: 48px;
    height: 48px;
    flex-direction: column;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card .btn {
    width: 9.4rem;
    min-width: 9.4rem;
    max-width: 9.4rem;
    font-size: 0.9rem;
  }
}

/* Desktop select vs mobile price links */
.sort-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sort-mobile { display: none; }
.sort-link {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: #555;
  padding: 0.15rem 0.1rem;
  cursor: pointer;
  text-decoration: none;
}
.sort-link.is-active {
  color: #171a20;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.sort-sep {
  color: #ccc;
  padding: 0 0.2rem;
  user-select: none;
}

@media (max-width: 640px) {
  .sort-desktop { display: none; }
  .sort-mobile {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 0.1rem;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.2;
  }
  .sort-mobile .sort-label {
    margin-right: 0.25rem;
    font-size: 0.88rem;
    color: #666;
    font-weight: 500;
  }
  .sort-link {
    font-size: 0.92rem;
    padding: 0.1rem 0.1rem;
    min-height: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
  }
  .sort-sep {
    color: #bbb;
    padding: 0 0.25rem;
  }
}

/* —— Force-tight search + sort on phone (no phantom select height) —— */
@media (max-width: 640px) {
  .shop-filters .toolbar.toolbar-tools,
  .toolbar.toolbar-tools {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0.1rem 0 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .search-wrap {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }
  .search-input {
    display: block;
    width: 100%;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
  }
  .sort-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .sort-desktop {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .sort-mobile {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0 0.15rem;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    line-height: 1.25;
    text-align: right;
  }
  .sort-wrap {
    text-align: right;
  }
  .sort-mobile .sort-label {
    margin: 0 0.25rem 0 0;
    padding: 0;
  }
  .sort-link {
    min-height: 0 !important;
    padding: 0.05rem 0.1rem !important;
    line-height: 1.25;
  }
}

/* Search left / Sort right + oval controls (phone) */
@media (max-width: 640px) {
  .shop-filters {
    gap: 0.7rem;
    padding: 1rem 0 0.85rem;
  }
  .shop-filters .search-wrap,
  .search-wrap {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: min(100%, 15.5rem) !important;
    margin: 0 !important;
    margin-right: auto !important;
  }
  .shop-filters .search-input,
  .search-input {
    border-radius: 999px !important;
    min-height: 2.4rem;
  }
  .shop-filters .sort-wrap,
  .sort-wrap {
    display: flex !important;
    width: auto !important;
    margin: 0 0 0 auto !important;
    justify-content: flex-end !important;
    text-align: right !important;
  }
  .shop-filters .sort-select,
  .sort-select {
    border-radius: 999px !important;
    min-width: 9.5rem;
    width: auto !important;
  }
  .sort-wrap .sort-select {
    width: auto !important;
  }
}
