/* ═══════════════════════════════════════════════════════════════
   UniPod Showroom — Product / model page + compare styles (Tester 1)
   ═══════════════════════════════════════════════════════════════ */

/* ── Model hero ── */
.model-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 40px) 0 0;
  overflow: hidden;
}
.model-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.model-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--void) 0%, rgba(14, 13, 11, 0.55) 40%, rgba(14, 13, 11, 0.3) 100%);
}
.model-hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: 48px; }
.model-hero__series {
  font-family: var(--font-spec);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.model-hero__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(48px, 7.5vw, 100px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: var(--cream);
  margin-top: 12px;
}
.model-hero__tagline {
  font-size: 17px;
  font-weight: 400;
  color: var(--dust);
  max-width: 480px;
  margin-top: 18px;
  line-height: 1.6;
}
.model-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ── Spec bar ── */
.spec-bar {
  position: relative;
  z-index: 3;
  background: var(--earth-dark);
  border-top: 2px solid var(--ember);
  border-bottom: 1px solid var(--earth-mid);
}
.spec-bar__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-bar__cell { padding: 26px 20px; text-align: center; border-right: 1px solid var(--earth-mid); }
.spec-bar__cell:last-child { border-right: none; }
.spec-bar__val { font-family: var(--font-spec); font-size: 19px; color: var(--cream); }
.spec-bar__lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: 6px;
}

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 8px;
}
.gallery-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  padding: 0;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.gallery-grid__item:hover img { transform: scale(1.05); }
.gallery-grid__item--wide { grid-column: span 2; }
.gallery-grid__item--tall { grid-row: span 2; }

/* ── Spec table ── */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.spec-table th, .spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--earth-mid);
}
.spec-table th {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-on-dark-sub);
  width: 40%;
}
.spec-table td { font-family: var(--font-spec); font-size: 14px; color: var(--cream); }
.spec-table__group td {
  font-family: var(--font-spec);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ember);
  padding-top: 36px;
  border-bottom: 1px solid var(--earth-line);
}

/* ── Compare table ── */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 48px;
  border: 1px solid var(--earth-mid);
  border-radius: var(--radius-lg);
}
.compare-table { width: 100%; min-width: 900px; border-collapse: collapse; background: var(--earth-dark); }
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--earth-mid);
  border-right: 1px solid var(--earth-mid);
  font-size: 14px;
}
.compare-table th:first-child, .compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--earth-dark);
  text-align: left;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-on-dark-sub);
  min-width: 180px;
  box-shadow: 1px 0 0 var(--earth-mid);
}
.compare-table td { font-family: var(--font-spec); color: var(--cream); }
.compare-table thead th { vertical-align: bottom; padding: 22px 18px; background: var(--void); }
.compare-table thead img {
  width: 150px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto 12px;
}
.compare-table__model {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cream);
  display: block;
}
.compare-table__section td {
  background: var(--void);
  font-family: var(--font-spec);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ember);
  text-align: left;
  position: static !important;
}
.compare-table__section td:first-child { background: var(--void); }
.compare-table tbody tr:hover td { background: var(--earth-mid); }
.compare-table tbody tr:hover td:first-child { background: var(--earth-mid); }
.compare-table__section:hover td { background: var(--void) !important; }
.compare-table .dash { color: var(--stone); }

/* ── Range filter tabs ── */
.range-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--earth-dark);
  border: 1px solid var(--earth-mid);
  border-radius: var(--radius-lg);
  margin-top: 36px;
}
.range-tab {
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-on-dark-sub);
  border-radius: var(--radius);
  transition: background var(--duration-sm) var(--ease), color var(--duration-sm) var(--ease);
}
.range-tab:hover { color: var(--cream); }
.range-tab.is-active { background: var(--ember); color: #fff; }
.range-note { font-size: 13px; color: var(--text-on-dark-muted); margin-top: 16px; }
[data-licence].is-hidden { display: none; }

/* ── Service cards ── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.service-card {
  padding: 34px 30px 36px;
  background: var(--earth-dark);
  border: 1px solid var(--earth-mid);
  border-top: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-top-color: var(--ember); }
.service-card__num { font-family: var(--font-spec); font-size: 12px; color: var(--ember); letter-spacing: 2px; }
.service-card__head {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 12px;
}
.service-card__body {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-on-dark-sub);
  margin-top: 10px;
  line-height: 1.7;
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 90px);
  margin-top: 56px;
}
.contact-info__item { padding: 24px 0; border-bottom: 1px solid var(--earth-mid); }
.contact-info__item:first-child { padding-top: 0; }
.contact-info__lbl {
  font-family: var(--font-spec);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember);
}
.contact-info__val { font-size: 16px; color: var(--cream); margin-top: 8px; line-height: 1.6; }
.contact-info__val a { color: var(--cream); transition: color var(--duration-sm); }
.contact-info__val a:hover { color: var(--ochre-light); }
.contact-info__val small { display: block; font-size: 13px; color: var(--text-on-dark-sub); }

/* ── Related ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-auto-rows: 220px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .model-hero { min-height: 72vh; }
  .spec-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .spec-bar__cell:nth-child(2n) { border-right: none; }
  .spec-bar__cell:nth-child(-n+2) { border-bottom: 1px solid var(--earth-mid); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-grid__item--wide { grid-column: span 2; }
  .contact-layout { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Gallery "load more" ── */
.gallery-grid__item--extra { display: none; }
