/* ============================================================================
   Tamaras Wunder – alte Seiten im neuen Design (Shop, Warenkorb, Kasse, Konto, Rechtstexte)
   Lädt nach css/style.css und css/wunder.css. Hier steht nur Form und Aufbau;
   die Farben kommen aus den überschriebenen Variablen in wunder.css.
   ========================================================================== */

body::before {
  background:
    radial-gradient(ellipse 60% 50% at 5% 0%, rgba(226, 174, 181, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 95% 100%, rgba(150, 104, 127, 0.14) 0%, transparent 60%);
}

.layout {
  width: min(1180px, 100% - 2.5rem);
  gap: clamp(1.2rem, 3vw, 2rem);
  padding-top: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* Eine Spalte, die nie breiter wird als der Seitenbereich: breite Tabellen scrollen in ihrer Fläche,
   statt die ganze Seite zu dehnen. :where() hält die Regel schwach, Seiten mit eigenen Spalten (z. B. .ucp-layout) behalten ihre. */
:where(.layout) {
  grid-template-columns: minmax(0, 1fr);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--w-bordeaux);
}

p {
  line-height: 1.7;
  color: var(--w-text-soft);
}

/* Flächen */
.panel {
  padding: clamp(1.3rem, 3.5vw, 2rem);
  border: 1px solid var(--w-line);
  border-radius: var(--w-radius);
  background: var(--w-white);
  box-shadow: var(--w-shadow-soft);
}

.panel-contrast {
  background: var(--w-rose-50);
  border-color: transparent;
}

.hero-card,
.custom-hero {
  border: 0;
  border-radius: var(--w-radius-lg);
  background: var(--w-rose-50);
  box-shadow: none;
}

/* Zeilen aus Suchfeld/Auswahl und Knöpfen (Rabattcode im Warenkorb, Filter im Kundenkonto, Verwaltung):
   umbrechen statt die ganze Seite zu weiten */
.admin-actions-inline {
  flex-wrap: wrap;
}

.admin-actions-inline > input {
  flex: 1 1 180px;
  min-width: 0;
}

/* Lange deutsche Wörter in Überschriften und Rechtstexten (Geschäftsbedingungen, Datenschutzerklärung) auf schmalen Geräten */
h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-panel {
  overflow-wrap: anywhere;
}

.legal-panel h1 {
  font-size: clamp(1.5rem, 7vw, 2.8rem);
}

.nested {
  border-radius: var(--w-radius);
  background: var(--w-cream);
}

.kicker {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 18px;
  background: var(--w-rose);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-bordeaux);
}

/* Formularfelder */
select,
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--w-line-strong);
  border-radius: 16px;
  background-color: var(--w-white);
  font-size: 0.95rem;
  color: var(--w-text);
}

textarea {
  line-height: 1.6;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--w-bordeaux);
  box-shadow: 0 0 0 4px rgba(150, 104, 127, 0.28);
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--w-bordeaux);
}

/* Shop: Einleitung */
.shop-intro-modern {
  padding: clamp(2rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.6rem);
  border: 0;
  border-radius: var(--w-radius-lg);
  background: var(--w-rose-50);
  box-shadow: none;
}

.shop-intro-modern::before {
  right: -70px;
  top: -90px;
  width: 340px;
  height: 340px;
  background: rgba(255, 254, 252, 0.5);
}

.shop-intro-modern::after {
  content: "";
  display: block;
  position: absolute;
  left: -60px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 1.5px solid var(--w-line-strong);
  border-radius: 50%;
  pointer-events: none;
}

.shop-intro-modern h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 600;
}

.shop-intro-modern > p {
  font-size: 1.05rem;
}

.shop-editorial-row p {
  padding: 0.45rem 1rem;
  border: 1px solid var(--w-line-strong);
  background: var(--w-white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--w-text);
}

.shop-intro-modern > *:not(.shop-editorial-row):not(.shop-cta-row) {
  position: relative;
}

.shop-editorial-row,
.shop-cta-row {
  position: relative;
  z-index: 1;
}

.currency-only-bar {
  padding: 1rem 1.3rem;
}

/* Vertrauens-Karten, Kategorien */
.trust-chip {
  border-radius: var(--w-radius);
  box-shadow: var(--w-shadow-soft);
}

.trust-chip strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--w-bordeaux);
}

.trust-chip span {
  color: var(--w-text-soft);
}

.shop-categories-panel {
  border: 1px solid var(--w-line);
  background: var(--w-white);
  box-shadow: var(--w-shadow-soft);
}

.shop-categories-panel::before {
  background: radial-gradient(circle, rgba(226, 174, 181, 0.28) 0%, transparent 70%);
}

#shopCategoryCount.kicker {
  border: 0;
  background: var(--w-rose);
  color: var(--w-bordeaux);
}

#shopCategoryFilter .btn {
  min-height: 42px;
  padding: 0.45rem 1.15rem;
  font-size: 0.8rem;
}

/* Produktkarten */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.product-card {
  border: 1px solid var(--w-line);
  border-radius: var(--w-radius-lg);
  box-shadow: var(--w-shadow-soft);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--w-line-strong);
  box-shadow: var(--w-shadow);
}

.product-card img {
  aspect-ratio: 4 / 5;
  padding: 0;
  background: var(--w-rose-50);
  object-fit: cover;
  object-position: center top;
}

.product-content {
  padding: 1.3rem 1.4rem 1.5rem;
}

.tag {
  border: 0;
  background: var(--w-rose);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--w-bordeaux);
}

.product-eyebrow {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--w-mauve-text);
}

.product-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--w-bordeaux);
}

.product-content p {
  font-size: 0.9rem;
  color: var(--w-text-soft);
}

.product-meta strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--w-bordeaux);
}

.add-button {
  min-height: 44px;
  padding: 0.55rem 1.3rem;
  border: 1.5px solid var(--w-bordeaux);
  background: var(--w-bordeaux);
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.add-button:hover {
  background: var(--w-bordeaux-dark);
  border-color: var(--w-bordeaux-dark);
  box-shadow: var(--w-shadow-soft);
}

.product-card.soldout {
  border-color: var(--w-line);
  background: var(--w-cream-2);
  box-shadow: none;
}

.soldout-overlay {
  border: 0;
  background: var(--w-bordeaux-dark);
  box-shadow: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.product-card.soldout .product-meta strong {
  color: var(--w-text-soft);
}

.product-card.soldout .add-button,
.product-card.soldout .add-button:disabled {
  border-color: #cdbcc3;
  background: #cdbcc3;
  color: #4f3544;
  box-shadow: none;
}

/* Produkt-Detailansicht und Schnellkauf-Leiste */
.product-spotlight {
  background: rgba(58, 20, 32, 0.55);
}

.sticky-shop-cta {
  padding: 0.55rem 0.6rem 0.55rem 1.4rem;
  border: 1px solid var(--w-line-strong);
  border-radius: 999px;
  background: rgba(255, 254, 252, 0.92);
  box-shadow: var(--w-shadow);
}

.sticky-shop-cta strong {
  font-weight: 600;
  color: var(--w-bordeaux);
}

@media (max-width: 700px) {
  .sticky-shop-cta {
    border-radius: 24px;
  }
}

.empty-icon.wh-heart {
  display: block;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.6rem;
  color: var(--w-rose-2);
  font-size: inherit;
}

/* Harmonisierte EU-Mitteilung zum Gewährleistungsrecht (Audit V2, P0-03). Die Datei selbst bleibt unverändert; hier nur
   Abstand und Breite. Bis 640 px breit, damit sie in Standardgröße lesbar ist; schmaler nur, wenn der Bildschirm es ist
   (dann hilft "in voller Größe öffnen"). */
.eu-gewaehrleistung {
  margin: 1rem 0;
}
.eu-gewaehrleistung summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--w-rose-2);
}
.eu-gewaehrleistung img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0.8rem 0;
  background: #fff;
}
