/* ============================================================
   RESET & more — Shop-Stylesheet
   Importiert die Ratgeber-Basis und ergänzt Shop-Komponenten.
   Brand-Tokens: BRAND_TOKENS.md (single source of truth)
   ============================================================ */
@import url("../ratgeber/styles.css");

/* ===== PRODUKT-GRID (Shop-Übersicht) ===== */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:32px;
  margin-top:48px;
}
.product-card{
  background:var(--white);
  border:1px solid var(--border-soft);
  border-radius:var(--card-radius);
  overflow:hidden;
  display:flex;flex-direction:column;
  transition:border-color .15s, transform .15s, box-shadow .15s;
}
.product-card:hover{
  border-color:var(--green);
  transform:translateY(-4px);
  box-shadow:var(--shadow-card);
}
.product-card .product-img{
  background:var(--green-light);
  aspect-ratio:4/3;
  display:flex;align-items:center;justify-content:center;
  position:relative;
}
.product-card .product-img img{
  max-width:80%;max-height:80%;width:auto;height:auto;
  filter:drop-shadow(0 12px 24px rgba(58,85,25,.12));
}
.product-card .product-badge{
  position:absolute;top:16px;left:16px;
  background:var(--green);color:var(--white);
  padding:6px 12px;border-radius:4px;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;
}
.product-card .product-badge.sand{background:var(--sand-dark)}
/* Karteninhalt als Flex-Spalte mit fixierten Zeilenhöhen:
   Titel, Untertitel, Beschreibung und Fuß starten in jeder Karte
   einer Reihe auf identischer Höhe. */
.product-card .product-body{
  padding:26px;display:flex;flex-direction:column;gap:0;flex:1;
}
.product-card h3{
  font-size:22px;margin:0 0 8px;color:var(--text);
  text-transform:none;letter-spacing:0;font-weight:800;
  line-height:1.25;
  min-height:calc(2 * 1.25em);
}
.product-card .product-sub{
  color:var(--text-mid);font-size:14px;font-style:italic;
  line-height:1.45;margin:0 0 14px;
  min-height:calc(2 * 1.45em);
}
.product-card .product-desc{
  color:var(--text-mid);font-size:14px;line-height:1.55;
  margin:0 0 18px;flex:0 0 auto;
  min-height:calc(4 * 1.55em);
}
.product-card .pdp-usp{margin:0 0 18px}
.product-card .product-foot{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;flex-wrap:wrap;
  border-top:1px solid var(--border-soft);padding-top:16px;margin-top:auto;
}
.product-card .product-price{
  font-size:24px;font-weight:900;color:var(--text);letter-spacing:-1px;
}
.product-card .product-price small{
  font-size:12px;font-weight:600;color:var(--text-light);
  display:block;line-height:1;
}

/* ===== PRODUKT-DETAIL-SEITE ===== */
.pdp{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:start;
  margin-top:24px;
}
@media(max-width:900px){.pdp{grid-template-columns:1fr;gap:32px}}
.pdp-gallery{
  background:var(--green-light);
  border-radius:var(--card-radius);
  aspect-ratio:1;
  display:flex;align-items:center;justify-content:center;
  position:relative;
  overflow:hidden;
}
.pdp-gallery img{
  max-width:75%;max-height:75%;
  filter:drop-shadow(0 24px 48px rgba(58,85,25,.18));
}
.pdp-derma{
  position:absolute;top:24px;right:24px;
  width:88px;height:88px;
  background:var(--white);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  font-size:10px;font-weight:900;color:var(--green-dark);
  text-align:center;line-height:1.2;padding:8px;
  text-transform:uppercase;letter-spacing:.4px;
}
.pdp-info h1{font-size:48px;margin:0 0 8px}
.pdp-info .pdp-sub{
  color:var(--sand-dark);font-style:italic;font-weight:600;
  font-size:18px;margin:0 0 24px;
}
.pdp-info .pdp-price-row{
  display:flex;align-items:baseline;gap:16px;margin:24px 0 8px;
}
.pdp-info .pdp-price{
  font-size:48px;font-weight:900;color:var(--text);letter-spacing:-2px;line-height:1;
}
.pdp-info .pdp-vat{font-size:13px;color:var(--text-light)}
.pdp-info .pdp-perday{
  display:inline-block;background:var(--green-light);color:var(--green-dark);
  padding:6px 14px;border-radius:4px;font-size:13px;font-weight:700;
  margin:8px 0 24px;
}
.pdp-info .pdp-usp{
  list-style:none;padding:0;margin:24px 0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;
}
.pdp-info .pdp-usp li{
  padding:10px 14px 10px 36px;
  background:var(--green-pale);
  border-radius:6px;
  font-size:13px;font-weight:600;color:var(--text);
  position:relative;
}
.pdp-info .pdp-usp li::before{
  content:'';position:absolute;left:10px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;border-radius:50%;
  background:var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/></svg>") center/10px no-repeat;
}

/* ===== QTY-PICKER ===== */
.qty{
  display:inline-flex;align-items:center;
  border:1.5px solid var(--border-mid);
  border-radius:6px;overflow:hidden;
  margin-right:16px;
}
.qty button{
  background:var(--green-light);
  border:none;
  width:44px;height:44px;
  font-size:20px;font-weight:900;color:var(--green-dark);
  cursor:pointer;
}
.qty button:hover{background:var(--green);color:var(--white)}
.qty input{
  width:56px;height:44px;
  border:none;outline:none;
  text-align:center;font-size:16px;font-weight:700;color:var(--text);
  font-family:inherit;
  -moz-appearance:textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.pdp-actions{
  display:flex;flex-wrap:wrap;align-items:center;gap:16px;
  margin-top:16px;
}
.pdp-actions .btn-large{font-size:16px;padding:14.4px 32px}

/* ===== TRUST-LIST (Versand, Rückgabe, Zahlung) ===== */
.trust-list{
  list-style:none;padding:0;margin:24px 0 0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;
}
.trust-list li{
  padding:12px 14px;
  background:var(--offwhite);
  border:1px solid var(--border-soft);
  border-radius:8px;
  font-size:12px;color:var(--text-mid);font-weight:600;
  display:flex;gap:8px;align-items:center;
}
.trust-list li span.ic{
  width:24px;height:24px;flex-shrink:0;
  background:var(--green-light);color:var(--green-dark);
  border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:900;
}

/* ===== CART / WARENKORB ===== */
.cart-table{
  width:100%;border-collapse:collapse;margin:24px 0;
  background:var(--white);
  border:1px solid var(--border-soft);border-radius:var(--card-radius);overflow:hidden;
}
.cart-row{
  display:grid;
  grid-template-columns:80px 1fr 140px 100px 40px;
  gap:16px;align-items:center;
  padding:16px 20px;border-bottom:1px solid var(--border);
}
.cart-row:last-child{border-bottom:none}
.cart-row img{width:64px;height:64px;object-fit:contain;background:var(--green-light);border-radius:6px}
.cart-row .cart-name{font-weight:700;color:var(--text);font-size:15px;line-height:1.3}
.cart-row .cart-name small{display:block;font-size:12px;color:var(--text-mid);font-weight:500;margin-top:4px}
.cart-row .cart-line-total{font-weight:900;color:var(--text);font-size:17px;text-align:right}
.cart-row .cart-remove{
  background:none;border:none;cursor:pointer;
  color:var(--text-light);font-size:20px;line-height:1;
  width:32px;height:32px;border-radius:50%;
}
.cart-row .cart-remove:hover{background:var(--green-light);color:var(--green-dark)}
@media(max-width:600px){
  .cart-row{grid-template-columns:64px 1fr 32px;gap:12px;padding:14px}
  .cart-row .qty, .cart-row .cart-line-total{grid-column:2;justify-self:start}
  .cart-row .cart-remove{grid-column:3;grid-row:1}
}
.cart-summary{
  background:var(--green-pale);
  border:1px solid var(--border-soft);
  border-radius:var(--card-radius);
  padding:28px;
  display:flex;flex-direction:column;gap:16px;
  max-width:480px;margin-left:auto;
}
.cart-summary .row{
  display:flex;justify-content:space-between;align-items:baseline;
  font-size:15px;color:var(--text-mid);
}
.cart-summary .row.total{
  font-size:22px;font-weight:900;color:var(--text);
  border-top:1.5px solid var(--border);padding-top:16px;
}
.cart-summary .vat-note{font-size:12px;color:var(--text-light)}
.cart-empty{
  text-align:center;padding:64px 24px;
  color:var(--text-mid);font-size:18px;
}
.cart-empty .btn{margin-top:24px}

/* ===== CHECKOUT-BAR (Bottom Sticky bei voller Cart) ===== */
.checkout-bar{
  display:flex;justify-content:space-between;align-items:center;
  background:var(--text);color:#fff;
  padding:18px 28px;
  border-radius:var(--card-radius);
  margin-top:24px;
  gap:16px;flex-wrap:wrap;
}
.checkout-bar .ck-total{font-size:20px;font-weight:900}
.checkout-bar .ck-total small{font-size:12px;font-weight:500;color:rgba(255,255,255,.7);display:block}
.checkout-bar .btn{background:var(--green);color:#fff}

/* ===== CART-BADGE (Nav-Icon) ===== */
.cart-badge{
  position:relative;display:inline-flex;align-items:center;gap:6px;
}
.cart-badge .count{
  background:var(--green);color:var(--white);
  border-radius:999px;
  min-width:20px;height:20px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;padding:0 6px;
}
.cart-badge .count[data-count="0"]{display:none}

/* ===== ERFOLGS-/ABBRUCH-SEITE ===== */
.status-page{
  text-align:center;
  max-width:560px;margin:0 auto;
  padding:96px 24px;
}
.status-page .status-icon{
  width:96px;height:96px;border-radius:50%;
  background:var(--green-light);color:var(--green-dark);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:48px;font-weight:900;margin-bottom:24px;
}
.status-page.error .status-icon{background:#FCE4E2;color:#B83A2A}

/* ── Upsell im Warenkorb ───────────────────────────── */
.upsell{display:flex;align-items:center;gap:18px;padding:20px 22px;margin:0 0 14px;border:1px solid var(--border-soft);border-radius:var(--card-radius);background:#fff}
.upsell img{width:64px;height:64px;object-fit:contain;flex:0 0 auto}
.upsell div{flex:1;min-width:0}
.upsell h4{margin:0 0 4px;font-size:15px;font-weight:700;color:var(--text)}
.upsell p{margin:0;font-size:13.5px;line-height:1.5;color:var(--text-mid)}
.upsell .btn{flex:0 0 auto;white-space:nowrap}
.upsell-ship{display:block}
.upsell-ship p{margin-top:10px;font-size:14px}
.upsell-bar{height:6px;border-radius:99px;background:var(--green-light);overflow:hidden}
.upsell-bar span{display:block;height:100%;background:var(--green);border-radius:99px;transition:width .4s ease}
.upsell-abo{background:var(--green-pale);border-color:var(--border-mid)}
@media(max-width:640px){
  .upsell{flex-direction:column;align-items:flex-start;gap:12px}
  .upsell .btn{width:100%;justify-content:center}
}

/* ===== KÜNDIGUNGSSEITE (§ 312k BGB) ===== */
.kuend-form{max-width:600px;display:flex;flex-direction:column;gap:20px}
.kuend-form h2{margin:0}
.kuend-form label{display:block;font-size:14px;font-weight:700;color:var(--text)}
.kuend-form input,.kuend-form select,.kuend-form textarea{
  display:block;width:100%;margin-top:7px;
  font:inherit;font-size:16px;font-weight:400;
  padding:12px 14px;
  border:1.5px solid var(--border);border-radius:4px;
  background:var(--white);color:var(--text);
}
.kuend-form input:focus,.kuend-form select:focus,.kuend-form textarea:focus{
  outline:2px solid var(--green);outline-offset:1px;border-color:var(--green);
}
.kuend-form .req{color:var(--green-dark);font-size:11px;text-transform:uppercase;letter-spacing:.6px}
.kuend-form .opt{color:var(--text-light);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.6px}
.kuend-when{border:1px solid var(--border);border-radius:4px;padding:16px 18px;margin:0}
.kuend-when legend{font-size:14px;font-weight:700;padding:0 6px}
.kuend-when .radio{display:flex;align-items:center;gap:10px;font-weight:400;margin:8px 0}
.kuend-when .radio input{width:auto;margin:0}
.muted-note{font-size:14px;color:var(--text-mid);margin:0}
.kuend-status{margin:0;font-size:14px;color:#a33;min-height:1.2em}
.kuend-done{max-width:640px}
.kuend-done h2{color:var(--green-dark)}
@media(max-width:600px){.kuend-form{gap:16px}}

/* ===== PRODUKTKARTEN: gleiche Bildgroesse, Badge vorn =====
   Vorher: width/height:auto liess jedes Foto seine eigene Groesse behalten —
   die hochformatige Flasche wirkte deutlich kleiner als die Bundle-Fotos.
   Jetzt bekommt jedes Bild dieselbe Buehne und wird darin eingepasst. */
.product-card .product-img img{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:contain;
  padding:8% 10%;
}
/* Das Badge lag hinter dem Bild: Das drop-shadow-Filter am <img> erzeugt
   einen eigenen Stapelkontext, und das Bild steht spaeter im DOM. */
.product-card .product-badge{z-index:2}

/* Linke Textkante: Absaetze in Shop-Sektionen laufen linksbuendig,
   nicht zentriert — sonst startet der Text weiter rechts als die
   Ueberschrift darueber. */
.container > p.lead{margin-left:0;margin-right:auto}

/* ===== PRODUKTBUEHNE: garantiert gleiches Format =====
   aspect-ratio hat sich in Verbindung mit dem Flex-Container und den
   spaeteren img-Regeln nicht zuverlaessig durchgesetzt — die drei
   Bundle-Karten waren unterschiedlich hoch. Die Padding-Technik erzwingt
   das 4:3-Format unabhaengig von der Kaskade. */
.product-card .product-img{
  display:block;
  position:relative;
  height:0;
  padding-top:75%;          /* 4:3 */
  overflow:hidden;
}
.product-card .product-img img{
  position:absolute;
  top:0;left:0;
  width:100%;
  height:100%;
  padding:4% 6%;
  object-fit:contain;
}
