/* =====================================================================
   SluMoo Slime — Stylesheet
   Brand: super cute, super sparkly, rose-pink.
   Design tokens live in :root so the whole look can be re-skinned fast.
   ===================================================================== */

:root {
  /* ---- Brand palette ---- */
  --rose-700: #c81e6a;
  --rose-600: #ec2b80;
  --rose-500: #ff4f9a;   /* PRIMARY rose pink */
  --rose-400: #ff7ab8;
  --rose-300: #ffa6d0;
  --rose-100: #ffe3f1;
  --rose-50:  #fff5fa;

  --grape:   #a06bff;
  --mint:    #54e6c4;
  --sky:     #6cc6ff;
  --lemon:   #ffd56b;

  --ink:     #5a2247;   /* dark plum text */
  --ink-soft:#8b5d79;
  --white:   #ffffff;

  /* ---- Effects ---- */
  --shadow-sm: 0 6px 18px rgba(236, 43, 128, 0.14);
  --shadow-md: 0 14px 34px rgba(236, 43, 128, 0.20);
  --shadow-lg: 0 24px 60px rgba(160, 43, 128, 0.26);
  --radius:    26px;
  --radius-lg: 38px;

  --font-display: "Baloo 2", "Fredoka", system-ui, sans-serif;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --grad-rose: linear-gradient(135deg, #ff7ab8 0%, #ff4f9a 55%, #ec2b80 100%);
  --grad-candy: linear-gradient(120deg, #ffd56b, #ff7ab8 35%, #a06bff 75%, #6cc6ff);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #ffe6f3 0%, transparent 60%),
    radial-gradient(1000px 500px at -10% 20%, #efe3ff 0%, transparent 55%),
    var(--rose-50);
  overflow-x: hidden;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .4em; }
a { color: var(--rose-600); text-decoration: none; }
img { max-width: 100%; display: block; }
/* The [hidden] attribute must always win over component display rules
   (e.g. .modal-overlay{display:grid}) — author rules otherwise beat the
   UA [hidden]{display:none}, leaving overlays stuck open. */
[hidden] { display: none !important; }
section { padding: 70px 22px; max-width: 1140px; margin: 0 auto; }

/* ---------- Floating background bubbles ---------- */
.bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bubbles::before, .bubbles::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff99, #ff7ab855);
  filter: blur(1px); animation: floaty 16s ease-in-out infinite;
}
.bubbles::before { width: 180px; height: 180px; left: 6%;  top: 30%; }
.bubbles::after  { width: 120px; height: 120px; right: 8%; top: 65%; animation-delay: -6s; }
@keyframes floaty {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-30px) scale(1.08); }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  border: none; cursor: pointer; padding: 14px 26px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--grad-rose); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px) rotate(-1deg); filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--rose-600); box-shadow: var(--shadow-sm); border: 2px solid var(--rose-200, #ffd0e6); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px; max-width: 1180px; margin: 0 auto;
  backdrop-filter: blur(10px);
  background: rgba(255, 245, 250, 0.78);
  border-bottom: 2px solid #ffd9ec;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; animation: wobble 5s ease-in-out infinite; }
.logo-moo { color: var(--rose-500); }
.main-nav { margin-left: auto; display: flex; gap: 22px; }
.main-nav a { font-family: var(--font-head); font-weight: 500; color: var(--ink); position: relative; }
.main-nav a:hover { color: var(--rose-500); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0;
  background: var(--grad-rose); border-radius: 3px; transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.cart-btn {
  position: relative; border: none; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); font-size: 1.4rem;
  display: grid; place-items: center; transition: transform .15s ease;
}
.cart-btn:hover { transform: scale(1.08) rotate(-6deg); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--grad-rose); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; min-width: 22px; height: 22px;
  border-radius: 999px; display: grid; place-items: center; padding: 0 5px;
  border: 2px solid #fff;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px;
  padding-top: 40px; padding-bottom: 30px; position: relative; z-index: 1;
}
.pill {
  display: inline-block; background: #fff; color: var(--rose-600);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--ink); letter-spacing: -1px; }
.rainbow {
  background: var(--grad-candy); -webkit-background-clip: text; background-clip: text;
  color: transparent; background-size: 200% auto; animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p { font-size: 1.18rem; color: var(--ink-soft); max-width: 30ch; margin: 6px 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-weight: 700; color: var(--rose-600); }

.hero-art { position: relative; display: grid; place-items: center; }
.mascot { width: min(420px, 90%); filter: drop-shadow(0 24px 30px rgba(236,43,128,.28)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--grad-rose); padding: 12px 0; transform: rotate(-1.4deg); margin: 10px 0 40px; }
.marquee-track { display: flex; gap: 40px; white-space: nowrap; animation: slide 22s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.2rem; letter-spacing: 2px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 38px; position: relative; z-index: 1; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--ink); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; position: relative; z-index: 1; }
.card {
  background: #fff; border-radius: var(--radius); padding: 16px; text-align: center;
  box-shadow: var(--shadow-sm); position: relative; transition: transform .2s ease, box-shadow .2s ease;
  border: 2px solid #fff;
}
.card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-md); border-color: var(--rose-100); }
.card-img-wrap { background: linear-gradient(160deg, #fff, var(--rose-50)); border-radius: 20px; padding: 10px; margin-bottom: 12px; }
.card-img-wrap img { margin: 0 auto; width: 160px; height: auto; }
.card h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 2px; }
.card .meta { font-size: .86rem; color: var(--ink-soft); margin-bottom: 8px; min-height: 2.4em; }
.sparkle-meter { font-size: .8rem; letter-spacing: 1px; margin-bottom: 8px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--rose-600); }
.add-btn {
  border: none; cursor: pointer; background: var(--grad-rose); color: #fff;
  font-family: var(--font-head); font-weight: 600; padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease;
}
.add-btn:hover { transform: scale(1.06); }
.add-btn:active { transform: scale(.9); }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--grad-candy); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: .72rem; padding: 5px 11px; border-radius: 999px;
  box-shadow: var(--shadow-sm); transform: rotate(-8deg); text-transform: uppercase; letter-spacing: .5px;
}

/* ---------- Builder ---------- */
.builder { }
.builder-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; position: relative; z-index: 1; }
.builder-preview {
  position: sticky; top: 100px; background: #fff; border-radius: var(--radius-lg);
  padding: 24px; text-align: center; box-shadow: var(--shadow-md); border: 3px dashed var(--rose-300);
}
.builder-preview img { width: 200px; margin: 0 auto 10px; animation: bob 4s ease-in-out infinite; }
.builder-price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--rose-600); }

.builder-form { background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.builder-form fieldset { border: none; padding: 0; margin: 0 0 22px; }
.builder-form legend { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.1rem; margin-bottom: 10px; padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 2px solid var(--rose-100); background: var(--rose-50); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; cursor: pointer;
  padding: 9px 15px; border-radius: 999px; transition: all .15s ease; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { transform: translateY(-2px); border-color: var(--rose-300); }
.chip[aria-pressed="true"] { background: var(--grad-rose); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.chip .swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px #ffffff99; }
.builder-form input[type=text] {
  width: 100%; padding: 13px 16px; border-radius: 16px; border: 2px solid var(--rose-100);
  font-family: var(--font-body); font-size: 1rem; background: var(--rose-50); color: var(--ink);
}
.builder-form input[type=text]:focus { outline: none; border-color: var(--rose-400); }

/* ---------- About ---------- */
.about-card {
  display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; align-items: center;
  background: var(--grad-rose); color: #fff; border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-md); position: relative; z-index: 1; overflow: hidden;
}
.about-card::before { content: "✨"; position: absolute; font-size: 12rem; right: -10px; top: -30px; opacity: .15; }
.about-art { display: grid; place-items: center; }
.mascot-small { width: min(220px, 80%); filter: drop-shadow(0 14px 18px rgba(0,0,0,.18)); animation: bob 4s ease-in-out infinite; }
.about-text h2 { color: #fff; }
.about-text p { color: #fff; opacity: .96; }
.about-text strong { color: var(--lemon); }
.about-points { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.team-line { background: rgba(255,255,255,.18); border-radius: 18px; padding: 14px 18px; font-size: .96rem; margin-top: 16px; }
.team-line > strong { color: #fff; display: block; margin-bottom: 6px; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.team-list b { color: var(--lemon); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; position: relative; z-index: 1; }
.faq details { background: #fff; border-radius: 20px; padding: 6px 22px; box-shadow: var(--shadow-sm); border: 2px solid #fff; transition: border-color .2s; }
.faq details[open] { border-color: var(--rose-200, #ffd0e6); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--rose-500); font-size: 1.4rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 56px 22px 70px; position: relative; z-index: 1; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.footer-logo img { width: 38px; }
.footer-tag { color: var(--rose-600); font-family: var(--font-head); font-weight: 600; margin: 10px 0 6px; }
.footer-small { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Cart drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(90, 34, 71, .4); z-index: 60; backdrop-filter: blur(2px); }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 70;
  background: var(--rose-50); box-shadow: var(--shadow-lg); transform: translateX(105%);
  transition: transform .3s cubic-bezier(.5,.1,.3,1.1); display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 2px solid #ffd9ec; }
.drawer-head h3 { margin: 0; color: var(--ink); }
.icon-btn { border: none; background: #fff; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; box-shadow: var(--shadow-sm); color: var(--ink); }
.icon-btn:hover { transform: scale(1.08); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.empty-cart { text-align: center; color: var(--ink-soft); margin-top: 40px; }
.empty-cart .big { font-size: 3rem; }

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); align-items: center; }
.cart-item img { width: 64px; border-radius: 12px; background: var(--rose-50); }
.cart-item .ci-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem; }
.cart-item .ci-meta { font-size: .78rem; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--rose-100); color: var(--rose-700); font-weight: 800; cursor: pointer; font-size: 1rem; }
.qty button:hover { background: var(--rose-300); }
.ci-right { text-align: right; }
.ci-price { font-family: var(--font-display); font-weight: 800; color: var(--rose-600); }
.ci-remove { border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: .78rem; text-decoration: underline; margin-top: 8px; }

.drawer-foot { padding: 20px 22px; border-top: 2px solid #ffd9ec; background: #fff; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 14px; }
.drawer-total strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--rose-600); }
.drawer-note { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(90, 34, 71, .5); z-index: 80; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal { background: var(--rose-50); border-radius: var(--radius-lg); width: min(520px, 96vw); max-height: 90vh; overflow-y: auto; padding: 30px; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal h2 { color: var(--ink); }
.modal label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
.modal input, .modal textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--rose-100);
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--rose-400); }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-summary { background: #fff; border-radius: 18px; padding: 16px; margin: 16px 0; box-shadow: var(--shadow-sm); }
.order-summary .line { display: flex; justify-content: space-between; padding: 4px 0; font-size: .95rem; }
.order-summary .line.total { border-top: 2px dashed var(--rose-200, #ffd0e6); margin-top: 8px; padding-top: 10px; font-family: var(--font-display); font-weight: 800; color: var(--rose-600); font-size: 1.15rem; }
.confirm { text-align: center; }
.confirm .big { font-size: 4rem; animation: bob 3s ease-in-out infinite; }
.confirm .order-id { font-family: var(--font-head); font-weight: 700; color: var(--rose-600); background: #fff; display: inline-block; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---------- Confetti ---------- */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------- Texture toggle on colour cards ---------- */
.tex-toggle { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.tex-btn {
  border: 2px solid var(--rose-100); background: var(--rose-50); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: .78rem;
  padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.tex-btn:hover { border-color: var(--rose-300); transform: translateY(-1px); }
.tex-btn[aria-pressed="true"] { background: var(--grad-rose); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.card .meta small { color: var(--rose-600); font-weight: 700; }

/* ---------- Special-editions filter tabs ---------- */
.squad-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; position: relative; z-index: 1; }
.squad-tab {
  border: 2px solid #fff; background: #fff; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.squad-tab:hover { transform: translateY(-2px); }
.squad-tab.is-active { background: var(--grad-rose); color: #fff; }

/* ---------- For Grown-Ups (trust) ---------- */
.grownups { }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; position: relative; z-index: 1; }
.trust-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 2px solid #fff; transition: transform .2s ease, border-color .2s ease; }
.trust-card:hover { transform: translateY(-5px); border-color: var(--rose-100); }
.trust-ico { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.trust-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 6px; }
.trust-card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.trust-card strong { color: var(--rose-600); }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; position: relative; z-index: 1; }
.reviews blockquote {
  margin: 0; background: var(--rose-100); border-radius: var(--radius); padding: 20px;
  color: var(--ink); font-style: italic; position: relative;
}
.reviews blockquote::before { content: "“"; font-family: var(--font-display); font-size: 3rem; color: var(--rose-300); position: absolute; top: 2px; left: 12px; line-height: 1; }
.reviews cite { display: block; margin-top: 10px; font-style: normal; font-weight: 800; color: var(--rose-600); font-size: .85rem; }
.reviews blockquote::after { content: "⭐⭐⭐⭐⭐"; display: block; margin-top: 6px; font-size: .8rem; }

.grownups-cta { text-align: center; margin-top: 34px; position: relative; z-index: 1; }
.cta-trust { display: block; margin-top: 12px; color: var(--ink-soft); font-weight: 700; font-size: .9rem; }

.about-title { font-family: var(--font-head); font-weight: 700; color: var(--lemon); margin: -6px 0 10px; letter-spacing: .3px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-art { order: -1; }
  .mascot { width: 240px; }
  .builder-wrap { grid-template-columns: 1fr; }
  .builder-preview { position: static; }
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-points { justify-content: center; }
  .main-nav { display: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
