/* Young Spice — global styles */
:root {
  --bg: #F5F0E6;
  --bg-2: #EDE5D6;
  --surface: #FFFFFF;
  --ink: #1A1714;
  --ink-2: #4A4138;
  --muted: #877C6E;
  --line: #DDD3C0;
  --amber: #D4923B;
  --amber-2: #B57A2C;
  --chili: #C3361F;
  --leaf: #4A6A3F;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display, h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Layout */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 20px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); cursor: pointer;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-2); padding: 8px 14px; border-radius: 8px;
  transition: all .15s;
}
.nav-link:hover { color: var(--ink); background: rgba(26,23,20,0.05); }
.nav-link.active { color: var(--ink); background: rgba(26,23,20,0.07); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); position: relative;
  transition: all .15s;
}
.icon-btn:hover { background: rgba(26,23,20,0.06); }
.cart-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
  transition: transform .15s;
}
.cart-pill:hover { transform: translateY(-1px); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--amber); color: var(--ink);
  border-radius: 999px; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent;
  transition: all .15s; text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-2); color: var(--bg); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(26,23,20,0.06); }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Pills, tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.pill-amber { background: rgba(212,146,59,0.18); color: var(--amber-2); }
.pill-chili { background: rgba(195,54,31,0.12); color: var(--chili); }
.pill-leaf { background: rgba(74,106,63,0.14); color: var(--leaf); }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

/* Image placeholder — striped */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(26,23,20,0.05) 0 1px, transparent 1px 14px),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.ph-amber {
  background:
    repeating-linear-gradient(135deg,
      rgba(26,23,20,0.06) 0 1px, transparent 1px 14px),
    #E9B871;
  border-color: #C49251;
}
.ph-ink {
  background:
    repeating-linear-gradient(135deg,
      rgba(245,240,230,0.06) 0 1px, transparent 1px 14px),
    #2A2520;
  border-color: #2A2520;
  color: var(--bg);
}
.ph-chili {
  background:
    repeating-linear-gradient(135deg,
      rgba(26,23,20,0.06) 0 1px, transparent 1px 14px),
    #D85A45;
  border-color: #A12E1B;
  color: #fff;
}
.ph-leaf {
  background:
    repeating-linear-gradient(135deg,
      rgba(26,23,20,0.06) 0 1px, transparent 1px 14px),
    #8AA37C;
  border-color: #4A6A3F;
}
.ph-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(26,23,20,0.78); color: var(--bg);
}
.ph-ink .ph-label { background: rgba(245,240,230,0.18); color: var(--bg); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.card-flat {
  background: var(--bg-2);
  border: 0;
  border-radius: 20px;
  padding: 24px;
}

/* Inputs */
.input, .select {
  width: 100%;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 15px; color: var(--ink);
  outline: none; transition: border-color .15s;
}
.input:focus, .select:focus { border-color: var(--ink); }
.label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 8px;
}

/* Sections */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* Footer */
.footer {
  margin-top: auto;
  background: var(--ink); color: #C4BCAE;
  padding: 80px 0 32px;
}
.footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--bg); font-size: 14px; font-weight: 600;
  margin: 0 0 16px; letter-spacing: 0.02em;
}
.footer a {
  color: #C4BCAE; text-decoration: none; font-size: 14px;
  display: block; padding: 4px 0;
}
.footer a:hover { color: var(--bg); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-bottom {
  border-top: 1px solid rgba(245,240,230,0.1);
  padding-top: 24px; display: flex; justify-content: space-between;
  font-size: 13px; color: #877C6E;
}

/* Utility */
.muted { color: var(--muted); }
.row { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.center { text-align: center; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .4s ease both; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 28s linear infinite;
}

/* Tabs */
.tabs { display: inline-flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 12px; }
.tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 10px 18px; border-radius: 8px; font-weight: 500; color: var(--ink-2);
  font-size: 14px;
}
.tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* Slide-out cart */
.scrim {
  position: fixed; inset: 0; background: rgba(26,23,20,0.4);
  z-index: 100; backdrop-filter: blur(2px);
  animation: fadeUp .2s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 440px;
  background: var(--bg); z-index: 101;
  display: flex; flex-direction: column;
  animation: slideIn .25s ease both;
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: fadeUp .3s ease;
}

/* Star rating */
.stars { display: inline-flex; gap: 2px; color: var(--amber-2); }

/* Hover lift card */
.lift { transition: all .2s; cursor: pointer; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,23,20,0.08); }

/* Divider */
.hr { height: 1px; background: var(--line); border: 0; margin: 24px 0; }

/* Selected state for option chips */
.opt {
  border: 1.5px solid var(--line); background: var(--surface);
  padding: 14px 16px; border-radius: 12px; cursor: pointer;
  transition: all .15s; text-align: left;
}
.opt:hover { border-color: var(--ink-2); }
.opt.selected { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.opt.selected .muted { color: rgba(245,240,230,0.7); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.menu-btn {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.menu-btn:hover { background: rgba(26,23,20,0.06); }
.mobile-nav {
  position: fixed; top: 72px; left: 0; right: 0;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  z-index: 49;
  background: var(--surface);
  display: none;
  flex-direction: column; padding: 16px 24px 48px;
  animation: fadeUp .2s ease;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(26, 23, 20, 0.18);
  border-top: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-size: 28px; padding: 20px 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--ink);
  text-align: left; width: 100%;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active { background: var(--bg-2); color: var(--ink); }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .container, .container-wide { padding: 0 24px; }
  .section { padding: 72px 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 40px !important;
  }
  /* Repeat 4 → 3 on tablet */
  [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .container, .container-wide { padding: 0 20px; }
  .section { padding: 56px 0 !important; }
  .section-sm { padding: 40px 0; }

  /* NAV */
  .nav-inner { height: 60px; }
  .nav-links { display: none !important; }
  .menu-btn { display: inline-flex; }
  .cart-pill { padding: 8px 12px 8px 10px; font-size: 13px; }
  .cart-pill > span:nth-child(2) { display: none; } /* hide "Warenkorb" label */
  .icon-btn[title="Suche"], .icon-btn[title="Account"] { display: none; }
  .mobile-nav {
    top: 60px;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
  }

  /* MARQUEE */
  .marquee-track { gap: 32px; animation-duration: 22s; }

  /* TYPOGRAPHY — cap huge hero text */
  h1 { font-size: clamp(40px, 11vw, 56px) !important; line-height: 1.05 !important; }
  h2 { font-size: clamp(32px, 8vw, 44px) !important; line-height: 1.08 !important; }
  h3 { font-size: 20px !important; }

  /* GRIDS — stack everything on mobile via attribute selectors */
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  [style*="grid-template-columns: 1.05fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  [style*="repeat(3, 1fr)"] { grid-template-columns: 1fr !important; gap: 16px !important; }
  [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  [style*="grid-template-columns: 1fr 2fr"] { grid-template-columns: 1fr 1.4fr !important; }

  /* Hide huge inline padding on sections that use it via style="..." */
  [style*="padding: 96px 0"], [style*="padding: \"96px 0\""] { padding: 56px 0 !important; }
  [style*="padding: 80px 0"] { padding: 48px 0 !important; }
  [style*="paddingTop: 64"] { padding-top: 32px !important; }

  /* Hide absolute-positioned hero floating cards on mobile (overlap chaos) */
  .hero-float, [style*="position: \"absolute\""][style*="bottom: -24"],
  [style*="position: \"absolute\""][style*="top: 32"] { display: none !important; }

  /* CARDS / BUTTONS */
  .card { padding: 16px; border-radius: 16px; }
  .card-flat { padding: 16px; }
  .btn-lg { padding: 14px 20px; font-size: 14px; }
  .btn { padding: 12px 18px; font-size: 14px; }

  /* TABS scroll instead of overflow */
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { white-space: nowrap; flex-shrink: 0; }

  /* DRAWER full-width */
  .drawer { width: 100% !important; max-width: 100vw; }

  /* FOOTER */
  .footer { padding: 56px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    margin-bottom: 40px !important;
  }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* HERO HEADLINES — explicit sizes used in pages */
  [style*="fontSize: 88"] { font-size: 44px !important; }
  [style*="fontSize: 72"] { font-size: 40px !important; }
  [style*="fontSize: 64"] { font-size: 38px !important; }
  [style*="fontSize: 56"] { font-size: 34px !important; }
  [style*="fontSize: 48"] { font-size: 30px !important; }
  [style*="fontSize: 40"] { font-size: 26px !important; }
  [style*="fontSize: 36"] { font-size: 24px !important; }
  [style*="fontSize: 32"] { font-size: 22px !important; }

  /* Flex rows that need to stack on small screens */
  .row-stack-mobile { flex-direction: column !important; align-items: flex-start !important; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤420px)
   ============================================================ */
@media (max-width: 420px) {
  [style*="repeat(4, 1fr)"] { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: span 1; }
}
