/* ==========================================================
   MILKY HALO CHARMS — styles
   ========================================================== */

:root {
  --milk: #fffaf5;
  --cream: #fff3ea;
  --ink: #1a1a1a;
  --ink-soft: #5b5561;
  --white: #ffffff;

  --pink: #ffc4d6;
  --rose: #ff9ebb;
  --lav: #d9c8ff;
  --lilac: #bfa8f5;
  --blue: #bfe3ff;
  --mint: #c4f2dd;
  --lemon: #fff1a8;
  --peach: #ffd8b8;

  --holo: linear-gradient(120deg, #ffc4d6 0%, #d9c8ff 25%, #bfe3ff 50%, #c4f2dd 75%, #fff1a8 100%);

  --radius: 24px;
  --border: 2.5px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --soft: cubic-bezier(.22, 1, .36, 1);

  --font-head: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--milk);
  background-image: radial-gradient(rgba(191, 168, 245, .18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.center { text-align: center; }

/* soft pastel marker stripe behind a few words in a heading */
.highlight {
  background: linear-gradient(transparent 58%, var(--lav) 58%, var(--lav) 92%, transparent 92%);
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.announce__track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 28s linear infinite;
  padding-left: 40px;
}
.announce__track span::after { content: "✦"; margin-left: 40px; color: var(--pink); }
.announce:hover .announce__track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--ink); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100px;
}

.logo {
  position: relative;
  display: block;
  width: 118px;
  flex-shrink: 0;
  transition: transform .45s var(--bounce);
}
/* the logo file is square with empty space around it, so show just the middle */
.logo img,
.footer__logo { aspect-ratio: 1.4; object-fit: cover; }
/* grow from near the halo so the hover never pushes it past the top edge */
.logo { transform-origin: 50% 15%; }
.logo:hover { transform: rotate(-4deg) scale(1.06); }
/* logo halo — same ring as the nav menu halo (26 x 7, 2px border),
   placed where the halo sits in the logo artwork */
.logo::before,
.footer__brand::before {
  content: "";
  position: absolute;
  left: 50.7%;
  top: 10.2%;
  z-index: 1;
  width: 26px;
  height: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--halo-scale, 1));
  pointer-events: none;
}
.footer__brand::before { --halo-scale: 1.864; }
.logo:hover::before { animation: logo-halo-bob 1.6s ease-in-out infinite; }

@keyframes logo-halo-bob {
  0%, 100% { transform: translate(-50%, -50%) scale(var(--halo-scale, 1)); }
  50% { transform: translate(-50%, calc(-50% - 3px)) scale(calc(var(--halo-scale, 1) * 1.05)); }
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  z-index: 0;
  transition: transform .35s var(--bounce);
}
/* pastel blob that bounces in behind the word */
.nav__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--pink);
  z-index: -1;
  transform: scale(0);
  transition: transform .45s var(--bounce), background-color .3s;
}
/* tiny halo that floats in above the word */
.nav__link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 26px;
  height: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, 8px) scale(.4);
  opacity: 0;
  transition: transform .45s var(--bounce), opacity .25s;
}
.nav__link:hover { transform: translateY(-2px); }
.nav__link:hover::after { transform: scale(1); }
.nav__link:hover::before,
.nav__link[aria-current="page"]::before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  animation: halo-bob 1.6s ease-in-out infinite;
}
.nav__link:nth-child(2)::after { background: var(--lav); }
.nav__link:nth-child(3)::after { background: var(--blue); }
.nav__link:nth-child(4)::after { background: var(--mint); }

@keyframes halo-bob {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -3px) scale(1.05); }
}

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .35s var(--bounce), box-shadow .2s, background .3s;
}
.icon-btn svg { width: 22px; height: 22px; transition: transform .45s var(--bounce); }
.icon-btn:hover { transform: translate(-2px, -2px) rotate(-8deg); box-shadow: 5px 5px 0 var(--ink); background: var(--lemon); }
.icon-btn:hover svg { transform: scale(1.15) rotate(8deg); }
.icon-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose);
  border: 2px solid var(--ink);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform .4s var(--bounce);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--bounce); }

@keyframes bump {
  40% { transform: scale(1.5) rotate(-12deg); }
}

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 14px 30px;
  border: var(--border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--bounce), box-shadow .25s, color .25s;
}
/* holographic fill that sweeps in */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--holo);
  z-index: -1;
  transform: translateX(-101%);
  transition: transform .5s var(--soft);
}
/* little sparkle that spins into place */
.btn::after {
  content: "✦";
  display: inline-block;
  width: 0;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: transform .5s var(--bounce), opacity .3s, width .35s var(--soft);
}
.btn:hover {
  color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover::after { width: 1em; opacity: 1; transform: scale(1) rotate(0); }
.btn:active { transform: translate(4px, 4px) scale(.97); box-shadow: 0 0 0 var(--ink); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--small { padding: 10px 20px; font-size: .95rem; }
.btn--block { width: 100%; }

.btn:focus-visible,
.icon-btn:focus-visible,
.nav__link:focus-visible,
.pill:focus-visible { outline: 3px dashed var(--lilac); outline-offset: 4px; }

/* jelly squish on click */
.jelly { animation: jelly .6s var(--bounce); }
@keyframes jelly {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.12, .88); }
  45% { transform: scale(.92, 1.08); }
  65% { transform: scale(1.04, .96); }
  100% { transform: scale(1, 1); }
}

/* text links with a wiggly underline */
.link {
  font-weight: 800;
  text-decoration: none;
  padding-bottom: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='6' viewBox='0 0 20 6'%3E%3Cpath d='M0 3 Q5 0 10 3 T20 3' fill='none' stroke='%23bfa8f5' stroke-width='2.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 20px 6px;
  transition: color .25s;
}
.link:hover {
  color: var(--lilac);
  animation: squiggle .5s linear infinite;
}
@keyframes squiggle {
  to { background-position: 20px 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); position: relative; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}
.hero__text p { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.hero__art { position: relative; justify-self: center; width: min(480px, 100%); }
.hero__frame {
  position: relative;
  padding: 12px;
  border: var(--border);
  border-radius: 46% 54% 48% 52% / 52% 44% 56% 48%;
  background: var(--holo);
  box-shadow: var(--shadow-lg);
  animation: blob 10s ease-in-out infinite;
  overflow: hidden;
}
.hero__frame img {
  border-radius: inherit;
  border: var(--border);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 48% 52% / 52% 44% 56% 48%; }
  50% { border-radius: 54% 46% 56% 44% / 44% 56% 46% 54%; }
}

.float-deco {
  position: absolute;
  font-size: 2.2rem;
  line-height: 1;
  z-index: 2;
  animation: floaty 4s ease-in-out infinite;
  pointer-events: none;
}
.float-deco--1 { top: -4%; left: -2%; color: var(--lilac); }
.float-deco--2 { top: 12%; right: -6%; font-size: 1.5rem; color: var(--rose); animation-delay: -1s; }
.float-deco--3 { bottom: 4%; left: -8%; font-size: 1.7rem; color: var(--sky, #9fd2ff); animation-delay: -2s; }

.sticker {
  position: absolute;
  bottom: 6%;
  right: -4%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: var(--border);
  background: var(--lemon);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.15;
  text-align: center;
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(12deg); }
}

/* ---------- Marquee band ---------- */
.band {
  background: var(--holo);
  border-block: var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  transform: rotate(-1.5deg);
  margin: 10px -20px;
}
.band__track {
  display: inline-flex;
  gap: 36px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  animation: marquee 22s linear infinite;
}
.band__track span::after { content: "✦"; margin-left: 36px; }

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin-bottom: 40px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--ink-soft); }

/* ---------- Collection tiles ---------- */
.collections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.collection {
  position: relative;
  display: block;
  text-decoration: none;
  border: var(--border);
  border-radius: 32px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .45s var(--bounce), box-shadow .3s;
}
.collection img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .7s var(--soft);
}
.collection__label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.4rem;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  padding: 8px 22px;
  transition: background .3s, transform .45s var(--bounce);
}
.collection__label .arrow { display: inline-block; transition: transform .4s var(--bounce); }
.collection:hover { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.collection:nth-child(2):hover { transform: translate(-4px, -4px) rotate(1deg); }
.collection:hover img { transform: scale(1.07) rotate(1.5deg); }
.collection:hover .collection__label { background: var(--pink); transform: scale(1.05); }
.collection:nth-child(2):hover .collection__label { background: var(--mint); }
.collection:hover .collection__label .arrow { transform: translateX(6px) rotate(-20deg); }

/* ---------- Product grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .45s var(--bounce), box-shadow .3s;
}
.card:hover { transform: translate(-4px, -6px) rotate(-1.2deg); box-shadow: var(--shadow-lg); }
.card:nth-child(even):hover { transform: translate(-4px, -6px) rotate(1.2deg); }

.card__media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
  border-bottom: var(--border);
  aspect-ratio: 1;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--soft);
}
/* holographic sheen that swipes across the photo */
.card__media::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 45%, rgba(217, 200, 255, .45) 50%, rgba(191, 227, 255, .45) 55%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}
.card:hover .card__media img { transform: scale(1.09) rotate(2deg); }
.card:hover .card__media::after { transform: translateX(100%); transition: transform .9s var(--soft); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--lemon);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  transform: rotate(-6deg);
}
.badge--new { background: var(--mint); }
.card:hover .badge { animation: wiggle .6s ease-in-out; }

@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg); }
  25% { transform: rotate(8deg) scale(1.1); }
  50% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(4deg); }
}

.fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .4s var(--bounce), background .25s;
}
.fav svg { width: 20px; height: 20px; fill: transparent; stroke: var(--ink); stroke-width: 2.2; transition: fill .25s; }
.fav:hover { transform: scale(1.18) rotate(-10deg); background: var(--pink); }
.fav.is-on svg { fill: var(--rose); }
.fav.is-on { animation: heart-pop .5s var(--bounce); }

@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45) rotate(-12deg); }
  100% { transform: scale(1); }
}

.quick-add {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  white-space: nowrap;
  transform: translate(-50%, 160%);
  opacity: 0;
  transition: transform .5s var(--bounce), opacity .3s, box-shadow .25s, color .25s;
}
.card:hover .quick-add,
.quick-add:focus-visible { transform: translate(-50%, 0); opacity: 1; }
.quick-add:hover { transform: translate(-50%, -3px); }
.quick-add:active { transform: translate(-50%, 2px) scale(.96); }

.card__body {
  padding: 16px 18px 20px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.card__title { font-size: 1.12rem; margin: 0 0 2px; }
.card__cat { font-size: .88rem; color: var(--ink-soft); margin: 0; text-transform: capitalize; }
.card__price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  background: var(--lav);
  border-radius: 999px;
  padding: 2px 12px;
  white-space: nowrap;
  transition: transform .4s var(--bounce), background .3s;
}
.card:hover .card__price { transform: rotate(-6deg) scale(1.08); background: var(--pink); }

/* ---------- Perks ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.perk {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform .45s var(--bounce), background .3s;
}
.perk__icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: var(--border);
  font-size: 1.9rem;
  transition: transform .6s var(--bounce);
}
.perk:nth-child(1) .perk__icon { background: var(--pink); }
.perk:nth-child(2) .perk__icon { background: var(--blue); }
.perk:nth-child(3) .perk__icon { background: var(--mint); }
.perk p { color: var(--ink-soft); margin: 0; }
.perk:hover { transform: translateY(-6px); background: var(--cream); }
.perk:hover .perk__icon { transform: rotate(360deg) scale(1.1); }

/* ---------- Newsletter ---------- */
.club {
  position: relative;
  border: var(--border);
  border-radius: 40px;
  background: var(--holo);
  box-shadow: var(--shadow-lg);
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
  text-align: center;
  overflow: hidden;
}
.club p { max-width: 34em; margin-inline: auto; }
.club__form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 26px auto 0;
}
.club__form input { flex: 1; }
.club__halo {
  width: 90px;
  height: 22px;
  margin: 0 auto 16px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 500; }

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: var(--border);
  border-radius: 18px;
  padding: 13px 18px;
  width: 100%;
  transition: box-shadow .25s, transform .3s var(--bounce), border-radius .3s;
}
textarea { resize: vertical; min-height: 150px; }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--lilac);
  transform: translate(-2px, -2px);
}
input::placeholder,
textarea::placeholder { color: #a8a1ae; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231a1a1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(50px, 7vw, 90px) 0 clamp(30px, 4vw, 50px);
  text-align: center;
}
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 34em; margin-inline: auto; }

/* ---------- Store toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: transform .4s var(--bounce), background .25s, box-shadow .25s;
}
.pill:hover { transform: translateY(-3px) rotate(-3deg); background: var(--lemon); box-shadow: 3px 3px 0 var(--ink); }
.pill.is-active { background: var(--ink); color: var(--white); }
.pill.is-active:hover { background: var(--ink); }
.pill .count { opacity: .6; font-size: .85em; margin-left: 4px; }

.toolbar__sort { display: flex; align-items: center; gap: 10px; }
.toolbar__sort label { font-family: var(--font-head); font-weight: 500; white-space: nowrap; }
.toolbar__sort select { width: auto; padding-block: 10px; border-radius: 999px; }

.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- About ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.split__img {
  position: relative;
  border: var(--border);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform .5s var(--bounce);
}
.split__img:hover { transform: rotate(1deg) scale(1.02); }
.split__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.split p { color: var(--ink-soft); }
.signature { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value {
  border: var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .45s var(--bounce), box-shadow .3s;
}
.value:nth-child(1) { background: var(--pink); }
.value:nth-child(2) { background: var(--lav); }
.value:nth-child(3) { background: var(--blue); }
.value:nth-child(4) { background: var(--mint); }
.value span { font-size: 2rem; display: inline-block; margin-bottom: 10px; transition: transform .6s var(--bounce); }
.value p { margin: 0; font-size: .96rem; }
.value:hover { transform: translateY(-8px) rotate(-2deg); box-shadow: var(--shadow); }
.value:nth-child(even):hover { transform: translateY(-8px) rotate(2deg); }
.value:hover span { transform: scale(1.3) rotate(-15deg); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 44px 24px 26px;
  counter-increment: step;
  transition: transform .45s var(--bounce);
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -22px;
  left: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--border);
  background: var(--lemon);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  transition: transform .5s var(--bounce);
}
.step p { color: var(--ink-soft); margin: 0; }
.step:hover { transform: translateY(-6px); }
.step:hover::before { transform: rotate(-360deg) scale(1.15); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.form-card {
  background: var(--white);
  border: var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.is-shown { display: block; animation: pop-in .7s var(--bounce); }
.form-success .big { font-size: 3.4rem; display: block; margin-bottom: 8px; }

.info-card {
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  background: var(--lav);
  transition: transform .45s var(--bounce);
}
.info-card:nth-of-type(2) { background: var(--mint); }
.info-card:hover { transform: rotate(-1.5deg) translateY(-4px); }
.info-card h3 { margin-bottom: 8px; }
.info-card p { margin: 0; }

.socials { display: flex; gap: 12px; margin-top: 14px; }

.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: var(--border);
  border-radius: 22px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .3s, transform .35s var(--bounce);
}
.faq details:hover { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.faq details[open] { background: var(--cream); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--pink);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .45s var(--bounce), background .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--mint); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--pink), var(--lav));
  border-top: var(--border);
  border-radius: 48px 48px 0 0;
  padding: 60px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer__brand { position: relative; display: block; width: 220px; margin-bottom: 18px; }
.footer__logo { width: 100%; }
.footer h4 { font-size: 1.1rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a:not(.icon-btn) {
  display: inline-block;
  text-decoration: none;
  transition: transform .35s var(--bounce);
}
.footer a:not(.icon-btn):hover { transform: translateX(6px); }
.footer a:not(.icon-btn):hover::before { content: "✦ "; color: var(--ink); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 2px dashed rgba(26, 26, 26, .35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .9rem;
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 26, 26, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  height: 100%;
  width: min(420px, 100%);
  background: var(--milk);
  border-left: var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .55s var(--bounce);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: var(--border);
  background: var(--pink);
}
.drawer__head h2 { font-size: 1.6rem; margin: 0; }
.drawer__items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer__foot { padding: 20px 24px 26px; border-top: var(--border); background: var(--white); }
.drawer__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.drawer__note { font-size: .88rem; color: var(--ink-soft); margin-bottom: 16px; }
.drawer__empty { text-align: center; padding: 50px 10px; color: var(--ink-soft); }
.drawer__empty .big { font-size: 3rem; display: block; margin-bottom: 8px; animation: floaty 3s ease-in-out infinite; }

.line {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px dashed #e6dff0;
  animation: slide-in .5s var(--bounce);
}
.line img { border-radius: 16px; border: 2px solid var(--ink); }
.line__name { font-family: var(--font-head); font-weight: 500; line-height: 1.2; margin: 0 0 6px; }
.line__price { font-weight: 800; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  line-height: 1;
  transition: transform .3s var(--bounce), background .2s;
}
.qty button:hover { transform: scale(1.18); background: var(--lemon); }
.remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  text-decoration: underline;
  color: var(--ink-soft);
  padding: 0;
  transition: color .2s;
}
.remove:hover { color: var(--rose); }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(30px); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  font-family: var(--font-head);
  font-weight: 500;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 4px 4px 0 var(--lilac);
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  transition: transform .5s var(--bounce), visibility .5s;
  pointer-events: none;
}
.toast.is-shown { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Clickable product cards ---------- */
/* the title link stretches over the whole card; buttons sit above it */
.card__link { color: inherit; text-decoration: none; }
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px dashed var(--lilac); outline-offset: 4px; }
.card .badge { pointer-events: none; }
.card__add-mobile { position: relative; z-index: 2; }
.line__name a { text-decoration: none; }
.line__name a:hover { text-decoration: underline; }

/* ---------- Product page ---------- */
.pdp-section { padding-top: clamp(28px, 4vw, 48px); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.crumbs .link { color: var(--ink); }

.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.gallery { position: sticky; top: 120px; }
.gallery__main {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: var(--border);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  touch-action: pan-y;
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--soft);
}
.gallery__main:hover img { transform: scale(1.6); }
.gallery__main img.is-swapping { animation: photo-in .45s var(--soft); }
@keyframes photo-in {
  from { opacity: 0; transform: scale(.97); }
}

.gallery__main .badge { z-index: 2; }
.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .35s var(--bounce), background .25s, box-shadow .2s;
}
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__arrow--prev:hover { transform: translate(-3px, -50%) scale(1.08); background: var(--pink); }
.gallery__arrow--next:hover { transform: translate(3px, -50%) scale(1.08); background: var(--pink); }
.gallery__arrow:active { transform: translateY(-50%) scale(.94); box-shadow: 0 0 0 var(--ink); }

.gallery__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.thumb {
  padding: 0;
  border: 2.5px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  opacity: .65;
  transition: transform .35s var(--bounce), opacity .25s, border-color .25s, box-shadow .25s;
}
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb:hover { opacity: 1; transform: translateY(-4px) rotate(-2deg); }
.thumb:nth-child(even):hover { transform: translateY(-4px) rotate(2deg); }
.thumb[aria-current] { opacity: 1; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.thumb:focus-visible { outline: 3px dashed var(--lilac); outline-offset: 3px; }

.pdp__type {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.pdp__title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 12px; }
.pdp__price {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  background: var(--lav);
  border-radius: 999px;
  padding: 2px 18px;
  margin-bottom: 20px;
}
.pdp__desc { font-size: 1.1rem; color: var(--ink-soft); max-width: 32em; }

.pdp__buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 22px;
}
.qty--lg {
  gap: 14px;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
}
.qty--lg span { min-width: 1.4em; text-align: center; }
.qty--lg button { width: 32px; height: 32px; font-size: 1.1rem; }
.pdp__add { flex: 1; min-width: 120px; white-space: nowrap; }
.fav--inline {
  position: static;
  width: 52px;
  height: 52px;
  border-width: 2.5px;
  box-shadow: 3px 3px 0 var(--ink);
}
.fav--inline svg { width: 24px; height: 24px; }

.pdp__perks {
  list-style: none;
  padding: 18px 20px;
  margin: 0 0 24px;
  background: var(--cream);
  border: 2px dashed rgba(26, 26, 26, .3);
  border-radius: 20px;
}
.pdp__perks li { padding: 3px 0; }
.pdp__perks li::before { content: "✦"; color: var(--lilac); margin-right: 10px; }

.pdp__more { max-width: none; }
.pdp__more ul { margin: 0; padding: 0 22px 20px 42px; color: var(--ink-soft); }
.pdp__more li { margin-bottom: 4px; }

.empty h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ---------- Click sparkles ---------- */
.spark {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  font-size: 14px;
  animation: spark .7s ease-out forwards;
}
@keyframes spark {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.2) rotate(180deg); opacity: 0; }
}

/* ==========================================================
   Entrance animations — elements with [data-anim] start hidden
   and play when they scroll into view (.in is added by JS)
   ========================================================== */
.js [data-anim] { opacity: 0; }
.js [data-anim].in {
  animation-duration: .7s;
  animation-fill-mode: both;
  animation-delay: var(--d, 0s);
  animation-timing-function: cubic-bezier(.34, 1.25, .64, 1);
}
/* once finished, drop the animation so hover effects can take over */
.js [data-anim].in.done { opacity: 1; animation: none; }

.js [data-anim="pop"].in { animation-name: pop-in; }
.js [data-anim="float"].in { animation-name: float-in; animation-timing-function: var(--soft); }
.js [data-anim="drop"].in { animation-name: drop-in; }
.js [data-anim="spin"].in { animation-name: spin-in; }
.js [data-anim="swing"].in { animation-name: swing-in; animation-duration: .8s; animation-timing-function: ease-out; transform-origin: top center; }
.js [data-anim="bloom"].in { animation-name: bloom-in; animation-duration: .8s; }

@keyframes pop-in {
  0% { opacity: 0; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes float-in {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* settles in from just above, like a bead dropping into place */
@keyframes drop-in {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* a small twist as it appears */
@keyframes spin-in {
  0% { opacity: 0; transform: scale(.94) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
/* a gentle sway, like a charm on a chain */
@keyframes swing-in {
  0% { opacity: 0; transform: rotate(-4deg); }
  60% { opacity: 1; transform: rotate(1.5deg); }
  100% { opacity: 1; transform: rotate(0); }
}
@keyframes bloom-in {
  0% { opacity: 0; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  #featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  #featured-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: grid; }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 110px 24px 30px;
    background: var(--milk);
    border-bottom: var(--border);
    border-radius: 0 0 36px 36px;
    transform: translateY(-110%);
    transition: transform .55s var(--bounce);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { font-size: 1.5rem; text-align: center; padding: 12px; }
  .nav__link::before { top: 2px; }
  .header__inner > .logo,
  .header__actions { position: relative; z-index: 70; }

  .hero__inner,
  .split { grid-template-columns: 1fr; }
  .hero__text { text-align: center; }
  .hero__text p { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { width: min(400px, 90%); }
  .perks,
  .steps { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
}

@media (max-width: 600px) {
  .gallery__thumbs { gap: 10px; }
  .pdp__buy { gap: 10px; }
  .pdp__add { padding-inline: 16px; }
  .qty--lg { gap: 10px; padding: 6px 10px; }
  .gallery__arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .gallery__main:hover img { transform: none; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header__inner { height: 86px; }
  .logo { width: 96px; --halo-scale: .814; }
  .collections { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card__body { flex-direction: column; padding: 12px; gap: 6px; }
  .card__title { font-size: 1rem; }
  .quick-add { display: none; }
  .fav { width: 34px; height: 34px; }
  .fav--inline { width: 46px; height: 46px; flex-shrink: 0; }
  .badge { font-size: .7rem; top: 10px; left: 10px; }
  .club__form { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__sort select { flex: 1; }
  .pill { padding: 8px 14px; font-size: .92rem; }
  .hero__actions .btn { min-width: 210px; }
  .sticker { width: 92px; height: 92px; font-size: .8rem; right: -2%; }
}

/* Mobile add-to-cart button under the card on touch screens */
.card__add-mobile { display: none; }
@media (max-width: 600px) {
  .card__add-mobile { display: flex; margin: 0 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-anim] { opacity: 1; }
}
