/* =====================================================================
   SHOP PAGE (v2 redesign). Shared styles: css/site.css
   Previous (in-progress) version preserved as css/shop-classic.css
   (classic/shop.html).
   ===================================================================== */

body[data-page="shop"] { background: var(--h-paper); }

/* ---------- Header + search ---------- */
.sh-hero { min-height: clamp(520px, 72vh, 700px); }
.sh-hero .p-title { max-width: 12ch; }
.sh-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 0 2rem;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 3.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.sh-search-icon { position: absolute; left: 1.25rem; color: #555; pointer-events: none; }
.sh-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.02rem;
  color: var(--h-text);
  padding: 0.8rem 0.5rem 0.8rem 0;
  outline: none;
}
.sh-search input::-webkit-search-cancel-button { cursor: pointer; }
.sh-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.6), 0 20px 50px rgba(0, 0, 0, 0.35); }
.sh-search .h-btn { min-height: 48px; padding: 0 1.5rem; border: 0; cursor: pointer; }
/* ---------- Shop by vehicle (hero) ---------- */
.sh-vehicle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 680px;
  margin: -0.75rem 0 2rem;
  padding: 0.6rem;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sh-vehicle[hidden] { display: none; }
.sh-vehicle.is-active { border-color: var(--h-accent); box-shadow: inset 0 0 0 1px rgba(255, 230, 0, 0.35); }
.sh-vehicle-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.4rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--h-accent);
  white-space: nowrap;
}
.sh-vehicle-field { flex: 1 1 150px; min-width: 0; }
.sh-vehicle-field select {
  width: 100%;
  height: 46px;
  padding: 0 2.3rem 0 1rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 14px;
  -webkit-appearance: none;
  appearance: none;
  color: var(--h-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  cursor: pointer;
}
.sh-vehicle-field select:focus-visible { outline: none; border-color: var(--h-accent); box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.5); }
.sh-vehicle-field select:disabled { background-color: rgba(255, 255, 255, 0.55); color: #555; cursor: not-allowed; }
.sh-vehicle-go { min-height: 46px; padding: 0 1.3rem; border: 0; cursor: pointer; white-space: nowrap; }
.sh-vehicle-go:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.sh-vehicle-clear {
  flex-basis: 100%;
  margin: -0.1rem 0 0.1rem 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sh-vehicle-clear:hover { color: #fff; }
.sh-vehicle-clear[hidden] { display: none; }

/* "fits your car" line on cards */
.sh-card-fit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.1rem 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0a6b2e;
}
.sh-card-fit--universal { color: var(--h-text-muted); }

/* vehicle chip + universal toggle in the results head */
.sh-chip--vehicle { background: var(--h-accent); color: #000; padding-left: 0.7rem; }
.sh-chip--vehicle svg { margin-right: 0.1rem; }
.sh-chip--vehicle span[aria-hidden] { background: rgba(0, 0, 0, 0.12); }
.sh-chip--vehicle:hover span[aria-hidden] { background: #000; color: var(--h-accent); }
.sh-universal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--h-text);
  cursor: pointer;
}
.sh-universal[hidden] { display: none; }
.sh-universal-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sh-universal[aria-pressed="true"] .sh-universal-box {
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe600' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: #000;
}
.sh-universal:focus-visible { outline: 2px solid #000; outline-offset: 3px; border-radius: 4px; }

.sh-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.sh-stat-num { display: block; font-family: var(--h-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--h-accent); }
.sh-stat-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

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

/* ---------- Shop by brand ---------- */
.sh-brands { background: var(--h-ink); color: #fff; padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--h-line-dark); }
.sh-brands-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.sh-brands-title { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--h-on-dark-muted); }
.sh-brand-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
.sh-brand {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 120px;
  padding: 1rem;
  border-radius: 12px;
  border: 0;                       /* outline is drawn by ::after so the photo can't show through it */
  background: var(--h-ink-2) center / cover no-repeat;
  color: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);        /* keeps the rounded clip crisp while it animates */
  transition: transform 0.35s var(--h-ease);
}
.sh-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.85));
}
.sh-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--h-line-dark);
  pointer-events: none;
  transition: box-shadow 0.25s ease;
}
.sh-brand:hover { transform: translateY(-3px); }
.sh-brand:hover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.sh-brand[aria-pressed="true"]::after { box-shadow: inset 0 0 0 2px var(--h-accent); }
.sh-brand:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; }
.sh-brand-name { display: block; font-family: var(--h-display); font-weight: 700; font-size: 1.35rem; line-height: 1; text-transform: uppercase; }
.sh-brand-count { display: block; margin-top: 0.3rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.sh-brand[aria-pressed="true"] .sh-brand-count { color: var(--h-accent); }
.sh-brand-skel { min-height: 120px; border-radius: 12px; background: linear-gradient(90deg, #161616, #202020, #161616); background-size: 200% 100%; animation: shShimmer 1.4s infinite; }

/* ---------- Sticky toolbar ---------- */
.sh-toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 243, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--h-line-light);
  transition: top 0.45s var(--h-ease);
}
body:has(.h-nav.is-scrolled:not(.is-hidden)) .sh-toolbar { top: 68px; }
.sh-toolbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.sh-filters { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }

.filter-dropdown { position: relative; }
.filter-dropdown-toggle,
.sh-select select {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: var(--h-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.filter-dropdown-toggle:hover,
.sh-select select:hover { border-color: #000; }
.filter-dropdown.is-active .filter-dropdown-toggle { background: #000; color: #fff; border-color: #000; }
.filter-dropdown-caret { transition: transform 0.25s var(--h-ease); }
.filter-dropdown.is-open .filter-dropdown-caret { transform: rotate(180deg); }
.sh-select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  width: 300px;
  max-height: min(420px, 60vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  animation: shPop 0.18s var(--h-ease);
}
.filter-dropdown-menu[hidden] { display: none; }
@keyframes shPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.filter-dropdown-search { padding: 0.75rem; border-bottom: 1px solid var(--h-line-light); }
.filter-dropdown-search-input {
  width: 100%;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: var(--h-paper);
  font: inherit;
  font-size: 0.9rem;
}
.filter-dropdown-search-input:focus { outline: none; border-color: #000; }
.filter-dropdown-options { overflow-y: auto; padding: 0.4rem; overscroll-behavior: contain; }
.filter-dropdown-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--h-text);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.filter-dropdown-option:hover,
.filter-dropdown-option:focus-visible { background: var(--h-paper); }
.filter-dropdown-option::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(0, 0, 0, 0.3);
  background: #fff center / 12px no-repeat;
}
.filter-dropdown-option.is-selected::before {
  background-color: #000;
  border-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe600' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E");
}
.filter-dropdown-option.is-zero-hidden,
.filter-dropdown-option[hidden] { display: none; }
.filter-dropdown-option-thumb { width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; background: #eee center / cover no-repeat; }
.filter-dropdown-option-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-dropdown-option-count { font-size: 0.78rem; color: var(--h-text-muted); font-variant-numeric: tabular-nums; }
.filter-dropdown-empty { padding: 1rem; text-align: center; color: var(--h-text-muted); font-size: 0.9rem; }

.sh-cart-btn {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 46px;
  padding: 0 0.6rem 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.25s var(--h-ease);
}
.sh-cart-btn:hover { background: #222; transform: translateY(-1px); }
.sh-cart-count {
  min-width: 30px;
  height: 30px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--h-accent);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.sh-cart-btn.is-bump .sh-cart-count { animation: shBump 0.45s var(--h-ease); }
@keyframes shBump { 30% { transform: scale(1.35); } 100% { transform: none; } }

/* ---------- Results header + active filter chips ---------- */
.sh-results { padding: 1.75rem 0 clamp(4rem, 8vw, 6rem); }
.sh-results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1.5rem; min-height: 36px; }
.sh-results-count { margin: 0; font-weight: 700; color: var(--h-text); }
.sh-results-count span { color: var(--h-text-muted); font-weight: 400; }
.sh-active { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.5rem 0 0.85rem;
  border-radius: 999px;
  border: 0;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.sh-chip span[aria-hidden] {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}
.sh-chip:hover span[aria-hidden] { background: var(--h-accent); color: #000; }
.sh-clear {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--h-text);
  text-decoration: underline;
  text-decoration-color: var(--h-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Product grid + cards ---------- */
.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.sh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--h-radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 16px 40px -32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--h-ease), box-shadow 0.4s ease;
}
.sh-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.45); }
.sh-card--skel { min-height: 380px; background: linear-gradient(90deg, #ece9e3, #f6f4f0, #ece9e3); background-size: 200% 100%; animation: shShimmer 1.4s infinite; box-shadow: none; }
@keyframes shShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.sh-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #e9e8e5;
  cursor: pointer;
  overflow: hidden;
}
/* Shopify product shots come on their own light-grey studio background:
   let them fill the tile rather than sit as a box inside a box */
.sh-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--h-ease);
}
.sh-card:hover .sh-card-media img { transform: scale(1.05); }
.sh-card-quick {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translate(-50%, 10px);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s var(--h-ease);
  pointer-events: none;
}
.sh-card:hover .sh-card-quick,
.sh-card-media:focus-visible .sh-card-quick { opacity: 1; transform: translate(-50%, 0); }

/* designed tile for products without a photo (60% of the catalog) */
.sh-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  text-align: left;
  color: #fff;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 230, 0, 0.16), transparent 55%),
    linear-gradient(160deg, #1b1b1b, #0b0b0b);
  overflow: hidden;
}
/* Yost logo: whole and centred in the open space between the labels, not cropped behind them */
.sh-noimg::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 56%;
  max-width: 220px;
  aspect-ratio: 960 / 267;
  transform: translate(-50%, -50%);
  background: url("../media/logo/yost-white.png") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.sh-noimg > * { position: relative; z-index: 1; }
.sh-noimg-brand { font-family: var(--h-display); font-weight: 700; font-size: 1.4rem; line-height: 0.95; text-transform: uppercase; }
.sh-noimg-type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-accent); }
.sh-noimg-note { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }

.sh-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--h-accent);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sh-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.15rem; }
.sh-card-brand { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-text-muted); margin-bottom: 0.4rem; }
.sh-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sh-card-title button { all: unset; cursor: pointer; }
.sh-card-title button:hover { text-decoration: underline; text-decoration-color: var(--h-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sh-card-title button:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }
.sh-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sh-price { font-family: var(--h-display); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--h-text); font-variant-numeric: tabular-nums; }
.sh-price small { font-family: var(--h-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--h-text-muted); margin-right: 0.2rem; }
.sh-price s { font-family: var(--h-body); font-size: 0.8rem; font-weight: 400; color: var(--h-text-muted); margin-left: 0.35rem; }
/* sale + "From" prices are wider than the space next to the button: let the
   price wrap (compare-at price drops under it) instead of pushing the button out */
.sh-card-foot .sh-price { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 0.3rem; }
.sh-card-foot .sh-price small { align-self: baseline; }
.sh-card-foot .sh-add { flex-shrink: 0; white-space: nowrap; }
.sh-price--call { font-family: var(--h-body); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sh-add {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 40px;
  min-width: 40px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.sh-add:hover { background: var(--h-accent); color: #000; }
.sh-add.is-added { background: #1f9d55; color: #fff; }

/* ---------- Empty / error states ---------- */
.sh-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: #fff;
  border-radius: var(--h-radius);
}
.sh-empty h3 { font-family: var(--h-display); font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; line-height: 1; margin: 1rem 0 0.75rem; }
.sh-empty p { color: var(--h-text-muted); max-width: 52ch; margin: 0 auto 1.75rem; line-height: 1.65; }
.sh-empty-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #000; color: var(--h-accent); display: flex; align-items: center; justify-content: center; }
.sh-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.sh-empty-actions .h-btn { border: 0; cursor: pointer; }
.sh-empty-actions .h-btn--outline { border: 1.5px solid #000; }

/* ---------- Pagination ---------- */
.sh-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.sh-pagination[hidden] { display: none; }
.sh-page {
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: var(--h-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.sh-page:hover:not(:disabled) { border-color: #000; }
.sh-page[aria-current="page"] { background: #000; border-color: #000; color: var(--h-accent); cursor: default; }
.sh-page:disabled:not([aria-current]) { opacity: 0.35; cursor: default; }
.sh-page-gap { padding: 0 0.25rem; color: var(--h-text-muted); }
.sh-page-info { width: 100%; text-align: center; margin-top: 0.75rem; font-size: 0.85rem; color: var(--h-text-muted); }

/* ---------- Install band ---------- */
.sh-install { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.sh-install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.sh-install-media { border-radius: var(--h-radius); overflow: hidden; aspect-ratio: 4 / 3; }
.sh-install-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-install-copy { color: var(--h-on-dark-muted); font-size: 1.08rem; line-height: 1.7; margin: 0 0 1.5rem; }
.sh-install-list { color: rgba(255, 255, 255, 0.9); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.5rem; margin-bottom: 2rem; }
.sh-install-actions { justify-content: flex-start; }

/* ---------- Quick view ---------- */
.sh-qv {
  width: min(1040px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--h-text);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.sh-qv[open] { display: grid; animation: shQvIn 0.35s var(--h-ease); }
.sh-qv::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes shQvIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.sh-qv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-height: inherit; min-height: 0; }
.sh-qv-media { position: relative; background: #e9e8e5; display: flex; flex-direction: column; min-height: 0; }
.sh-qv-main { position: relative; flex: 1; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.sh-qv-main img { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }
.sh-qv-main .sh-noimg { position: absolute; }
.sh-qv-thumbs { display: flex; gap: 0.5rem; padding: 0 1rem 1rem; overflow-x: auto; }
.sh-qv-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
}
.sh-qv-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sh-qv-thumb[aria-current="true"] { border-color: #000; }
.sh-qv-info { padding: clamp(1.5rem, 3.5vw, 2.5rem); overflow-y: auto; display: flex; flex-direction: column; }
.sh-qv-fit { margin: 1.25rem 0 0; padding: 1rem 1.1rem; border-radius: 12px; background: var(--h-paper); }
.sh-qv-fit .sh-qv-label { margin-bottom: 0.5rem; }
.sh-qv-fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.88rem; line-height: 1.5; }
.sh-qv-fit li { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 0.75rem; }
.sh-qv-fit li strong { font-weight: 700; }
.sh-qv-fit li span { color: var(--h-text-muted); }
.sh-qv-yours { margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 700; }
.sh-qv-yours.is-yes { color: #0a6b2e; }
.sh-qv-yours.is-no { color: #a2400d; }
.sh-qv-fit + .sh-qv-desc { margin-top: 1.25rem; }
.sh-qv-brand { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--h-text-muted); }
.sh-qv-title { margin: 0 0 1rem; font-family: var(--h-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 0.98; }
.sh-qv-price { margin: 0 0 1.5rem; }
.sh-qv-price .sh-price { font-size: 2rem; }
.sh-qv-label { display: block; margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-text-muted); }
.sh-variants { border: 0; margin: 0 0 1.5rem; padding: 0; }
.sh-variant-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sh-variant input { position: absolute; opacity: 0; pointer-events: none; }
.sh-variant span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sh-variant span:hover { border-color: #000; }
.sh-variant input:checked + span { background: #000; border-color: #000; color: #fff; }
.sh-variant input:focus-visible + span { outline: 2px solid var(--h-accent); outline-offset: 2px; }
.sh-variant-select {
  width: 100%;
  height: 48px;
  padding: 0 2.5rem 0 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  font: inherit;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 16px;
}
.sh-buy { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.sh-qty { display: inline-flex; align-items: center; border: 1.5px solid rgba(0, 0, 0, 0.16); border-radius: 999px; height: 54px; }
.sh-qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; cursor: pointer; border-radius: 999px; }
.sh-qty button:hover { background: var(--h-paper); }
.sh-qty input { width: 40px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.sh-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sh-buy .h-btn { flex: 1; min-height: 54px; border: 0; cursor: pointer; }
.sh-qv-desc { color: #444; line-height: 1.75; font-size: 0.97rem; white-space: pre-line; margin: 0 0 1.5rem; }
.sh-qv-trust { list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.1rem; background: var(--h-paper); border-radius: 12px; display: grid; gap: 0.5rem; font-size: 0.88rem; }
.sh-qv-trust li { display: flex; gap: 0.6rem; align-items: center; }
.sh-qv-trust svg { flex-shrink: 0; color: #000; }
.sh-qv-help { margin-top: auto; font-size: 0.9rem; color: var(--h-text-muted); }
.sh-qv-help a { color: var(--h-text); font-weight: 700; text-decoration-color: var(--h-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sh-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  color: var(--h-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.sh-icon-btn:hover { background: var(--h-accent); }
.sh-qv-close { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3; background: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }

/* ---------- Cart drawer ---------- */
.sh-cart {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100vw);
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--h-text);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.3);
}
.sh-cart[open] { display: flex; flex-direction: column; animation: yDetailIn 0.45s var(--h-ease) both; }
.sh-cart::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sh-cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--h-line-light); }
.sh-cart-head h2 { margin: 0; font-family: var(--h-display); text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.sh-cart-body { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem; }
.sh-cart-empty { text-align: center; padding: 3rem 0.5rem; color: var(--h-text-muted); }
.sh-cart-empty svg { color: #bbb; }
.sh-cart-empty h3 { font-family: var(--h-display); text-transform: uppercase; color: var(--h-text); font-size: 1.6rem; margin: 1rem 0 0.4rem; }
.sh-cart-empty p { margin: 0 0 1.5rem; line-height: 1.6; }
.sh-cart-empty .h-btn { border: 0; cursor: pointer; }
.sh-cart-items { list-style: none; margin: 0; padding: 0; }
.sh-cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--h-line-light); }
.sh-cart-thumb { width: 76px; height: 76px; border-radius: 10px; background: #f1efea; overflow: hidden; position: relative; }
.sh-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-cart-thumb .sh-noimg { padding: 0.4rem; }
.sh-cart-thumb .sh-noimg-brand { font-size: 0.75rem; }
.sh-cart-item h3 { margin: 0 0 0.2rem; font-size: 0.92rem; line-height: 1.35; }
.sh-cart-variant { margin: 0 0 0.35rem; font-size: 0.8rem; color: var(--h-text-muted); }
.sh-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.sh-cart-row .sh-qty { height: 38px; }
.sh-cart-row .sh-qty button { width: 34px; font-size: 1.1rem; }
.sh-cart-row .sh-qty input { width: 32px; font-size: 0.9rem; }
.sh-cart-line { font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-remove { border: 0; background: none; padding: 0; font: inherit; font-size: 0.78rem; color: var(--h-text-muted); text-decoration: underline; cursor: pointer; }
.sh-remove:hover { color: #b42318; }
.sh-cart-foot { padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--h-line-light); background: var(--h-paper); }
.sh-cart-foot[hidden] { display: none; }
.sh-cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.sh-cart-total strong { font-family: var(--h-display); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.sh-cart-note { margin: 0 0 1rem; font-size: 0.8rem; color: var(--h-text-muted); }
.sh-checkout { width: 100%; min-height: 56px; border: 0; cursor: pointer; }
.sh-cart-secure { margin: 0.6rem 0 0; text-align: center; font-size: 0.75rem; color: var(--h-text-muted); }

/* ---------- Toast ---------- */
.sh-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 5000;
  transform: translate(-50%, calc(100% + 3rem));
  visibility: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--h-ease), visibility 0s linear 0.4s;
}
.sh-toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform 0.4s var(--h-ease), visibility 0s; }
.sh-toast.is-error { background: #b42318; }
.sh-toast { width: max-content; box-sizing: border-box; }
.sh-toast-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; line-height: 1.3; }
.sh-toast-msg { font-weight: 700; }
.sh-toast-detail {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sh-toast-detail:empty { display: none; }
.sh-toast button { border: 0; border-radius: 999px; padding: 0.5rem 0.9rem; background: var(--h-accent); color: #000; font: inherit; font-weight: 700; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
body.has-action-bar .sh-toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
/* phones: full-width card instead of a centred pill (a pill only gets half the
   screen next to left:50%, so long product names wrapped into a tall blob) */
@media (max-width: 700px) {
  .sh-toast {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    border-radius: 16px;
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    justify-content: space-between;
    transform: translateY(calc(100% + 3rem));
  }
  .sh-toast.is-visible { transform: none; }
  .sh-toast-detail { max-width: none; }
  .sh-toast button { flex-shrink: 0; }
  body:has(.sh-toast.is-visible) .back-to-top { opacity: 0; pointer-events: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-brand-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sh-brand-rail::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
  .sh-install-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-qv-grid { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .sh-qv-main { min-height: 260px; }
  .sh-qv-main img { max-height: 45vh; }
  .sh-qv-info { overflow: visible; }
}
@media (max-width: 768px) {
  body:has(.h-nav.is-scrolled:not(.is-hidden)) .sh-toolbar { top: 60px; }
  /* backdrop-filter would make the toolbar the containing block for the
     fixed-position bottom sheets below, so use a solid background on phones */
  .sh-toolbar { background: var(--h-paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* while a sheet is open: lift the sticky toolbar's stacking context above the
     phone Call/Book bar, and get the floating buttons out of the way */
  .sh-toolbar:has(.filter-dropdown.is-open) { z-index: 1300; }
  body:has(.filter-dropdown.is-open) .mobile-action-bar,
  body:has(.filter-dropdown.is-open) .back-to-top { visibility: hidden; }
  .filter-dropdown.is-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1299;
    background: rgba(0, 0, 0, 0.5);
  }
  .sh-hide-sm { display: none; }
  .sh-toolbar-inner { min-height: 64px; gap: 0.5rem; }
  .sh-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0.6rem 0; }
  .sh-filters::-webkit-scrollbar { display: none; }
  .sh-cart-label { display: none; }
  .sh-cart-btn { padding: 0 0.45rem 0 0.8rem; }
  /* dropdowns become bottom sheets on phones */
  .filter-dropdown-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 70vh;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: shSheet 0.3s var(--h-ease);
    z-index: 1300;
  }
  @keyframes shSheet { from { transform: translateY(100%); } to { transform: none; } }
  .sh-vehicle { margin-top: -1rem; border-radius: 18px; }
  .sh-vehicle-title { flex-basis: 100%; margin: 0.15rem 0 0 0.4rem; }
  .sh-vehicle-field { flex-basis: calc(50% - 0.3rem); }
  .sh-vehicle-go { flex-basis: 100%; }
  .sh-qv-fit li { grid-template-columns: 1fr; gap: 0.1rem; }
  .sh-search { padding-left: 2.9rem; }
  .sh-search-icon { left: 1rem; }
  .sh-search .h-btn { padding: 0 1.1rem; }
}
@media (max-width: 700px) {
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .sh-card-body { padding: 0.8rem 0.8rem 0.9rem; }
  .sh-card-title { font-size: 0.88rem; }
  .sh-price { font-size: 1.2rem; }
  .sh-card-foot { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .sh-add { width: 100%; }
  .sh-noimg { padding: 0.75rem; }
  .sh-noimg::after { top: 35%; width: 50%; }
  .sh-noimg-brand { font-size: 1.05rem; }
  .sh-install-list { grid-template-columns: 1fr; }
  .sh-qv { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .sh-qv-grid { max-height: 100dvh; }
  .sh-qv-media { min-height: auto; }
  .sh-qv-main { min-height: 0; aspect-ratio: 1 / 1; }
  .sh-qv-main img { max-height: none; }
  .sh-buy { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-card-skel, .sh-brand-skel { animation: none; }
}
