:root {
  --black: #0b0b0d;
  --charcoal: #18171b;
  --charcoal-2: #221f23;
  --gold: #c9a227;
  --gold-bright: #e8c766;
  --cream: #f3efe6;
  --muted: #8b8780;

  --radius: 14px;
  --content-max: 480px;
  --header-h: 56px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: var(--content-max);
  min-height: 100vh;
  background: var(--black);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
  padding-bottom: calc(var(--nav-h) + 12px);
}

/* ---------- Header ---------- */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,11,13,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201,162,39,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  height: var(--header-h);
}

.wordmark {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 19px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0;
}

.lang-select {
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  appearance: none;
}
.lang-select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ---------- Search ---------- */
.search-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 19;
  background: var(--black);
  padding: 10px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.search-input {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.results-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px 4px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Category chips ---------- */
.cat-chips-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 2px;
}

.cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
}
.cat-chips::-webkit-scrollbar { display: none; }

.chip-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.35);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip-arrow:active { background: var(--charcoal-2); }
.chip-arrow:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.chip {
  flex: 0 0 auto;
  background: var(--charcoal);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.chip.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 600;
}
.chip:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 10px 16px 8px;
}

@media (min-width: 540px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.35s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; opacity: 1; transform: none; }
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--charcoal-2);
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }

.card-img-wrap.sold img {
  filter: grayscale(0.85) brightness(0.55);
}
.sold-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--cream);
  background: rgba(0,0,0,0.25);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card-name {
  font-size: 13px;
  line-height: 1.3;
  color: var(--cream);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}
.card-price {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  color: var(--gold-bright);
  font-size: 16px;
}
.card-vat-note {
  font-size: 10.5px;
  color: var(--muted);
}

.card-stock {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.card-stock.in { color: #9fb892; }

/* ---------- Empty / loading states ---------- */
.state-block {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.state-block .state-title {
  font-family: 'Oswald', sans-serif;
  color: var(--cream);
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ---------- Bottom nav ---------- */
nav.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-max);
  height: var(--nav-h);
  background: rgba(17,16,19,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(201,162,39,0.18);
  display: flex;
  z-index: 30;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.nav-btn svg { width: 21px; height: 21px; transition: transform 0.32s cubic-bezier(.34,1.56,.64,1); }
.nav-btn.active { color: var(--gold-bright); }
.nav-btn.active svg { transform: translateY(-2px) scale(1.08); }
.nav-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.nav-btn .badge {
  position: absolute;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 14px);
  transform: translate(-50%, 8px);
  background: var(--charcoal-2);
  color: var(--cream);
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 40;
  max-width: calc(var(--content-max) - 32px);
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Detail sheet ---------- */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.detail-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-sheet {
  width: 100%;
  max-width: var(--content-max);
  max-height: 88vh;
  background: var(--black);
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.32,.72,0,1);
}
.detail-overlay.open .detail-sheet {
  transform: translateY(0);
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11,11,13,0.7);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  cursor: pointer;
}

.detail-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: var(--charcoal-2);
}
.detail-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
}

.detail-body {
  padding: 18px 20px 28px;
}

.detail-kat {
  display: inline-block;
  background: rgba(201,162,39,0.12);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.detail-name {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 6px;
}

.detail-price {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.detail-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
}

.detail-size-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.size-btn {
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 4px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.size-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 600;
}
.size-btn.disabled, .size-btn:disabled {
  color: var(--muted);
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.add-to-cart-btn:active { background: var(--gold-bright); }

/* ---------- Cart badge ---------- */
.nav-icon-wrap { position: relative; display: inline-flex; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
}

/* ---------- Cart sheet ---------- */
.cart-body { padding: 18px 20px 28px; }

.cart-header {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--charcoal-2);
  flex: 0 0 auto;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 12.5px;
  color: var(--cream);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-size { font-size: 11px; color: var(--muted); margin-top: 1px; }
.cart-item-price { font-size: 12.5px; color: var(--gold-bright); margin-top: 2px; font-family: 'Oswald', sans-serif; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.cart-item-qty span { font-size: 13px; min-width: 16px; text-align: center; }

.cart-item-remove {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  color: var(--cream);
  margin: 18px 0 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,162,39,0.25);
}
.cart-total-row span:last-child { color: var(--gold-bright); }

.back-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
}

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.shipping-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--cream);
}
.shipping-option.active {
  border-color: var(--gold);
  background: rgba(201,162,39,0.1);
}
.shipping-price { color: var(--gold-bright); font-family: 'Oswald', sans-serif; }
.shipping-price s { color: var(--muted); margin-right: 4px; }

.free-shipping-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.final-total {
  font-size: 17px;
  border-top: 1px solid rgba(201,162,39,0.4);
  padding-top: 14px;
  margin-top: 4px;
}

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.age-gate-logo { font-size: 24px; margin-bottom: 28px; }
.age-gate-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 14px;
}
.age-gate-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 26px;
}
.age-gate-yes { margin-bottom: 12px; }
.age-gate-no {
  width: 100%;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted);
  border-radius: 10px;
  padding: 13px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  cursor: pointer;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 16px 16px 90px;
  font-size: 12px;
  opacity: .55;
}
.legal-footer a {
  color: inherit;
  text-decoration: none;
}
.legal-footer a:hover {
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-info-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: inherit;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-info-btn:hover {
  border-color: rgba(255,255,255,.5);
}
.legal-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 4px;
}
.legal-links a {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.legal-links a:hover {
  opacity: .7;
}


.whatsapp-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-sizing: border-box;
  transition: background 0.2s;
}
.whatsapp-order-btn:hover {
  background: #1ebe5a;
}


.legal-withdrawal-action-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: inherit;
  font-size: 15px;
  font-family: inherit;
  padding: 12px 0;
  cursor: pointer;
  text-decoration: none;
}
.legal-withdrawal-action-btn:hover {
  opacity: .7;
}
.widerruf-title { font-size: 18px; margin-bottom: 8px; }
.widerruf-info { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.widerruf-summary { font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.widerruf-label { display: block; font-size: 13px; margin-bottom: 12px; }
.widerruf-input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  background: var(--charcoal-2);
  border: 1px solid var(--border-color, #444);
  color: inherit;
  border-radius: 4px;
  box-sizing: border-box;
  font: inherit;
}
.widerruf-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--gold, #d4af37);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}
.widerruf-back-btn {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px solid var(--muted);
  color: inherit;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
}
.widerruf-error { color: #e57373; font-size: 13px; margin-top: 12px; }


/* ---------- Hamburger / Drawer ---------- */
.menu-btn {
  background: none;
  border: none;
  color: var(--gold);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.menu-btn svg { width: 24px; height: 24px; }
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 40;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 78%; max-width: 320px;
  background: var(--charcoal);
  border-right: 1px solid rgba(201,162,39,0.25);
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  padding: 16px;
}
.drawer-overlay.open .drawer-panel { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.drawer-categories { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer-cat-btn {
  background: none; border: none; text-align: left;
  color: var(--cream); font-family: 'Inter', sans-serif; font-size: 15px;
  padding: 12px 8px; border-radius: 8px; cursor: pointer;
}
.drawer-cat-btn.active { color: var(--gold-bright); background: var(--charcoal-2); }

/* ---------- Wishlist / Merkliste ---------- */
.wish-heart-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(11,11,13,0.55);
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); cursor: pointer;
}
.wish-heart-btn svg { width: 18px; height: 18px; }
.wish-heart-btn.active { color: var(--gold-bright); }
.wish-heart-btn.active svg { fill: var(--gold-bright); }
.detail-heart-btn {
  background: none; border: 1px solid rgba(201,162,39,0.35);
  border-radius: 8px; padding: 8px 12px; color: var(--cream);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13.5px; margin-top: 8px;
}
.detail-heart-btn.active { color: var(--gold-bright); border-color: var(--gold-bright); }
.detail-heart-btn svg { width: 16px; height: 16px; }
.detail-heart-btn.active svg { fill: var(--gold-bright); }

.wish-form-label { font-size: 12.5px; color: var(--muted); margin: 12px 0 4px; font-family: 'Inter', sans-serif; }
.wish-form-input, .wish-form-select {
  width: 100%; background: var(--charcoal); border: 1px solid rgba(255,255,255,0.08);
  color: var(--cream); border-radius: 10px; padding: 10px 12px;
  font-family: 'Inter', sans-serif; font-size: 14px; margin-bottom: 8px;
}
.wish-share-box {
  background: var(--charcoal-2); border: 1px solid rgba(201,162,39,0.3);
  border-radius: 10px; padding: 10px; margin: 10px 0; font-size: 13px;
  color: var(--cream); word-break: break-all;
}
.wish-share-actions { display: flex; gap: 8px; margin-top: 8px; }
.wish-share-actions button {
  flex: 1; background: var(--gold); color: var(--black); border: none;
  border-radius: 8px; padding: 9px; font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer;
}


/* ---------- Chip-Leiste ausgeblendet ---------- */
.cat-chips-wrap { display: none; }
