/* ── XPeng Fahrer Forum Shop — Design System ────────────────────────────────── */
/* Palette & type matched to the live xpeng-fahrer.de Discourse theme:
   accent blue #0088CC/#25AAE2 (light), tertiary #099dd7 (dark), Inter, 4px radii. */

@font-face {
  font-family: 'Inter';
  src: url('https://xpeng-fahrer.de/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Palette — light (default; matches forum body rgb(248,248,248)) */
  --bg:          #F8F8F8;
  --surface:     #FFFFFF;
  --surface2:    #F0F0F0;
  --border:      #DDDDDD;
  --accent:      #0088CC;
  --accent-h:    #25AAE2;
  --accent-rgb:  0,136,204;
  --accent-text: #FFFFFF;
  --text:        #222222;
  --text-muted:  #6B6B6B;
  --text-soft:   #454545;
  --white:       #FFFFFF;
  --danger:      #E84A51;
  --success:     #0CA64E;
  --warning:     #F0794A;

  /* Radii & Shadows — Discourse uses tight 4px/8px radii, not rounded cards */
  --r-sm:  4px;
  --r-md:  4px;
  --r-lg:  8px;
  --r-xl:  12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --tr: .18s ease;
}

/* Dark theme override — matches forum's dark palette (--secondary bg, --primary text, --tertiary accent) */
:root[data-theme="dark"] {
  --bg:        #222222;
  --surface:   #2A2A2A;
  --surface2:  #313131;
  --border:    #3D3D3D;
  --accent:    #099DD7;
  --accent-h:  #25AAE2;
  --accent-rgb: 9,157,215;
  --accent-text: #FFFFFF;
  --text:      #DDDDDD;
  --text-muted:#9A9A9A;
  --text-soft: #C0C0C0;
  --danger:    #E45735;
  --success:   #1CA551;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #222222;
    --surface:   #2A2A2A;
    --surface2:  #313131;
    --border:    #3D3D3D;
    --accent:    #099DD7;
    --accent-h:  #25AAE2;
    --accent-rgb: 9,157,215;
    --accent-text: #FFFFFF;
    --text:      #DDDDDD;
    --text-muted:#9A9A9A;
    --text-soft: #C0C0C0;
    --danger:    #E45735;
    --success:   #1CA551;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
    --shadow-md: 0 8px 24px rgba(0,0,0,.45);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
  }
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--accent-h); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section--light { background: var(--surface); }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 52px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo-sub {
  font-size: .64rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: .4rem .75rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--tr), background var(--tr);
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent); }
.cat-square {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: .45rem;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Search */
.header-search {
  position: relative;
  flex-shrink: 0;
}
.header-search input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  padding: .45rem 1rem .45rem 2.2rem;
  font-size: .875rem;
  width: 200px;
  transition: border-color var(--tr), width var(--tr);
  outline: none;
}
.header-search input:focus { border-color: var(--accent); width: 260px; }
.header-search input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: .65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: .85rem;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-soft);
  padding: .45rem;
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  transition: color var(--tr), background var(--tr);
  display: flex;
  align-items: center;
}
.icon-btn:hover { color: var(--text); background: var(--surface2); }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 99px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  padding: .3rem;
}

/* Promo bar */
.promo-bar {
  background: var(--accent);
  text-align: center;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: .02em;
}
.promo-bar a { color: var(--accent-text); text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand .logo-name { font-size: 1rem; margin-bottom: .5rem; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: .875rem;
  color: var(--text-soft);
  margin-bottom: .5rem;
  transition: color var(--tr);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.footer-payment-icons { display: flex; gap: .75rem; }
.payment-icon {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: none;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  padding: .6rem 1.3rem;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), transform var(--tr), opacity var(--tr);
  text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-h); color: var(--accent-text); }
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--border); color: var(--text); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover:not(:disabled) { background: var(--accent); color: var(--accent-text); }
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--surface2); }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: .45rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  padding: .65rem .9rem;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color var(--tr);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { font-size: .82rem; color: var(--danger); margin-top: .4rem; }
.form-hint  { font-size: .82rem; color: var(--text-muted); margin-top: .35rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  cursor: pointer;
  font-size: .875rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.checkbox-label input[type=checkbox] { margin-top: .2rem; accent-color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #101010 0%, #0A0A0A 60%, #050505 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 80% 40%, rgba(255,255,255,.08) 0%, transparent 65%);
}
.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6FC6EC;
  margin-bottom: .75rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: #6FC6EC; }
.hero-desc {
  /* .hero always renders on a fixed dark gradient regardless of theme, so its text
     needs fixed light colors rather than the theme-dependent --text-soft token. */
  font-size: 1rem;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* ── Hero slider (admin-managed banners) ────────────────────────────────────── */
/* Height comes from an inline aspect-ratio matching the admin's configured banner size
   (see admin/banners.php "Hero-Banner-Format"), so the slider scales with viewport width
   instead of a fixed px height — the min-height below is just a pre-aspect-ratio fallback.
   max-height caps it to the visible viewport so the banner is never taller than the screen;
   once that cap kicks in, object-fit:contain on the image (below) keeps the banner's own
   ratio intact and fully visible — it just centers with letterbox bars instead of overflowing. */
.hero-slider { position: relative; overflow: hidden; min-height: 440px; width: 100%; max-height: 100vh; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease;
}
.hero-slide--active { position: relative; opacity: 1; visibility: visible; }
/* object-fit:contain (not cover) — the banner image is always fully visible, never cropped;
   the slide's own background-color (set per-banner) fills any letterboxed gutters. */
.hero-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-slide__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, transparent 100%); }
.hero-slide--image-only { min-height: 320px; }
.hero-slide__body { position: relative; z-index: 1; padding: 3rem 0; }
.hero-slide__text { max-width: 520px; }
.hero-slide__text h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: .6rem; text-wrap: balance; }
.hero-slide__text p { font-size: 1rem; opacity: .85; margin-bottom: 1.25rem; }
.hero-slide__cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.hero-dot { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; transition: background var(--tr), width var(--tr); }
.hero-dot--active { background: #fff; width: 22px; }

/* ── Featured showcase (hero product + side grid) ───────────────────────────── */
.featured-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.featured-hero-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--surface2);
  text-decoration: none;
}
.featured-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.featured-hero-card:hover .featured-hero-img { transform: scale(1.04); }
.featured-hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}
.featured-hero-name { font-size: 1.5rem; font-weight: 800; color: #fff; margin: .5rem 0 .35rem; text-wrap: balance; }
.featured-hero-desc { font-size: .9rem; color: rgba(255,255,255,.75); margin-bottom: .75rem; max-width: 420px; }
.featured-hero-price { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.featured-hero-overlay .btn-primary { align-self: flex-start; }
.featured-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Promo banners ───────────────────────────────────────────────────────────── */
.promo-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.promo-banner {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .55; }
.promo-text { position: relative; z-index: 1; padding: 1.5rem; }
.promo-text h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .3rem; }
.promo-text p { font-size: .88rem; opacity: .85; margin-bottom: .9rem; }
.btn-outline-white {
  display: inline-flex; align-items: center;
  border: 1.5px solid #fff; color: #fff;
  border-radius: var(--r-md); padding: .5rem 1.1rem;
  font-size: .85rem; font-weight: 700; text-decoration: none;
  transition: background var(--tr), color var(--tr);
}
.btn-outline-white:hover { background: #fff; color: #111; }

@media (max-width: 900px) {
  .featured-showcase { grid-template-columns: 1fr; }
  .featured-side-grid { grid-template-columns: 1fr 1fr; }
  .promo-banners { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .featured-side-grid { grid-template-columns: 1fr; }
}

/* ── USP Strip ───────────────────────────────────────────────────────────────── */
.usp-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.usp-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .82rem;
}
.usp-icon { font-size: 1.25rem; flex-shrink: 0; }
.usp-item strong { display: block; font-weight: 700; color: var(--text); font-size: .85rem; }
.usp-item span { color: var(--text-muted); }

/* ── Section headers ─────────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.link-more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
}
.link-more:hover { color: var(--accent-h); }

/* ── Product cards ───────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.wishlist-btn {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--tr), transform var(--tr), background var(--tr);
  backdrop-filter: blur(4px);
}
.wishlist-btn:hover { transform: scale(1.08); color: var(--danger); }
.wishlist-btn.active { color: var(--danger); }
:root[data-theme="dark"] .wishlist-btn { background: rgba(30,30,30,.75); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wishlist-btn { background: rgba(30,30,30,.75); }
}

/* Star rating */
.star-rating { display: inline-flex; align-items: center; gap: .15rem; color: var(--accent); font-size: .95rem; letter-spacing: -.05em; }
.star-rating .star-empty { color: var(--border); }
.rating-summary { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .85rem; color: var(--text-muted); }
.product-card:hover {
  border-color: rgba(var(--accent-rgb),.4);
  box-shadow: var(--shadow-sm);
}
.product-img-link { display: block; overflow: hidden; aspect-ratio: 1; background: var(--surface2); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img { transform: scale(1.04); }
.product-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.product-img-link { position: relative; }
.badge { font-size: .68rem; font-weight: 700; border-radius: 99px; padding: .15rem .5rem; }
.badge--sale { background: var(--accent); color: var(--accent-text); }
.badge--new  { background: var(--success); color: #fff; }
.product-info { padding: .9rem 1rem 1rem; }
.product-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--accent); }
.product-price { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.price-current { font-weight: 800; font-size: 1rem; color: var(--text); }
.price-compare { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.add-to-cart-btn { width: 100%; }

/* ── Category grid ───────────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color var(--tr), transform var(--tr);
  text-align: center;
  padding-bottom: .9rem;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
}
.cat-img--placeholder { display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--accent); text-transform: uppercase; }
.cat-name { font-size: .875rem; font-weight: 700; color: var(--text); margin-top: .7rem; display: block; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

/* ── Alert / Toast ───────────────────────────────────────────────────────────── */
.alert {
  padding: .8rem 1rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-error   { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #FCA5A5; }
.alert-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); color: #86EFAC; }
.alert-info    { background: rgba(var(--accent-rgb),.06); border-color: rgba(var(--accent-rgb),.2); color: var(--text); }

/* Toast notification */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .75rem 1.1rem;
  font-size: .875rem;
  color: var(--text);
  box-shadow: var(--shadow-md);
  animation: toastIn .2s ease;
  pointer-events: auto;
  max-width: 320px;
}
.toast.toast--success { border-color: rgba(34,197,94,.4); }
.toast.toast--error   { border-color: rgba(239,68,68,.4); }
@keyframes toastIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: none; } }

/* ── Card boxes ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; color: var(--text); }

/* ── Cart page ───────────────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.cart-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: .9rem; }
.cart-product img { width: 60px; height: 60px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface2); }
.cart-product-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.cart-product-variant { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.qty-stepper { display: flex; align-items: center; gap: .35rem; }
.qty-stepper button {
  width: 28px; height: 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.qty-stepper button:hover { background: var(--border); }
.qty-value { width: 36px; text-align: center; font-weight: 600; font-size: .9rem; }
.remove-btn { color: var(--text-muted); font-size: 1rem; background: none; border: none; padding: .25rem; transition: color var(--tr); }
.remove-btn:hover { color: var(--danger); }

/* Summary box */
.order-summary { position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .4rem 0; color: var(--text-soft); }
.summary-row.total { font-weight: 800; font-size: 1.05rem; color: var(--text); border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .4rem; }
.coupon-form { display: flex; gap: .5rem; margin: .9rem 0; }
.coupon-form input { flex: 1; }
.coupon-form .btn { flex-shrink: 0; padding: .5rem .9rem; }

/* ── Checkout ────────────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.checkout-section-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.checkout-section-title:first-child { margin-top: 0; }

/* ── Account / Login ─────────────────────────────────────────────────────────── */
.auth-wrap {
  max-width: 420px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
.auth-header p { color: var(--text-muted); font-size: .9rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Account layout */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}
.account-nav { position: sticky; top: 80px; }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: .55rem .75rem;
  border-radius: var(--r-sm);
  transition: color var(--tr), background var(--tr);
  margin-bottom: .2rem;
}
.account-nav-link:hover { color: var(--text); background: var(--surface2); }
.account-nav-link.active { color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.account-nav-link .nav-icon { font-size: 1rem; }

/* ── Order list / detail ─────────────────────────────────────────────────────── */
.order-list { display: flex; flex-direction: column; gap: 1rem; }
.order-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  transition: border-color var(--tr);
}
.order-item:hover { border-color: rgba(var(--accent-rgb),.3); }
.order-item-id { font-weight: 700; font-size: .9rem; color: var(--text); }
.order-item-meta { font-size: .8rem; color: var(--text-muted); }
.order-status {
  font-size: .75rem;
  font-weight: 700;
  border-radius: 99px;
  padding: .2rem .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status--pending    { background: rgba(245,158,11,.15); color: #FCD34D; }
.status--processing { background: rgba(var(--accent-rgb),.1); color: var(--text); }
.status--shipped    { background: rgba(59,130,246,.12); color: #93C5FD; }
.status--delivered  { background: rgba(34,197,94,.12); color: #86EFAC; }
.status--cancelled  { background: rgba(239,68,68,.12); color: #FCA5A5; }

/* ── Product detail ──────────────────────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0;
}
.product-gallery { position: sticky; top: 80px; }
.gallery-main {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: .75rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--tr);
  background: var(--surface2);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-name { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-bottom: .6rem; }
.product-detail-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 1.25rem; }
.product-detail-desc { font-size: .9rem; color: var(--text-soft); line-height: 1.75; margin-bottom: 1.5rem; }
.tag-chip {
  display: inline-flex;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .25rem .7rem;
  text-decoration: none;
  transition: color var(--tr), border-color var(--tr);
}
.tag-chip:hover { color: var(--accent); border-color: var(--accent); }

/* Variants */
.variant-label { font-size: .85rem; font-weight: 600; margin-bottom: .5rem; color: var(--text-soft); }
.variant-options { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.variant-btn {
  padding: .45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr);
}
.variant-btn.active { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); color: var(--text); }
.variant-btn:hover:not(.active) { border-color: var(--accent); }
.variant-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Dropdown variant style */
.variant-options--dropdown { max-width: 320px; }

/* Swatch variant style */
.variant-options--swatch { align-items: center; }
.variant-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  position: relative;
}
.variant-swatch:hover:not(:disabled) { transform: scale(1.08); }
.variant-swatch.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.variant-swatch:disabled { opacity: .3; cursor: not-allowed; }
.variant-name-display { font-size: .82rem; color: var(--text-muted); margin: -.6rem 0 1.25rem; }

/* Icon variant style */
.variant-options--icon { gap: .6rem; }
.variant-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .6rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr);
  min-width: 64px;
}
.variant-icon-glyph { font-size: 1.3rem; line-height: 1; }
.variant-icon-label { font-size: .72rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
.variant-icon-btn.active { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.variant-icon-btn:hover:not(.active) { border-color: var(--accent); }
.variant-icon-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Toggle-switch variant style */
.variant-options--toggle {
  display: inline-flex;
  gap: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  margin-bottom: 1.25rem;
}
.variant-toggle {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 99px;
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
}
.variant-toggle.active { background: var(--accent); color: var(--accent-text); }
.variant-toggle:disabled { opacity: .35; cursor: not-allowed; }

/* Add to cart row */
.add-to-cart-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.qty-input-wrap { display: flex; align-items: center; gap: .4rem; }
.qty-input-wrap button {
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.qty-input-wrap button:hover { background: var(--border); }
.qty-input-wrap input {
  width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: .45rem;
}

/* Product tabs */
.product-tabs { margin-top: 2.5rem; }
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: .65rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--tr), border-color var(--tr);
}
.tab-btn.active { color: var(--accent); border-color: var(--accent); }
.tab-panel { display: none; padding: 1.5rem 0; font-size: .9rem; color: var(--text-soft); line-height: 1.8; }
.tab-panel.active { display: block; }

/* ── Newsletter section ───────────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.newsletter-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.newsletter-section p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  max-width: 420px;
  margin: 0 auto .75rem;
}
.newsletter-form .form-input { flex: 1; }
.newsletter-note { font-size: .77rem; color: var(--text-muted); }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  text-decoration: none;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.page-btn:hover { color: var(--text); background: var(--surface2); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* ── Shop filters ────────────────────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}
.filters-sidebar { position: sticky; top: 80px; }
.filter-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .75rem; }
.filter-group { margin-bottom: 1.5rem; }
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.sort-bar label { font-size: .82rem; color: var(--text-muted); margin-right: .4rem; }
.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: .3rem .65rem;
  font-size: .82rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.results-count { font-size: .82rem; color: var(--text-muted); }

/* ── Legal pages ─────────────────────────────────────────────────────────────── */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.legal-wrap h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .4rem; }
.legal-wrap .legal-date { font-size: .82rem; color: var(--text-muted); margin-bottom: 2rem; }
.legal-wrap h2 { font-size: 1.1rem; font-weight: 700; margin: 2rem 0 .6rem; }
.legal-wrap h3 { font-size: .95rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.legal-wrap p, .legal-wrap li { font-size: .9rem; color: var(--text-soft); line-height: 1.8; }
.legal-wrap ul, .legal-wrap ol { padding-left: 1.3rem; margin: .5rem 0; }
.legal-wrap ul li { list-style: disc; }
.legal-wrap ol li { list-style: decimal; }
.legal-wrap a { color: var(--accent); }

/* ── Animations ──────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.anim { animation: fadeUp .5s ease both; }
.anim-d1 { animation-delay: .05s; }
.anim-d2 { animation-delay: .12s; }
.anim-d3 { animation-delay: .19s; }
.anim-d4 { animation-delay: .26s; }

/* ── Withdrawal button (§312k BGB — permanently accessible "Widerrufsbutton") ── */
.footer-withdraw-row {
  border-top: 1px solid var(--border);
  padding: .9rem 1.25rem;
  display: flex;
  justify-content: center;
}
.btn-withdraw {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .5rem 1.1rem;
  transition: border-color var(--tr), color var(--tr);
}
.btn-withdraw:hover { color: var(--accent); border-color: var(--accent); }

/* ── Cookie consent banner ──────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner__inner { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.cookie-banner__inner p { font-size: .82rem; color: var(--text-soft); line-height: 1.6; margin: 0; }
.cookie-banner__actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .filters-sidebar .filter-group { margin-bottom: 1rem; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .featured-showcase { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .header-nav, .header-search { display: none; }
  .header-nav.open { display: flex; flex-direction: column; position: fixed; inset: 60px 0 0 0; background: var(--bg); z-index: 99; padding: 1.25rem; overflow-y: auto; }
  .form-row { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-banners { grid-template-columns: 1fr; }
  .product-detail-name { font-size: 1.3rem; }
  .add-to-cart-row { flex-direction: column; align-items: stretch; }
  .add-to-cart-row .qty-input-wrap { justify-content: center; }
  .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; }
}
