/*
 * littleplott.de — Design-System
 * Mintgrün · Weiß · Schwarz | Nunito · Inter
 * Inspired by the littleplott logo: mint balloons, polka dots, playful type
 */

/* ===================================================================
   0. Inline-SVG-Icons (siehe partials/icons.html)
   =================================================================== */
.icon            { display: inline-block; vertical-align: -0.12em; flex-shrink: 0; }
.icon-sm         { width: 16px; height: 16px; }
.icon-md         { width: 20px; height: 20px; }
.icon-lg         { width: 28px; height: 28px; }
.icon-xl         { width: 40px; height: 40px; }
.icon-2xl        { width: 56px; height: 56px; }

/* Circle-Badge mit Icon (USP-Leiste, Kategorie-Fallback) */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(126,203,196,.18);
  color: #fff;
}
.icon-badge--mint  { background: var(--mint-soft); color: var(--mint-xdeep); }
.icon-badge--dark  { background: rgba(255,255,255,.08); color: #fff; }
.icon-badge--lg    { width: 72px; height: 72px; border-radius: 22px; }


/* ===================================================================
   1. Design Tokens
   =================================================================== */
:root {
  /* Primärfarben */
  --mint:        #7ECBC4;
  --mint-light:  #A8DDD8;
  --mint-soft:   #E4F5F3;
  --mint-deep:   #4FA9A1;
  --mint-xdeep:  #35857E;

  /* Neutral */
  --ink:         #1A1A1A;
  --ink-muted:   #555555;
  --ink-soft:    #909090;
  --bg:          #F7FAFA;
  --bg-warm:     #EEF8F7;
  --card:        #FFFFFF;
  --line:        #D9EEEC;
  --line-soft:   #EAF6F5;

  /* Status */
  --success:     #2E7D5A;
  --success-bg:  #E4F2EC;
  --error:       #C0392B;
  --error-bg:    #FBECEA;
  --warning:     #D68910;
  --warning-bg:  #FEF9E7;

  /* Schatten — mint-getönt */
  --shadow-xs: 0 1px 3px rgba(78,169,161,.07);
  --shadow-sm: 0 2px 8px rgba(78,169,161,.09);
  --shadow-md: 0 6px 24px rgba(78,169,161,.13);
  --shadow-lg: 0 16px 48px rgba(78,169,161,.16);
  --shadow-xl: 0 32px 72px rgba(78,169,161,.20);

  /* Radien */
  --r-sm:  8px;
  --r:     16px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-xl:  40px;
  --r-full: 9999px;

  /* Typografie */
  --font-display: 'Nunito', 'Trebuchet MS', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Abstände */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
}

/* ===================================================================
   2. Reset & Base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Polka-Dot-Textur (subtil) — als ::before auf body */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(126,203,196,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--mint-deep); text-decoration: none; transition: color .15s; }
a:hover { color: var(--mint-xdeep); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ===================================================================
   3. Layout
   =================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  position: relative;
  z-index: 1;
  width: 100%;
}
@media (max-width: 768px) { .container { padding: 0 var(--space-4); } }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-6); }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .grid-4, .grid-auto { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } }
@media (max-width: 400px)  { .grid-4, .grid-auto { grid-template-columns: 1fr; } }

/* ===================================================================
   4. Header & Navigation
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(78,169,161,.08);
  border-bottom-color: var(--line);
}

/* Dreispaltige Aufteilung: Logo | zentrale Links | Aktion.
   Die Links sitzen mittig, damit auch bei wenigen oder vielen
   Kategorien das Layout stabil bleibt. */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 0;
  gap: var(--space-6);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}
.nav-logo img { height: 36px; width: 36px; border-radius: 50%; object-fit: cover; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}
.nav-logo-text span { color: var(--mint-deep); }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  justify-self: center;
  flex-wrap: wrap;
}
.nav-links a {
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--mint-deep); background: var(--mint-soft); }
.nav-links a.active {
  color: var(--mint-xdeep);
  background: var(--mint-soft);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: end;
}

.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-deep);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 18px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(78,169,161,.18);
}
.nav-cart-btn:hover {
  background: var(--mint-xdeep); color: #fff; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(78,169,161,.28);
}
.nav-cart-btn .icon { color: #fff; }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--ink);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* Mobile-Toggle (Hamburger) — wird in base.html via Button gezeigt */
.nav-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
}
.nav-menu-toggle:hover { background: var(--mint-soft); border-color: var(--mint-light); }

@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; gap: var(--space-3); }
  .nav-links {
    display: none;
    justify-self: stretch;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 16px;
  }
  .nav-links a { padding: 12px 14px; text-align: left; }
  .nav.is-open .nav-links { display: flex; }
  .nav-logo-text { font-size: 1.15rem; }
  .nav-menu-toggle { display: inline-flex; }
  .nav-cart-btn span:not(.icon):not(.cart-badge) { display: none; }
  .nav-cart-btn { padding: 9px 12px; }
}

/* ===================================================================
   5. Hero
   =================================================================== */
.hero {
  background: linear-gradient(135deg, var(--mint-soft) 0%, #ffffff 60%, var(--bg-warm) 100%);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,203,196,.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
}
.hero-tag {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-4);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.hero-title em { color: var(--mint-deep); font-style: normal; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 440px;
  margin-bottom: var(--space-8);
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--mint-soft);
  display: flex; align-items: center; justify-content: center;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
}

/* ===================================================================
   6. Buttons
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--mint-deep);
  color: #fff;
  border-color: var(--mint-deep);
  box-shadow: 0 4px 16px rgba(78,169,161,.30);
}
.btn-primary:hover { background: var(--mint-xdeep); border-color: var(--mint-xdeep); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--mint-deep);
  border-color: var(--mint-deep);
}
.btn-secondary:hover { background: var(--mint-soft); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-dark:hover { background: #333; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-deep); background: var(--mint-soft); }

.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover { background: #a93226; color: #fff; }

/* ===================================================================
   7. Produktkarten
   =================================================================== */
.product-card {
  background: var(--card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--line-soft);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--mint-soft);
  overflow: hidden;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: var(--space-3); left: var(--space-3);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-new      { background: var(--mint-deep); color: #fff; }
.badge-bestseller { background: var(--ink); color: #fff; }
.badge-sale     { background: var(--error); color: #fff; }
.badge-tag      { background: var(--mint-soft); color: var(--mint-xdeep); }

.product-card-body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.product-card-category {
  font-size: .75rem;
  font-weight: 600;
  color: var(--mint-deep);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.product-card-desc {
  font-size: .83rem;
  color: var(--ink-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-colors {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.color-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.1);
  display: inline-block;
  flex-shrink: 0;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}
.product-price-from {
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.product-price-compare {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 400;
}

/* ===================================================================
   8. Kategorie-Karten
   =================================================================== */
/* ── Kategorie-Grid: gleichmäßiges Raster ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: var(--space-3);
}

/* ── Karte ── */
.category-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  padding: 1.5rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.category-card:hover {
  border-color: var(--mint-deep);
  background: var(--mint-soft);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79,169,161,.14);
  color: var(--ink);
}

/* ── Icon-Wrapper ── */
.category-card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--mint-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .875rem;
  flex-shrink: 0;
  transition: background .18s;
}
.category-card:hover .category-card-icon { background: var(--mint-light); }
.category-card-icon .icon { color: var(--mint-xdeep); }
.category-card-icon img {
  width: 28px; height: 28px;
  object-fit: cover; border-radius: 50%;
}

/* ── Text ── */
.category-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  color: var(--ink);
  line-height: 1.25;
}
.category-card-hint {
  font-size: .72rem;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── Pfeil ── */
.category-card-arrow {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
}
@media (max-width: 430px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   9. Produktdetail
   =================================================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-16);
  align-items: start;
}
@media (max-width: 1100px) { .product-detail-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); } }
@media (max-width: 900px)  { .product-detail-grid { grid-template-columns: 1fr; } }

/* Galerie */
.product-gallery { position: sticky; top: 100px; }
.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--mint-soft);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-md);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s;
  background: var(--mint-soft);
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--mint-deep); }

/* Produktinfo */
.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding: var(--space-2) 0;
}

/* Kopfbereich: Badges, Titel, Preis, Kurzbeschreibung */
.product-info-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.product-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.product-short-desc {
  color: var(--ink-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-top: var(--space-1);
}

/* Variantenbereich: Farbe(n) & Größe */
.product-variants {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.product-breadcrumb {
  font-size: .8rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.product-breadcrumb a { color: var(--ink-soft); }
.product-breadcrumb a:hover { color: var(--mint-deep); }

.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.product-price-main {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
}
.product-price-was {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Farbwahl */
.variant-section { display: flex; flex-direction: column; gap: var(--space-2); }
.variant-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.variant-label-value {
  font-weight: 500;
  color: var(--ink);
}
.color-swatches {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.color-swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  outline: 2px solid transparent;
  cursor: pointer;
  transition: outline .12s, transform .12s;
  position: relative;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.active {
  outline-color: var(--mint-deep);
  outline-offset: 2px;
}

/* Größenwahl */
.size-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.size-btn {
  padding: 8px 20px;
  border-radius: var(--r-full);
  border: 2px solid var(--line);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  background: var(--card);
  color: var(--ink);
}
.size-btn:hover { border-color: var(--mint); background: var(--mint-soft); }
.size-btn.active { border-color: var(--mint-deep); background: var(--mint-deep); color: #fff; }
.size-btn.unavailable { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* Beschriftungs-/Größen-Achse als Auswahl-Dropdown */
.size-select {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: var(--r-md, 12px);
  border: 2px solid var(--line);
  font-weight: 600;
  font-size: .9rem;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s;
}
.size-select:hover  { border-color: var(--mint); }
.size-select:focus  { outline: none; border-color: var(--mint-deep); }

/* Mengenauswahl */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--line);
  border-radius: var(--r-full);
  width: fit-content;
  overflow: hidden;
}
.qty-btn {
  width: 40px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  font-size: 1.2rem; font-weight: 700;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background .12s, color .12s;
}
.qty-btn:hover { background: var(--mint-soft); color: var(--mint-deep); }
.qty-input {
  width: 48px; height: 44px;
  text-align: center;
  border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 1rem; font-weight: 700;
  color: var(--ink);
  background: transparent;
}
.qty-input:focus { outline: none; }

/* Stock-Status */
.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .85rem;
  font-weight: 600;
}
.stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.stock-in    .stock-dot { background: var(--success); }
.stock-low   .stock-dot { background: var(--warning); }
.stock-out   .stock-dot { background: var(--error); }
.stock-in    { color: var(--success); }
.stock-low   { color: var(--warning); }
.stock-out   { color: var(--error); }

.add-to-cart-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.02rem;
  border-radius: var(--r-md);
}

/* Kauf-Box: Menge, Warenkorb-Button & Vorteile */
.product-buy-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  background: var(--bg-warm);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.buy-box-qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.buy-box-action {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.buy-box-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
  padding-top: var(--space-5);
  border-top: 1.5px solid var(--line);
}
.buy-box-benefit {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: .85rem;
  color: var(--ink-muted);
}
.buy-box-benefit .benefit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: .72rem;
  font-weight: 700;
}
@media (max-width: 480px) {
  .buy-box-benefits { grid-template-columns: 1fr; }
}

/* Tab-Bereich (Details / Material / Versand) */
.product-tabs {
  border-top: 1.5px solid var(--line);
  padding-top: var(--space-6);
}
.product-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: var(--space-5);
}

/* ===================================================================
   10. Produktliste / Filter
   =================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.filter-panel {
  background: var(--card);
  border-radius: var(--r-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--line-soft);
  position: sticky;
  top: 90px;
}
.filter-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.filter-group { margin-bottom: var(--space-5); }
.filter-group-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.filter-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.filter-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  cursor: pointer;
  transition: outline .12s, transform .1s;
}
.filter-swatch.selected { outline-color: var(--mint-deep); outline-offset: 2px; transform: scale(1.1); }

.filter-category-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
}
.filter-category-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  color: var(--ink-muted);
  transition: background .12s, color .12s;
}
.filter-category-list a:hover, .filter-category-list a.active {
  background: var(--mint-soft);
  color: var(--mint-deep);
}
.filter-category-list a.active { font-weight: 700; }

.shop-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.results-count { font-size: .9rem; color: var(--ink-muted); }
.sort-select {
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 2px solid var(--line);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition: border-color .12s, background .12s, color .12s;
}
.page-btn:hover { border-color: var(--mint); background: var(--mint-soft); color: var(--mint-deep); }
.page-btn.active { background: var(--mint-deep); border-color: var(--mint-deep); color: #fff; }

/* ===================================================================
   11. Warenkorb & Checkout
   =================================================================== */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--mint-soft);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-title { font-weight: 700; font-size: .95rem; }
.cart-item-variant { font-size: .82rem; color: var(--ink-muted); }
.cart-item-price { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.order-summary {
  background: var(--card);
  border-radius: var(--r-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: .9rem;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line-soft);
}
.summary-line:last-child { border-bottom: none; }
.summary-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ===================================================================
   12. Formulare
   =================================================================== */
.form-group { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  font-size: .95rem;
  color: var(--ink);
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(78,169,161,.15);
}
.form-control::placeholder { color: var(--ink-soft); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: .78rem; color: var(--ink-soft); margin-top: var(--space-1); }
.form-error { font-size: .8rem; color: var(--error); margin-top: var(--space-1); }

/* ===================================================================
   13. Aktionsbanner
   =================================================================== */
.promo-banner {
  border-radius: var(--r-md);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.promo-banner.accent { background: var(--mint-soft); border: 1.5px solid var(--mint-light); color: var(--mint-xdeep); }
.promo-banner.dark   { background: var(--ink); color: #fff; }
.promo-banner.success { background: var(--success-bg); border: 1.5px solid rgba(46,125,90,.2); color: var(--success); }
.promo-title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.promo-body  { font-size: .9rem; }

/* ===================================================================
   14. Section-Headings
   =================================================================== */
.section { padding: var(--space-16) 0; position: relative; z-index: 1; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.section-title span { color: var(--mint-deep); }
.section-subtitle { font-size: .92rem; color: var(--ink-muted); margin-top: var(--space-1); }

/* ===================================================================
   15. Cards & Panels (generic)
   =================================================================== */
.card {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line-soft);
  padding: var(--space-6);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
}

/* ===================================================================
   16. Alerts / Badges
   =================================================================== */
.alert {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--r);
  font-size: .9rem;
  margin-bottom: var(--space-4);
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(46,125,90,.2); }
.alert-error   { background: var(--error-bg);   color: var(--error);   border: 1px solid rgba(192,57,43,.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(214,137,16,.2); }
.alert-mint    { background: var(--mint-soft);  color: var(--mint-xdeep); border: 1px solid var(--mint-light); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-mint    { background: var(--mint-soft);   color: var(--mint-xdeep); }
.badge-dark    { background: var(--ink);          color: #fff; }
.badge-success { background: var(--success-bg);   color: var(--success); }
.badge-error   { background: var(--error-bg);     color: var(--error); }
.badge-warning { background: var(--warning-bg);   color: var(--warning); }

/* ===================================================================
   17. Tabellen (Admin)
   =================================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.data-table th {
  background: var(--mint-soft);
  color: var(--mint-xdeep);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--line);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg-warm); }
.data-table .actions { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }

/* ===================================================================
   18. Admin-Sidebar
   =================================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  gap: 0;
}
.admin-sidebar {
  background: var(--ink);
  color: #fff;
  padding: var(--space-6) 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--mint-light);
  padding: 0 var(--space-5) var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.admin-nav-section {
  padding: var(--space-2) var(--space-5);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-top: var(--space-4);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-5);
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  font-weight: 600;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(126,203,196,.15);
  color: var(--mint-light);
}
.admin-nav-link.active { border-left: 3px solid var(--mint); }
.admin-content {
  padding: var(--space-8);
  background: var(--bg);
  overflow-x: auto;
}
.admin-page-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { padding: var(--space-4); }
}

/* ===================================================================
   19. Footer
   =================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: var(--space-12) 0 var(--space-6);
  position: relative;
  z-index: 1;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(126,203,196,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-3);
}
.footer-logo span { color: var(--mint-light); }
.footer-desc { font-size: .85rem; line-height: 1.7; }
.footer-col-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
  margin-bottom: var(--space-3);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: color .12s;
  text-decoration: none;
}
.footer-links a:hover { color