/* ===========================================================
   Mushytoys — squishy brand storefront
   One stylesheet, no dependencies. Edit the tokens below to
   restyle the whole site.
   =========================================================== */

:root {
  /* Brand palette — soft, squishy, candy pastels */
  --pink:      #ff8fb1;
  --pink-deep: #ff5c8a;
  --grape:     #b892ff;
  --sky:       #8fd3ff;
  --mint:      #9ff2c0;
  --lemon:     #ffe08a;
  --cream:     #fff7fb;
  --ink:       #3a2b3f;
  --ink-soft:  #6c5a72;
  --white:     #ffffff;

  --bg:        var(--cream);
  --card:      #ffffff;
  --shadow:    0 10px 30px rgba(255, 92, 138, 0.15);
  --shadow-sm: 0 4px 14px rgba(58, 43, 63, 0.08);
  --radius:    28px;
  --radius-sm: 16px;

  --font: "Baloo 2", "Quicksand", ui-rounded, "Segoe UI Rounded",
          system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

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

h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
p  { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--pink-deep);
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--b);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: .85em 1.5em;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,0.08), var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.08); }
.btn.ghost {
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--pink), var(--shadow-sm);
}
.btn.grape { --b: var(--grape); }
.btn.small { font-size: .85rem; padding: .6em 1.1em; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 143, 177, 0.25);
}
.nav {
  display: flex; align-items: center; gap: 1.2rem;
  padding: .7rem 0;
}
.brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.4rem;
  color: var(--pink-deep);
}
.brand .blob-mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 1.2rem; margin-left: auto; }
.nav-links a { font-weight: 700; color: var(--ink-soft); padding: .3em 0; }
.nav-links a:hover, .nav-links a.active { color: var(--pink-deep); }
.cart-btn {
  position: relative;
  background: var(--pink);
  color: #fff; border: none; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.2rem; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease;
}
.cart-btn:hover { transform: scale(1.08) rotate(-6deg); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--grape); color: #fff;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(3rem, 9vw, 7rem);
  background:
    radial-gradient(60% 60% at 15% 20%, rgba(184,146,255,.35), transparent 60%),
    radial-gradient(50% 50% at 85% 15%, rgba(143,211,255,.35), transparent 60%),
    radial-gradient(60% 60% at 75% 90%, rgba(159,242,192,.35), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
}
.hero .eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; font-size: .8rem; color: var(--grape);
  background: #fff; padding: .4em 1em; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-art { display: grid; place-items: center; }
.hero-art .blob-big { width: min(420px, 90%); filter: drop-shadow(0 20px 30px rgba(255,92,138,.3)); }

/* floaty animation */
@keyframes float { 0%,100%{ transform: translateY(0) rotate(0) } 50%{ transform: translateY(-14px) rotate(3deg) } }
@keyframes squish { 0%,100%{ transform: scale(1,1) } 50%{ transform: scale(1.05,.92) } }
.floaty { animation: float 5s ease-in-out infinite; }

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--pink-deep); color: #fff;
  font-weight: 800; letter-spacing: .5px;
  padding: .7rem 0; overflow: hidden; white-space: nowrap;
}
.strip span { display: inline-block; padding-inline: 1rem; }

/* ---------- Section ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .thumb {
  border-radius: var(--radius-sm);
  background: var(--tint, #ffeef4);
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  margin-bottom: .9rem; overflow: hidden;
}
.card .thumb svg { width: 68%; height: 68%; transition: transform .3s ease; }
.card:hover .thumb svg { animation: squish 1.1s ease-in-out infinite; }
.card h3 { font-size: 1.15rem; margin-bottom: .15em; }
.card .tag { font-size: .78rem; color: var(--grape); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .8rem; }
.card .price { font-size: 1.3rem; font-weight: 800; }
.badge {
  align-self: flex-start; font-size: .72rem; font-weight: 800;
  background: var(--lemon); color: var(--ink);
  padding: .25em .7em; border-radius: 999px; margin-bottom: .6rem;
}

/* ---------- Filters ---------- */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.chip {
  border: none; cursor: pointer; font-family: inherit; font-weight: 800;
  background: #fff; color: var(--ink-soft);
  padding: .5em 1.1em; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: all .12s ease;
}
.chip.active { background: var(--grape); color: #fff; }

/* ---------- Feature blocks ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.6rem; text-align: center; box-shadow: var(--shadow-sm); }
.feature .ico { font-size: 2.4rem; margin-bottom: .4rem; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--grape), var(--pink));
  color: #fff; border-radius: var(--radius);
  padding: clamp(2rem,5vw,3.5rem); text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; gap: .6rem; max-width: 460px; margin: 1.2rem auto 0; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 220px; border: none; border-radius: 999px;
  padding: .85em 1.3em; font-family: inherit; font-size: 1rem;
}
.newsletter .btn { background: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #fff9; margin-top: 3rem;
  padding: 3rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; margin: 0 0 .8rem; }
.site-footer a { display: block; padding: .2em 0; color: #fff9; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: .6rem; }
.foot-note { text-align: center; margin-top: 2.5rem; font-size: .85rem; color: #fff6; }

/* ---------- Cart drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(58,43,63,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(420px, 100%); background: var(--cream);
  z-index: 100; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,1.2,.5,1);
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 2px solid rgba(255,143,177,.2); }
.drawer-head h3 { margin: 0; }
.drawer-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink-soft); line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.drawer-foot { padding: 1.2rem 1.4rem; border-top: 2px solid rgba(255,143,177,.2); }
.line { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px dashed rgba(108,90,114,.2); }
.line .li-thumb { width: 60px; height: 60px; border-radius: 12px; background: var(--tint,#ffeef4); display:grid; place-items:center; flex: none; }
.line .li-thumb svg { width: 70%; height: 70%; }
.line .li-info { flex: 1; }
.line .li-info strong { display: block; }
.line .li-price { color: var(--ink-soft); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--pink); color:#fff; font-weight: 800; cursor: pointer; }
.qty span { min-width: 20px; text-align: center; font-weight: 800; }
.li-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: .8rem; text-decoration: underline; margin-top: .3rem; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 3rem 1rem; }
.cart-empty svg { width: 120px; margin: 0 auto 1rem; opacity: .8; }
.totals { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; margin-bottom: .9rem; }
.checkout-note { font-size: .78rem; color: var(--ink-soft); margin-top: .7rem; text-align: center; }

/* toast */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: .8em 1.4em; border-radius: 999px;
  font-weight: 700; z-index: 120; box-shadow: var(--shadow); transition: transform .3s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* page hero (inner pages) */
.page-hero { padding: 3rem 0 1rem; text-align: center; }
.page-hero p { color: var(--ink-soft); max-width: 55ch; margin-inline: auto; }

/* about */
.prose { max-width: 65ch; margin-inline: auto; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; }
.value-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:1.2rem; margin-top:2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .site-footer a { display: inline-block; margin: 0 .5rem; }
  .nav-links {
    position: fixed; inset: 62px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); padding: 1rem 6%;
    box-shadow: var(--shadow-sm); transform: translateY(-140%);
    transition: transform .25s ease; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .7em 0; border-bottom: 1px solid rgba(255,143,177,.15); }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px; border: none;
    background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; font-size: 1.3rem;
  }
  .nav-toggle + .cart-btn { margin-left: .6rem; }
}
