/* Storefront styles. Every color, font, radius and grid count comes from
   CSS variables emitted by /theme.css (admin → Appearance), so this file
   holds structure only. See docs/DESIGN.md. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--base-size);
  font-weight: var(--body-weight, 400);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.2; margin: 0; letter-spacing: var(--heading-tracking, -0.01em); text-transform: var(--heading-case, none); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow-page { max-width: 1040px; padding-top: 32px; padding-bottom: 64px; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  background: var(--accent); color: var(--accent-text);
  border: 1px solid var(--accent); border-radius: var(--btn-radius);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: opacity .15s, transform .05s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); opacity: 1; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .92em; }
.btn-lg { min-height: 52px; font-size: 1.05em; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: var(--radius);
  color: inherit; cursor: pointer; position: relative; text-decoration: none;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.text-link { display: inline-block; margin-top: 14px; color: var(--muted); font-size: .92em; }

/* ---------- header ---------- */
.site-header { background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--border); z-index: 20; }
.sticky-header .site-header { position: sticky; top: 0; }
.header-inner {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 44px 1fr auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: center; min-width: 0; }
.brand-logo { height: var(--logo-h-mobile); width: auto; max-width: 56vw; object-fit: contain; }
.brand-name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-wordmark { font-size: 1.4rem; letter-spacing: -0.02em; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.nav { display: none; }
.nav a { text-decoration: none; padding: 8px 2px; font-weight: 500; font-size: .95em; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a.is-current { border-bottom-color: currentColor; }
.nav a.is-highlight { color: var(--sale); }
.search-toggle { display: none; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--accent-text);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav { display: flex; gap: 26px; align-items: center; }
  .search-toggle { display: inline-flex; }
  .brand-logo { height: var(--logo-h); max-width: 340px; }
  .layout-center .header-inner { grid-template-columns: 1fr auto 1fr; min-height: 84px; }
  .layout-center .header-right { gap: 8px; }
  .layout-center .nav-right { margin-right: 10px; }
  .layout-left .header-inner { grid-template-columns: auto 1fr; min-height: 76px; }
  .layout-left .brand { justify-self: start; }
  .layout-left .header-right { gap: 8px; }
  .layout-left .nav-right { margin-right: 14px; }
}

.search-panel { border-top: 1px solid var(--border); background: var(--header-bg); }
.search-form { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.05em; padding: 8px 0; outline: none; }

/* ---------- mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); animation: fade .2s; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px);
  background: var(--header-bg); color: var(--header-text);
  display: flex; flex-direction: column; padding: 8px 16px 24px; overflow-y: auto;
  animation: slide-in .22s ease-out; padding-bottom: max(24px, env(safe-area-inset-bottom));
}
@keyframes slide-in { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.drawer-title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.15rem; }
.drawer-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; margin: 8px 0 12px; }
.drawer-search input { flex: 1; border: 0; background: none; padding: 12px 0; outline: none; font-size: 16px; min-width: 0; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { padding: 14px 2px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 1.05em; font-weight: 500; }
.drawer-nav a.is-highlight { color: var(--sale); }
.drawer-social { margin-top: auto; padding-top: 24px; }
body.no-scroll { overflow: hidden; }

/* ---------- notice ---------- */
.notice { background: var(--notice-bg); color: var(--notice-text); font-size: .93em; }
.notice .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 11px; padding-bottom: 11px; text-align: center; }
.notice .icon { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; }
.hero-img { width: 100%; height: auto; max-height: var(--hero-h); margin: 0 auto; object-fit: contain; }
.hero.fit-cover .hero-img { height: var(--hero-h); max-height: none; object-fit: cover; }
.hero.has-text.fit-cover .hero-img { position: absolute; inset: 0; height: 100%; }
.hero.has-text.fit-cover { min-height: var(--hero-h); display: flex; align-items: center; }
.hero.has-text.fit-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 70%); z-index: 1; }
.hero-text { position: relative; z-index: 2; padding-top: 32px; padding-bottom: 36px; }
.hero.fit-cover .hero-text { color: #fff; }
.hero-text .hero-heading { font-size: clamp(1.7rem, 4vw, 2.8rem); max-width: 18ch; }
.hero-text p { max-width: 52ch; margin: 10px 0 0; font-size: 1.05em; opacity: .9; }
.hero-text .btn { margin-top: 20px; }
.hero.fit-cover .hero-text .btn { background: #fff; color: #1a1a1a; border-color: #fff; }
.hero.fit-contain.has-text { display: flex; flex-direction: column; }
@media (max-width: 767px) { .hero-img { max-height: calc(var(--hero-h) * .7); } .hero.fit-cover .hero-img { height: calc(var(--hero-h) * .7); } }

/* ---------- listing ---------- */
.listing { padding-top: 28px; padding-bottom: 64px; }
.listing-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.listing-title { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.listing-intro { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.listing-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.result-count { color: var(--muted); font-size: .9em; margin-right: 8px; white-space: nowrap; }
.select-wrap select {
  appearance: none; border: 1px solid var(--border); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  border-radius: var(--radius); padding: 9px 32px 9px 12px; font-size: .92em; cursor: pointer;
}
.view-toggle { display: flex; }
.view-toggle .icon-btn { color: var(--muted); width: 38px; height: 38px; }
.view-toggle .icon-btn.is-active { color: var(--text); }
.view-toggle .icon { width: 19px; height: 19px; }
@media (max-width: 599px) { .result-count { display: none; } .listing-tools { margin-left: 0; width: 100%; } .select-wrap { flex: 1; } .select-wrap select { width: 100%; } }

.product-grid { display: grid; grid-template-columns: repeat(var(--cols-mobile), minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(min(3, var(--cols)), minmax(0, 1fr)); gap: 36px 22px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: var(--img-ratio); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.card-alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .card:hover .card-alt { opacity: 1; }
  .card:hover .card-media > img:only-of-type { transform: scale(1.03); }
}
.card.is-soldout .card-media img { opacity: .6; }
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-family: var(--font-body); font-weight: 500; font-size: 1em; line-height: 1.35; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The action slot always sits at the bottom, so actions line up across a row
   no matter how long titles are or which state (sold out, coming soon) a card is in. */
.card-foot { margin-top: auto; padding-top: 8px; display: flex; }
.card-action {
  display: inline-flex; align-items: center; gap: .3em; min-height: 32px; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid var(--border);
  font: inherit; font-size: .88em; color: var(--muted); cursor: pointer; text-decoration: none;
}
.card-action:hover { color: var(--text); border-bottom-color: var(--text); }
.card-action.is-disabled { cursor: default; border-bottom-color: transparent; color: var(--muted); opacity: .8; }
.card-action.is-disabled:hover { color: var(--muted); }
.card-action.is-button { width: 100%; justify-content: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--btn-radius); color: var(--text); font-weight: 500; }
.card-action.is-button:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.card-action.is-button.is-disabled { background: color-mix(in srgb, var(--muted) 8%, transparent); border-color: transparent; color: var(--muted); }
.cards-center .card-body { align-items: center; text-align: center; }
.cards-center .card .price { justify-content: center; }
.cards-center .card-foot { justify-content: center; }
.cards-center .product-list .card-body { align-items: flex-start; text-align: left; }
.card-desc { color: var(--muted); font-size: .92em; }

.product-list { display: flex; flex-direction: column; }
.product-list .card { flex-direction: row; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.product-list .card:first-child { border-top: 1px solid var(--border); }
.product-list .card-media { width: 110px; flex: none; }
.product-list .card-body { padding-top: 0; }
@media (min-width: 768px) { .product-list .card-media { width: 180px; } }

.badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; z-index: 1; }
.badge { display: inline-block; padding: 3px 8px; border-radius: calc(var(--radius) * .7); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.badge-drop { background: var(--text); color: var(--bg); }
.badge-sale { background: var(--sale); color: #fff; }
.badge-muted { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.badge-inline { margin-left: 4px; vertical-align: middle; }

.price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.price-was { color: var(--muted); font-size: .9em; }
.price-now.is-sale { color: var(--sale); font-weight: 600; }
.price-from { color: var(--muted); font-size: .88em; }
.price-lg { font-size: 1.3rem; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.pager a.is-current { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.empty .btn { margin-top: 12px; }

/* ---------- product page ---------- */
.product-page { padding-top: 18px; padding-bottom: 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86em; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product-layout { display: grid; gap: 24px; }
@media (min-width: 860px) { .product-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; } }

.gallery { min-width: 0; }
.gallery-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); background: var(--surface); margin: 0 -16px;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: var(--img-ratio); }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: none; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.gallery-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--border); transition: width .2s, background .2s; }
.gallery-dots span.is-active { width: 18px; background: var(--text); }
@media (min-width: 768px) {
  .gallery-main { margin: 0; }
  .gallery-dots { display: none; }
  .gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
  .gallery-thumb { width: 76px; aspect-ratio: var(--img-ratio); padding: 0; border: 1.5px solid transparent; border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; opacity: .7; }
  .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--text); opacity: 1; }
}
@media (min-width: 860px) { .product-info { position: sticky; top: calc(var(--logo-h) + 48px); } }

.product-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.product-short { margin-top: 16px; }
.buy-box { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.variant-picker { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; } /* a fieldset is as wide as its content otherwise */
.variant-picker legend { padding: 0; margin-bottom: 10px; font-size: .95em; color: var(--muted); max-width: 100%; overflow-wrap: anywhere; }
.variant-picker legend strong { color: var(--text); font-weight: 500; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { position: relative; }
.variant-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant-option { max-width: 100%; }
.variant-option span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; max-width: 100%; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: var(--btn-radius); background: var(--surface); font-size: .95em; }
.variant-option input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.variant-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.variant-option.is-soldout span { color: var(--muted); text-decoration: line-through; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--btn-radius); background: var(--surface); }
.qty input { width: 40px; padding: 0; text-align: center; border: 0; background: none; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty .icon-btn { width: 40px; height: 44px; }
.qty .icon { width: 16px; height: 16px; }
.qty-small .icon-btn { width: 34px; height: 36px; }
.qty-small input { width: 32px; }
.stock-note { min-height: 1.4em; margin: 10px 0 0; font-size: .9em; color: var(--sale); }
.ship-note { display: flex; gap: 10px; align-items: flex-start; font-size: .92em; color: var(--muted); margin: 6px 0 0; }
.ship-note .icon { width: 20px; height: 20px; margin-top: 1px; }
.product-desc { margin-top: 26px; border-top: 1px solid var(--border); }
.product-desc summary { padding: 16px 0; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.product-desc summary::after { content: "+"; font-size: 1.2em; line-height: 1; }
.product-desc[open] summary::after { content: "−"; }
.product-desc summary::-webkit-details-marker { display: none; }
.product-meta { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: .9em; display: grid; gap: 6px; }
.product-meta div { display: flex; gap: 10px; }
.product-meta dt { color: var(--muted); min-width: 70px; }
.product-meta dd { margin: 0; }
.related { margin-top: 72px; }
.related h2 { font-size: 1.35rem; margin-bottom: 20px; }
@media (max-width: 599px) { .related-grid .card:nth-child(n+5) { display: none; } }

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 .9em; }
.prose ul { padding-left: 1.2em; }
.prose h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
/* Long unbroken text (a pasted link, a model number) wraps; code scrolls in its own box. */
.prose { overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; max-width: 100%; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.prose pre code { overflow-wrap: normal; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid var(--border); color: var(--muted); }

/* ---------- cart / checkout ---------- */
.page-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 24px; }
.eyebrow { font-size: .82em; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.alert { padding: 12px 16px; border-radius: var(--radius); background: var(--notice-bg); color: var(--notice-text); margin-bottom: 20px; font-size: .95em; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.cart-loading { color: var(--muted); padding: 40px 0; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 860px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
}
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.cart-line {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img info remove" "img qty total";
  gap: 8px 14px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.cart-line-img { grid-area: img; align-self: start; aspect-ratio: var(--img-ratio); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line-name { font-weight: 500; text-decoration: none; }
.cart-line-variant { color: var(--muted); font-size: .9em; }
.cart-line-info .price { font-size: .92em; }
.cart-line .qty { grid-area: qty; justify-self: start; }
.cart-line-total { grid-area: total; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.cart-remove { grid-area: remove; color: var(--muted); width: 36px; height: 36px; justify-self: end; }
.cart-remove .icon { width: 18px; height: 18px; }
@media (min-width: 600px) {
  .cart-line { grid-template-columns: 96px minmax(0, 1fr) auto 90px 40px; grid-template-areas: "img info qty total remove"; }
}
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
@media (min-width: 860px) { .summary { position: sticky; top: calc(var(--logo-h) + 48px); } }
.summary h2 { font-size: 1.15rem; margin-bottom: 16px; }
.coupon-form label { font-size: .9em; color: var(--muted); display: block; margin-bottom: 6px; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; text-transform: uppercase; }
.field-note { font-size: .86em; color: var(--muted); margin: 6px 0 0; min-height: 1.2em; }
.field-note.is-error { color: var(--sale); }
.field-note.is-ok { color: var(--text); }
.totals { margin: 16px 0; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; }
.totals .total-row { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); font-weight: 600; font-size: 1.1em; }
.totals .total-row dt { color: var(--text); }
.totals .discount-row dd { color: var(--sale); }
.free-ship-note { font-size: .88em; color: var(--muted); margin: -4px 0 14px; }
.summary .text-link { display: block; text-align: center; }
.summary-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.summary-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: .93em; }
.summary-lines img { border-radius: var(--radius); aspect-ratio: var(--img-ratio); object-fit: cover; background: var(--bg); }
.summary-lines .muted { color: var(--muted); display: block; font-size: .92em; }

/* :where() keeps specificity at zero so component rules (.qty input, search fields) win. */
:where(input:not([type=radio]):not([type=checkbox]), select, textarea) {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 11px 12px; font-size: 16px; /* 16px stops iOS zoom-on-focus */
}
:where(input, select, textarea):focus { outline: none; border-color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .92em; font-weight: 500; }
.checkout-form h2 { font-size: 1.2rem; margin-bottom: 16px; }
.pay-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--notice-bg); color: var(--notice-text); font-size: .92em; margin: 8px 0 20px; }
.pay-note p { margin: 0; }
.pay-note .icon { width: 20px; height: 20px; margin-top: 1px; }

.stub-card { max-width: 560px; margin: 0 auto; border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; background: var(--surface); }
.stub-card code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.stub-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.order-page .totals { max-width: 520px; margin: 28px 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 24px; }
.footer-inner { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.2rem; text-decoration: none; }
.footer-brand p { margin: 8px 0 16px; max-width: 40ch; font-size: .93em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: .93em; }
.footer-links h2 { font-family: var(--font-body); font-size: .8em; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 4px; opacity: .75; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base { padding-top: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); font-size: .85em; opacity: .8; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.social { display: flex; gap: 4px; margin-left: -10px; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--radius); }
.social a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.social .icon { width: 20px; height: 20px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); padding: 12px 14px 12px 18px; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: .93em; animation: toast-in .2s ease-out;
}
.toast a { color: inherit; font-weight: 600; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.btn.is-disabled { opacity: .45; cursor: not-allowed; }

/* ================= v2 additions ================= */

/* ---------- header dropdowns ---------- */
.nav-dd { position: relative; }
.nav-dd-toggle { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 8px 2px; font: inherit; font-weight: 500; font-size: .95em; color: inherit; cursor: pointer; border-bottom: 1.5px solid transparent; }
.nav-dd-toggle.is-highlight { color: var(--sale); }
.nav-dd-toggle .chev { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .15s; }
.nav-dd.is-open .nav-dd-toggle .chev { transform: rotate(-90deg); }
.nav-dd-menu {
  display: none; position: absolute; top: 100%; left: -14px; min-width: 200px; z-index: 30;
  background: var(--header-bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 6px;
}
.nav-right .nav-dd-menu { left: auto; right: -14px; }
.nav-dd.is-open .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: flex; flex-direction: column; }
@media (hover: hover) { .nav-dd:hover .nav-dd-menu { display: flex; flex-direction: column; } }
.nav-dd-menu a { padding: 9px 12px; border-radius: calc(var(--radius) * .7); border-bottom: 0 !important; white-space: nowrap; }
.nav-dd-menu a:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.drawer-group { border-bottom: 1px solid var(--border); }
.drawer-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; font-size: 1.05em; font-weight: 500; cursor: pointer; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary.is-highlight { color: var(--sale); }
.drawer-group summary .chev { width: 18px; height: 18px; transition: transform .15s; }
.drawer-group[open] summary .chev { transform: rotate(90deg); }
.drawer-sub { display: flex; flex-direction: column; padding: 0 0 8px 14px; }
.drawer-sub a { padding: 10px 2px; border-bottom: 0 !important; font-size: 1em !important; }

/* ---------- rotating notice ---------- */
.notice-rotator { display: grid !important; }
.notice-msg { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.notice-msg.is-active { opacity: 1; visibility: visible; }
.notice-msg a { color: inherit; text-underline-offset: 3px; }

/* ---------- homepage sections ---------- */
.section { padding-top: 48px; padding-bottom: 8px; }
.section:last-child { padding-bottom: 56px; }
.hero + .section { padding-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.4rem, 3vw, 1.85rem); }
.section-sub { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; font-size: .95em; }
.section-link .icon { width: 18px; height: 18px; transition: transform .15s; }
.section-link:hover .icon { transform: translateX(3px); }
.section.listing { padding-bottom: 64px; }

.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px) / 2.2); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.product-row .card { scroll-snap-align: start; }
@media (min-width: 600px) { .product-row { grid-auto-columns: calc((100% - 44px) / 3.2); gap: 22px; } }
@media (min-width: 1000px) { .product-row { grid-auto-columns: calc((100% - 22px * (var(--cols) - 1)) / var(--cols)); } }

.cat-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cat-tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; } }
.cat-tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.cat-tile-img { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover .cat-tile-img img { transform: scale(1.04); }
.cat-tile-label { font-weight: 500; font-size: 1.02em; }
.style-circles .cat-tile { align-items: center; text-align: center; }
.style-circles .cat-tile-img { border-radius: 50%; width: 100%; }
@media (min-width: 700px) { .style-circles { grid-template-columns: repeat(auto-fit, minmax(140px, 180px)); justify-content: center; } }

.section-image-text.bg-surface { background: var(--surface); margin-top: 48px; padding: 56px 0; }
.section-image-text.bg-accent { background: var(--accent); color: var(--accent-text); margin-top: 48px; padding: 56px 0; }
.section-image-text.bg-accent .prose a { color: inherit; }
.image-text { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) {
  .image-text { grid-template-columns: 1fr 1fr; gap: 56px; }
  .image-text.side-right .image-text-media { order: 2; }
  .image-text.no-image { grid-template-columns: minmax(0, 720px); justify-content: center; text-align: center; }
}
.image-text-media { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.image-text-media img { width: 100%; height: 100%; object-fit: cover; }
.image-text-body .section-title { margin-bottom: 14px; }
.image-text-body .btn { margin-top: 18px; }
.btn-inverse { background: var(--accent-text); color: var(--accent); border-color: var(--accent-text); }

.gallery-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .gallery-grid { gap: 12px; }
  .gallery-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.gallery-cell { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: calc(var(--radius) * .7); background: var(--surface); }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .2s; }
a.gallery-cell:hover img { transform: scale(1.04); }

.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { margin: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; font-family: var(--font-heading); font-size: 1.08em; line-height: 1.5; }
.quote blockquote::before { content: "“"; }
.quote blockquote::after { content: "”"; }
.quote figcaption { font-size: .9em; color: var(--muted); }
.quote figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- drops ---------- */
.card-drop { margin: 2px 0 0; font-size: .86em; color: var(--muted); }
.card.is-upcoming .card-media img { filter: saturate(.85); }
.drop-box { margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.drop-label { margin: 0 0 10px; font-weight: 500; }
.countdown { display: flex; gap: 8px; }
.countdown span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: calc(var(--radius) * .7); background: var(--bg); font-size: .76em; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.countdown b { font-size: 1.7rem; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 0; font-weight: 600; line-height: 1.2; }

/* ---------- product page layout options ---------- */
.gallery-main-wrap { position: relative; }
.gallery-main-wrap .badges { top: 12px; left: 12px; }
@media (max-width: 767px) { .gallery-main-wrap .badges { left: 0; } }
.zoom-btn { position: absolute; right: 10px; bottom: 10px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); width: 40px; height: 40px; }
.zoom-btn .icon { width: 19px; height: 19px; }
@media (max-width: 767px) { .zoom-btn { right: 0; } }
[data-zoomable] .gallery-slide img { cursor: zoom-in; }
@media (min-width: 860px) {
  .product-layout.gallery-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .product-layout.gallery-right .gallery { order: 2; }
}
@media (min-width: 768px) {
  .gallery.thumbs-side { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
  .gallery.thumbs-side .gallery-main-wrap { grid-column: 2; grid-row: 1; }
  .gallery.thumbs-side .gallery-thumbs { grid-column: 1; grid-row: 1; flex-direction: column; margin-top: 0; }
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12,12,12,.94); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.lb-stage { position: absolute; inset: 56px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .25s; user-select: none; }
.lb-stage.is-zoomed img { transform: scale(2.2); cursor: zoom-out; }
.lightbox .icon-btn { position: absolute; color: #fff; z-index: 2; width: 48px; height: 48px; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.1); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .9em; margin: 0; }

/* header social icons (Admin → Navigation → Social: "Header") */
.header-social { display: none; margin: 0 4px 0 0; }
.header-social a { width: 36px; height: 36px; }
.header-social .icon { width: 18px; height: 18px; }
@media (min-width: 900px) { .header-social { display: flex; } }

/* image + text: small line above headings, and the "Editorial" style */
.eyebrow-line { margin: 0 0 10px; font-size: .78em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.text-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-cta .icon { width: 18px; height: 18px; transition: transform .15s; }
.text-cta:hover .icon { transform: translateX(3px); }
.style-editorial.bg-none { background: color-mix(in srgb, var(--hero-bg) 60%, var(--bg)); margin-top: 48px; padding: 56px 0; }
.style-editorial .section-title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.style-editorial .image-text-body .prose { max-width: 38ch; font-size: 1.06em; line-height: 1.65; }
@media (min-width: 800px) {
  .style-editorial .image-text { grid-template-columns: 55fr 45fr; gap: clamp(40px, 6vw, 96px); }
  .style-editorial .image-text.side-right { grid-template-columns: 45fr 55fr; }
  .style-editorial { padding-top: 80px; padding-bottom: 80px; }
}

/* ================= content pages (block editor) ================= */
.content-page { padding-bottom: 64px; }
.page-cover { background: var(--hero-bg); }
.page-cover img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; max-height: 460px; }
.page-body { padding-top: 32px; }
.content-page .page-body { max-width: 820px; }
.content-page.width-narrow .page-body { max-width: 680px; }
.content-page.width-wide .page-body { max-width: 1100px; }
.block { margin: 0 0 28px; }
.block-heading { margin: 40px 0 14px; }
.block-heading.level-2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.block-heading.level-3 { font-size: 1.2rem; }
.align-center { text-align: center; }
.block-image img { width: 100%; border-radius: var(--radius); }
.block-image figcaption, .block-video figcaption { margin-top: 8px; font-size: .9em; color: var(--muted); text-align: center; }
.block-image { margin-left: 0; margin-right: 0; }
.block-image.size-medium { width: min(70%, 100%); margin-left: auto; margin-right: auto; }
.block-image.size-small { width: min(45%, 100%); margin-left: auto; margin-right: auto; }
/* "wide" and "full" break out of the text column */
.block-image.size-wide { width: min(1100px, 100vw - 32px); position: relative; left: 50%; transform: translateX(-50%); }
.block-image.size-full { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.block-image.size-full img { border-radius: 0; }
@media (max-width: 599px) { .block-image.size-medium, .block-image.size-small { width: 100%; } }
.block-image-text { display: grid; gap: 24px; align-items: center; }
.block-image-text img { width: 100%; border-radius: var(--radius); }
.block-image-text .block-heading { margin-top: 0; }
@media (min-width: 700px) {
  .block-image-text:not(.no-image) { grid-template-columns: 1fr 1fr; gap: 40px; }
  .block-image-text.side-right img { order: 2; }
}
.block-gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.block-gallery img { width: 100%; border-radius: calc(var(--radius) * .7); background: var(--surface); }
@media (min-width: 700px) { .block-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); } .block-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.block-button.align-center { text-align: center; }
.block-faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 500; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.3em; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .prose { padding: 0 0 16px; color: var(--muted); }
.block-video { margin-left: 0; margin-right: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block-products .block-heading { margin-top: 12px; }
.block-product-grid { --cols: 3; }
.block-divider { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.block-space { height: 40px; margin: 0; }
.min-note { font-size: .88em; color: var(--sale); margin: -4px 0 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .93em; margin: 4px 0 14px; }
.agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.thank-you { margin: 12px 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--surface); }
.footer-contact a { text-decoration: none; }

/* ---------- full-width feature (homepage section + page block) ---------- */
.feature { position: relative; display: flex; overflow: hidden; background: var(--accent); color: var(--accent-text, #fff); isolation: isolate; }
.feature-h-short { min-height: max(45vh, 300px); }
.feature-h-medium { min-height: max(62vh, 380px); }
.feature-h-tall { min-height: max(80vh, 440px); }
.feature-h-full { min-height: 100vh; min-height: 100svh; }
.feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature-shade { position: absolute; inset: 0; z-index: -1; background: #000; }
.feature-dark .feature-shade { background: #fff; }
.feature-light { color: #fff; }
.feature-dark { color: #161616; }
.feature.no-image.feature-dark { background: var(--surface); }
.feature-inner { display: flex; width: 100%; padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(28px, 6vw, 72px); }
.feature-v-top .feature-inner { align-items: flex-start; }
.feature-v-middle .feature-inner { align-items: center; }
.feature-v-bottom .feature-inner { align-items: flex-end; }
.feature-x-left .feature-inner { justify-content: flex-start; }
.feature-x-center .feature-inner { justify-content: center; text-align: center; }
.feature-x-right .feature-inner { justify-content: flex-end; }
.feature-text { max-width: 36rem; }
.feature-light .feature-text { text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.feature-eyebrow { margin: 0 0 10px; font-size: .8em; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .9; }
.feature-heading { margin: 0; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.05; color: inherit; }
.feature-body { margin-top: 14px; font-size: 1.08em; line-height: 1.55; }
.feature-body p { margin: 0 0 .6em; }
.feature-body a { color: inherit; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.feature-x-center .feature-actions { justify-content: center; }
.feature-x-right .feature-actions { justify-content: flex-end; }
.feature .btn { text-shadow: none; }
.feature-light .feature-btn { background: #fff; color: #161616; border-color: #fff; }
.feature-light .feature-btn-alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.feature-dark .feature-btn { background: #161616; color: #fff; border-color: #161616; }
.feature-dark .feature-btn-alt { background: transparent; color: #161616; border-color: #161616; }
.feature-light .feature-btn-alt:hover { background: rgba(255,255,255,.12); }
.feature-dark .feature-btn-alt:hover { background: rgba(0,0,0,.06); }
@media (max-width: 599px) {
  .feature-h-tall, .feature-h-full { min-height: max(70svh, 420px); }
  .feature-x-right .feature-inner { justify-content: flex-start; text-align: left; }
  .feature-x-right .feature-actions { justify-content: flex-start; }
}
/* On content pages the block breaks out of the text column to the full screen width. */
.block-feature { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); margin: 32px 0; }
.content-page { overflow-x: clip; }
.feature + .section, .hero + .feature { margin-top: 0; }
.feature.no-image.feature-light { color: var(--accent-text); }

/* Banner with changing word: "If your [Suitcase] is broken…". The words
   share one grid cell, so the box is as wide as the longest word and nothing
   jumps when it changes. shop.js moves .is-on along; without JS (or with
   reduced motion) the first word simply stays. */
.feature-rotator .feature-text { max-width: min(66rem, 100%); }
.feature-rotator .feature-heading { font-size: clamp(1.7rem, 4.6vw, 3.4rem); }
.feature-rotator .feature-actions { max-width: 44rem; margin-left: auto; margin-right: auto; }
.feature-rotator.feature-x-left .feature-actions { margin-left: 0; }
.feature-rotator.feature-x-right .feature-actions { margin-right: 0; }
.feature-rotator.is-caps .feature-heading { text-transform: uppercase; letter-spacing: .01em; }
.feature-rotator .feature-heading { line-height: 1.15; }
/* Baseline-aligned, so the word sits on the same line as the rest of the
   heading; overflow: clip (unlike hidden) keeps that baseline. */
.rotator { --rot: currentColor; display: inline-block; vertical-align: baseline; }
.rotator.is-accent { --rot: var(--accent); }
.feature.no-image .rotator.is-accent { --rot: currentColor; }
.rotator-words { display: inline-grid; justify-items: center; overflow: hidden; overflow: clip; overflow-clip-margin: .08em; vertical-align: baseline; line-height: 1.15; }
.feature-x-left .rotator-words { justify-items: start; }
.rotator { max-width: 100%; }
.rotator-words { max-width: 100%; }
.rotator-word { grid-area: 1 / 1; overflow-wrap: anywhere; text-wrap: balance; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .45s ease; }
.rotator-word:not(.is-on) { opacity: 0; }
.rotator-roll .rotator-word { transform: translateY(-105%); }
.rotator-roll .rotator-word.is-off { transform: translateY(105%); }
.rotator-rise .rotator-word { transform: translateY(105%); }
.rotator-rise .rotator-word.is-off { transform: translateY(-105%); }
.rotator-word.is-on { transform: none; opacity: 1; }
.rotator-box .rotator-words { border: .09em solid var(--rot); border-radius: .22em; padding: .02em .3em; }
.rotator-highlight .rotator-words { background: currentColor; border-radius: .18em; padding: .02em .3em; }
.rotator-highlight .rotator-word { color: #161616; }
.feature-dark .rotator-highlight .rotator-word { color: #fff; }
.rotator-highlight.is-accent .rotator-words { background: var(--accent); }
.rotator-highlight.is-accent .rotator-word { color: var(--accent-text, #fff); }
.rotator-underline .rotator-words { box-shadow: inset 0 -.12em 0 var(--rot); padding: 0 .06em; }
.rotator-color .rotator-words { color: var(--rot); }
.rotator-color:not(.is-accent) .rotator-words { font-style: italic; }
.feature.no-image .rotator-color .rotator-words { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.feature .btn.is-accent { background: var(--accent); color: var(--accent-text, #fff); border-color: var(--accent); }
.feature .btn.is-accent:hover { filter: brightness(1.06); }
.feature.no-image .btn.is-accent { background: var(--text); color: var(--bg); border-color: var(--text); }
.feature .btn.is-wide { width: 100%; justify-content: center; padding-top: 1em; padding-bottom: 1em; font-size: 1.05em; }
.feature-rotator.is-caps .btn { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.btn .btn-arrow { flex: none; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .rotator-word { transition: none; } .btn:hover .btn-arrow { transform: none; } }
.feature.no-image.feature-light .feature-text { text-shadow: none; }
.feature.no-image.feature-light .feature-btn { background: var(--accent-text); color: var(--accent); border-color: var(--accent-text); }
.feature.no-image.feature-light .feature-btn-alt { color: var(--accent-text); border-color: var(--accent-text); }

/* ---------- v7: filters ---------- */
.filter-panel { margin: -8px 0 18px; }
.filter-panel > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary svg { width: 16px; height: 16px; }
.filter-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-size: .75em; }
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.filter-field { display: grid; gap: 4px; font-size: .9em; }
.filter-field > span { color: var(--muted); }
.filter-field select, .filter-field input { font: inherit; padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); min-width: 0; }
.filter-price > div { display: flex; align-items: center; gap: 6px; }
.filter-price input { width: 88px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: .9em; padding-bottom: 8px; }
.filter-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.filter-actions { display: flex; align-items: center; gap: 14px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: .85em; color: var(--text); text-decoration: none; background: var(--surface); }
.filter-chip svg { width: 12px; height: 12px; }
.filter-chip:hover { border-color: var(--text); }
@media (max-width: 599px) { .filter-form { display: grid; grid-template-columns: 1fr 1fr; } .filter-price, .filter-actions, .filter-check { grid-column: 1 / -1; } }

/* ---------- v7: categories ---------- */
.category-banner img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; max-height: 420px; }
@media (max-width: 599px) { .category-banner img { aspect-ratio: 2 / 1; } }
.staff-note { margin: 16px 0 0; padding: 8px 12px; border-radius: var(--radius); background: var(--notice-bg); color: var(--notice-text); font-size: .88em; }

/* ---------- v7: product page ---------- */
.personalize { display: grid; gap: 6px; margin: 4px 0 16px; font-size: .95em; }
.personalize > span { font-weight: 600; }
.personalize input { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.personalize small { font-size: .82em; }
.stock-note.is-mto { color: var(--muted); }
.product-details { margin: 22px 0 0; border-top: 1px solid var(--border); font-size: .93em; }
.product-details > div { display: grid; grid-template-columns: minmax(96px, 36%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.product-details dt { color: var(--muted); }
.product-details dd { margin: 0; }
.cart-line-mto { color: var(--muted); font-size: .85em; font-style: italic; }
.cart-line-mto:empty, .cart-line-variant:empty { display: none; }
.line-note { display: block; font-size: .88em; color: var(--muted); font-weight: 400; }

/* ---------- v7: contact form block ---------- */
.block-contact { margin: 32px 0; scroll-margin-top: 90px; }
.contact-form { display: grid; gap: 14px; max-width: 640px; }
.contact-form label { display: grid; gap: 5px; font-size: .92em; }
.contact-form label > span { font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 599px) { .contact-pair { grid-template-columns: 1fr; } }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-ok { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact-ok svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.contact-err { padding: 10px 14px; border-radius: var(--radius); background: var(--notice-bg); color: var(--notice-text); font-size: .92em; }

/* ---------- v7: homepage section per device ---------- */
.only-desktop, .only-mobile { display: contents; }
@media (max-width: 767px) { .only-desktop { display: none; } }
@media (min-width: 768px) { .only-mobile { display: none; } }

/* ---------- v7: password page ---------- */
.gate-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: var(--bg); padding: 24px 16px; }
.gate-card { width: min(440px, 100%); text-align: center; }
.gate-logo { max-width: 100%; width: auto; margin: 0 auto 18px; display: block; }
.gate-name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.9rem; margin: 0 0 14px; }
.gate-message { margin-bottom: 26px; color: var(--muted); }
.gate-form { display: grid; gap: 8px; text-align: left; }
.gate-form label { font-size: .88em; color: var(--muted); }
.gate-form .inline-field input { text-transform: none; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.gate-error { margin: 4px 0 0; color: var(--sale); font-size: .9em; }
.gate-social { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.gate-social a { color: var(--muted); }
.gate-social svg { width: 20px; height: 20px; }

/* ---------- robustness: long words, many photos ---------- */
/* Unbroken text (long names, URLs, SKUs) wraps instead of pushing the page sideways. */
h1, h2, h3, .card-title a, .breadcrumb, .prose, .cart-line-info, .summary-lines, .product-meta dd, .product-details dd,
.listing-intro, .line-note, .personalize, .feature-text, .footer-inner, .notice { overflow-wrap: anywhere; }
.breadcrumb [aria-current] { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
/* Side thumbnails never grow taller than the main photo; they scroll instead,
   so a product with a dozen photos doesn't pin the sticky details column. */
@media (min-width: 860px) {
  .gallery.thumbs-side { align-items: stretch; }
  .gallery.thumbs-side .gallery-thumbs { height: 0; min-height: 100%; overflow-y: auto; flex-wrap: nowrap; scrollbar-width: thin; }
  .gallery.thumbs-side .gallery-thumb { flex: none; }
}
/* Very small phones (320px): a smaller thumbnail leaves room for qty + total. */
@media (max-width: 359px) { .cart-line { grid-template-columns: 58px minmax(0, 1fr) auto; column-gap: 10px; } }
/* Single-column grids on phones: a column must be allowed to shrink below
   its content's natural width (the default "auto" column can't). */
@media (max-width: 859px) { .product-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 799px) { .image-text { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 699px) { .block-image-text { grid-template-columns: minmax(0, 1fr); } .block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.listing-intro.prose { max-width: 62ch; }
.listing-intro.prose p { margin: 0 0 .5em; }
.listing-bottom { margin: 56px auto 0; max-width: 70ch; }
.feature h1.feature-heading { font-size: clamp(1.9rem, 5vw, 3.2rem); }

/* ---------- videos (page block, homepage section, product gallery) ---------- */
.video-frame { aspect-ratio: 16 / 9; }
.video-lite { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #111; color: #fff; display: grid; place-items: center; }
.video-lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-lite:hover img, .video-lite:focus-visible img { opacity: 1; }
.video-play { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(0,0,0,.62); box-shadow: 0 2px 12px rgba(0,0,0,.3); transition: transform .15s; }
.video-lite:hover .video-play { transform: scale(1.06); }
.video-play svg { margin-left: 4px; }
.video-note { position: absolute; left: 12px; bottom: 10px; font-size: .78em; opacity: .85; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.block-video.size-narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.block-video.size-wide { width: min(1100px, 100vw - 32px); position: relative; left: 50%; transform: translateX(-50%); }
.block-video.size-full { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.block-video.size-full .video-frame { border-radius: 0; }
.video-frame[style*="9 / 16"] { max-width: 420px; margin: 0 auto; }

/* ---------- homepage section looks (background + spacing) ---------- */
.sec-style { display: block; }
.sec-style.only-desktop:not(.sec-bg), .sec-style.only-mobile:not(.sec-bg) { display: contents; }
@media (max-width: 767px) { .sec-style.only-desktop { display: none; } }
@media (min-width: 768px) { .sec-style.only-mobile { display: none; } }
.sec-bg { margin-top: 40px; padding: 8px 0 48px; }
.sec-bg > .section:last-child { padding-bottom: 0; }
.sec-bg-surface { background: var(--surface); }
.sec-bg-accent { background: var(--accent); color: var(--accent-text); }
.sec-bg-accent .btn { background: var(--accent-text); color: var(--accent); border-color: var(--accent-text); }
.sec-bg-accent .section-sub, .sec-bg-accent .muted { color: inherit; opacity: .85; }
.sec-bg-dark { background: #161616; color: #f3f1ee; }
.sec-bg-dark .btn { background: #f3f1ee; color: #161616; border-color: #f3f1ee; }
.sec-bg-dark .section-sub { color: #bdb8b0; }
.sec-bg-accent a:not(.btn):not(.card-action), .sec-bg-dark a:not(.btn):not(.card-action) { color: inherit; }
.sec-pad-compact > .section { padding-top: 20px; }
.sec-pad-compact.sec-bg { padding-bottom: 24px; margin-top: 20px; }
.sec-pad-spacious > .section { padding-top: 88px; }
.sec-pad-spacious.sec-bg { padding-bottom: 88px; margin-top: 56px; }

/* ---------- text, columns, faq, logos, marquee, spacer, countdown, video sections ---------- */
.section-text.align-center { text-align: center; }
.section-text.width-narrow > * { max-width: 62ch; }
.section-text.align-center.width-narrow > * { margin-left: auto; margin-right: auto; }
.section-text .prose { margin-top: 12px; font-size: 1.05em; }
.section-text-cta { margin-top: 20px; }
.info-cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .info-cols.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .info-cols.cols-3, .info-cols.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .info-cols.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.info-col { text-align: center; }
.info-col h3 { font-family: var(--font-body); font-size: 1.05em; font-weight: 600; margin: 12px 0 6px; }
.info-col h3 a { color: inherit; }
.info-col .prose { font-size: .95em; opacity: .85; }
.info-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--accent); }
.sec-bg-surface .info-icon { background: var(--bg); }
.sec-bg-accent .info-icon, .sec-bg-dark .info-icon { background: rgba(255,255,255,.14); color: inherit; }
.info-icon .icon { width: 26px; height: 26px; }
.info-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.section-faq .block-faq { max-width: 760px; }
.section-logos { text-align: center; }
.logos-title { margin: 0 0 18px; font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 44px; }
.logo-row img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.section-logos.is-gray .logo-row img { filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.section-logos.is-gray .logo-row a:hover img { filter: none; opacity: 1; }
.marquee { overflow: hidden; margin-top: 40px; padding: 12px 0; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.marquee-accent { background: var(--accent); color: var(--accent-text); }
.marquee-dark { background: #161616; color: #f3f1ee; }
.marquee-plain { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee.speed-slow .marquee-track { animation-duration: 70s; }
.marquee.speed-fast .marquee-track { animation-duration: 22s; }
.marquee-track > span { padding-right: 0; }
.marquee-gap { display: inline-block; padding: 0 1.4em; opacity: .7; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { white-space: normal; text-align: center; } .marquee-track > span + span { display: none; } }
.spacer-small { height: 24px; }
.spacer-medium { height: 56px; }
.spacer-large { height: 104px; }
.spacer hr { border: 0; border-top: 1px solid var(--border); position: relative; top: 50%; margin: 0 auto; }
.spacer { position: relative; }
.section-countdown { text-align: center; }
.section-countdown .drop-box { display: inline-block; margin: 16px auto 6px; }
.countdown-done { font-size: 1.2em; font-weight: 600; margin: 14px 0; }
.section-countdown .prose { max-width: 60ch; margin: 12px auto 0; }
.section-video .block-video { margin: 0; }
.section-more { margin-top: 20px; text-align: center; }
/* Product video inside the photo gallery: centered in the photo-shaped slide. */
.gallery-slide.is-video { display: grid; place-items: center; background: #111; }
.gallery-video { width: 100%; }
.gallery-video .video-frame { border-radius: 0; }
.gallery-video.is-vertical { width: auto; height: 100%; aspect-ratio: 9 / 16; }
.gallery-video.is-vertical .video-frame { height: 100%; max-width: none; }
.gallery-thumb.is-video { position: relative; background: #111; }
.gallery-thumb.is-video img { opacity: .75; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.thumb-play svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.gallery.on-video .zoom-btn, .gallery.on-video .badges { display: none; }

/* ---------- product finder ---------- */
.block-quiz, .section-quiz, .finder-results { margin-block: 32px; }
.finder-results { margin-bottom: 56px; }
.quiz-card { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 4vw, 40px); }
.quiz-intro, .quiz-result { text-align: center; }
.quiz-heading { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 8px; }
.quiz-heading:focus, .quiz-question:focus { outline: none; }
.quiz-intro-text { max-width: 46ch; margin: 0 auto 10px; color: var(--muted); }
.quiz-meta { font-size: .85rem; margin: 0 0 16px; }
.quiz-progress { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.quiz-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.quiz-bar-fill { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.quiz-question { font-family: var(--font-heading); font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin: 0 0 6px; }
.quiz-help { color: var(--muted); margin: 0 0 14px; font-size: .92rem; }
.quiz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 42vw), 1fr)); gap: 12px; margin-top: 14px; }
.quiz-card-option { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: border-color .15s, transform .15s; min-width: 0; }
.quiz-card-option:hover { border-color: var(--text); transform: translateY(-2px); }
.quiz-card-option:focus-visible, .quiz-button-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-card-option[aria-pressed="true"], .quiz-button-option[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.quiz-card-img { display: block; aspect-ratio: 1; border-radius: calc(var(--radius) - 2px); overflow: hidden; background: var(--surface); }
.quiz-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-card-letter { display: grid; place-items: center; height: 100%; font-family: var(--font-heading); font-size: 2.2rem; color: var(--muted); }
.quiz-option-label { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.quiz-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.quiz-button-option { padding: 10px 18px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.quiz-button-option:hover { border-color: var(--text); }
.quiz-select-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.quiz-select { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.quiz-back { margin-top: 16px; background: none; border: 0; padding: 6px 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.quiz-wait, .quiz-error { text-align: center; color: var(--muted); padding: 24px 0; }
.quiz-products { margin: 18px 0; text-align: left; }
/* one or two matches stay card-sized and centred, not stretched across the page */
@media (min-width: 700px) { .quiz-products { grid-template-columns: repeat(var(--cols, 3), minmax(0, 250px)); justify-content: center; } }
.quiz-more { margin: -6px 0 14px; font-size: .92rem; }
.quiz-more a { color: var(--text); }
.quiz-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.quiz-chip { padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; }
.quiz-chip:hover { border-color: var(--text); }
@media (prefers-reduced-motion: reduce) { .quiz-card-option, .quiz-bar-fill { transition: none; } .quiz-card-option:hover { transform: none; } }

/* ---------- discount popup ---------- */
.popup { position: fixed; z-index: 90; }
.popup-center { inset: 0; display: grid; place-items: center; padding: 16px; }
.popup-corner { left: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); }
.popup-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 15, .45); opacity: 0; transition: opacity .2s ease; }
.popup-card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--text); border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 60px rgba(20, 18, 15, .25); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s ease, transform .2s ease; }
.popup.is-open .popup-card, .popup.is-open .popup-backdrop { opacity: 1; transform: none; }
.popup-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.popup-body { padding: 22px 22px 18px; text-align: center; }
.popup-title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.45rem; margin: 0 0 6px; padding: 0 30px; overflow-wrap: anywhere; } /* clear of the × */
.popup-text { color: var(--muted); margin-bottom: 14px; }
.popup-text p { margin: 0 0 6px; }
.popup-code { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 14px; padding: 10px 14px; border: 1.5px dashed var(--border); border-radius: var(--radius); max-width: 280px; }
.popup-code-text { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; overflow-wrap: anywhere; }
.popup-copy { border: 0; background: none; color: var(--accent); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: 4px; }
.popup-done { margin: 10px 0 0; font-weight: 600; }
.popup-no { margin-top: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.popup-x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--text); cursor: pointer; }
.popup-x .icon { width: 18px; height: 18px; }
.popup-preview-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.popup-lock, .popup-lock body { overflow: hidden; }
@media (max-width: 599px) {
  .popup-center { align-items: end; padding: 0; }
  .popup-center .popup-card { width: 100%; border-radius: calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .popup-corner { left: 8px; right: 8px; bottom: 8px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .popup-card, .popup-backdrop { transition: none; } }
.quiz-option-detail { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.quiz-button-option .quiz-option-detail { display: inline; margin-left: 6px; }
.quiz-card-option.is-soon, .quiz-button-option.is-soon { opacity: .55; cursor: not-allowed; transform: none; border-style: dashed; }
.quiz-soon { display: inline-block; align-self: center; margin-top: 2px; padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; color: var(--muted); }
.quiz-card-option.is-link, .quiz-button-option.is-link { text-decoration: none; border-style: dashed; }
.quiz-skip { margin: 0 0 14px; }
.quiz-skip a, .quiz-skip-inline { color: var(--accent); text-underline-offset: 3px; }
.quiz-skip-inline { display: inline-block; margin: 16px 0 0 16px; font-size: .9rem; }
/* all steps on one page */
.quiz-page .quiz-intro { margin-bottom: 8px; }
.quiz-page .quiz-step { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--border); }
.quiz-page .quiz-step:first-child { border-top: 0; margin-top: 0; }
.quiz-page .quiz-step.is-done .quiz-num { background: var(--accent); color: var(--accent-text); }
/* Hub: every step shown; the ones not reached yet greyed out with a hint. */
.quiz-hub .quiz-step:not(.is-locked) .quiz-num { background: var(--accent); color: var(--accent-text); }
.quiz-step.is-locked { opacity: .5; }
.quiz-step.is-locked .quiz-question { color: var(--muted); }
.quiz-step.is-locked .quiz-card-option, .quiz-step.is-locked .quiz-button-option { cursor: default; }
.quiz-step.is-locked .quiz-card-option:hover { transform: none; border-color: var(--border); }
.quiz-hint { margin: 0 0 4px; color: var(--muted); font-size: .92rem; }
/* Small tiles: an icon or small picture above the label. */
.quiz-tiles { grid-template-columns: repeat(auto-fill, minmax(min(140px, 40vw), 1fr)); }
.quiz-tiles .quiz-card-option { padding: 16px 10px 14px; gap: 10px; justify-content: flex-start; }
.quiz-tiles .quiz-card-img { width: 56px; height: 56px; aspect-ratio: auto; margin: 0 auto; background: none; }
.quiz-tiles .quiz-card-img img { object-fit: contain; }
.quiz-tiles .quiz-card-letter { font-size: 1.6rem; }
.quiz-num { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: 10px; border-radius: 50%; background: var(--border); color: var(--text); font-size: .85em; vertical-align: .1em; }
.quiz-page .quiz-results:not([hidden]) { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- compatibility: "Fits" and model pages ---------- */
.product-fits { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.product-fits-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .95rem; font-family: var(--font-body); font-weight: 700; }
.product-fits-title .icon { width: 18px; height: 18px; color: var(--accent); }
.fit-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fit-chips a { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .88rem; overflow-wrap: anywhere; }
.fit-chips a:hover { border-color: var(--text); }
.fit-brand { font-weight: 700; }
.fit-gen { color: var(--muted); }
.fit-more { margin-top: 8px; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fits-page { padding-block: 24px 48px; }
/* A name with no spaces (a model number, a pasted link) wraps rather than widening the page. */
.eyebrow, .page-title, .breadcrumb, .fits-subhead, .fit-brand-name, .fit-model-name { overflow-wrap: anywhere; }
.fits-lede { margin: -4px 0 20px; }
.fit-brand-grid, .fit-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 42vw), 1fr)); gap: 12px; }
.fit-brand-card, .fit-model-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none; text-align: center; transition: border-color .15s, transform .15s; min-width: 0; }
.fit-brand-card:hover, .fit-model-card:hover { border-color: var(--text); transform: translateY(-2px); }
.fit-brand-card img { max-height: 48px; max-width: 80%; object-fit: contain; }
.fit-brand-card { justify-content: center; }
.fit-brand-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.fit-model-card.is-hidden { opacity: .6; }
.fit-model-img { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: calc(var(--radius) - 2px); background: var(--bg); overflow: hidden; }
.fit-model-img img { width: 100%; height: 100%; object-fit: contain; }
.fit-model-letter { font-family: var(--font-heading); font-size: 2.4rem; color: var(--muted); }
.fit-model-name { font-weight: 700; overflow-wrap: anywhere; }
.fit-model-detail { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.fit-model-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 26px; }
@media (min-width: 700px) { .fit-model-head { grid-template-columns: 280px minmax(0, 1fr); } }
.fit-model-photo { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px; max-width: 320px; }
.fit-model-photo img { width: 100%; height: auto; display: block; }
.fit-model-facts { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.fit-model-facts li { max-width: 100%; overflow-wrap: anywhere; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .86rem; }
.fits-subhead { font-family: var(--font-heading); font-size: 1.3rem; margin: 0 0 14px; }
.fits-or, .fits-group-head { margin-top: 36px; }
.fits-title-type { font-size: .6em; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .fit-brand-card, .fit-model-card { transition: none; } .fit-brand-card:hover, .fit-model-card:hover { transform: none; } }
/* finder: brand and model cards */
.quiz-brands { grid-template-columns: repeat(auto-fill, minmax(min(170px, calc(50% - 6px)), 1fr)); }
@media (max-width: 559px) { .quiz-card-img.is-logo { height: 40px; } .quiz-brand-option { min-height: 72px; } }
.quiz-brand-option { justify-content: center; min-height: 84px; }
.quiz-brand-option .quiz-option-label { font-size: 1rem; letter-spacing: .02em; }
.quiz-card-img.is-logo { aspect-ratio: auto; height: 56px; background: none; display: grid; place-items: center; }
.quiz-card-img.is-logo img { width: auto; max-width: 80%; height: 100%; object-fit: contain; }
.quiz-card-img.is-photo img { object-fit: contain; }


/* ==========================================================================
   Two-row header, wordmark, breadcrumbs and type details (The Luggage Parts
   Authority's design, docs/DESIGN.md). All colours and fonts still come from
   /theme.css, so Appearance edits apply here too.
   ========================================================================== */
.btn, .nav-bar .nav a, .nav-bar .nav-dd-toggle {
  font-family: var(--font-heading); text-transform: var(--heading-case, none);
}
.btn { font-weight: var(--heading-weight); letter-spacing: .06em; }
.prose a, .page-body a, .listing-intro a, .footer-contact a { color: var(--link); }

.layout-two-row { position: relative; z-index: 30; border-bottom: 0; }
.layout-two-row .header-top {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px;
}
.layout-two-row .brand { justify-self: auto; color: var(--header-text); }
.layout-two-row .header-right { margin-left: auto; gap: 8px; }
.layout-two-row .search-toggle { display: inline-flex; }
.layout-two-row .menu-toggle { color: var(--nav-text); }
.wordmark-split { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-heading); text-transform: uppercase; }
.wordmark-the { color: var(--accent); font-size: .95rem; font-weight: 600; letter-spacing: .32em; }
.wordmark-name { color: var(--header-text); font-size: 1.85rem; font-weight: 700; letter-spacing: .02em; margin-top: 2px; white-space: nowrap; }

.nav-bar { background: var(--nav-bg); color: var(--nav-text); position: relative; }
.nav-bar-inner { display: flex; align-items: center; min-height: 48px; }
.nav-bar .nav { display: none; }
.nav-bar .nav a, .nav-bar .nav-dd-toggle {
  display: block; padding: 14px 0; font-weight: 450; font-size: 1.05rem; letter-spacing: .08em;
  color: var(--nav-text); text-decoration: none; border-bottom: 0;
}
.nav-bar .nav a:hover, .nav-bar .nav-dd-toggle:hover, .nav-bar .nav a.is-current { color: var(--accent); }
.nav-bar .nav-dd-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav-bar .nav-dd-menu {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); min-width: 220px;
}
.nav-bar .nav-dd-menu a {
  padding: 8px 16px; color: var(--text); font-family: var(--font-body); font-weight: var(--body-weight, 400);
  text-transform: none; letter-spacing: normal; font-size: 1rem;
}
.nav-bar .nav-dd-menu a:hover { background: var(--surface); color: var(--text); }
.nav-soon { margin-left: 6px; font-size: .8em; color: var(--muted); }

@media (min-width: 900px) {
  .nav-bar .nav { display: flex; gap: 40px; align-items: center; }
  .nav-bar .menu-toggle { display: none; }
}
@media (max-width: 720px) {
  .layout-two-row .header-top { padding: 12px 16px; }
  .wordmark-name { font-size: clamp(1rem, 5.6vw, 1.6rem); }
}

.breadcrumbs {
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 6px max(16px, calc((100% - var(--content-width)) / 2 + 24px));
}
.breadcrumb-back {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 4px; color: var(--muted);
}
.breadcrumb-back:hover { background: var(--border); color: var(--text); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 auto 0 0; padding: 0; font-size: 1rem; font-weight: 400; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--border); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); }
.breadcrumbs li[aria-current="page"] { color: var(--text); font-weight: 600; }

/* LPA banner headline: scales with the screen so its two lines always fit
   (the divisor is tuned for "you've come to the right place."; re-check it if
   the words change). Only for the all-caps changing-word banner. */
.feature-rotator.is-caps .feature-heading { font-size: min(2.5rem, calc((100vw - 48px) / 15.8)); }


/* ==========================================================================
   LPA hub, picker, catalog and search panel (ported from the original
   public/style.css; colours/fonts from /theme.css). Templates: views/lpa.
   ========================================================================== */
.search-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.search-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  margin-bottom: -1px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.search-tab:hover { color: var(--text); }
.search-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.search-tab-count { color: var(--muted); font-weight: 400; }
.search-tab.is-active .search-tab-count { color: var(--muted); }
.search-results-panel { display: flex; flex-direction: column; gap: 2px; max-width: 480px; }
.search-results-panel.search-results-wide { max-width: none; }
/* Author display:flex above beats the UA [hidden]{display:none} rule (author
   styles win over UA styles regardless of specificity) — restore it
   explicitly so the inactive tab panels actually collapse. */
.search-results-panel[hidden] { display: none; }
.search-result-link { display: block; padding: 8px 16px; border-radius: var(--radius); color: var(--text); }
.search-result-link:hover { background: var(--surface); text-decoration: none; }
.search-result-sub { color: var(--muted); font-weight: 400; }

/* ---- Diagnostic funnel (homepage Step 1, part-type Step 2) -------- */

.diagnostic-step { margin-top: 48px; }
.diagnostic-step h1, .diagnostic-step h2 { margin: 0 0 24px; }
.step-eyebrow { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 0 0 8px; }

/* flex (not grid) so a tile shrink-wraps to its own icon+label instead of
   stretching to fill the row — matters now that there's often just one
   tile (Wheels only, for now), which used to stretch to a huge fixed width. */
.diagnostic-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.diagnostic-tile {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.diagnostic-tile:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); text-decoration: none; }
.diagnostic-icon { color: var(--link); display: flex; }
.diagnostic-icon svg { width: 32px; height: 32px; }
.diagnostic-label { font-weight: 700; font-size: 1.1rem; }
.diagnostic-caption { display: block; color: var(--muted); font-size: 0.9rem; }

.fork-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 640px;
}
.fork-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.fork-tile:hover { border-color: var(--accent); text-decoration: none; }
.fork-icon { color: var(--link); }
.fork-label { font-weight: 700; font-size: 1.1rem; }
.fork-caption { color: var(--muted); font-size: 0.85rem; }
.fork-back { margin-top: 24px; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  max-width: 900px;
}
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.brand-tile:hover { border-color: var(--accent); text-decoration: none; }
.brand-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-tile-fallback { font-weight: 700; color: var(--text); text-align: center; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  max-width: 960px;
}
.model-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.model-card:hover { border-color: var(--accent); text-decoration: none; }
.model-card-image {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.model-card-image img { width: 100%; height: 100%; object-fit: contain; }
.model-card h3 { margin: 0 0 4px; font-size: 1rem; }
.model-card-meta { margin: 0; color: var(--muted); font-size: 0.85rem; }

.content-page-text { max-width: 60ch; color: var(--text); margin: 0 0 16px; }


.fit-badge { color: var(--success, #1a7f37); font-size: 0.85rem; font-weight: 600; }
.empty-state { color: var(--muted); }

/* ---- One-page picker on a category hub ---------------------------------
   Step 1 (part) -> step 2 (brand, greyed out until a part is picked) ->
   step 3 (model). See initFunnel() in app.js. */
.funnel-step { margin-top: 48px; }
.funnel-step h2 { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.funnel-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1.1rem;
}
.funnel-hint { color: var(--muted); margin: 0 0 24px; }

/* Menu 1: the chosen part */
.funnel-part { position: relative; flex-direction: column; text-align: center; min-width: 160px; }
.funnel-part.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--surface); }
.coming-soon {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 8px;
  text-transform: none;
  letter-spacing: 0.01em;
}

/* Menu 2 before a part is chosen: visibly there, visibly not usable */
.funnel-step.is-disabled h2,
.funnel-step.is-disabled .brand-grid { opacity: 0.4; }
.funnel-step.is-disabled .brand-grid { filter: grayscale(1); pointer-events: none; user-select: none; }
.brand-tile.ghost { background: var(--surface); border-style: dashed; }
.brand-tile.funnel-brand.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.brand-tile-unsure { border-style: dashed; color: var(--muted); }
.brand-tile-unsure:hover { color: var(--text); }

/* Picker layout: compact grids so menu 1 and the start of menu 2 fit on one
   phone screen (3 part tiles across, 2 brand/model tiles across). */
.funnel .diagnostic-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 720px; }
.funnel .funnel-part { min-width: 0; }
.funnel .brand-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.funnel .model-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
@media (max-width: 600px) {
  .funnel .diagnostic-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .funnel .diagnostic-tile { padding: 16px 8px; gap: 8px; }
  .funnel .diagnostic-label { font-size: 0.95rem; }
  .funnel-step { margin-top: 32px; }
}

/* "(optional)" hint next to a form label */
.optional { color: var(--muted); font-weight: 400; }

/* Generation / production years under a model in "Confirmed compatible with" */
.compat-detail { display: block; color: var(--muted); font-size: 0.95rem; font-weight: 400; }
/* ...and inline next to the model name in the admin's compatibility checkboxes */
.checkbox-label .compat-detail { display: inline; margin-left: 8px; }

/* Admin products list: the "Fits" column */
.fits-list { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.fits-list li + li { margin-top: 2px; }
.fits-none { color: var(--muted); font-size: 0.95rem; }

/* ---- Full catalog page -------------------------------------------------
   Toolbar (search + phone "Filters" button), left filter sidebar, product
   grid. Filtering is done by initCatalog() in app.js. */
.catalog h1 { margin: 0 0 24px; }
.catalog-toolbar { display: flex; gap: 16px; max-width: 720px; }
.catalog-toolbar input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font: inherit;
  background: #fff;
}
.catalog-filters-toggle { display: none; align-items: center; gap: 8px; }
.catalog-filter-count {
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 999px;
  min-width: 22px;
  padding: 0 6px;
  font-size: 0.85rem;
  text-align: center;
}
.catalog-count { color: var(--muted); margin: 16px 0 24px; }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.catalog-layout.no-filters { grid-template-columns: 1fr; }
.catalog-filters { display: grid; gap: 24px; }
.catalog-group { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0; background: var(--bg); }
.catalog-group legend { padding: 0 8px; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.catalog-check { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; font-weight: 400; cursor: pointer; }
.catalog-check.is-empty { color: var(--muted); }
.catalog-models { margin: 0 0 8px 24px; padding-left: 8px; border-left: 2px solid var(--border); }
.catalog .product-grid { margin-top: 0; }
.catalog-item[hidden], .catalog-empty[hidden] { display: none; }
.link-button { background: none; border: none; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font-family: var(--font-body); font-size: inherit; font-weight: 400; text-transform: none; letter-spacing: normal; }
.link-button:hover { background: none; border: none; }

/* "coming soon" tag in the nav dropdown and catalog filters */
.soon { color: var(--muted); font-size: 0.85rem; font-weight: 400; text-transform: none; letter-spacing: 0.01em; }
.dropdown .soon { margin-left: 4px; }


@media (max-width: 780px) {
  .catalog-filters-toggle:not([hidden]) { display: inline-flex; }
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
  .catalog-filters { display: none; }
  .catalog-filters.is-open { display: grid; }
}
@media (max-width: 720px) {
  .dropdown .soon { color: rgba(243, 243, 244, 0.65); }
}

/* ---- LPA pages on this app's markup (views/lpa) ---- */
.lpa-page { padding-top: 32px; padding-bottom: 64px; }
.lpa-page h1 { margin: 0 0 24px; }
.lpa-intro { text-align: center; padding: 16px 0 8px; }
.lpa-intro h1 { margin-bottom: 8px; }
.lpa-intro p { color: var(--muted); margin: 0 auto; max-width: 60ch; }
.lpa-intro .lpa-skip { margin-top: 16px; }
.lpa-intro .lpa-skip a, .content-page-text a, .fork-back a { color: var(--link); }
.funnel-step > h2 { font-size: 1.4rem; }
.step-eyebrow { margin: 0 0 8px; }
.catalog-top { display: flex; gap: 16px; max-width: 720px; }
.catalog-search { flex: 1; min-width: 0; }
.catalog-search input { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; background: #fff; font-size: 1rem; }
.catalog-filters fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0; background: var(--bg); }
.catalog-filters legend { padding: 0 8px; font-family: var(--font-heading); text-transform: var(--heading-case, none); letter-spacing: .03em; font-weight: var(--heading-weight); }
.catalog-clear { background: none; border: 0; padding: 0; margin: 0; color: var(--link); text-decoration: underline; cursor: pointer; justify-self: start; }
.lpa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.lpa-card-wrap .fit-badge { margin: 6px 0 0; }
.fit-badge { color: var(--success, #1a7f37); font-size: 1rem; font-weight: 600; }
.search-panel-results { padding-bottom: 16px; }
.search-panel-results:empty { display: none; }
.search-tabs { margin-top: 4px; }
.search-group { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.search-group .search-products { margin-top: 8px; }
.search-none { color: var(--muted); margin: 8px 0 0; }
.search-all { display: inline-block; margin-top: 12px; color: var(--link); }
.search-result-link { text-decoration: none; color: var(--text); }

/* With the breadcrumb bar on, pages' own inline trails would repeat it. */
.has-crumb-bar .breadcrumb { display: none; }
/* Tiles and cards are whole-card links: no underlined labels. */
.diagnostic-tile, .fork-tile, .brand-tile, .model-card, .search-result-link { text-decoration: none; color: inherit; }
.model-card h3 { font-size: 1.15rem; }
