/* Shop: Übersicht, Produktseite, Danke-Seite. Maße wie hekmek.de/shop (Squarespace, gemessen bei 1363 px). */
:root {
  --page: min(100vw, 1600px);
  --u: calc(var(--page) / 1363);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: clamp(90px, 13vh, 140px); z-index: 90;
  background: linear-gradient(var(--bg) 40%, transparent); pointer-events: none;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
.shop { flex: 1; width: var(--page); margin: 0 auto; padding: calc(213 * var(--u)) calc(27 * var(--u)) calc(160 * var(--u)); }
.shop .mono { font-family: var(--font-mono); font-size: 12.7px; line-height: 1.25; letter-spacing: -.02em; }
.shop h1.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Übersicht: Karten 242 × 360, Abstand 27 ---------- */
.grid { display: flex; flex-wrap: wrap; gap: calc(27 * var(--u)); padding: calc(43 * var(--u)) 0 0 calc(260 * var(--u)); } /* erste Karte bei x 287 wie Squarespace */
.card {
  display: flex; flex-direction: column; width: calc(242 * var(--u)); min-height: calc(360 * var(--u));
  padding: calc(22 * var(--u)); border: 1px dashed #000;
}
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.card h2 { margin-top: calc(36 * var(--u)); font-weight: 400; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.card .mono { margin-top: 8px; }
.card .sold { color: #8a8a8a; }
.card:hover h2 { opacity: .55; }
.notes { margin-top: calc(60 * var(--u)); text-align: center; color: #555; }

/* ---------- Produktseite: Galerie links, Angaben rechts ---------- */
.crumb { font-size: 12.7px; letter-spacing: .06em; }
.crumb a:hover { opacity: .55; }
.product { display: grid; grid-template-columns: calc(654 * var(--u)) 1fr; gap: calc(28 * var(--u)); margin-top: calc(19 * var(--u)); align-items: start; }
.gallery { display: grid; grid-template-columns: calc(52 * var(--u)) 1fr; gap: calc(9 * var(--u)); }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { display: block; padding: 0; opacity: .5; transition: opacity .2s; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; }
.thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.stage { position: relative; aspect-ratio: 1; background: #f3f3f3; }
.stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 22px; color: #fff; text-shadow: 0 0 6px rgb(0 0 0 / .4); }
.stage .prev { left: 4px; } .stage .next { right: 4px; }
.stage .count { position: absolute; top: 12px; right: 14px; font-family: var(--font-mono); font-size: 11px; color: #fff; text-shadow: 0 0 6px rgb(0 0 0 / .4); }
.info { padding-top: calc(63 * var(--u)); }
.info h1 { font-weight: 400; font-size: calc(57.8 * var(--u)); line-height: 1.2; letter-spacing: -.01em; }
.info .price { margin-top: 10px; font-size: 16px; letter-spacing: -.01em; }
.info .desc { margin-top: 18px; font-size: 12.7px; line-height: 1.1; letter-spacing: .06em; }
.info .desc p + p, .info .desc ul, .info .desc p + ul { margin-top: 1.1em; }
.info .desc ul { padding-left: 1.2em; }
.variants { margin-top: 22px; border: 0; }
.variants legend { font-size: 12.7px; letter-spacing: .06em; margin-bottom: 10px; }
.variants .opts { display: flex; flex-wrap: wrap; gap: 10px; }
.variants label { cursor: pointer; }
.variants input { position: absolute; opacity: 0; pointer-events: none; }
.variants span {
  display: inline-block; padding: 12px 18px; border: 1px solid #000; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.7px; letter-spacing: -.02em;
}
.variants input:checked + span { background: #000; color: #fff; }
.variants input:focus-visible + span { outline: 1px solid #000; outline-offset: 3px; }
.variants input:disabled + span { text-decoration: line-through; opacity: .45; cursor: default; }
.buy {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 22px;
  width: calc(364 * var(--u)); min-width: 220px; height: 55px; background: #000; color: #fff;
  font-family: var(--font-mono); font-size: 12.7px; letter-spacing: .04em; text-transform: uppercase;
}
.buy:hover { opacity: .8; }
.buy[aria-disabled="true"] { background: #bdbdbd; pointer-events: none; }
.info .notes { margin-top: 14px; text-align: left; }
.notes a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Danke-Seite ---------- */
.thanks { width: calc(649 * var(--u)); margin-left: calc(330 * var(--u)); padding-top: calc(49 * var(--u)); }
.thanks h1 { font-weight: 400; font-size: calc(57.8 * var(--u)); line-height: 1.075; letter-spacing: -.01em; margin-bottom: calc(60 * var(--u)); }
.thanks p { font-size: 16px; line-height: 1.25; letter-spacing: .02em; }
.thanks a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 760px) {
  .shop { width: auto; padding: 110px var(--gutter) 64px; }
  .grid { flex-direction: column; align-items: stretch; gap: 20px; padding: 10px 0 0; }
  .card { width: auto; min-height: 0; padding: 14px; }
  .card h2 { margin-top: 16px; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { order: 2; flex-direction: row; overflow-x: auto; }
  .thumbs button { flex: 0 0 52px; }
  .info { padding-top: 0; }
  .info h1 { font-size: 34px; }
  .buy { width: 100%; }
  .thanks { width: auto; margin: 0; }
  .thanks h1 { font-size: 34px; margin-bottom: 30px; }
}
