/* Shop: Produktansicht. Nutzt die Farben und Schriften der Seite (Variablen aus sudokratie.css). Keine Inline-Stile (CSP). */
.shop-page {
  padding: 0 var(--gutter, 24px) 48px;
}
.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 20px;
}
.shop-head > div {
  flex: 1 1 280px;
  min-width: 0;
}
.shop-head h1 {
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.shop-head .lead {
  margin: 0;
  max-width: 62ch;
}

.shop-status {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgb(var(--accent-rgb) / .45);
  border-radius: 12px;
  background: rgb(var(--accent-rgb) / .08);
  color: var(--text);
}
.shop-status.is-warn {
  border-color: rgb(255 122 77 / .6);
  background: rgb(255 122 77 / .08);
}

.shop-grid {
  display: grid;
  gap: 28px;
}

/* Motive */
.shop-motifs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.shop-motif {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: 600 0.8125rem/1.25 inter, sans-serif;
  transition: border-color .16s ease, background-color .16s ease;
}
/* Kachel: nur das Motiv, bei allen gleich groß und mittig auf dunklem Grund */
.shop-motif .thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #181c1f;
}
.shop-motif img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10%;
  box-sizing: border-box;
  object-fit: contain;
}.shop-motif:hover {
  border-color: rgb(var(--accent-rgb) / .6);
}
.shop-motif[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgb(var(--accent-rgb) / .08);
}
.shop-motif:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Foto/Illustration */
.shop-motif-soon {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 0.75rem/1.5 inter, sans-serif;
  font-style: normal;
}
.shop-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.shop-photo {
  position: sticky;
  top: 12px;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
.photo-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.photo-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.tee-stage {
  position: relative;
  aspect-ratio: 1;
}
.tee-stage img {
  display: block;
  width: 100%;
  height: 100%;
}
/* Druckfläche (305 x 406 mm) auf dem 1000-px-Foto: links 318, oben 203, 357,6 px breit */
.tee-stage .tee-print {
  position: absolute;
  left: 31.8%;
  top: 20.3%;
  width: 35.76%;
  height: auto;
}
.photo-zoom .photo-note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(0 0 0 / .66);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.shop-side {
  display: grid;
  gap: 22px;
}
.shop-soon {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}

/* Vergrößerung: dieselbe Shirt-Ansicht wie im Shop, nur größer */
.shop-zoom {
  position: fixed;
  width: min(94vw, 88vh, 820px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  overflow: hidden;
}
.shop-zoom::backdrop {
  background: rgb(0 0 0 / .72);
}
.shop-zoom .tee-stage {
  width: 100%;
}
.shop-zoom-close,
.drawer-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / .7);
  color: #fff;
  font: 400 1.75rem/1 inter, sans-serif;
  cursor: pointer;
}
.shop-zoom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

/* Warenkorb als Fenster von rechts */
.shop-cartbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgb(var(--accent-rgb) / .1);
  color: var(--text);
  font: 700 1rem space, sans-serif;
  cursor: pointer;
}
.shop-cartbtn:hover {
  background: rgb(var(--accent-rgb) / .2);
}
.shop-cartbtn .count {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  text-align: center;
}
.shop-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100vw);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}
.shop-drawer::backdrop {
  background: rgb(0 0 0 / .55);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.drawer-head h2 {
  margin: 0;
  font: 700 1.375rem space, sans-serif;
}
.shop-pick h2 {
  margin: 0 0 8px;
  font: 700 1.5rem/1.2 space, sans-serif;
  text-wrap: balance;
}
.shop-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.shop-field {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.shop-field legend {
  padding: 0;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.shop-field legend b {
  color: var(--text);
  font-weight: 600;
}
.shop-swatches,
.shop-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shop-sw {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgb(255 255 255 / .28);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease;
}
.shop-sw:hover {
  transform: scale(1.06);
}
.shop-sw[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.shop-sw:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.sw-black { background: #14171a; }
.sw-natural { background: #ece4d3; }
.sw-sand { background: #cdbb99; }
.sw-ash { background: #d4d5d8; }
.sw-sport-grey { background: #9ea0a3; }
.sw-graphite-heather { background: #4a4e53; }
.sw-dark-heather { background: #424549; }
.sw-forest-green { background: #1d3a2a; }
.sw-navy { background: #1c2a45; }
.sw-military-green { background: #59604a; }

.shop-size {
  min-width: 52px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 0.9375rem inter, sans-serif;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.shop-size:hover {
  border-color: rgb(var(--accent-rgb) / .6);
}
.shop-size[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgb(var(--accent-rgb) / .12);
  color: var(--accent);
}
.shop-size:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.shop-size:disabled {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.shop-price {
  margin: 4px 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.shop-price strong {
  font: 700 1.75rem/1 space, sans-serif;
}
.shop-price span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.shop-add,
.shop-pay,
.shop-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to top right, #00c79a 0%, #07fa9d 52%, #6fe9ff 100%);
  color: var(--accent-ink);
  font: 700 1rem space, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgb(var(--accent-rgb) / .75), inset 0 1px 0 rgb(255 255 255 / .5);
  transition: transform .16s ease, box-shadow .16s ease;
}
.shop-add:hover:not(:disabled),
.shop-pay:hover:not(:disabled),
.shop-back:hover {
  transform: translateY(-1px);
}
.shop-add:focus-visible,
.shop-pay:focus-visible,
.shop-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.shop-add:disabled,
.shop-pay:disabled {
  background: var(--panel-2);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.shop-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  min-height: 1.2em;
}
.shop-hint.is-warn {
  color: var(--risk);
}

/* Warenkorb */
.shop-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.shop-line b {
  font-weight: 600;
}
.shop-line small {
  color: var(--muted);
}
.shop-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  grid-column: 1 / -1;
}
.shop-qty button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: 600 1rem inter, sans-serif;
  cursor: pointer;
}
.shop-qty button:hover:not(:disabled) {
  border-color: var(--accent);
}
.shop-qty button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.shop-qty .num {
  min-width: 24px;
  text-align: center;
}
.shop-qty .remove {
  width: auto;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.shop-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.shop-sum {
  margin: 14px 0 0;
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
}
.shop-sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.shop-sum dt,
.shop-sum dd {
  margin: 0;
}
.shop-sum .total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 1.0625rem;
}
.shop-note {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.shop-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.shop-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--accent);
}
.shop-consent a {
  color: var(--accent);
}
.shop-pay {
  width: 100%;
}

.shop-order {
  max-width: 640px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 255 255 / .03);
}
.shop-order h2 {
  margin: 0 0 8px;
  font: 700 1.5rem space, sans-serif;
}
.shop-fine {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.shop-fine a {
  color: var(--accent);
}

/* T-Shirt / Hoodie */
.shop-kinds {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
}
.shop-kind {
  flex: 1 1 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: 600 0.9375rem inter, sans-serif;
  cursor: pointer;
  align-items: center;
  transition: border-color .16s ease, background-color .16s ease;
}
.shop-kind span {
  color: var(--muted);
  font-weight: 500;
}
.shop-kind:hover {
  border-color: rgb(var(--accent-rgb) / .6);
}
.shop-kind[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgb(var(--accent-rgb) / .1);
}
.shop-kind:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.shop-spec {
  display: grid;
}
.shop-spec span {
  grid-area: 1 / 1;
}
.shop-spec .is-hidden {
  visibility: hidden;
}
.shop-spec {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Hoodie-Farben (aus den Gelato-Mockups gemessen; die Namen von Gelato weichen bei Hoodie und T-Shirt voneinander ab) */
.sw-hoodie-black { background: #1d2124; }
.sw-hoodie-navy { background: #19233c; }
.sw-hoodie-forest-green { background: #1e312b; }
.sw-hoodie-military-green { background: #506757; }
.sw-hoodie-dark-chocolate { background: #2d2727; }
.sw-hoodie-dark-heather { background: #4b4b53; }
.sw-hoodie-graphite-heather { background: #8a8d94; }
.sw-hoodie-sport-grey { background: #77787d; }
/* Handy: Platz für zwei Farbreihen, damit die Seite beim Wechsel T-Shirt/Hoodie (6 oder 8 Farben) nicht springt */
@media (max-width: 520px) {
  .shop-swatches {
    min-height: 98px;
    align-content: flex-start;
  }
}
@media (max-width: 860px) {
  .shop-detail {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .shop-photo {
    position: relative;
    top: 0;
  }
}
@media (max-width: 640px) {
  .shop-grid {
    gap: 20px;
  }
  .shop-motifs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shop-add {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shop-sw,
  .shop-add,
  .shop-pay {
    transition: none;
  }
}
