@font-face {
  font-family: "SM Farbe Bai Jamjuree";
  src: url("assets/bai-jamjuree-v11-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SM Farbe Bai Jamjuree";
  src: url("assets/bai-jamjuree-v11-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

.sm-farbe-preview, .sm-farbe-detail {
  color-scheme: dark;
  --background: #090f18;
  --panel: #111d2c;
  --line: #32465e;
  --text: #f4f8ff;
  --muted: #c2d0e0;
  --blue: #91c8ff;
  --gold: #ffd477;
  --ink: #23180a;
  color: var(--text);
  font-family: "SM Farbe Bai Jamjuree", system-ui, sans-serif;
  line-height: 1.5;
}

.sm-farbe-preview *, .sm-farbe-detail *, .sm-farbe-preview *::before, .sm-farbe-detail *::before, .sm-farbe-preview *::after, .sm-farbe-detail *::after { box-sizing: border-box; }
.sm-farbe-preview {
  margin: 0;
  background: var(--background);
}

.sm-farbe-page .content-main { background: #000; }
.sm-farbe-page .content-main > .container { padding-inline: 0; }
.sm-farbe-page .sm-farbe-detail {
  padding-inline: var(--sm-page-edge, 40px);
  padding-block-end: 3rem;
}

.sm-farbe-detail h1, .sm-farbe-detail h2, .sm-farbe-detail h3, .sm-farbe-preview p, .sm-farbe-detail p, .sm-farbe-detail figure { margin: 0; }
.sm-farbe-preview img, .sm-farbe-detail img { display: block; max-width: 100%; }
.sm-farbe-preview a, .sm-farbe-detail a { color: inherit; }
.sm-farbe-preview :focus-visible, .sm-farbe-detail :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.sm-farbe-preview .shell { width: min(100% - 64px, 1320px); margin-inline: auto; }
.sm-farbe-preview .skip-link {
  position: absolute;
  z-index: 2;
  inset: 10px auto auto 10px;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--background);
}

.sm-farbe-preview .skip-link:focus { transform: translateY(0); }
.sm-farbe-preview .preview-header { border-bottom: 1px solid var(--line); }
.sm-farbe-preview .preview-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 12px;
}

.sm-farbe-preview .brand { width: 150px; height: auto; }
.sm-farbe-preview .preview-header nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.sm-farbe-preview .preview-header nav a {
  display: inline-block;
  padding-block: 7px;
  font-weight: 700;
  text-decoration: none;
}

.sm-farbe-preview .preview-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sm-farbe-preview .preview-label {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: .8125rem;
}

.sm-farbe-detail .hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  margin-top: 28px;
  border: 1px solid #345c82;
  background: radial-gradient(ellipse at 75% 58%, #174775, #13263f 50%, #0c1626 80%);
}

.sm-farbe-detail .hero-copy { align-self: center; padding: 42px 40px 44px 48px; }
.sm-farbe-detail .kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sm-farbe-detail .kicker::before { content: ""; width: 18px; height: 2px; flex: 0 0 18px; background: currentColor; }
.sm-farbe-detail h1, .sm-farbe-detail h2, .sm-farbe-detail h3 {
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.04;
}
.sm-farbe-detail h1 {
  margin-bottom: 18px;
  font-size: 5.5rem;
  letter-spacing: -.065em;
}

.sm-farbe-detail h1 span { display: block; color: var(--gold); }
.sm-farbe-detail .hero-description { max-width: 36ch; color: var(--muted); font-size: 1.125rem; }
.sm-farbe-detail .offer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  margin-top: 23px;
  padding: 6px 16px 9px;
  background: var(--gold);
  color: var(--ink);
  line-height: 1.05;
}

.sm-farbe-detail .offer-price { font-size: 3.375rem; letter-spacing: -.045em; }
.sm-farbe-detail .offer span:last-child { white-space: nowrap; }
.sm-farbe-detail .price-note { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.sm-farbe-detail .price-note a { text-underline-offset: 3px; }

.sm-farbe-detail .back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.sm-farbe-detail .back-link:hover { background: var(--blue); color: var(--background); }

.sm-farbe-detail .hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30%;
  align-items: center;
  aspect-ratio: 7 / 5;
  background: radial-gradient(ellipse at 69% 79%, #bd87374d, transparent 59%);
}

.sm-farbe-detail .hero-wheels {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 15px #07101c80);
}

.sm-farbe-detail .hero-spokes {
  display: grid;
  gap: 6px;
  padding-inline-end: 14px;
}

.sm-farbe-detail .hero-spokes img {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(55deg, transparent 9%, #000 33%);
}

.sm-farbe-detail .hero-spokes a { display: block; border-radius: 4px; }
.sm-farbe-detail .hero-spokes a:hover { background: #91c8ff1a; }
.sm-farbe-detail .hero-spokes a:nth-child(2) { transform: translateX(-8%); }

.sm-farbe-detail .specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.sm-farbe-detail .specs li { display: grid; gap: 2px; padding: 14px 22px; }
.sm-farbe-detail .specs li + li { border-left: 1px solid var(--line); }
.sm-farbe-detail .specs strong { font-size: 1.125rem; }
.sm-farbe-detail .specs span { color: var(--muted); font-size: .875rem; }

.sm-farbe-detail .section { margin-top: 66px; scroll-margin-top: 18px; }
.sm-farbe-detail .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: 24px;
}

.sm-farbe-detail .section-heading > p { max-width: 36ch; color: var(--muted); }
.sm-farbe-detail h2 { margin-top: 7px; font-size: 2.75rem; letter-spacing: -.04em; }
.sm-farbe-detail h3 { font-size: 1.375rem; letter-spacing: -.02em; }

.sm-farbe-detail .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-farbe-detail .product {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-decoration: none;
}

.sm-farbe-detail .product:hover { border-color: var(--blue); }
.sm-farbe-detail .product:hover .product-action { text-decoration: underline; text-underline-offset: 4px; }
.sm-farbe-detail .product img, .sm-farbe-detail .detail-art, .sm-farbe-detail .detail-comparison {
  background: radial-gradient(ellipse at 50% 70%, #213d5b, #132337 65%, #101a29);
}

.sm-farbe-detail .product img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 7;
  object-fit: contain;
}
.sm-farbe-detail .product-info { display: flex; flex-direction: column; padding: 17px 19px; }
.sm-farbe-detail .product-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sm-farbe-detail .swatches { display: flex; flex-shrink: 0; gap: 5px; }
.sm-farbe-detail .swatch { width: 12px; height: 12px; border-radius: 50%; }
.sm-farbe-detail .swatch-blue { background: #4289f2; }
.sm-farbe-detail .swatch-silver { background: #c8cfdb; }
.sm-farbe-detail .swatch-gold { background: #f9c454; }
.sm-farbe-detail .swatch-candy { background: repeating-linear-gradient(135deg, #4289f2 0 3px, #f9c454 3px 6px); }
.sm-farbe-detail .swatches .swatch-silver:first-child { background: linear-gradient(135deg, #4289f2 50%, #c8cfdb 50%); }
.sm-farbe-detail .swatches .swatch-gold:first-child { background: linear-gradient(135deg, #4289f2 50%, #f9c454 50%); }
.sm-farbe-detail .nipple { margin: 6px 0 14px; color: var(--muted); }
.sm-farbe-detail .product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.sm-farbe-detail .product-footer strong { font-size: 1.375rem; font-weight: 400; }
.sm-farbe-detail .product-footer p span { color: var(--muted); font-size: .875rem; }
.sm-farbe-detail .product-action { color: var(--blue); font-weight: 700; }

.sm-farbe-detail .spoke-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.sm-farbe-detail .spoke-card { display: block; border-radius: 6px; text-decoration: none; }
.sm-farbe-detail .spoke-card figure { height: 100%; }
.sm-farbe-detail .spoke-card:hover figure { border-color: var(--blue); }
.sm-farbe-detail .spoke-action {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sm-farbe-detail .detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sm-farbe-detail .details figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.sm-farbe-detail .details img { width: 100%; height: auto; }
.sm-farbe-detail .detail-art { aspect-ratio: 4 / 3; object-fit: contain; }
.sm-farbe-detail .bike-frame { overflow: hidden; aspect-ratio: 3 / 2; }
.sm-farbe-detail .bike-photo { transform: scale(1.18); transform-origin: 55% 62%; }
.sm-farbe-detail .detail-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  aspect-ratio: 4 / 3;
  padding: 10px;
}
.sm-farbe-detail .details figcaption { padding: 19px 22px 22px; }
.sm-farbe-detail .details h3 { margin-block: 8px 6px; }
.sm-farbe-detail .spoke-grid h3 { margin-top: 0; }
.sm-farbe-detail .details figcaption p:not(.kicker) { color: var(--muted); }

.sm-farbe-preview .preview-footer {
  margin-top: 66px;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  color: var(--muted);
  font-size: .875rem;
}

@media (max-width: 1150px) {
  .sm-farbe-detail .hero-copy { padding: 32px; }
  .sm-farbe-detail h1 { font-size: 4.5rem; }
}

@media (max-width: 920px) {
  .sm-farbe-preview .shell { width: calc(100% - 40px); }
  .sm-farbe-detail .hero-copy { padding: 25px; }
  .sm-farbe-detail h1 { font-size: 3.75rem; }
  .sm-farbe-detail .offer-price { font-size: 2.75rem; }
  .sm-farbe-detail .specs li { padding-inline: 13px; }
  .sm-farbe-detail .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .sm-farbe-detail .hero { grid-template-columns: 1fr; margin-top: 16px; }
  .sm-farbe-detail .hero-copy { padding: 25px 22px; }
  .sm-farbe-detail h1 { margin-bottom: 12px; }
  .sm-farbe-detail h1 span { display: inline; }
  .sm-farbe-detail .hero-visual { aspect-ratio: 4 / 3; }
  .sm-farbe-detail .hero-spokes { padding-inline-end: 8px; }
  .sm-farbe-detail .specs { grid-template-columns: repeat(2, 1fr); }
  .sm-farbe-detail .specs li:nth-child(3) { border-left: 0; }
  .sm-farbe-detail .specs li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sm-farbe-detail .section { margin-top: 46px; }
  .sm-farbe-detail .section-heading { display: grid; margin-bottom: 17px; }
  .sm-farbe-detail .spoke-grid { grid-template-columns: 1fr; }
  .sm-farbe-detail h2 { font-size: 2.125rem; }
}

@media (max-width: 520px) {
  .sm-farbe-preview .shell { width: calc(100% - 28px); }
  .sm-farbe-preview .preview-header-inner { gap: 4px 12px; }
  .sm-farbe-preview .brand { width: 126px; }
  .sm-farbe-preview .preview-header nav { order: 1; width: 100%; gap: 20px; font-size: .875rem; }
  .sm-farbe-preview .preview-header nav a { padding-block: 8px 4px; }
  .sm-farbe-detail h1 { font-size: 3.125rem; }
  .sm-farbe-detail .offer { padding-inline: 10px; column-gap: 8px; }
  .sm-farbe-detail .offer-price { font-size: 2.625rem; }
  .sm-farbe-detail .product-grid, .sm-farbe-detail .detail-grid { grid-template-columns: 1fr; }
  .sm-farbe-preview .preview-footer { margin-top: 46px; }
}
