/* AirPrice storefront — single source of visual truth */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body {
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--fw-body);
  line-height: var(--leading-normal);
  letter-spacing: -0.011em;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  touch-action: pan-y;
}

img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
.hidden { display: none !important; }

#app {
  width: 100%;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
}

#app.model-open { padding-bottom: calc(88px + var(--safe-b)); }

:is(.btn, .family-chip, .tab, .nav-back, .topbar-icon, .hero-slide, .billboard, .cat-tile, .cfg-chip, .cfg-swatch, .cfg-thumb, .cfg-offer, .contact-card, .nav-cta, .linkish) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
  padding-top: var(--safe-t);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  flex: 0 0 auto;
  color: inherit;
  min-width: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-accent { color: var(--muted); font-weight: 400; }

.topbar-model-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-families {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.nav-families button {
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}

.nav-families button.active,
.nav-families button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-search {
  display: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  width: 220px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
}

.nav-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  min-width: 0;
}

.nav-search input::placeholder { color: var(--muted); }

.nav-back,
.topbar-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 8px 4px;
}

/* ── Screens ── */
.screen { display: none; }
.screen.active {
  display: block;
  animation: fade-in var(--dur-screen) var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Full-width hero slideshow ── */
.hero-stage {
  position: relative;
  margin-bottom: 12px;
  background: #fff;
}

.billboard-wrap {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.billboard-wrap::-webkit-scrollbar { display: none; }

.billboard {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  color: var(--fg);
  text-align: center;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: min(78vh, 620px);
  position: relative;
  cursor: pointer;
  box-shadow: none;
}

.billboard-copy {
  position: relative;
  z-index: 2;
  padding: 36px 24px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 28em;
  margin: 0 auto;
}

.billboard-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.billboard-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.billboard-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.4;
}

.billboard-cta {
  margin-top: 8px;
  align-self: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 500;
}

.billboard-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 240px;
  padding: 8px 20px 56px;
  background: #fff;
}

.billboard-visual img {
  max-height: min(46vh, 400px);
  width: auto;
  max-width: 92%;
  object-fit: contain;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  z-index: 4;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  transition: width var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out);
}

.hero-dots button.active {
  width: 22px;
  border-radius: 99px;
  background: var(--fg);
}

.hero-nav {
  display: none;
}

.hero-slide {
  display: none;
}

/* ── Home blocks ── */
.home-block { padding: 12px 0 8px; }

.home-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--pad) 14px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.home-block-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.linkish {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.intro-sub { color: var(--muted); font-size: 14px; }

/* ── Categories ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--pad) 12px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.cat-tile {
  border: 0;
  background: var(--surface);
  border-radius: 22px;
  padding: 18px 16px 12px;
  text-align: left;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.cat-tile strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cat-tile span { font-size: 12px; color: var(--muted); }

.cat-tile .cat-thumb {
  margin-top: auto;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cat-tile .cat-thumb img {
  max-height: 72px;
  max-width: 78%;
  object-fit: contain;
}

.cat-tile .ph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
}

/* ── Family chips ── */
.family-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--pad) 16px;
  scrollbar-width: none;
  scroll-padding-inline: var(--pad);
  width: min(1120px, 100%);
  margin: 0 auto;
}
.family-bar::-webkit-scrollbar { display: none; }

.family-chip {
  flex-shrink: 0;
  border: 0;
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

.family-chip.active {
  background: var(--fg);
  color: #fff;
}

/* ── Cards ── */
.model-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 var(--pad) 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.model-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  contain-intrinsic-size: 280px;
  isolation: isolate;
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}

.model-card:active { transform: scale(0.98); }

.model-card-media {
  position: relative;
  aspect-ratio: 1;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.model-card-gallery {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.model-card-gallery::-webkit-scrollbar { display: none; }

.model-card-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-card-media img,
.model-card-slide img {
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 480ms var(--ease-out);
}

.model-card-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.model-card-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}
.model-card-dots span.active { background: rgba(0, 0, 0, 0.7); }

.model-card-photo-count { display: none !important; }

.model-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.family-tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.model-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.model-card .meta { font-size: 13px; color: var(--muted); min-height: 1.2em; }

.model-card .price {
  margin-top: auto;
  padding-top: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.model-card .more { display: none; }

.feed-section-head {
  grid-column: 1 / -1;
  padding: 10px 0 4px;
}

.feed-section-head h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.feed-section-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }

.feed-sentinel {
  grid-column: 1 / -1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.feed-sentinel[data-state="done"] { display: none; }

.novelties-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 var(--pad) 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-padding-inline: var(--pad);
}
.novelties-rail::-webkit-scrollbar { display: none; }
.novelties-rail .model-card {
  flex: 0 0 min(46%, 210px);
  scroll-snap-align: start;
}

/* ── Consult ── */
.consult-strip {
  width: min(1120px, calc(100% - 2 * var(--pad)));
  margin: 8px auto 32px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.consult-strip strong { display: block; font-size: 17px; font-weight: 600; }
.consult-strip span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Buttons ── */
.btn {
  height: 48px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  padding: 0 18px;
}
.btn-fill { background: var(--accent); color: #fff; }
.btn-fill:active { background: var(--accent-press); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-sm { height: 40px; font-size: 14px; border-radius: var(--radius-pill); padding: 0 18px; flex-shrink: 0; }

/* ── Search ── */
.search-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px 0 40px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 var(--pad);
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.search-field svg { color: var(--muted); flex-shrink: 0; }
.search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  min-width: 0;
}

.search-heading {
  padding: 20px var(--pad) 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state p { font-size: 18px; font-weight: 600; color: var(--fg); }

/* ── Product page ── */
.pdp { width: 100%; }

.cfg-hero {
  position: relative;
  background: #fafafa;
  height: min(420px, 56vh);
  overflow: hidden;
}

.cfg-gallery {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.cfg-gallery::-webkit-scrollbar { display: none; }

.cfg-gallery-track { display: flex; height: 100%; }

.cfg-gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfg-gallery-slide img {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.cfg-hero.is-fading .cfg-gallery-slide img {
  animation: photo-crossfade var(--dur-ui) var(--ease-out) both;
}
@keyframes photo-crossfade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cfg-gallery-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.cfg-gallery-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
}
.cfg-gallery-dots span.active { background: var(--fg); }

.cfg-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px var(--pad);
  background: #fafafa;
  scrollbar-width: none;
}
.cfg-thumbs::-webkit-scrollbar { display: none; }

.cfg-thumb {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.cfg-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cfg-thumb.active { border-color: var(--fg); }

.cfg-hero-ph {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 16px;
  background: var(--bg);
}

.cfg-body {
  padding: 24px var(--pad) 40px;
}

.cfg-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cfg-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.cfg-tagline {
  margin-top: 8px;
  font-size: 17px;
  color: var(--muted);
}

.cfg-price-block { margin: 20px 0 4px; }
.cfg-price {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.cfg-price-hint { margin-top: 4px; font-size: 14px; color: var(--muted); min-height: 1.2em; }

.cfg-article {
  margin-top: 8px;
  display: inline-flex;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 5px 10px;
}

.cfg-section { margin-top: 22px; }
.cfg-config .cfg-section { margin-top: 18px; }
.cfg-label { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

.cfg-options { display: flex; flex-wrap: wrap; gap: 8px; }

.cfg-chip {
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}
.cfg-chip.active { background: var(--fg); color: #fff; border-color: var(--fg); }
.cfg-chip:disabled { opacity: 0.28; cursor: not-allowed; }

.cfg-colors { display: flex; flex-wrap: wrap; gap: 12px; }
.cfg-swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  padding: 0;
  background-size: cover;
  background-position: center;
}
.cfg-swatch.active { box-shadow: 0 0 0 2px var(--fg); }
.cfg-color-name { margin-top: 10px; font-size: 14px; color: var(--muted); }

.cfg-offers { display: flex; flex-direction: column; gap: 8px; }
.cfg-offer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  font-size: 14px;
}
.cfg-offer.active { border-color: var(--accent); background: var(--accent-soft); }
.cfg-offer .o-price { font-weight: 600; flex-shrink: 0; }

.spec-table {
  display: grid;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  margin: 20px 0 12px;
  box-shadow: var(--shadow-xs);
}
.spec-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8px;
  padding: 12px 16px;
  border-top: 0.5px solid var(--line);
  font-size: 14px;
}
.spec-row:first-child { border-top: 0; }
.spec-row .sk { color: var(--muted); }
.spec-row .sv { font-weight: 600; text-align: right; }

.cfg-avail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg);
}
.cfg-avail-text { font-size: 14px; color: var(--muted); }

.cfg-desc:not(.hidden) {
  white-space: pre-wrap;
  color: var(--muted);
  margin: 12px 0 20px;
  max-width: 40em;
}

.cfg-specs { margin-top: 32px; }
.cfg-specs-lead { margin: 8px 0 16px; max-width: 40em; }
.cfg-specs-lead p { margin: 0 0 0.75em; }
.cfg-specs-summary {
  display: grid;
  margin: 0 0 20px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.cfg-specs-summary-row,
.cfg-specs-row {
  display: grid;
  grid-template-columns: minmax(7em, 38%) 1fr;
  gap: 10px 14px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--line);
  font-size: 14px;
}
.cfg-specs-summary-row .k,
.cfg-specs-row .k { color: var(--muted); }
.cfg-specs-group { margin: 0 0 20px; }
.cfg-specs-group h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cfg-specs-more {
  appearance: none;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
}

.cfg-note { margin-top: 24px; font-size: 13px; color: var(--muted); }

.cfg-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  padding: 12px var(--pad) calc(12px + var(--safe-b));
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid var(--line);
  z-index: 70;
}

/* ── Contact ── */
.contact-wrap {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 28px var(--pad) 48px;
}
.contact-wrap h2 {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 6px 0 10px;
}
.contact-lead { font-size: 16px; color: var(--muted); margin-bottom: 24px; }

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 20px 18px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--surface);
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.contact-card strong { font-size: 17px; font-weight: 600; }
.contact-card span { font-size: 14px; color: var(--muted); }
.contact-card em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.info-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
}
.info-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.info-card span { font-size: 13px; color: var(--muted); }

/* ── Tab bar ── */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid var(--line);
  padding-bottom: var(--safe-b);
  z-index: 75;
}

#app.model-open .tabbar { display: none; }

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 0 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.tab.active { color: var(--accent); }

/* ── Tablet ── */
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .novelties-rail .model-card { flex-basis: min(32%, 240px); }
  .billboard {
    flex-basis: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: min(70vh, 580px);
    text-align: left;
    align-items: stretch;
  }
  .billboard-copy {
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    max-width: none;
    padding: 48px 8% 48px 10%;
  }
  .billboard-cta { align-self: flex-start; }
  .billboard-visual {
    min-height: 0;
    align-items: center;
    padding: 32px 8% 32px 0;
  }
  .billboard-visual img { max-height: min(52vh, 460px); }
}

/* ── Desktop ── */
@media (min-width: 960px) {
  :root { --topbar-h: 48px; --tabbar-h: 0px; }

  #app { padding-bottom: 40px; }
  #app.model-open { padding-bottom: 40px; }

  .tabbar { display: none; }
  .topbar-icon { display: none; }

  .nav-families { display: flex; }
  .nav-search { display: flex; }
  .nav-cta {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 8px 16px;
  }

  #brand-title.hidden {
    display: block !important;
  }
  #topbar-model-title {
    display: none !important;
  }

  .billboard-wrap { padding: 0; }
  .billboard {
    flex-basis: 100%;
    min-height: min(72vh, 640px);
  }
  .billboard-title { font-size: 56px; }
  .billboard-visual img { max-height: min(56vh, 500px); }

  .hero-nav {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
    color: var(--fg);
  }
  .hero-nav-prev { left: 16px; }
  .hero-nav-next { right: 16px; }

  .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cat-tile { min-height: 170px; }
  .model-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

  .pdp {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    width: min(1180px, 100%);
    margin: 0 auto;
    align-items: start;
    gap: 8px;
  }

  .pdp-media {
    position: sticky;
    top: calc(var(--topbar-h) + var(--safe-t));
  }

  .cfg-hero {
    height: calc(100dvh - var(--topbar-h) - var(--safe-t) - 88px);
    min-height: 480px;
    max-height: 720px;
    border-radius: 0 0 0 24px;
    background: #f7f7f8;
  }

  .cfg-body {
    padding: 36px 40px 80px 24px;
    max-width: none;
  }

  .cfg-actions {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }

  .consult-strip { padding: 28px 32px; }

  @media (hover: hover) and (pointer: fine) {
    .model-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }
    .model-card:hover .model-card-media img { transform: scale(1.04); }
    .cat-tile:hover { transform: translateY(-2px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen.active, .model-card, .billboard, .cat-tile { animation: none !important; transition: none !important; }
  .cfg-gallery { scroll-behavior: auto; }
}
