@font-face {
  font-family: DM;
  src: url('/assets/fonts/dm-sans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pine: #203f30;
  --pine-dark: #152d21;
  --pine2: #2b523f;
  --ink: #162019;
  --muted: #536258;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-subtle: #eef1eb;
  --line: #dce2d7;
  --line-strong: #c2ccc0;
  --pale: #e6efe6;
  --red: #af2b1e;
  --sans: DM, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: DM, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.035);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.075);
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 450 16px/1.55 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.06;
  color: var(--ink);
}

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.036em;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

a {
  color: var(--pine);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

button, input, select {
  font: inherit;
}

button, .btn {
  cursor: pointer;
}

main:focus, main:focus-visible {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.wrap {
  width: min(1360px, calc(100% - clamp(28px, 5vw, 72px)));
  margin-inline: auto;
}

/* Eyebrow & Technical Labels */
.eyebrow, .micro, .section-name, .product-type, .delivery-tag {
  display: inline-block;
  font: 600 0.72rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 0.4rem;
  color: var(--pine);
}

/* Header: Exact #203f30 Lokgrün so h0licek.svg blends 100% seamlessly */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #203f30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

main {
  flex: 1;
  padding-bottom: clamp(44px, 6vw, 80px);
}

.top {
  display: flex;
  gap: clamp(12px, 2.4vw, 36px);
  align-items: center;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  margin-left: -6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.brand img {
  width: 142px;
  display: block;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.top nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.top nav a[aria-current] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
}

.header-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.lang-switch button,
.lang-switch a {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.05em;
  padding: 5px 7px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button:hover,
.lang-switch a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch button[aria-pressed="true"],
.lang-switch a[aria-current="true"],
.lang-switch a[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
}

.lang-switch button:focus-visible,
.lang-switch a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  font-weight: 550;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.cart-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.cart-link b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #ffffff;
  color: var(--pine);
  border-radius: 99px;
  font: 700 0.74rem/1 var(--mono);
}

/* Pill Link CTA */
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.pill-link::after {
  content: "→";
  font-family: var(--mono);
  transition: transform 0.16s ease;
}

.pill-link:hover {
  background: var(--surface-subtle);
  border-color: var(--ink);
}

.pill-link:hover::after {
  transform: translateX(2px);
}

/* Page Intro */
.intro {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: clamp(24px, 3.5vw, 42px) 0 24px;
}

.intro p {
  max-width: 56ch;
  color: var(--muted);
  margin: 8px 0 0;
}

.test-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 600 0.74rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.test-note::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 100%;
}

/* Studio Model Switcher */
.switch {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.switch button {
  flex: 1;
  min-width: 105px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
  padding: 10px 14px;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.switch button:hover {
  background: rgba(255, 255, 255, 0.65);
}

.switch button strong {
  font: 700 1.16rem/1.15 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.switch button small {
  font-size: 0.77rem;
  color: var(--muted);
}

.switch button[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--pine);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.switch button[aria-pressed="true"] strong {
  color: var(--pine);
}

/* Studio 2-Column Layout */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.studio > div {
  min-width: 0;
}

@media (min-width: 781px) {
  .studio > div:first-child {
    position: sticky;
    top: 84px;
  }
}

.stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f2f2ef;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
}

.stage [hidden] {
  display: none !important;
}

.stage-media {
  position: relative;
  height: clamp(280px, 30vw, 450px);
  background: radial-gradient(circle at 50% 48%, #f8f8f6 0%, #eaeae5 100%);
}

.stage-media model-viewer,
.stage-media .stage-photo {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.stage-media .stage-photo {
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  padding: 10px 16px;
}

.stage-media model-viewer {
  outline-offset: -4px;
  --poster-color: transparent;
  --progress-bar-color: var(--pine);
  --progress-bar-height: 2px;
  --progress-mask: transparent;
}

.stage-meta {
  position: absolute;
  z-index: 2;
  inset: 12px 14px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.stage-meta > span {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--ink);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-meta .view-switch {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.view-switch button,
.view-actions button {
  cursor: pointer;
  font: 600 0.78rem/1 var(--sans);
  min-height: 28px;
  padding: 5px 11px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-switch button[aria-pressed="true"] {
  background: var(--pine);
  color: #fff;
}

.stage figcaption {
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.83rem;
}

.stage figcaption span:first-child {
  min-width: 0;
}

.zoom {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  text-decoration: none;
}

.zoom:hover {
  border-color: var(--ink);
}

.view-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 6px 16px;
  border-top: 1px solid var(--line);
  background: #fafaf8;
}

.view-tip {
  font-size: 0.78rem;
  color: var(--muted);
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-actions button {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  min-width: 30px;
  background: var(--surface);
}

.view-actions button:hover {
  background: var(--surface-subtle);
}

.stage-open {
  overflow: hidden;
}

.stage.expanded {
  position: fixed;
  inset: 0;
  margin: 0;
  z-index: 40;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.stage.expanded .stage-media {
  height: auto;
  flex: 1 1 auto;
}

.studio-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 8px 16px;
  background: var(--surface);
}

.shot-counter, .save-photo {
  font: 500 0.79rem var(--mono);
}

.save-photo {
  margin-left: auto;
}

.model-info {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: minmax(96px, 0.85fr) 2.4fr;
  gap: 14px;
}

.model-info h3 {
  font-size: 1rem;
  color: var(--ink);
}

.model-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-return {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.product-return::after {
  content: "→";
  font-family: var(--mono);
}

.product-return:hover {
  text-decoration: underline;
}

.model-revision {
  display: block;
  margin-top: 6px;
  font: 500 0.74rem var(--mono);
  color: var(--muted);
}

/* Right Configuration Card */
.configuration {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.form-head h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  margin: 0 0 3px;
}

.form-head p {
  color: var(--muted);
  font: 500 0.8rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.amount {
  text-align: right;
  margin-left: auto;
}

.amount b {
  display: block;
  font: 700 clamp(1.3rem, 1.9vw, 1.7rem)/1.15 var(--mono);
  letter-spacing: -0.02em;
  color: var(--pine);
}

.amount small {
  font-size: 0.78rem;
  color: var(--muted);
}

fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.field {
  margin-top: 18px;
}

.field legend {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  padding: 0;
  margin-bottom: 8px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice {
  display: inline-flex;
  position: relative;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.choice span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.choice span small {
  font: 600 0.76rem var(--mono);
  color: var(--muted);
}

.choice span:hover {
  background: var(--surface-subtle);
  border-color: var(--ink);
}

.choice input:checked + span {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
  font-weight: 600;
}

.choice input:checked + span small {
  color: rgba(255, 255, 255, 0.82);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.pack-wagons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 12px;
}

.pack-wagons button {
  display: grid;
  text-align: left;
  gap: 3px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--ink);
  min-width: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pack-wagons button:hover {
  background: var(--surface-subtle);
}

.pack-wagons button[aria-pressed="true"] {
  border-color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--pine);
  background: var(--surface);
}

.pack-wagons small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.pack-editing {
  margin: 12px 0 4px;
  font: 600 0.75rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine);
}

.pack-calculation {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}

.pack-calculation div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 4px 0;
}

.pack-calculation dt {
  color: var(--muted);
}

.pack-calculation dd {
  margin: 0;
  font: 600 0.84rem var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Cargo Editor */
.cargo-editor {
  min-width: 0;
}

.cargo-rail {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  padding: 8px 12px;
}

.cargo-rail img {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: fill;
}

.cargo-rail div {
  display: flex;
  justify-content: space-between;
  font: 500 0.74rem var(--mono);
  color: var(--muted);
}

.cargo-picker {
  padding-top: 10px;
}

.cargo-editor label,
.trailer-choice {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--muted);
}

.trailer-choice {
  margin-top: 12px;
}

.cargo-editor select,
.trailer-choice select {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  min-width: 0;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 6px 10px;
}

.cargo-help {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 7px 0;
}

.cargo-seats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cargo-seats button {
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 600;
}

.cargo-seats button:hover:enabled {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.cargo-seats button:disabled {
  opacity: 0.4;
  cursor: default;
}

.cargo-items {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.cargo-items li {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(84px, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.cargo-remove {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 38px;
}

.cargo-families {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 4px 0 10px;
  flex-wrap: wrap;
}

.cargo-families button,
.studio-nav button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 6px 11px;
  font-size: 0.83rem;
  font-weight: 600;
}

.studio-nav button {
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
}

.cargo-families button[aria-pressed="true"] {
  background: var(--pine);
  color: #fff;
}

/* Buttons & Actionbar */
.actionbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.actionbar > div > small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  background: var(--pine);
  color: #fff;
  border: 1px solid var(--pine);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.btn:hover:not(:disabled) {
  background: var(--pine2);
  border-color: var(--pine2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn.secondary:hover:not(:disabled) {
  background: var(--surface-subtle);
  border-color: var(--ink);
}

.btn.short {
  font-size: 0.85rem;
  min-height: 36px;
  padding: 6px 12px;
}

.actionbar > .btn {
  flex: 1;
  min-width: 190px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  height: 46px;
  flex-shrink: 0;
}

.stepper button {
  background: none;
  border: 0;
  font-size: 1.15rem;
  color: var(--ink);
  height: 100%;
  width: 36px;
}

.stepper button:disabled {
  opacity: 0.32;
  cursor: default;
}

.stepper output {
  min-width: 26px;
  text-align: center;
  font: 600 0.92rem var(--mono);
  font-variant-numeric: tabular-nums;
}

.bottom-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Catalog & Base Model Cards with Inline Variant Chips */
.catalog-heading {
  padding: clamp(1.8rem, 3.6vw, 3rem) 0 1.5rem;
}

.catalog-heading p {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 64ch;
  font-size: 1.02rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card-media-link {
  display: block;
  text-decoration: none;
}

.card-media {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.variant-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.04em;
  border: 1px solid rgba(0, 0, 0, 0.09);
}

.card-media > img,
.product-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: center;
  padding: 8px 10px;
  background: #ffffff;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-main-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: center;
  padding: 10px 16px;
  background: #ffffff;
}

.product-card:hover .card-media > img {
  transform: scale(1.025);
}

.card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 11px;
  padding: 15px 17px 16px;
}

.card-top p {
  font: 600 0.7rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.card-top h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  margin-top: 3px;
}

.card-top h2 a {
  color: var(--ink);
  text-decoration: none;
}

.card-top h2 a:hover {
  color: var(--pine);
}

.card-blurb {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.48;
  color: var(--muted);
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.card-chips button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font: 600 0.73rem/1.1 var(--sans);
  padding: 5px 8px;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.card-chips button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.card-chips button[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.card-foot strong {
  font: 600 0.82rem var(--mono);
  color: var(--ink);
}

.card-arrow {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--pine);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.card-arrow::after {
  content: "↗";
  font-family: var(--mono);
}

.card-arrow:hover {
  text-decoration: underline;
}

/* 55-Variant Interactive Showroom Grid */
.variant-showcase {
  margin-top: clamp(44px, 5.5vw, 76px);
  padding-top: clamp(34px, 4.5vw, 56px);
  border-top: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.35rem;
}

.filter-bar button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font: 600 0.82rem/1.1 var(--sans);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-bar button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-bar button[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.variant-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.variant-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.variant-thumb {
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.variant-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: center;
  padding: 6px 8px;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.variant-card:hover .variant-thumb img {
  transform: scale(1.035);
}

.variant-body {
  padding: 11px 13px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
}

.variant-body small {
  font: 600 0.66rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.variant-body h3 {
  font-size: 0.95rem;
  font-weight: 680;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 6px;
}

.variant-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font: 500 0.74rem var(--mono);
  color: var(--muted);
}

.variant-go {
  font-weight: 700;
  color: var(--pine);
}

/* Product Detail Page */
.product-crumb {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 22px 0 18px;
}

.product-crumb a {
  text-decoration: none;
  font-weight: 550;
}

.product-crumb a:hover {
  text-decoration: underline;
}

.product-lead,
.product-data {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 52px);
  align-items: start;
}

.gallery-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.product-picture-caption {
  padding: 10px 16px;
  font: 500 0.78rem var(--mono);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.product-previews-head {
  margin: 12px 0 6px;
  font: 600 0.74rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.product-previews {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 210px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.product-previews button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 550;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-previews button:hover {
  border-color: var(--ink);
}

.product-previews button[aria-pressed="true"] {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
}

.product-previews img {
  display: block;
  width: 54px;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  padding: 2px;
  border-radius: 4px;
}

.product-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  margin: 0.25rem 0 0.65rem;
}

.spec-pills {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-pills li {
  font: 600 0.72rem/1.15 var(--mono);
  letter-spacing: 0.03em;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
}

.product-description {
  font-size: 0.98rem;
  line-height: 1.62;
  color: #2c2f2d;
  max-width: 58ch;
}

.product-offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.product-price {
  font: 700 clamp(1.45rem, 2.2vw, 1.9rem)/1.15 var(--mono);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-offer p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 6px 0 14px;
}

.promo-callout a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 6px;
  background: #fdf2f0;
  border: 1px solid #ecc6c1;
  color: var(--red);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
}

.promo-callout a::after {
  content: "→";
  font-family: var(--mono);
}

.stacked-choices {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 9px !important;
}

.stacked-choices .btn {
  width: 100%;
  min-height: 48px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
}

.product-prototype {
  margin-top: clamp(24px, 3.5vw, 40px);
}

.product-prototype h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}

.prototype-sub {
  margin: 0 0 1.05rem;
  font: 600 0.76rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.prototype-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.8vw, 38px);
}

.prototype-cols p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2b2e2c;
}

.product-highlights {
  margin-top: clamp(20px, 2.8vw, 32px);
}

.product-highlights h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.product-highlights ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 0.65rem;
}

.product-highlights li {
  padding-left: 0.25rem;
  line-height: 1.5;
  color: #2b2e2c;
}

.product-highlights li::marker {
  color: var(--pine);
}

.product-data {
  margin-top: clamp(20px, 2.8vw, 32px);
}

.product-data h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.product-data p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

.product-dim table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 14px;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.product-dim th,
.product-dim td {
  border-bottom: 1px solid var(--line);
  padding: 10px 6px;
  text-align: right;
  vertical-align: top;
}

.product-dim td {
  font-family: var(--mono);
  font-size: 0.86rem;
}

.product-dim th:first-child {
  padding-left: 0;
  text-align: left;
}

.product-dim thead th {
  font: 600 0.74rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.product-dim .dim-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.product-spec dl {
  margin: 1rem 0 0;
  font-size: 0.91rem;
}

.product-spec dl div {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) 2.1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.product-spec dt {
  font-weight: 650;
  color: var(--ink);
}

.product-spec dd {
  margin: 0;
  color: var(--muted);
}

/* Cart, Checkout & Flow */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.9fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: start;
}

.panel,
.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 30px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel h2,
.summary h2 {
  font-size: 1.55rem;
  margin-bottom: 16px;
}

.summary {
  background: var(--surface-subtle);
}

.summary dl,
.summary dd {
  margin: 0;
}

.summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.summary dd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.summary .total {
  border-top: 1px solid var(--line-strong);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.12rem;
}

.summary .btn {
  width: 100%;
  margin-top: 16px;
}

.cart-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.cart-row:first-of-type {
  border-top: 0;
}

.cart-thumb {
  width: 100%;
  height: 76px;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.small,
.cart-row p {
  font-size: 0.87rem;
  color: var(--muted);
}

.cart-row p {
  margin-top: 5px;
}

.cart-row h3 + p,
.booked-lines small,
.receipt-line small {
  white-space: pre-line;
}

.line-price {
  white-space: nowrap;
  font: 700 0.95rem var(--mono);
  color: var(--ink);
}

.rowtools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.textbtn {
  color: var(--pine);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 3px 0;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.textbtn:hover {
  color: var(--pine2);
}

.alert {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border-left: 3px solid var(--pine);
  font-size: 0.9rem;
}

.alert a {
  font-weight: 650;
}

.error {
  color: #842418;
  background: #fbebe4;
  border-color: var(--red);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fields label {
  font-size: 0.86rem;
  font-weight: 600;
}

.fields label.wide {
  grid-column: 1 / -1;
}

.fields input {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 12px;
  min-height: 44px;
  border-radius: var(--radius-sm);
}

.fields input:focus {
  background: var(--surface);
  border-color: var(--pine);
}

.panel-section + .panel-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.panel-section h3 {
  margin-bottom: 10px;
}

.progress {
  margin-top: 26px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 500 0.78rem var(--mono);
}

.progress span:not(:last-child)::after {
  content: ' /';
  color: #9b9e9b;
  margin-left: 8px;
}

.progress strong {
  color: var(--pine);
}

.progress + .intro {
  margin-top: 14px;
}

.empty {
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  max-width: 540px;
}

.empty p,
.confirmation p {
  color: var(--muted);
  margin: 8px 0 18px;
}

.receipt-line {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.receipt-line strong {
  display: block;
}

.payment-total {
  font: 700 2.6rem/1.15 var(--mono);
  color: var(--ink);
  margin: 10px 0;
}

.payment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.order-row:first-of-type {
  border-top: 0;
}

.order-row h3 {
  margin-bottom: 4px;
}

dialog {
  border: 1px solid var(--line);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  width: min(920px, 93vw);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

dialog::backdrop {
  background: rgba(15, 17, 16, 0.72);
  backdrop-filter: blur(4px);
}

dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.dialoghead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.dialoghead button {
  border: 0;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--ink);
  min-width: 36px;
  min-height: 34px;
  font-size: 1.15rem;
}

.checkout-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
}

/* Footer */
footer.site-footer {
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 14px 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.foot-brand strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.96rem;
}

.foot-brand span {
  font: 500 0.76rem var(--mono);
  color: var(--muted);
}

.foot-links {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.foot-links a:hover {
  color: var(--pine);
  text-decoration: underline;
}

.foot-links a.foot-yt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.foot-links a.foot-yt svg {
  color: #af2b1e;
  flex-shrink: 0;
}

.foot-meta {
  font: 500 0.75rem var(--mono);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.skip, .sr {
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
}

.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  z-index: 50;
  background: var(--surface);
  padding: 12px 16px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .variant-grid:not(.inspiration-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .top {
    gap: 12px;
  }
  .brand img {
    width: 124px;
  }
  .top nav a {
    padding: 6px 9px;
    font-size: 0.85rem;
  }
  .header-tools {
    gap: 8px;
  }
  .lang-switch button,
  .lang-switch a {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
}

@media (max-width: 960px) {
  .product-grid,
  .variant-grid.inspiration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
  }
  .product-lead,
  .product-data {
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 780px) {
  .studio,
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .product-lead,
  .product-data,
  .prototype-cols,
  .product-highlights ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .top {
    gap: 10px;
    padding-block: 8px;
  }
  .brand img {
    width: 114px;
  }
  .top nav a {
    padding: 5px 10px;
    font-size: 0.83rem;
  }
  .cart-link span {
    display: none;
  }
  .cart-link {
    padding: 6px 8px;
  }
  .model-info {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .product-grid,
  .variant-grid,
  .variant-grid.inspiration-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .cart-row {
    grid-template-columns: 1fr auto;
  }
  .cart-thumb {
    display: none;
  }
  .checkout-foot {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .cargo-items li {
    grid-template-columns: minmax(0, 1.6fr) minmax(88px, 1fr);
  }
  .cargo-remove {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 24px;
    padding: 0;
  }
}

@media (max-width: 680px) {
  .top {
    flex-wrap: wrap;
    padding-block: 8px;
  }
  .top nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}
