/* ═══════════════════════════════════════════════════════════════
   TogaXStudio Shop — ergänzt style.css (gleiche Tokens & Komponenten)
═══════════════════════════════════════════════════════════════ */

.shop-page { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(80px, 10vw, 120px); min-height: 80vh; }
.shop-page .section-headline { margin-bottom: 16px; }
.shop-page .section-body { margin-bottom: 40px; }

/* Header-Warenkorb */
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  color: var(--text); transition: var(--transition); flex-shrink: 0;
}
.cart-link:hover { border-color: var(--accent); color: var(--accent); }
.cart-link svg { width: 18px; height: 18px; }
.cart-link__count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 100px; background: var(--accent); color: #050708; font: 700 11px/20px var(--font-head); text-align: center;
}
.cart-link__count[hidden] { display: none; }
.header__nav-link[aria-current="page"] { color: var(--text); }

/* Hinweis: Shop im Aufbau (immer sichtbar, vor Go-live entfernen) */
.build-banner {
  margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid #d97706; background: rgba(217, 119, 6, 0.14); color: var(--text); font-size: 14px; line-height: 1.5;
}
.build-banner strong { color: #f59e0b; }

/* Testmodus-Hinweis */
.test-banner {
  display: none; margin-bottom: 28px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border-accent); background: var(--accent-dim); color: var(--text); font-size: 13px;
}
.test-banner.visible { display: block; }
.test-banner code { font-size: 12px; }

/* Produktliste */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.product {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--transition), box-shadow var(--transition);
}
.product:hover { border-color: var(--border-accent); box-shadow: 0 24px 56px rgba(0,0,0,0.35), 0 0 40px rgba(0,229,192,0.05); }
.product__main { aspect-ratio: 16 / 10; background: var(--bg-surface); overflow: hidden; }
.product__main img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: thin; }
.product__thumb {
  flex: 0 0 auto; width: 64px; height: 44px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); opacity: 0.65; transition: var(--transition); padding: 0;
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb:hover, .product__thumb[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.product__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product__title { font-family: var(--font-head); font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.product__desc { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.product__price { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; margin-top: 4px; }
.price-note { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.price-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.stock--low::before { background: #F2B441; box-shadow: none; }
.stock--out::before { background: #E5484D; box-shadow: none; }
.product__buy { display: flex; gap: 12px; align-items: stretch; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.product__buy .btn { flex: 1; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Mengen-Stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; height: 46px; }
.qty button { width: 40px; height: 100%; color: var(--text); font-size: 18px; transition: var(--transition); }
.qty button:hover:not([disabled]) { color: var(--accent); background: var(--accent-dim); }
.qty button[disabled] { opacity: 0.3; cursor: not-allowed; }
.qty output, .qty input { width: 40px; text-align: center; font: 600 15px var(--font-head); color: var(--text); background: transparent; border: none; }
.qty--sm { height: 38px; }
.qty--sm button { width: 34px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 16px; z-index: 1200; font-size: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4); transition: opacity var(--transition), transform var(--transition); max-width: calc(100vw - 32px);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Warenkorb */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 16px; }
.cart-line {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px;
}
.cart-line__img { width: 112px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-surface); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.3; }
.cart-line__meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.cart-line__controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.cart-line__remove { font-size: 13px; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.cart-line__remove:hover { color: var(--text); }
.cart-line__total { font-family: var(--font-head); font-weight: 700; font-size: 17px; text-align: right; white-space: nowrap; }
.cart-line__warn { font-size: 12px; color: #F2B441; margin-top: 6px; }

.summary {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.summary h2 { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.summary__rows { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; color: var(--text-muted); }
.summary__row--total { color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 20px; padding-top: 12px; border-top: 1px solid var(--border); }
.summary__free { color: var(--accent); }
.summary__note { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.summary__recap { margin: 16px 0 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; line-height: 1.55; color: var(--text); }
.summary__recap p + p { margin-top: 6px; color: var(--text-dim); }
.summary__recap-title { font-weight: 600; }
.summary__recap-items { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; }
.summary__recap-items span { color: var(--text-dim); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-muted); line-height: 1.6; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.consent a, .summary__links a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.summary .btn { width: 100%; padding: 16px 20px; font-size: 15px; white-space: normal; }
.summary__links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.summary__pay { font-size: 12px; color: var(--text-dim); text-align: center; }
.summary__error { color: var(--text); font-size: 13px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(229,72,77,0.5); background: rgba(229,72,77,0.08); }
.summary__error[hidden] { display: none; }

.empty-state {
  text-align: center; padding: 64px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-state svg { width: 48px; height: 48px; color: var(--accent); }
.empty-state h2 { font-family: var(--font-head); font-size: 22px; }
.empty-state p { color: var(--text-muted); font-size: 15px; max-width: 460px; }

/* Ergebnis-Seiten */
.result-card {
  max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.result-card__icon { width: 56px; height: 56px; color: var(--accent); }
.result-card h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.result-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.result-card .btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.result-details { width: 100%; text-align: left; border-top: 1px solid var(--border); padding-top: 16px; font-size: 14px; color: var(--text-muted); display: flex; flex-direction: column; gap: 6px; }
.result-details[hidden] { display: none; }
.result-details strong { color: var(--text); }

.skeleton { background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-lg); min-height: 520px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1280px) {
  .cart-link { order: 2; margin-left: auto; }
  .header__inner .lang-switcher { margin-left: 0; }
}
@media (max-width: 960px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product__body { padding: 20px 20px 24px; }
}
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 84px minmax(0, 1fr); }
  .cart-line__img { width: 84px; }
  .cart-line__total { grid-column: 2; text-align: left; }
  .product__buy .qty { width: 100%; justify-content: space-between; }
  .product__buy .qty button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .toast { transition: none; }
}

/* Lieferland im Warenkorb (Versandzonen) */
.cart-country { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.cart-country__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.cart-country__note--warn { color: var(--text-muted); border-left: 2px solid #F5C400; padding-left: 8px; }
.cart-country select:disabled { opacity: 0.75; cursor: not-allowed; }
.summary__parcel { display: block; margin-top: 3px; font-size: 11px; line-height: 1.45; color: var(--text-dim); }
.summary__error a { color: inherit; text-decoration: underline; font-weight: 600; }

/* <picture> darf das Layout von img (100% Höhe, object-fit) nicht verändern */
picture.tx-pic { display: contents; }

/* Rabattcode / Gutschein im Warenkorb */
.cart-coupon { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.cart-coupon__row { display: flex; gap: 8px; }
.cart-coupon__row .form-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.summary .cart-coupon__row .btn { width: auto; flex: none; padding: 10px 16px; font-size: 14px; }
.cart-coupon__applied { margin: 0; font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.cart-address-form { border: 0; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.cart-address-form legend { font-size: 13px; line-height: 1.5; color: var(--text); margin-bottom: 6px; }

/* Bild-Platzhalter für Produkte ohne Foto (Geschenkgutscheine) */
.nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; background: var(--bg-surface); }
.nophoto .sign { display: inline-flex; font: 700 clamp(13px, 1.6vw, 18px)/1 'Barlow Condensed', var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px 5px; border-radius: 3px; background: #0b0b0b; color: #F5C400; box-shadow: inset 0 0 0 1.5px #F5C400; white-space: nowrap; }
.nophoto__text { font-size: 12px; color: var(--text-muted); }
.cart-line__img .nophoto .sign { font-size: 10px; padding: 4px 5px 3px; }
.cat-tile__art .nophoto { position: absolute; inset: 0; }
