:root {
  --bg: #fbf4ec;
  --surface: #ffffff;
  --ink: #2a2330;
  --ink-soft: #6c6470;
  --line: #ece2d6;

  /* the five flavor colors — each Wuzzler owns one */
  --c-original: #ff4d8d;
  --c-sour: #5cc24a;
  --c-choco: #8e5bf0;
  --c-fruity: #ff9a2e;
  --c-deluxe: #2bb6c4;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px -18px rgba(42, 35, 48, 0.35);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo { font-family: var(--font-display); font-weight: 600; line-height: 1.05; }

a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(251, 244, 236, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo { font-size: 26px; letter-spacing: -0.01em; display: inline-flex; }
.logo span { color: var(--c-original); }
.logo.small { font-size: 22px; }

.cart-toggle {
  position: relative;
  border: none;
  background: var(--ink);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 19px;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.cart-toggle:hover { transform: scale(1.06); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--c-original);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: grid; place-items: center;
  padding: 0 5px;
}

/* ---------- success banner ---------- */
.success-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--c-sour);
  color: #11331a;
  font-weight: 500;
  padding: 12px 20px;
  text-align: center;
}
.success-banner button { background: none; border: none; font-size: 22px; cursor: pointer; color: inherit; line-height: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(60px, 11vw, 130px) clamp(20px, 5vw, 64px) clamp(50px, 8vw, 90px);
  overflow: hidden;
}
.eyebrow {
  text-transform: lowercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(54px, 12vw, 116px); font-weight: 700; letter-spacing: -0.02em; }
.hero .wobble { color: var(--c-original); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero .wobble { animation: wobble 3.2s ease-in-out infinite; transform-origin: bottom center; }
  @keyframes wobble { 0%,100%{ transform: rotate(-2deg) } 50%{ transform: rotate(2deg) } }
}
.lede { max-width: 46ch; margin: 22px auto 30px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }

/* confetti dots */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.confetti::before, .confetti::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0.3px);
}
.confetti::before {
  width: 26px; height: 26px; left: 12%; top: 22%;
  background: var(--c-fruity);
  box-shadow: 22vw 8vh 0 -3px var(--c-choco), 60vw -2vh 0 -6px var(--c-deluxe),
              78vw 26vh 0 -2px var(--c-sour), 40vw 30vh 0 -8px var(--c-original);
}
.confetti::after {
  width: 16px; height: 16px; right: 14%; top: 30%;
  background: var(--c-deluxe);
  box-shadow: -10vw 14vh 0 -2px var(--c-original), -54vw 4vh 0 -4px var(--c-fruity),
              -30vw -2vh 0 -5px var(--c-sour);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- packs ---------- */
.packs { padding: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 64px) clamp(60px, 9vw, 110px); max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); }
.section-head p { color: var(--ink-soft); margin-top: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.card:hover { transform: translateY(-6px); }
.card-top {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
}
.card-blob {
  width: 84px; height: 84px;
  border-radius: 42% 58% 56% 44% / 50% 46% 54% 50%;
  background: rgba(255,255,255,0.35);
  box-shadow: inset 0 -8px 16px rgba(0,0,0,0.08);
}
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 23px; }
.card-desc { color: var(--ink-soft); font-size: 15px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card-price { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.btn-add { color: #fff; font-size: 15px; padding: 10px 20px; }

/* ---------- teaser ---------- */
.teaser { padding: 0 clamp(20px, 5vw, 64px) clamp(70px, 10vw, 120px); }
.teaser-inner {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 7vw, 80px);
  text-align: center;
}
.teaser-inner .eyebrow { color: var(--c-fruity); }
.teaser-inner h2 { font-size: clamp(30px, 5vw, 50px); max-width: 18ch; margin: 0 auto 16px; }
.teaser-inner p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 50px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* ---------- cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(42, 35, 48, 0.45);
  z-index: 30;
  opacity: 0;
  animation: fade 0.2s ease forwards;
}
@keyframes fade { to { opacity: 1; } }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--bg);
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(0,0,0,0.4);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 26px; }
.cart-close { background: none; border: none; font-size: 30px; cursor: pointer; line-height: 1; color: var(--ink); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { padding: 40px 24px; text-align: center; color: var(--ink-soft); }

.cart-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-swatch { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.cart-row-info { flex: 1; }
.cart-row-info h4 { font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.cart-row-info .price { color: var(--ink-soft); font-size: 14px; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1; }
.qty span { min-width: 18px; text-align: center; font-weight: 500; }
.cart-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 13px; text-decoration: underline; }

.cart-foot { padding: 20px 24px 28px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 16px; }
.btn-checkout { width: 100%; background: var(--c-original); color: #fff; font-size: 17px; padding: 15px; }
.btn-checkout:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; transform: none; }
.cart-note { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

:focus-visible { outline: 3px solid var(--c-deluxe); outline-offset: 2px; border-radius: 4px; }
