:root {
  --cream: #FFF7EC;
  --ink: #2B1633;
  --muted: #6B5673;
  --candy: #E5195E;
  --candy-deep: #C7104F;
  --candy-dark: #9E0F41;
  --sun: #FFC93C;
  --mint: #7EE2BF;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
::selection { background: var(--sun); color: var(--ink); }
h1, h2, h3, h4 { font-family: 'Fredoka', system-ui, sans-serif; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.section { padding-block: 56px; }
@media (min-width: 768px) { .section { padding-block: 96px; } }

/* focus */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible, .on-pink :focus-visible { outline-color: var(--sun); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* type bits */
.eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--candy-deep); }
.h-section { font-weight: 700; line-height: 1.02; font-size: clamp(2.2rem, 5.2vw, 3.75rem); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.05rem; line-height: 1; padding: 1rem 1.7rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(3px); }
.btn-primary { background: var(--candy); color: #fff; box-shadow: 0 5px 0 var(--candy-dark); }
.btn-primary:hover { background: var(--candy-deep); transform: translateY(-2px); box-shadow: 0 7px 0 var(--candy-dark); }
.btn-primary:active { box-shadow: 0 2px 0 var(--candy-dark); transform: translateY(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #000; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #000; }
.btn-ink:active { box-shadow: 0 2px 0 #000; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #B98500; }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #B98500; background: #FFD25E; }
.btn-sun:active { box-shadow: 0 2px 0 #B98500; }
.btn-sm { padding: .8rem 1rem; font-size: .95rem; box-shadow: 0 3px 0 var(--candy-dark); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--candy-dark); }
.btn-sm:active { box-shadow: 0 1px 0 var(--candy-dark); }
.btn.is-added { background: #14804F; box-shadow: 0 3px 0 #0B5A36; }

/* icons + candy art */
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art { display: block; aspect-ratio: 1 / 1; height: auto; fill: currentColor; overflow: visible; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 247, 236, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { border-color: rgba(43, 22, 51, .1); box-shadow: 0 10px 30px -18px rgba(43, 22, 51, .35); background: rgba(255, 247, 236, .94); }
.nav-link { position: relative; font-weight: 700; font-size: .98rem; padding: .5rem .2rem; text-decoration: none; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--candy); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after { transform: scaleX(1); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: .55rem; height: 48px; padding: 0 .55rem 0 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 600; cursor: pointer; border: 0; transition: transform .2s var(--ease), background-color .2s; }
.cart-btn:hover { background: var(--candy-deep); transform: translateY(-1px); }
.cart-btn .count { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 .4rem; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .95rem; font-weight: 700; }
.count.bump { animation: bump .5s var(--ease); }
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; cursor: pointer; transition: background-color .2s; }
.menu-btn:hover { background: #fff; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-link { display: flex; align-items: center; justify-content: space-between; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.6rem; padding: .85rem 0; border-bottom: 1px solid rgba(43, 22, 51, .1); text-decoration: none; }

/* hero */
.sp { position: absolute; width: 14px; height: 36px; border-radius: 99px; transform: rotate(var(--r, 20deg)); opacity: .9; }
.hero-title { font-size: clamp(2.6rem, 11.4vw, 5.5rem); }
@media (min-width: 1024px) { .hero-title { font-size: clamp(3rem, 6.4vw, 5.6rem); } }
.hero-hl { position: relative; white-space: nowrap; display: inline-block; color: var(--candy); z-index: 0; }
.hero-hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .22em; background: var(--sun); border-radius: 99px; z-index: -1; transform: rotate(-1deg); }
.float { animation: float 6s ease-in-out infinite; animation-delay: var(--d, 0s); transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 14px 14px rgba(43, 22, 51, .22)); }
.hero-blob { background: radial-gradient(circle at 30% 24%, #FF5A92 0%, #E5195E 58%, #C7104F 100%); }
.badge-ring { animation: spin 24s linear infinite; transform-origin: center; }

/* marquee */
.ribbons { position: relative; height: 150px; overflow: hidden; margin-top: -10px; }
.ribbon { position: absolute; left: -6%; width: 112%; overflow: hidden; padding-block: 14px; }
.ribbon-a { top: 38px; background: var(--sun); color: var(--ink); transform: rotate(-2deg); z-index: 2; box-shadow: 0 10px 24px -12px rgba(43, 22, 51, .35); }
.ribbon-b { top: 34px; background: var(--candy); color: #fff; transform: rotate(2.2deg); z-index: 1; }
.marq-track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.ribbon-b .marq-track { animation-direction: reverse; animation-duration: 46s; }
.ribbon:hover .marq-track { animation-play-state: paused; }
.marq-set { display: flex; flex: none; }
.marq-set span { display: inline-flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .04em; white-space: nowrap; }
.marq-set span::after { content: ""; width: .7em; height: .7em; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* category tiles */
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 20px; border-radius: 28px; overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); isolation: isolate; }
.cat-tile:hover { transform: translateY(-6px) rotate(-.8deg); box-shadow: 0 22px 36px -22px rgba(43, 22, 51, .55); }
.cat-tile .cat-art { position: absolute; right: -8%; top: 4%; width: 68%; z-index: -1; transition: transform .5s var(--ease); }
.cat-tile:hover .cat-art { animation: wiggle .7s ease-in-out; transform: scale(1.06) rotate(6deg); }
@media (min-width: 768px) { .cat-tile { min-height: 300px; padding: 26px; } }

/* filter pills */
.pills { display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 12px; margin-inline: -4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem; padding: .65rem 1.3rem; border-radius: 999px; border: 2px solid rgba(43, 22, 51, .16); background: #fff; color: var(--ink); cursor: pointer; transition: all .25s var(--ease); }
.pill:hover { border-color: var(--ink); transform: translateY(-2px); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 4px 0 var(--candy); }

/* product cards */
.product-card { display: flex; flex-direction: column; padding: 10px; background: #fff; border-radius: 28px; border: 1px solid rgba(43, 22, 51, .08); box-shadow: 0 1px 0 rgba(43, 22, 51, .04), 0 18px 30px -24px rgba(43, 22, 51, .45); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.product-card[hidden] { display: none; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 2px 0 rgba(43, 22, 51, .04), 0 28px 40px -24px rgba(43, 22, 51, .55); }
.product-card.pop-in { animation: popIn .5s var(--ease) backwards; }
.product-card.is-leaving { opacity: 0; transform: scale(.92); transition: opacity .18s, transform .18s; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a::after { content: none; }
.product-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 20px; background: var(--tint, #FFDDE8); overflow: hidden; }
.tile > .art:first-of-type { width: 70%; transition: transform .4s var(--ease); }
.tile::before { content: ""; position: absolute; inset: auto -20% -38% -20%; height: 70%; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.tile .art { position: relative; }
.product-card:hover .tile > .art:first-of-type { animation: wiggle .7s ease-in-out; }
.tile .extra { position: absolute; width: 30%; }
.sticker { position: absolute; z-index: 2; left: 10px; top: 10px; padding: .28rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-4deg); box-shadow: 0 3px 0 rgba(43, 22, 51, .18); }
.price { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.4rem; line-height: 1; }

/* benefits */
.benefit-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; flex: none; }

/* gift */
.gift-slot { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .14); transition: transform .35s var(--ease); }
.gift-slot .art { width: 74%; }
.gift-slot:hover { transform: translateY(-4px) rotate(-3deg); }
.gift-slot:hover .art { animation: wiggle .7s ease-in-out; }

/* forms */
.field { width: 100%; height: 56px; padding: 0 1.4rem; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: box-shadow .2s, border-color .2s; }
.field::placeholder { color: #8A7692; }
.field:focus { outline: none; box-shadow: 0 0 0 4px rgba(229, 25, 94, .35); border-color: var(--candy-deep); }
.field[aria-invalid="true"] { border-color: #B00020; box-shadow: 0 0 0 4px rgba(176, 0, 32, .18); }

/* footer */
.foot-link { color: #E4D6EA; text-decoration: none; transition: color .2s; }
.foot-link:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 4px; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; transition: all .25s var(--ease); }
.social:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); transform: translateY(-3px) rotate(-6deg); }

/* cart drawer */
.cart-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(43, 22, 51, .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--cream); box-shadow: -30px 0 60px -20px rgba(43, 22, 51, .45); transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.cart-drawer.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px dashed rgba(43, 22, 51, .2); animation: popIn .4s var(--ease) both; }
.cart-line .tile { border-radius: 16px; }
.cart-line .tile::before { display: none; }
.cart-line .tile > .art:first-of-type { width: 80%; }
.stepper { display: inline-flex; align-items: center; background: #fff; border: 2px solid rgba(43, 22, 51, .14); border-radius: 999px; }
.stepper button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; transition: background-color .2s; }
.stepper button:hover { background: var(--sun); }
.stepper output { min-width: 28px; text-align: center; font-family: 'Fredoka', sans-serif; font-weight: 700; }
.progress { height: 12px; border-radius: 99px; background: rgba(43, 22, 51, .12); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 99px; background: repeating-linear-gradient(45deg, var(--candy) 0 10px, #FF5A92 10px 20px); transition: width .6s var(--ease); }
.progress.is-full > i { background: #14804F; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

/* keyframes */
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(calc(var(--r, 0deg) + 5deg)) translateY(-14px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg) scale(1.05); } 45% { transform: rotate(8deg) scale(1.05); } 70% { transform: rotate(-5deg); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marq-track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
