/* Helmet Hub catalogue — intentionally scoped to the shop page. */
body[data-page="shop"] main { padding-bottom: 72px; }
body[data-page="shop"] .breadcrumbs { margin-top: 14px; margin-bottom: 12px; }
body[data-page="shop"] .breadcrumbs > * + *::before { content: none; }

.catalog-hero {
  min-height: 320px;
  position: relative;
  margin-bottom: 34px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: white;
  background: #17191b;
  isolation: isolate;
}
.catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8,10,11,.95) 0%, rgba(8,10,11,.82) 40%, rgba(8,10,11,.24) 72%, rgba(8,10,11,.1) 100%);
}
.catalog-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 45%;
}
.catalog-hero__content { max-width: 700px; padding: 46px 48px; }
.catalog-hero__content .eyebrow { color: #ffc094; }
.catalog-hero__content h1 {
  max-width: 630px;
  margin: 8px 0 13px;
  font: 800 clamp(42px, 4.7vw, 64px)/.93 var(--display);
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.catalog-hero__content p { max-width: 590px; margin-bottom: 23px; color: #dfe1e2; font-size: 14px; }

.catalog-intro {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 560px);
  gap: 30px;
  align-items: end;
}
.catalog-intro h2 { margin: 4px 0 0; font: 800 clamp(29px, 3vw, 40px)/.98 var(--display); text-transform: uppercase; }
.catalog-intro > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.subcategory-explorer { margin-bottom: 31px; }
.subcategory-explorer__head {
  margin-bottom: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.subcategory-explorer__head h2 { margin: 3px 0 0; font: 800 27px/1 var(--display); text-transform: uppercase; }
.subcategory-explorer__head > p { max-width: 420px; margin: 0; color: var(--muted); font-size: var(--type-caption); text-align: right; }
.subcategory-shell { position: relative; }
.subcategory-rail {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(134px, 1fr);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: 1px 52px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subcategory-rail::-webkit-scrollbar { display: none; }
.subcategory-rail:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 10px; }
.subcategory-tile {
  min-width: 134px;
  padding: 7px 7px 13px;
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: white;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.subcategory-tile:hover { border-color: #d8dadc; box-shadow: 0 9px 24px rgba(21,23,25,.08); transform: translateY(-2px); }
.subcategory-tile:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.subcategory-tile.is-active { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.subcategory-tile__media {
  aspect-ratio: 1.2 / 1;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #f0f1f2;
}
.subcategory-tile__media img { width: 100%; height: 100%; padding: 7px; display: block; object-fit: contain; transition: transform .22s ease; }
.subcategory-tile:hover .subcategory-tile__media img { transform: scale(1.06); }
.subcategory-tile__media--icon { color: white; background: var(--carbon); font-size: 35px; }
.subcategory-tile.is-active .subcategory-tile__media { color: white; background: var(--carbon); }
.subcategory-tile.is-active .subcategory-tile__media:not(.subcategory-tile__media--icon) { background: #fff4eb; }
.subcategory-rail--monochrome { align-items: stretch; }
.subcategory-rail--monochrome .subcategory-tile { min-height: 176px; grid-template-rows: auto auto 1fr; align-content: stretch; }
.subcategory-rail--monochrome .subcategory-tile__media--icon,
.subcategory-rail--monochrome .subcategory-tile.is-active .subcategory-tile__media--icon {
  color: #17191b;
  border: 1px solid #e6e8e9;
  background: #f2f3f3;
  box-shadow: none;
  font-size: 31px;
}
.subcategory-rail--monochrome .subcategory-tile__media--icon i { filter: none; }
.subcategory-rail--monochrome .subcategory-tile:hover {
  border-color: #cfd2d4;
  box-shadow: none;
  transform: none;
}
.subcategory-rail--monochrome .subcategory-tile:hover .subcategory-tile__media--icon { color: #a8440d; background: #f6f1ed; }
.subcategory-rail--monochrome .subcategory-tile.is-active .subcategory-tile__media--icon { border-color: #e7d7cc; }
.subcategory-tile strong { display: block; font-size: var(--type-ui); line-height: 1.3; }
.subcategory-tile small { display: block; color: var(--muted); font-size: var(--type-caption); line-height: 1.4; }
.subcategory-arrow {
  position: absolute;
  top: 45%;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--carbon);
  background: rgba(255,255,255,.98);
  box-shadow: 0 7px 22px rgba(21,23,25,.13);
  transform: translateY(-50%);
  transition: color .18s ease, border-color .18s ease, opacity .18s ease;
}
.subcategory-arrow:hover:not(:disabled) { color: var(--orange); border-color: var(--orange); }
.subcategory-arrow:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.subcategory-arrow:disabled { opacity: 0; pointer-events: none; }
.subcategory-arrow--prev { left: -20px; }
.subcategory-arrow--next { right: -20px; }

body[data-page="shop"] .shop-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 26px; }
body[data-page="shop"] .filter-sidebar {
  top: 12px;
  padding: 0 18px 18px;
  border-radius: 11px;
  box-shadow: 0 5px 20px rgba(20,24,27,.035);
}
.filter-sidebar__head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filter-sidebar__head .eyebrow { font-size: var(--type-caption); }
.filter-sidebar__head h2 { margin: 2px 0 0; }
.filter-close { display: none; border: 0; background: var(--soft); }
.catalog-fit-card {
  margin: 0 0 16px;
  padding: 15px;
  border-radius: 9px;
  color: white;
  background: var(--carbon);
}
.catalog-fit-card .eyebrow { color: #ffb27d; font-size: var(--type-caption); }
.catalog-fit-card h3 { margin: 5px 0 7px; font: 800 20px/1 var(--display); text-transform: uppercase; }
.catalog-fit-card p { margin: 0 0 12px; color: #bdc1c4; font-size: var(--type-caption); line-height: 1.55; }
.catalog-fit-card .btn { width: 100%; color: var(--carbon); background: white; }
body[data-page="shop"] .filter-group { min-width: 0; margin: 0; border: 0; border-top: 1px solid var(--line); }
.filter-group legend {
  width: 100%;
  margin-bottom: 9px;
  color: var(--carbon);
  font-size: var(--type-label);
  font-weight: 800;
  text-transform: uppercase;
}
.filter-group > label:not(.sr-only) {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #555c62;
  font-size: var(--type-ui);
  cursor: pointer;
}
.filter-group > label small { margin-left: auto; color: #a0a5a9; font-size: var(--type-caption); }
.filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--orange);
}
.price-readout {
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.price-readout__bound {
  min-width: 0;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  border: 1px solid #e1e4e6;
  border-radius: 8px;
  color: #6b7278;
  background: #fafafa;
  cursor: pointer;
}
.price-readout__bound--end { align-items: flex-end; text-align: right; }
.price-readout__bound span {
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.price-readout__bound output {
  max-width: 100%;
  overflow: hidden;
  color: var(--carbon);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-range {
  --price-start: 0%;
  --price-end: 100%;
  position: relative;
  width: 100%;
  height: 34px;
}
.price-range__rail,
.price-range__selection {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}
.price-range__rail { inset-inline: 1px; background: #dfe3e5; }
.price-range__selection {
  left: var(--price-start);
  right: calc(100% - var(--price-end));
  background: var(--orange);
}
.price-range input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 34px;
  margin: 0;
  border: 0;
  outline: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}
.price-range #priceRangeMax { z-index: 3; }
.price-range input[type="range"].is-active { z-index: 4; }
.price-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.price-range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-dark);
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  cursor: grab;
}
.price-range input[type="range"]::-moz-range-track { height: 4px; border: 0; background: transparent; }
.price-range input[type="range"]::-moz-range-progress { height: 4px; background: transparent; }
.price-range input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-dark);
  pointer-events: auto;
  cursor: grab;
}
.price-range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.price-range input[type="range"]:active::-moz-range-thumb { cursor: grabbing; }
.price-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(210, 83, 11, .28); }
.price-range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(210, 83, 11, .28); }
.filter-size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.filter-size-grid legend { grid-column: 1 / -1; }
.filter-size-grid > label:not(.sr-only) {
  min-height: 36px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: var(--type-caption);
  font-weight: 700;
}
.filter-size-grid input { position: absolute; opacity: 0; pointer-events: none; }
.filter-size-grid label:has(input:checked) { color: white; border-color: var(--carbon); background: var(--carbon); }
.filter-actions { padding-top: 17px; display: grid; grid-template-columns: 1fr; gap: 8px; border-top: 1px solid var(--line); }
.filter-actions .btn { width: 100%; min-height: 41px; font-size: var(--type-ui); }
#applyMobileFilters { display: none; }

.catalog-toolbar {
  min-height: 76px;
  margin-bottom: 12px;
  padding: 11px 13px 11px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}
.catalog-toolbar .eyebrow { font-size: var(--type-caption); }
.catalog-toolbar h2 { margin: 2px 0 0; font: 800 24px/1 var(--display); text-transform: uppercase; }
.catalog-source-note { margin: -6px 0 16px; padding: 9px 12px; border: 1px solid #ecd8c9; border-radius: 8px; color: #6f5d51; background: #fffaf6; font-size: var(--type-caption); line-height: 1.45; }
.catalog-source-note i { margin-right: 6px; color: var(--orange); }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--type-caption); font-weight: 700; }
.sort-control select { min-height: 40px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--carbon); background: white; font-size: var(--type-ui); font-weight: 600; }
.view-toggle { height: 40px; padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 7px; background: white; }
.view-toggle button { width: 34px; border: 0; border-radius: 5px; color: #8a9095; background: transparent; font-size: 16px; }
.view-toggle button.is-active { color: white; background: var(--carbon); }
.mobile-filter-btn { display: none; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chips:not(:empty) { margin: 0 0 14px; }
.filter-chips button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #efcfb9;
  border-radius: 999px;
  color: #75411f;
  background: var(--orange-soft);
  font-size: var(--type-caption);
  font-weight: 700;
}

body[data-page="shop"] .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
body[data-page="shop"] .product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card__media { position: relative; aspect-ratio: 1 / .92; overflow: hidden; background: #fff; }
.product-card__media > a { width: 100%; height: 100%; display: block; }
.product-card__media img {
  width: 100%;
  height: 100%;
  padding: 15px;
  object-fit: contain;
  mix-blend-mode: normal;
  transition: transform .35s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  min-height: 23px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  color: white;
  background: var(--carbon);
  font-size: var(--type-caption);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-sale { background: var(--sale); }
.badge-new { background: var(--carbon); }
.badge-top { background: var(--success); }
.badge-low { background: #b16b06; }
.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #5f666c;
  background: rgba(255,255,255,.95);
  font-size: 17px;
}
.wishlist-btn:hover, .wishlist-btn.is-active { color: var(--sale); border-color: #f2b6ba; background: #fff3f4; }
.product-card__media .color-dots { position: absolute; left: 11px; bottom: 9px; margin: 0; }
.product-card__media .color-dots i { width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #c9cccf; }
.product-card__body { flex: 1; padding: 14px; display: flex; flex-direction: column; }
.product-card__body .product-brand { margin: 0 0 5px; }
.product-card__body h3 { min-height: 36px; margin: 0 0 7px; font-size: 12px; line-height: 1.45; }
.product-card__body h3 a:hover { color: var(--orange-dark); }
.product-card__body .rating { min-height: 18px; font-size: var(--type-caption); letter-spacing: -.03em; }
.product-card__body .rating span { color: var(--muted); font-size: var(--type-caption); letter-spacing: 0; }
.product-card__body .price { margin-top: 5px; display: flex; align-items: baseline; gap: 7px; }
.product-card__body .price strong { color: var(--orange-dark); font-size: 17px; }
.product-card__body .price del { color: #9ba0a4; font-size: var(--type-caption); font-weight: 500; }
.stock { margin: 7px 0 0; font-size: var(--type-caption); font-weight: 700; }
.stock.in-stock { color: var(--success); }
.stock.low-stock { color: #a15d00; }
.product-card__actions { margin-top: auto; padding-top: 11px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 6px; opacity: 0; transform: translateY(5px); transition: .2s ease; }
.product-card:hover .product-card__actions, .product-card:focus-within .product-card__actions { opacity: 1; transform: translateY(0); }
.product-card__actions .btn { min-width: 0; min-height: 36px; padding: 0 7px; border-radius: 7px; font-size: var(--type-ui); }

.product-grid--list { grid-template-columns: 1fr !important; }
.product-grid--list .product-card { min-height: 210px; display: grid; grid-template-columns: 225px 1fr; }
.product-grid--list .product-card__media { aspect-ratio: auto; min-height: 210px; }
.product-grid--list .product-card__body h3 { min-height: 0; font-size: 17px; }
.product-grid--list .product-card__actions { max-width: 330px; opacity: 1; transform: none; }

.no-results { padding: 70px 20px; border: 1px dashed #ccd0d2; border-radius: 11px; background: #fafafa; text-align: center; }
.no-results__icon { width: 70px; height: 70px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: var(--orange-soft); font-size: 30px; }
.no-results h3 { margin-bottom: 7px; font: 800 27px/1 var(--display); text-transform: uppercase; }
.no-results p { color: var(--muted); }
.no-results .btn { margin-top: 8px; }
body[data-page="shop"] .pagination { margin: 32px 0 44px; }
body[data-page="shop"] .pagination .is-active { color: white; border-color: var(--orange); background: var(--orange); }
.catalog-help { display: flex; align-items: center; justify-content: space-between; gap: 25px; background: linear-gradient(100deg, #fff7ef, white); }
.catalog-help h2 { margin: 3px 0 5px; font: 800 29px/1 var(--display); text-transform: uppercase; }
.catalog-help p { max-width: 680px; margin: 0; color: var(--muted); font-size: var(--type-caption); }
.catalog-help .btn { flex: 0 0 auto; }

@media (max-width: 1180px) {
  body[data-page="shop"] .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  body[data-page="shop"] .shop-layout { grid-template-columns: 1fr; }
  body[data-page="shop"] .filter-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 95;
    width: min(380px, 92vw);
    max-height: none;
    display: block;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: 18px 0 60px rgba(0,0,0,.22);
    transform: translateX(-108%);
    transition: transform .25s ease;
  }
  body[data-page="shop"] .filter-sidebar.is-open { transform: translateX(0); }
  .filter-sidebar__head { position: sticky; top: 0; z-index: 4; margin-inline: -18px; padding-inline: 18px; border-bottom: 1px solid var(--line); background: white; }
  .filter-close, #applyMobileFilters, .mobile-filter-btn { display: inline-grid; }
  #applyMobileFilters { display: inline-flex; }
  .filter-actions { grid-template-columns: 1fr 1.2fr; position: sticky; bottom: -18px; margin: 0 -18px -18px; padding: 14px 18px; background: white; }
  .catalog-toolbar { position: sticky; top: 0; z-index: 18; background: rgba(250,250,250,.96); backdrop-filter: blur(10px); }
  .catalog-intro { grid-template-columns: 1fr; gap: 10px; }
  .subcategory-rail { grid-auto-columns: 145px; }
}

@media (max-width: 700px) {
  body[data-page="shop"] main { padding-bottom: 52px; }
  .catalog-hero { min-height: 385px; margin-bottom: 28px; align-items: end; }
  .catalog-hero::after { background: linear-gradient(0deg, rgba(8,10,11,.96) 0%, rgba(8,10,11,.72) 58%, rgba(8,10,11,.22) 100%); }
  .catalog-hero > img { object-position: 65% 40%; }
  .catalog-hero__content { max-width: none; padding: 30px 24px; }
  .catalog-hero__content h1 { max-width: 520px; font-size: clamp(39px, 12vw, 52px); }
  .catalog-hero__content p { font-size: 12px; }
  .catalog-intro { margin-bottom: 18px; }
  .catalog-intro h2 { font-size: 30px; }
  .subcategory-explorer { margin-bottom: 22px; }
  .subcategory-explorer__head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .subcategory-explorer__head > p { max-width: none; text-align: left; }
  .subcategory-rail {
    width: 100%;
    grid-auto-columns: 126px;
    margin-right: 0;
    padding-right: 20px;
    scroll-padding-inline: 0 20px;
  }
  .subcategory-tile { min-width: 126px; padding: 6px 6px 11px; }
  .subcategory-tile__media { margin-bottom: 6px; }
  .subcategory-arrow { display: none; }
  .catalog-toolbar { min-height: 0; padding: 13px; align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; justify-content: flex-start; }
  .mobile-filter-btn { flex: 1; }
  .sort-control { flex: 1.5; }
  .sort-control select { min-width: 0; flex: 1; width: 100%; }
  .view-toggle { display: none; }
  body[data-page="shop"] .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card__media img { padding: 9px; }
  .product-card__body { padding: 10px; }
  .product-card__body h3 { min-height: 34px; font-size: var(--type-label); }
  .product-card__body .rating { white-space: nowrap; overflow: hidden; }
  .product-card__body .price { display: grid; gap: 0; }
  .product-card__body .price strong { font-size: 15px; }
  .product-card__actions { display: none; }
  .badge { top: 6px; left: 6px; min-height: 20px; padding: 3px 5px; font-size: 7px; }
  .wishlist-btn { top: 5px; right: 5px; width: 30px; height: 30px; }
  .catalog-help { align-items: flex-start; flex-direction: column; }
  .catalog-help .btn { width: 100%; }
}

@media (max-width: 380px) {
  .catalog-hero__content { padding-inline: 19px; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr; }
  .mobile-filter-btn { width: 100%; }
  .sort-control { width: 100%; }
}

/* Lovable catalogue sync — this block intentionally wins over the legacy catalogue rules above. */
body[data-page="shop"] main { padding-bottom: 80px; }
body[data-page="shop"] main .container { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
body[data-page="shop"] .breadcrumbs { margin-top: 16px; margin-bottom: 14px; font-size: 14px; }

.catalog-hero {
  min-height: 252px;
  margin-bottom: 44px;
  border-radius: 10px;
  background: #151719;
}
.catalog-hero::after { background: linear-gradient(90deg, rgba(12,14,15,.98) 0%, rgba(12,14,15,.89) 42%, rgba(12,14,15,.35) 73%, rgba(12,14,15,.2) 100%); }
.catalog-hero > img { object-position: 70% 45%; opacity: .82; }
.catalog-hero__content { max-width: 680px; padding: 40px; }
.catalog-offer {
  min-height: 28px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #ffd0ad;
  background: rgba(200,91,22,.18);
  font-size: var(--type-caption);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.catalog-hero__content h1 { max-width: 630px; margin: 11px 0 10px; font-size: clamp(40px, 4vw, 48px); line-height: .96; }
.catalog-hero__content p { max-width: 590px; margin: 0 0 20px; color: #d7dadd; font-size: 14px; line-height: 1.65; }
.catalog-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.catalog-hero__actions .btn { min-height: 44px; }
.catalog-hero__link { display: inline-flex; align-items: center; gap: 8px; color: white; font-size: 12px; font-weight: 800; }
.catalog-hero__link:hover { color: #ffc397; }

.catalog-intro { margin-bottom: 24px; grid-template-columns: minmax(0, 1fr) minmax(340px, 520px); gap: 36px; }
.catalog-intro h2 { max-width: 760px; font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.catalog-intro > p { font-size: 13px; line-height: 1.65; }
.subcategory-explorer { margin-bottom: 48px; }
.subcategory-explorer__head { margin-bottom: 16px; }
.subcategory-explorer__head h2 { font-size: 30px; }
.subcategory-explorer__head > p { font-size: 12px; }
.subcategory-rail { grid-auto-columns: 154px; gap: 12px; }
.subcategory-tile {
  min-width: 154px;
  padding: 8px 8px 14px;
  align-content: start;
  gap: 3px;
  border-color: #e7e8ea;
  border-radius: 10px;
}
.subcategory-tile__media { aspect-ratio: 1.25 / 1; margin-bottom: 8px; border-radius: 8px; background: #f1f2f3; }
.subcategory-tile__media img { padding: 9px; }
.subcategory-tile__media--icon { color: white; background: var(--carbon); font-size: 34px; }
.subcategory-tile strong { font-size: 13px; }
.subcategory-tile small { font-size: var(--type-caption); }
.subcategory-arrow { width: 44px; height: 44px; }

body[data-page="shop"] .shop-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
body[data-page="shop"] .filter-sidebar {
  top: 16px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  min-height: 0;
  align-self: start;
  padding: 0 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: auto;
  scrollbar-color: #aeb5ba transparent;
  border-color: #e7e8ea;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 16px rgba(20,24,27,.04);
  scrollbar-width: none;
}
.filter-sidebar__head { min-height: 68px; }
.filter-sidebar__head .eyebrow { font-size: var(--type-caption); }
.filter-sidebar__head h2 { margin-top: 3px; font-size: 26px; }
.catalog-fit-card { padding: 16px; }
.catalog-fit-card h3 { font-size: 21px; }
.catalog-fit-card p { font-size: var(--type-caption); }
.catalog-fit-card .btn { min-height: 42px; font-size: var(--type-ui); }
.bike-fitment-card {
  margin: 0 0 16px;
  padding: 16px;
  display: none;
  border-radius: 9px;
  color: white;
  background: var(--carbon);
}
body[data-page="shop"].has-bike-fitment .bike-fitment-card { display: block; }
.bike-fitment-card .eyebrow { color: #ffb27d; font-size: var(--type-caption); }
.bike-fitment-card h3 { margin: 6px 0 8px; font: 800 22px/1 var(--display); text-transform: uppercase; }
.bike-fitment-card > p { margin: 0 0 13px; color: #bdc1c4; font-size: var(--type-caption); line-height: 1.5; }
.bike-fitment-card form { display: grid; gap: 7px; }
.bike-fitment-card label { color: #d9dcde; font-size: var(--type-label); font-weight: 700; }
.bike-fitment-card select { width: 100%; min-height: 42px; padding: 0 30px 0 10px; border: 1px solid #4a4f53; border-radius: 7px; color: white; background: #262a2e; font-size: var(--type-ui); }
.bike-fitment-card select:disabled { color: #8e9499; }
.bike-fitment-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bike-fitment-card__row > div { min-width: 0; }
.bike-fitment-card__row label { display: block; min-height: 36px; line-height: 18px; }
.bike-fitment-card .btn { width: 100%; min-height: 44px; margin-top: 5px; font-size: var(--type-ui); }
.bike-fitment-card__result { margin: 2px 0 0; color: #aee6d0; font-size: var(--type-caption); line-height: 1.4; }
body[data-page="shop"] .filter-group { padding: 17px 0; }
.filter-group legend { margin-bottom: 10px; font-size: 14px; }
.filter-group > label:not(.sr-only) { min-height: 36px; font-size: 14px; }
.filter-group > label small { font-size: 12px; }
.filter-group input[type="checkbox"] { width: 17px; height: 17px; }
.price-readout { font-size: 12px; }
.filter-size-grid > label:not(.sr-only) { min-height: 40px; font-size: 13px; }
.filter-actions .btn { min-height: 44px; font-size: 14px; font-weight: 600; }

.catalog-toolbar { min-height: 72px; margin-bottom: 16px; padding: 12px 14px 12px 18px; background: white; }
.catalog-toolbar .eyebrow { font-size: var(--type-caption); }
.catalog-toolbar h2 { font-size: 25px; }
.sort-control { font-size: 12px; }
.sort-control select { min-height: 44px; padding-inline: 12px 36px; font-size: 14px; }
.view-toggle { height: 44px; }
.view-toggle button { width: 36px; }
.filter-chips { gap: 8px; }
.filter-chips:not(:empty) { margin-bottom: 16px; }
.filter-chips button { min-height: 36px; padding-inline: 12px; font-size: 13px; }

body[data-page="shop"] .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body[data-page="shop"] .product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7e8ea;
  border-radius: 10px;
  background: white;
  box-shadow: none;
}
body[data-page="shop"] .product-card:hover { border-color: #d3d5d7; box-shadow: 0 10px 28px rgba(21,23,25,.08); }
.product-card__media,
body[data-page="shop"] .product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
body[data-page="shop"] .product-media > a { width: 100%; height: 100%; display: block; }
.product-card__media img,
body[data-page="shop"] .product-media img { width: 100%; height: 100%; padding: 12px; object-fit: contain; mix-blend-mode: normal; }
.badge,
body[data-page="shop"] .product-badge { top: 11px; left: 11px; min-height: 25px; padding: 5px 8px; font-size: var(--type-caption); }
.wishlist-btn,
body[data-page="shop"] .wish-btn { top: 10px; right: 10px; width: 38px; height: 38px; }
.product-card__body,
body[data-page="shop"] .product-body { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.product-card__body .product-brand,
body[data-page="shop"] .product-body .product-brand { margin: 0 0 6px; font-size: var(--type-caption); }
.product-card__body h3,
body[data-page="shop"] .product-title { min-height: 41px; height: auto; margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.product-card__body .rating,
body[data-page="shop"] .product-body .rating { min-height: 20px; font-size: 12px; letter-spacing: 0; }
.product-card__body .rating span,
body[data-page="shop"] .product-body .rating small { color: var(--muted); font-size: 12px; }
body[data-page="shop"] .product-body .rating span { color: var(--amber); font-size: 12px; }
.product-card__body .price,
body[data-page="shop"] .price-row { margin-top: 7px; gap: 8px; }
.product-card__body .price strong,
body[data-page="shop"] .price-row .price { color: var(--orange-dark); font-size: 16px; font-weight: 700; }
.product-card__body .price del,
body[data-page="shop"] .price-row .mrp { color: #90969b; font-size: 12px; }
.stock,
body[data-page="shop"] .stock-line { margin-top: 8px; font-size: 12px; }
.product-card__actions { padding-top: 14px; gap: 8px; opacity: 1; transform: none; }
.product-card__actions .btn { min-height: 44px; padding-inline: 10px; border-radius: 8px; font-size: 14px; font-weight: 600; }
body[data-page="shop"] .quick-actions { display: none; left: 12px; right: 12px; bottom: 12px; grid-template-columns: .8fr 1.2fr; gap: 8px; }
body[data-page="shop"] .product-card:hover .quick-actions { bottom: 12px; }
body[data-page="shop"] .quick-actions button { min-height: 44px; border-radius: 8px; font-size: var(--type-ui); }
body[data-page="shop"] .quick-actions button:last-child { width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
body[data-page="shop"] .product-body .color-dots { margin-top: 6px; }
body[data-page="shop"] .product-card__meta-row {
  min-height: 18px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body[data-page="shop"] .product-card__meta-row .product-brand { min-width: 0; margin: 0; }
body[data-page="shop"] .product-card__meta-row .color-dots { flex: 0 0 auto; margin: 0; }
body[data-page="shop"] .product-card__meta-row .color-dot,
body[data-page="shop"] .product-card__meta-row .color-dots i { width: 15px; height: 15px; }
body[data-page="shop"] .product-card__chips {
  min-height: 24px;
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
body[data-page="shop"] .product-card__chip {
  min-height: 22px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  color: #687078;
  background: #f1f2f3;
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
body[data-page="shop"] .product-card__chip--cert { color: #0f7b59; background: #e7f6f0; }
body[data-page="shop"] .save-copy { color: var(--sale); font-size: 12px; font-weight: 600; text-decoration: none; }
body[data-page="shop"] .product-card__sizes {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
body[data-page="shop"] .product-card__sizes[hidden] { display: none; }
body[data-page="shop"] .product-card__sizes button {
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--carbon);
  background: white;
  font-size: 12px;
  font-weight: 600;
}
body[data-page="shop"] .product-card__sizes button:hover,
body[data-page="shop"] .product-card__sizes button.is-selected { color: white; border-color: var(--orange); background: var(--orange); }
body[data-page="shop"] .product-card-action { margin: auto 0 0; padding-top: 14px; border-top: 0; }
body[data-page="shop"] .product-card-action a,
body[data-page="shop"] .product-card-action button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; color: var(--carbon); background: white; font-size: 14px; font-weight: 600; }
body[data-page="shop"] .product-card-action a:hover,
body[data-page="shop"] .product-card-action button:hover { color: white; background: var(--orange); }
.product-grid--list .product-card { min-height: 230px; grid-template-columns: 280px 1fr; }
.product-grid--list .product-card__media,
.product-grid--list .product-media { min-height: 230px; aspect-ratio: auto; }
.product-grid--list .product-card__body h3,
.product-grid--list .product-title { min-height: 0; font-size: 18px; }

.no-results { padding-block: 72px; border-radius: 10px; }
.no-results h3 { font-size: 29px; }
.no-results .btn { min-height: 44px; }
body[data-page="shop"] .pagination { margin: 16px 0 48px; align-items: center; flex-wrap: wrap; }
body[data-page="shop"] .pagination[hidden],
body[data-page="shop"] .catalog-showing[hidden] { display: none !important; }
body[data-page="shop"] .filter-group[hidden],
body[data-page="shop"] .filter-group label[hidden] { display: none !important; }
body[data-page="shop"] .bike-fitment-card input { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 400 14px/1.4 var(--body); color: var(--carbon); background: #fff; }
body[data-page="shop"] [data-fitment-clear][hidden] { display: none !important; }
body[data-page="shop"] .bike-fitment-card [data-fitment-clear] { margin-top: 8px; color: #fff; border-color: #a3a8ac; background: transparent; }
body[data-page="shop"] .bike-fitment-card [data-fitment-clear]:hover { border-color: #fff; background: #292d30; }
.bike-accessory-browser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); align-items: center; gap: 10px 24px; margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.bike-accessory-browser__head { grid-row: span 2; }
.bike-accessory-browser h2 { margin: 0 0 6px; font: 700 26px/1.15 var(--display); text-transform: uppercase; }
.bike-accessory-browser p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.bike-accessory-browser > label { color: var(--carbon); font-size: 13px; font-weight: 500; }
.bike-accessory-browser > select { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 400 14px/1.4 var(--body); }
.bike-accessory-browser > .select2-container { min-width: 0; width: 100% !important; }
#bikeAccessoryCategoryLinks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
#bikeAccessoryCategoryLinks a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--carbon); font: 500 13px/1.4 var(--body); }
#bikeAccessoryCategoryLinks a:hover, #bikeAccessoryCategoryLinks a[aria-current="page"] { color: var(--orange-dark); border-color: #eac6ae; background: #fff8f2; }
@media (max-width: 767px) {
  .bike-accessory-browser { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .bike-accessory-browser__head { grid-row: auto; margin-bottom: 6px; }
}
body[data-page="shop"] .pagination :is(button, a) {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  gap: 7px;
  border-radius: 8px;
  color: #34393d;
  font-size: 12px;
}
body[data-page="shop"] .pagination .pagination__step {
  width: auto;
  min-width: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
body[data-page="shop"] .pagination .pagination__step > span { display: inline-block; line-height: 1; }
body[data-page="shop"] .pagination :is(button:disabled, a[aria-disabled="true"]) { color: #a4a9ac; border-color: #e3e4e4; background: #f7f7f6; cursor: not-allowed; opacity: 1; }
body[data-page="shop"] .pagination :is(button:not(:disabled), a:not([aria-disabled="true"])):hover { border-color: var(--orange); color: var(--orange-dark); }
body[data-page="shop"] .pagination :is(button, a).is-active { color: white; border-color: var(--orange); background: var(--orange); }
.catalog-showing { display: block; margin: 24px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.catalog-help { border-radius: 10px; background: #fff7ef; }
.catalog-help h2 { font-size: 30px; }
.catalog-help p { font-size: 12px; }
.catalog-help .btn { min-height: 44px; }

/* Leaf category/search routes mirror Lovable's tighter category listing. */
body[data-page="shop"].is-catalog-leaf .catalog-intro { display: none; }
body[data-page="shop"].is-catalog-leaf .subcategory-explorer { display: block; }
body[data-page="shop"].is-catalog-leaf .catalog-hero { min-height: 210px; margin-bottom: 24px; }
body[data-page="shop"].is-catalog-leaf .catalog-hero__content {
  max-width: 720px;
  padding: 28px 40px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
body[data-page="shop"].is-catalog-leaf .catalog-hero__content h1 { order: 1; margin: 0 0 8px; font-size: 48px; }
body[data-page="shop"].is-catalog-leaf .catalog-hero__content > p { order: 2; margin: 0 0 12px; }
body[data-page="shop"].is-catalog-leaf .catalog-offer {
  order: 3;
  min-height: 26px;
  padding: 4px 9px;
  border: 0;
  border-radius: 4px;
  color: white;
  background: var(--orange);
  font-size: var(--type-caption);
}
body[data-page="shop"].is-catalog-leaf .catalog-hero__actions { display: none; }
body[data-page="shop"].is-catalog-leaf .shop-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
/* Leaf listings inherit the same bounded, scrollable sidebar as the catalogue. */
body[data-page="shop"].is-catalog-leaf .catalog-fit-card,
body[data-page="shop"].is-catalog-leaf .filter-sidebar__head .eyebrow { display: none; }
body[data-page="shop"].is-catalog-leaf.has-helmet-fit .catalog-fit-card { display: block; }
body[data-page="shop"].is-catalog-leaf .filter-sidebar__head { min-height: 54px; }
body[data-page="shop"].is-catalog-leaf .filter-sidebar__head h2 { margin: 0; font: 800 19px/1 var(--display); }
body[data-page="shop"].is-catalog-leaf .catalog-toolbar { min-height: 60px; margin-bottom: 12px; padding: 8px 10px 8px 14px; }
body[data-page="shop"].is-catalog-leaf .catalog-toolbar .eyebrow { display: none; }
body[data-page="shop"].is-catalog-leaf .catalog-toolbar h2 { margin: 0; font: 600 14px/1.4 var(--body); text-transform: none; }
body[data-page="shop"].is-catalog-leaf .catalog-showing { display: block; }
body[data-page="shop"].is-catalog-leaf .catalog-help { display: none; }
body[data-page="shop"].is-catalog-leaf .product-grid { gap: 12px; }
body[data-page="shop"].is-catalog-leaf .product-card__media,
body[data-page="shop"].is-catalog-leaf .product-media { aspect-ratio: 1 / 1; }
body[data-page="shop"].is-catalog-leaf .product-card__actions { grid-template-columns: 1fr; }
body[data-page="shop"].is-catalog-leaf .product-card__actions [data-add-cart][hidden] { display: none; }
body[data-page="shop"].is-catalog-leaf .product-card__actions .btn-outline { width: 100%; display: inline-flex; }
body[data-page="shop"].is-catalog-leaf .product-card-action a,
body[data-page="shop"].is-catalog-leaf .product-card-action button { color: var(--carbon); background: white; }
body[data-page="shop"].is-catalog-leaf .product-card-action a:hover,
body[data-page="shop"].is-catalog-leaf .product-card-action button:hover { color: white; background: var(--orange); }

@media (max-width: 1080px) and (min-width: 961px) {
  body[data-page="shop"] .shop-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .catalog-intro { grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); }
}

@media (max-width: 960px) {
  body[data-page="shop"] .shop-layout { grid-template-columns: 1fr; }
  body[data-page="shop"] .filter-sidebar { top: 0; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; padding: 0 16px 16px; }
  .filter-sidebar__head { margin-inline: -16px; padding-inline: 16px; }
  .filter-actions { bottom: -16px; margin: 0 -16px -16px; padding-inline: 16px; }
  .catalog-intro { grid-template-columns: 1fr; gap: 10px; }
  .catalog-toolbar { background: rgba(255,255,255,.96); }
  body[data-page="shop"].is-catalog-leaf .shop-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body[data-page="shop"] main { padding-bottom: 56px; }
  body[data-page="shop"] main .container { width: calc(100% - 24px); }
  body[data-page="shop"] .breadcrumbs { margin-top: 12px; margin-bottom: 10px; }
  .catalog-hero { min-height: 286px; margin-bottom: 40px; }
  .catalog-hero::after { background: linear-gradient(0deg, rgba(8,10,11,.98) 0%, rgba(8,10,11,.86) 55%, rgba(8,10,11,.34) 100%); }
  .catalog-hero > img { object-position: 68% 38%; }
  .catalog-hero__content { padding: 24px; }
  .catalog-offer { font-size: var(--type-caption); }
  .catalog-hero__content h1 { font-size: clamp(37px, 10.8vw, 44px); }
  .catalog-hero__content p { margin-bottom: 18px; font-size: 12px; line-height: 1.55; }
  .catalog-hero__actions { gap: 14px; }
  .catalog-hero__link { font-size: var(--type-caption); }
  .catalog-intro { margin-bottom: 20px; }
  .catalog-intro h2 { font-size: 31px; }
  .catalog-intro > p { font-size: 12px; }
  .subcategory-explorer { margin-bottom: 40px; }
  .subcategory-explorer__head h2 { font-size: 28px; }
  .subcategory-rail { grid-auto-columns: 138px; gap: 10px; padding-right: 16px; scroll-padding-inline: 0 16px; }
  .subcategory-tile { min-width: 138px; padding: 7px 7px 12px; }
  .subcategory-tile strong { font-size: 12px; }
  .subcategory-tile small { font-size: var(--type-caption); }
  .catalog-toolbar { padding: 13px; }
  .catalog-toolbar h2 { font-size: 23px; }
  .mobile-filter-btn { min-height: 44px; }
  body[data-page="shop"] .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card__media,
  body[data-page="shop"] .product-media { aspect-ratio: 1 / 1; }
  .product-card__media img,
  body[data-page="shop"] .product-media img { padding: 10px; }
  .product-card__body,
  body[data-page="shop"] .product-body { padding: 11px; }
  body[data-page="shop"] .product-card-action { margin: auto 0 0; padding-top: 11px; }
  body[data-page="shop"] .product-card__sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-card__body h3,
  body[data-page="shop"] .product-title { min-height: 40px; margin-bottom: 7px; font-size: 14px; line-height: 1.4; }
  .product-card__body .price,
  body[data-page="shop"] .price-row { display: flex; flex-wrap: wrap; gap: 5px; }
  .product-card__body .price strong,
  body[data-page="shop"] .price-row .price { font-size: 16px; }
  .product-card__actions { display: grid; grid-template-columns: 1fr; padding-top: 11px; }
  .product-card__actions .btn-outline { display: none; }
  body[data-page="shop"] .quick-actions { left: 7px; right: 7px; bottom: 7px; grid-template-columns: 1fr; }
  body[data-page="shop"] .product-card:hover .quick-actions { bottom: 7px; }
  body[data-page="shop"] .quick-actions button:first-child { display: none; }
  .badge,
  body[data-page="shop"] .product-badge { top: 7px; left: 7px; min-height: 22px; padding: 4px 6px; font-size: var(--type-caption); }
  .wishlist-btn,
  body[data-page="shop"] .wish-btn { top: 6px; right: 6px; width: 34px; height: 34px; }
  .product-grid--list .product-card { min-height: 190px; grid-template-columns: 42% 1fr; }
  .product-grid--list .product-card__media,
  .product-grid--list .product-media { min-height: 190px; }
  .catalog-help { padding: 20px; }
  body[data-page="shop"].is-catalog-leaf .catalog-hero { min-height: 230px; margin-bottom: 22px; }
  body[data-page="shop"].is-catalog-leaf .catalog-hero__content { padding: 24px; }
  body[data-page="shop"].is-catalog-leaf .catalog-hero__content h1 { font-size: 40px; }
  body[data-page="shop"].is-catalog-leaf .catalog-toolbar { margin-bottom: 10px; }
  body[data-page="shop"].is-catalog-leaf .product-grid { gap: 10px; }
  body[data-page="shop"].is-catalog-leaf .product-card__media,
  body[data-page="shop"].is-catalog-leaf .product-media { aspect-ratio: 1 / 1; }
}

@media (max-width: 340px) {
  .catalog-hero__actions { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .toolbar-actions { display: grid; grid-template-columns: .9fr 1.4fr; }
  .sort-control { min-width: 0; gap: 5px; }
  body[data-page="shop"] .stock-line { align-items: flex-start; flex-direction: column; }
  body[data-page="shop"] .stock-line .cert { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .subcategory-rail { scroll-behavior: auto; }
  .subcategory-tile,
  .subcategory-tile__media img { transition: none; }
}

/* Final catalogue toolbar and view-mode polish. These deliberately sit last so
   leaf-category aspect-ratio rules cannot turn list cards into full-width art. */
body[data-page="shop"] .catalog-toolbar {
  border-color: #e2e4e6;
  box-shadow: 0 1px 2px rgba(19, 22, 24, .025);
}
body[data-page="shop"] .toolbar-actions { gap: 8px; }
body[data-page="shop"] .sort-control {
  position: relative;
  min-width: 188px;
  display: block;
}
body[data-page="shop"] .sort-control__label,
body[data-page="shop"] .sort-control__native {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body[data-page="shop"] .sort-control__native { pointer-events: none; }
body[data-page="shop"] .sort-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
}
body[data-page="shop"] .sort-dropdown.is-open { z-index: 80; }
body[data-page="shop"] .sort-dropdown__trigger {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #222629;
  border: 1px solid #dde1e4;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(19, 22, 24, .055);
  font: 500 14px/1.2 var(--body);
  text-align: left;
  cursor: pointer;
}
body[data-page="shop"] .sort-dropdown__trigger:hover { border-color: #c9ced1; }
body[data-page="shop"] .sort-dropdown__trigger > i {
  color: #7a8187;
  font-size: 11px;
  transition: transform .16s ease;
}
body[data-page="shop"] .sort-dropdown.is-open .sort-dropdown__trigger > i { transform: rotate(180deg); }
body[data-page="shop"] .sort-dropdown__menu {
  position: absolute;
  inset: calc(100% + 6px) 0 auto 0;
  width: max(100%, 188px);
  max-width: min(240px, calc(100vw - 24px));
  padding: 6px;
  overflow: hidden;
  color: #24282b;
  border: 1px solid #e4e6e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 20, 22, .17), 0 3px 8px rgba(17, 20, 22, .08);
}
body[data-page="shop"] .sort-dropdown__menu[hidden] { display: none !important; }
body[data-page="shop"] .sort-dropdown__option {
  width: 100%;
  min-height: 37px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #24282b;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: 500 14px/1.25 var(--body);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
body[data-page="shop"] .sort-dropdown__option:hover,
body[data-page="shop"] .sort-dropdown__option:focus-visible { color: #1e2225; background: #f5f6f6; }
body[data-page="shop"] .sort-dropdown__option > i {
  color: var(--orange);
  font-size: 12px;
  opacity: 0;
}
body[data-page="shop"] .sort-dropdown__option.is-selected,
body[data-page="shop"] .sort-dropdown__option[aria-selected="true"] {
  color: #bc4e0b;
  background: #fff4eb;
}
body[data-page="shop"] .sort-dropdown__option[aria-selected="true"] > i { opacity: 1; }
body[data-page="shop"] .sort-dropdown__trigger:focus-visible,
body[data-page="shop"] .sort-dropdown__option:focus-visible,
body[data-page="shop"] .view-toggle button:focus-visible {
  outline: 3px solid rgba(210, 83, 11, .2);
  outline-offset: 2px;
  border-color: var(--orange);
}
body[data-page="shop"] .view-toggle {
  height: 44px;
  padding: 0;
  display: flex;
  overflow: hidden;
  border-color: #dfe2e4;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(19, 22, 24, .03);
}
body[data-page="shop"] .view-toggle button {
  width: 44px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  color: #5d646a;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
body[data-page="shop"] .view-toggle button + button { border-left: 1px solid #e3e5e6; }
body[data-page="shop"] .view-toggle button:hover { color: var(--orange-dark); background: #fff7f1; }
body[data-page="shop"] .view-toggle button.is-active {
  color: #fff;
  background: var(--carbon);
}
body[data-page="shop"] .product-card__list-description { display: none; }

body[data-page="shop"] #catalogGrid.product-grid--list {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px;
}
body[data-page="shop"] #catalogGrid.product-grid--list .product-card {
  min-width: 0;
  min-height: 258px;
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  align-items: stretch;
  flex-direction: initial;
}
body[data-page="shop"] #catalogGrid.product-grid--list .product-card__media,
body[data-page="shop"] #catalogGrid.product-grid--list .product-media,
body[data-page="shop"].is-catalog-leaf #catalogGrid.product-grid--list .product-card__media,
body[data-page="shop"].is-catalog-leaf #catalogGrid.product-grid--list .product-media {
  width: 240px;
  height: 100%;
  min-height: 258px;
  max-height: 296px;
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: auto !important;
  border-right: 1px solid #e8e9ea;
}
body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__media, .product-media) img {
  padding: 18px;
  object-fit: contain;
}
body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__body, .product-body) {
  min-width: 0;
  padding: 14px 18px;
  grid-column: 2;
  grid-row: 1;
}
body[data-page="shop"] #catalogGrid.product-grid--list .product-card__meta-row { min-height: 16px; margin-bottom: 4px; }
body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__body h3, .product-title) {
  min-height: 0;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.3;
}
body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__body .rating, .product-body .rating) { min-height: 17px; }
body[data-page="shop"] #catalogGrid.product-grid--list .product-card__chips,
body[data-page="shop"] #catalogGrid.product-grid--list .product-card-tags {
  min-height: 20px;
  margin-top: 5px;
  gap: 5px;
}
body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__chip, .status-pill) {
  min-height: 19px;
  padding: 2px 6px;
  font-size: var(--type-caption);
}
body[data-page="shop"] #catalogGrid.product-grid--list .product-card__list-description {
  margin: 5px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #687078;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__body .price, .price-row) {
  margin-top: 6px;
}
body[data-page="shop"] #catalogGrid.product-grid--list :is(.stock, .stock-line) { margin-top: 5px; }
body[data-page="shop"] #catalogGrid.product-grid--list .product-card__sizes {
  max-width: 440px;
  margin-top: 7px;
  grid-template-columns: repeat(6, minmax(36px, 1fr));
  gap: 5px;
}
body[data-page="shop"] #catalogGrid.product-grid--list .product-card__sizes button { height: 34px; }
body[data-page="shop"] #catalogGrid.product-grid--list .product-card-action {
  width: 100%;
  margin-top: auto;
  padding-top: 7px;
}
body[data-page="shop"] #catalogGrid.product-grid--list .product-card-action button {
  width: 100%;
  min-height: 40px;
}

@media (max-width: 700px) {
  body[data-page="shop"] .pagination { margin: 14px 0 34px; gap: 5px; }
  body[data-page="shop"] .pagination :is(button, a) { width: 38px; min-width: 38px; height: 38px; padding: 0 8px; }
  body[data-page="shop"] .pagination .pagination__step { min-width: 38px; }
  body[data-page="shop"] .pagination__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body[data-page="shop"] .catalog-toolbar { align-items: stretch; }
  body[data-page="shop"] .toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(92px, .8fr) minmax(128px, 1.3fr) auto;
    align-items: center;
    gap: 7px;
  }
  body[data-page="shop"] .mobile-filter-btn { width: 100%; min-width: 0; }
  body[data-page="shop"] .sort-control { min-width: 0; }
  body[data-page="shop"] .sort-dropdown__trigger { padding-inline: 10px; font-size: 13px; }
  body[data-page="shop"] .sort-dropdown__menu { width: max(100%, 188px); }
  body[data-page="shop"] .view-toggle { display: flex; }
  body[data-page="shop"] .view-toggle button { width: 40px; }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card {
    min-height: 242px;
    grid-template-columns: 128px minmax(0, 1fr) !important;
  }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card__media,
  body[data-page="shop"] #catalogGrid.product-grid--list .product-media,
  body[data-page="shop"].is-catalog-leaf #catalogGrid.product-grid--list .product-card__media,
  body[data-page="shop"].is-catalog-leaf #catalogGrid.product-grid--list .product-media {
    width: 128px;
    min-height: 242px;
    max-height: none;
  }
  body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__media, .product-media) img { padding: 10px; }
  body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__body, .product-body) { padding: 11px 10px; }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card__meta-row { margin-bottom: 3px; }
  body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__body h3, .product-title) {
    min-height: 0;
    margin-bottom: 3px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card__list-description { display: none; }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card__chips,
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card-tags {
    flex-wrap: nowrap;
    overflow: hidden;
  }
  body[data-page="shop"] #catalogGrid.product-grid--list :is(.product-card__chip, .status-pill) { flex: 0 0 auto; font-size: var(--type-caption); }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card__sizes {
    max-width: none;
    margin-top: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card__sizes button { height: 31px; font-size: var(--type-caption); }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card-action { padding-top: 6px; }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card-action button { min-height: 38px; font-size: 12px; }
}

@media (max-width: 360px) {
  body[data-page="shop"] .toolbar-actions { grid-template-columns: minmax(80px, .7fr) minmax(112px, 1.2fr) auto; gap: 5px; }
  body[data-page="shop"] .mobile-filter-btn { padding-inline: 7px; font-size: var(--type-ui); }
  body[data-page="shop"] .view-toggle button { width: 36px; }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card { grid-template-columns: 112px minmax(0, 1fr) !important; }
  body[data-page="shop"] #catalogGrid.product-grid--list .product-card__media,
  body[data-page="shop"] #catalogGrid.product-grid--list .product-media,
  body[data-page="shop"].is-catalog-leaf #catalogGrid.product-grid--list .product-card__media,
  body[data-page="shop"].is-catalog-leaf #catalogGrid.product-grid--list .product-media { width: 112px; }
}

/* Contextual category rail: real catalogue cutouts on one quiet white surface. */
.subcategory-rail--product-art {
  align-items: start;
  gap: 18px;
}

.subcategory-rail--product-art .subcategory-tile {
  flex: 0 0 150px;
  min-height: 188px;
  height: 188px;
  padding: 0 1px 8px;
  display: grid;
  grid-template-rows: 132px auto;
  align-content: start;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transform: none;
}

.subcategory-rail--product-art .subcategory-tile:hover,
.subcategory-rail--product-art .subcategory-tile.is-active {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.subcategory-rail--product-art .subcategory-tile__media--product-art,
.subcategory-rail--product-art .subcategory-tile__media,
.subcategory-rail--product-art .subcategory-tile.is-active .subcategory-tile__media--product-art {
  width: 100%;
  height: 132px;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3e5e6;
  border-radius: 18px;
  color: #17191b;
  background: #fff;
  box-shadow: none;
}

.subcategory-rail--product-art .subcategory-tile__media img {
  width: 100%;
  height: 100%;
  padding: 9px;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
  mix-blend-mode: normal;
}

.subcategory-rail--product-art .subcategory-tile:hover .subcategory-tile__media--product-art {
  border-color: #c9ccce;
  background: #fff;
}

.subcategory-rail--product-art .subcategory-tile.is-active .subcategory-tile__media--product-art {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-soft);
}

.subcategory-rail--product-art .subcategory-tile strong {
  max-width: 146px;
  margin: 0 auto;
  color: #292d30;
  font: 500 15px/1.25 var(--body);
  text-align: center;
  text-wrap: balance;
}

.subcategory-rail--product-art .subcategory-tile small { display: none; }

@media (max-width: 700px) {
  .subcategory-rail--product-art { gap: 14px; }
  .subcategory-rail--product-art .subcategory-tile {
    flex-basis: 132px;
    min-height: 168px;
    height: 168px;
    grid-template-rows: 118px auto;
    gap: 8px;
  }
  .subcategory-rail--product-art .subcategory-tile__media--product-art,
  .subcategory-rail--product-art .subcategory-tile__media,
  .subcategory-rail--product-art .subcategory-tile.is-active .subcategory-tile__media--product-art {
    height: 118px;
    border-radius: 16px;
  }
  .subcategory-rail--product-art .subcategory-tile__media img { padding: 8px; }
  .subcategory-rail--product-art .subcategory-tile strong { max-width: 128px; font-size: 13px; }
}

/* Four equal catalogue cards on desktop; the explicit list layout remains one column. */
@media (min-width: 1200px) {
  body[data-page="shop"] #catalogGrid.product-grid:not(.product-grid--list) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Inline size choices wrap naturally, with no reserved empty grid columns. */
body[data-page="shop"] #catalogGrid .product-card :is(.product-card-sizes, .product-card__sizes) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-page="shop"] #catalogGrid .product-card :is(.product-card-sizes, .product-card__sizes)[hidden] { display: none !important; }
body[data-page="shop"] #catalogGrid .product-card :is(.product-card-sizes, .product-card__sizes) button[data-card-size] {
  flex: 0 0 auto;
  width: auto;
  min-width: 34px;
  height: 38px;
  min-height: 38px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--carbon);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
body[data-page="shop"] #catalogGrid .product-card :is(.product-card-sizes, .product-card__sizes) button[data-card-size]:is(.is-active, .is-selected, [aria-pressed="true"]) {
  color: white;
  border-color: var(--orange);
  background: var(--orange);
}
body[data-page="shop"] #catalogGrid .product-card :is(.product-card-sizes, .product-card__sizes) button[data-card-size]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
body[data-page="shop"] #catalogGrid .product-card :is(.product-card-sizes, .product-card__sizes) button[data-card-size]:disabled { opacity: .45; cursor: not-allowed; }
body[data-page="shop"] #catalogGrid .product-card.is-picking-size .product-card-action { padding-top: 8px; }
@media (pointer: coarse) {
  body[data-page="shop"] #catalogGrid .product-card :is(.product-card-sizes, .product-card__sizes) button[data-card-size] { min-width: 38px; height: 44px; min-height: 44px; }
}

/* Keep filter scrolling available while hiding browser scrollbar tracks. */
body[data-page="shop"] .filter-sidebar,
body[data-page="shop"] .filter-sidebar .catalog-facet__options { scrollbar-width: none; -ms-overflow-style: none; }
body[data-page="shop"] .filter-sidebar::-webkit-scrollbar,
body[data-page="shop"] .filter-sidebar .catalog-facet__options::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Unverified specialist categories retain their link without a misleading product. */
.subcategory-tile__pending { display: grid; place-items: center; height: 100%; padding: 16px; color: #7a8187; font: 400 12px/1.4 var(--body); text-align: center; }

/* Catalogue cards use only the space needed by their product information. */
body[data-page="shop"] #catalogGrid:not(.product-grid--list) .product-card-meta .product-brand { margin: 0; }
body[data-page="shop"] #catalogGrid:not(.product-grid--list) .product-title {
  min-height: 0;
  height: auto;
  margin: 4px 0 6px;
}
body[data-page="shop"] #catalogGrid:not(.product-grid--list) .product-body > .color-dots { gap: 4px; margin: 2px 0 0; }
body[data-page="shop"] #catalogGrid:not(.product-grid--list) :is(.product-card-tags, .product-card__chips) { min-height: 0; margin-top: 8px; }
body[data-page="shop"] #catalogGrid:not(.product-grid--list) :is(.product-card-tags, .product-card__chips):empty { display: none; }
body[data-page="shop"] #catalogGrid:not(.product-grid--list) .price-row { margin-top: 10px; }
body[data-page="shop"] #catalogGrid:not(.product-grid--list) .stock-line { margin: 6px 0 0; }
body[data-page="shop"] #catalogGrid:not(.product-grid--list) .product-card-action { padding-top: 10px; }
body[data-page="shop"] #catalogGrid:not(.product-grid--list) .is-picking-size .product-card-action { padding-top: 8px; }
