:root {
  --navy: #193149;
  --navy-soft: #2a4560;
  --coral: #ED4031;
  --coral-dark: #c93224;
  --paper: #F6F6F4;
  --card: #ffffff;
  --line: #dfe2e5;
  --muted: #5f6b77;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 16px/1.55 "Inter", system-ui, sans-serif;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ── Kopfzeile ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(246, 246, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: "Aboreto", serif; font-size: 26px; letter-spacing: .12em;
  text-decoration: none;
}
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--navy); background: transparent; color: var(--navy);
  border-radius: 999px; padding: 8px 16px; font-weight: 500;
}
.cart-count {
  min-width: 24px; height: 24px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--coral); color: #fff; font-size: 13px; font-weight: 600; padding: 0 6px;
}
.cart-btn.bump .cart-count { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ── Hero ────────────────────────────── */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 64px; }
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(28px, 5vw, 48px); max-width: 720px; }
.eyebrow { color: var(--coral); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
.hero h1 {
  font-family: "Aboreto", serif; font-weight: 400;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin: 0 0 18px; letter-spacing: .02em;
}
.lead { font-size: 18px; color: var(--muted); margin: 0; }

.notice {
  background: #fff; border-left: 4px solid var(--coral);
  padding: 12px 16px; border-radius: 8px; margin-bottom: 24px;
}

/* ── Produktkarten ───────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.loading { color: var(--muted); }

.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.visual {
  aspect-ratio: 1 / 1; background: #ECEDEA;
  display: grid; place-items: center; position: relative;
}
.visual svg { width: 72%; height: 72%; transition: fill .25s; }
.visual img { width: 100%; height: 100%; object-fit: cover; }
.garment { stroke: rgba(25, 49, 73, .28); stroke-width: 2; stroke-linejoin: round; }
.garment-detail { fill: none; stroke: rgba(25, 49, 73, .28); stroke-width: 2; }
.garment-shade { fill: rgba(0, 0, 0, .10); }

.body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.price { font-weight: 600; white-space: nowrap; }
.desc { margin: -8px 0 0; color: var(--muted); font-size: 14px; }

.opt-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; display: block; }
.opt-label b { color: var(--navy); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; margin-left: 4px; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(25, 49, 73, .25); padding: 0;
  outline-offset: 3px;
}
.swatch[aria-pressed="true"] { outline: 2px solid var(--navy); }

.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.size {
  min-width: 44px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 8px; font-size: 14px; font-weight: 500;
}
.size:hover { border-color: var(--navy-soft); }
.size[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.buy-row { display: flex; gap: 10px; margin-top: auto; }
.qty {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.qty button { width: 36px; height: 44px; border: 0; background: #fff; color: var(--navy); font-size: 18px; }
.qty input {
  width: 38px; height: 44px; border: 0; text-align: center; font: inherit; color: var(--navy);
  -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-primary {
  flex: 1; height: 46px; border: 0; border-radius: 10px;
  background: var(--coral); color: #fff; font-weight: 600; letter-spacing: .01em;
  transition: background .15s;
}
.btn-primary:hover { background: var(--coral-dark); }
.btn-primary:disabled { background: #c9cdd1; cursor: not-allowed; }
.hint { font-size: 13px; color: var(--coral-dark); min-height: 18px; margin: -6px 0 0; }

/* ── Warenkorb ───────────────────────── */
.backdrop { position: fixed; inset: 0; background: rgba(25, 49, 73, .35); z-index: 20; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 30;
  width: min(420px, 100%); background: var(--paper);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(25, 49, 73, .15);
}
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-family: "Aboreto", serif; font-weight: 400; margin: 0; font-size: 22px; letter-spacing: .06em; }
.icon-btn { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--navy); }

.cart-items { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.cart-empty { padding: 24px 20px; color: var(--muted); }
.ci { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-dot { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line); }
.ci-name { font-weight: 600; font-size: 15px; }
.ci-meta { font-size: 13px; color: var(--muted); }
.ci-right { text-align: right; }
.ci-qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.ci-qty button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.ci-remove { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; margin-top: 6px; }

.cart-foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); background: #fff; }
.row { display: flex; justify-content: space-between; padding: 3px 0; }
.row.muted { color: var(--muted); font-size: 14px; }
.row.total { font-weight: 600; font-size: 18px; padding-top: 8px; }
.tax { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.terms { display: flex; gap: 10px; font-size: 13px; align-items: flex-start; margin-bottom: 14px; }
.terms input { margin-top: 3px; accent-color: var(--coral); width: 16px; height: 16px; flex-shrink: 0; }
.cart-foot .btn-primary { width: 100%; height: 50px; font-size: 16px; }
.pay-hint { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.error { color: var(--coral-dark); font-size: 14px; margin: 8px 0 0; min-height: 0; }

/* ── Footer ──────────────────────────── */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
