/* ============================================================ Aromainsel-Shop
   Ergänzt styles.css. Nur Shop-spezifisches — Farben, Schriften und Abstände
   kommen aus den Tokens der Hauptdatei.
   ------------------------------------------------------------------------- */

/* --------------------------------------------------------------- Filter */
.shop-filter {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.shop-filter__btn {
  font: inherit; font-size: .875rem; cursor: pointer;
  padding: .55em 1.1em; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  transition: background .18s, color .18s, border-color .18s;
}
a.shop-filter__btn { display: inline-block; text-decoration: none; }
.shop-filter__btn:hover { border-color: var(--leaf); color: var(--leaf); }
.shop-filter__btn.is-active {
  background: var(--leaf); border-color: var(--leaf); color: #fff;
}

/* Die Kategoriezeile ueber dem Produktnamen fuehrt zur Gruppenseite. */
.shop-detail .eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.shop-detail .eyebrow a:hover { color: var(--leaf); }

/* Inhaltsstoffe: kompakte Liste, die den Beschreibungstext nicht erschlaegt */
.shop-inci ul { list-style: none; padding: 0; margin: .6rem 0 0; }
.shop-inci li {
  font-size: .875rem; color: var(--ink-soft);
  padding: .28rem 0; border-bottom: 1px solid var(--line);
}
.shop-inci li:last-child { border-bottom: 0; }
.shop-inci__titel { font-size: .95rem; margin-top: 1.2rem; }
.shop-inci__fussnote { font-size: .8rem; color: var(--ink-mute); margin-top: .6rem; }

/* ----------------------------------------------------------- Produktgitter */
.shop-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.shop-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(42,33,29,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(42,33,29,.12); }
.shop-card__media { position: relative; background: var(--paper-2); }
.shop-card__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.shop-card__out {
  position: absolute; left: .75rem; bottom: .75rem;
  background: rgba(42,33,29,.86); color: #fff;
  font-size: .75rem; padding: .3em .7em; border-radius: var(--radius-pill);
}
.shop-card__body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.shop-card__kat { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--leaf); margin: 0; }
.shop-card h3 { font-size: 1rem; line-height: 1.3; margin: 0; }
.shop-card__preis { margin: auto 0 0; padding-top: .5rem; font-weight: 700; color: var(--ink); }
.shop-leer { text-align: center; color: var(--ink-mute); padding: 3rem 0; }

/* ------------------------------------------------------------ Detailseite */
.shop-detail__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 1/1; object-fit: cover; }
.shop-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.shop-thumb {
  padding: 0; border: 2px solid transparent; border-radius: 12px;
  background: none; cursor: pointer; line-height: 0; overflow: hidden;
}
.shop-thumb img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
.shop-thumb.is-active, .shop-thumb:hover { border-color: var(--leaf); }
.shop-detail__preis { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.1rem); margin: .4rem 0 0; }
.shop-select { display: block; max-width: 22rem; margin-top: 1.5rem; }
.shop-select span { display: block; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .4rem; }
.shop-select select {
  font: inherit; width: 100%; padding: .8em 1em;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}

/* -------------------------------------------------------------- Warenkorb */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-size: .875rem; cursor: pointer;
  padding: .6em 1.1em; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.cart-btn:hover { border-color: var(--leaf); color: var(--leaf); }
.cart-btn__zahl {
  min-width: 1.35em; height: 1.35em; padding: 0 .35em;
  display: inline-grid; place-items: center;
  background: var(--rose); color: #fff; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700;
}
.cart-btn__zahl:empty, .cart-btn__zahl[hidden] { display: none; }

.cart-overlay {
  position: fixed; inset: 0; background: rgba(42,33,29,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 100vw);
  background: var(--paper); z-index: 91; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -10px 0 40px rgba(42,33,29,.18);
}
.cart-drawer.is-open { transform: none; }
.cart-drawer__kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
}
.cart-drawer__kopf h2 { margin: 0; font-size: 1.2rem; }
.cart-drawer__zu { font: inherit; font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink-mute); padding: 0 .25rem; }
.cart-drawer__liste { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-zeile { display: grid; grid-template-columns: 62px 1fr auto; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-zeile img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; }
.cart-zeile__name { font-size: .9rem; line-height: 1.35; margin: 0 0 .15rem; }
.cart-zeile__var { font-size: .78rem; color: var(--ink-mute); margin: 0 0 .35rem; }
.cart-menge { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.cart-menge button { font: inherit; width: 1.9rem; height: 1.7rem; background: #fff; border: 0; cursor: pointer; color: var(--ink-soft); }
.cart-menge button:hover { background: var(--paper-2); }
.cart-menge span { min-width: 1.5rem; text-align: center; font-size: .85rem; }
.cart-zeile__preis { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.cart-drawer__fuss { padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper-2); }
.cart-summe { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .4rem; }
.cart-summe--gesamt { font-size: 1.05rem; font-weight: 700; margin: .6rem 0 1rem; }
.cart-hinweis { font-size: .78rem; color: var(--ink-mute); margin: .6rem 0 0; }
.cart-leer { text-align: center; color: var(--ink-mute); padding: 3rem 1rem; }

@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-overlay, .shop-card { transition: none; }
}

/* Produktseite: das Textfeld ist deutlich hoeher als das Bild. Ohne diese
   Korrektur zentriert .split das Bild vertikal und es rutscht weit nach unten. */
.shop-detail .split { align-items: start; }
.shop-detail h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
@media (min-width: 900px) {
  .shop-detail__media { position: sticky; top: calc(var(--header-h, 84px) + 1.5rem); }
}
.shop-detail__zwi { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.shop-detail__zwi:first-child { margin-top: 0; }
.shop-filter__btn--sub { font-size: .82rem; opacity: .85; }
.shop-filter__btn--sub::before { content: "└ "; opacity: .5; }
