/* Glitter Pop: playful, premium handmade boutique.
   Everything here is scoped to <html data-theme="pop">; the other looks never see it.
   Decorative art lives in /deco (WebP from the Rhynova asset kit, small SVG icons). Swap art by changing the tokens below. */

[data-theme='pop'] {
  /* Brand palette */
  --raspberry: #b51f57;
  --raspberry-deep: #9c1a4a;
  --bubblegum: #ff79b0;
  --teal: #21b9b2;
  --gold: #e9b64d;
  --blush: #fff0f5;
  --ink: #171717;
  --white: #ffffff;

  /* Semantic tokens consumed by styles.css */
  --paper: var(--white);
  --paper-2: var(--blush);
  --ink-2: #3d3438;
  --muted: #6b5d63;
  --line: #f3d3df;
  --heart: var(--raspberry);
  --violet: var(--raspberry);
  --danger: #a3173f;
  --pour: linear-gradient(120deg, var(--raspberry), var(--bubblegum));
  --holo: linear-gradient(115deg, #ffd1e6, #c8f4ef 35%, #fff0c2 60%, #e6d3ff 85%);

  --font-display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --font-hand: 'Caveat Brush', 'Segoe Print', cursive;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-card: 24px;
  --radius-panel: 36px;
  --shadow-1: 0 1px 2px rgb(23 23 23 / 0.05), 0 14px 30px -18px rgb(181 31 87 / 0.35);
  --shadow-2: 0 2px 6px rgb(23 23 23 / 0.06), 0 28px 54px -26px rgb(181 31 87 / 0.45);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);
  --space-section: clamp(3rem, 7vw, 5.5rem);

  /* Art */
  --art-logo: url('/deco/logo-hero.webp');
  --art-jar: url('/deco/jar-spill.webp');
  --art-swirl: url('/deco/sparkle-swirl.webp');
  --art-divider: url('/deco/heart-divider.webp');
  --art-corner: url('/deco/corner-flourish.webp');
  --art-sticker: url('/deco/handmade-sticker.webp');
  --art-holo: url('/deco/holo-splash.webp');
  --art-hearts: url('/deco/heart-cluster.webp');
  --art-confetti: url('/deco/confetti.webp');
  --art-sparkle: url('/deco/sparkle.svg');
  --brush-1: url('/deco/brush-1.webp');
  --brush-2: url('/deco/brush-2.webp');
  --brush-3: url('/deco/brush-3.webp');
  --icon-heart: url('/deco/icon-heart.svg');
  --icon-sparkle: url('/deco/icon-sparkle.svg');
  --icon-gem: url('/deco/icon-gem.svg');
  --icon-brush: url('/deco/icon-brush.svg');
}

[data-theme='pop'] body { background: var(--white); background-image: none; }
[data-theme='pop'] [hidden] { display: none !important; }
[data-theme='pop'] .pop-only { display: block; }
[data-theme='pop'] :focus-visible { outline: 3px solid var(--raspberry); outline-offset: 3px; border-radius: 10px; }

/* ---------- Header ---------- */
[data-theme='pop'] .announce { background: var(--raspberry); color: var(--white); font-weight: 600; }
[data-theme='pop'] .site-head { background: rgb(255 255 255 / 0.94); border-bottom: 1px solid var(--line); }
[data-theme='pop'] .cart-btn { border: 1.5px solid var(--ink); transition: background 0.2s, color 0.2s, border-color 0.2s; }
[data-theme='pop'] .cart-btn:hover { background: var(--raspberry); border-color: var(--raspberry); color: var(--white); }
[data-theme='pop'] .cart-count { background: var(--raspberry); color: var(--white); }
[data-theme='pop'] .cart-btn:hover .cart-count { background: var(--white); color: var(--raspberry); }

/* ---------- Buttons ---------- */
[data-theme='pop'] .btn { position: relative; background: var(--ink); color: var(--white); transition: transform 0.2s var(--ease-pop), box-shadow 0.25s, background 0.2s; }
[data-theme='pop'] .btn.pour { background: var(--raspberry); color: var(--white); box-shadow: 0 12px 24px -12px rgb(181 31 87 / 0.7); }
[data-theme='pop'] .btn.pour:hover { background: var(--raspberry-deep); transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgb(181 31 87 / 0.75); }
[data-theme='pop'] .btn.ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
[data-theme='pop'] .btn.ghost:hover { background: var(--blush); transform: translateY(-2px); box-shadow: none; }
[data-theme='pop'] .btn:active { transform: scale(0.97); }

/* ---------- Hero: logo + tipped glitter jar ---------- */
[data-theme='pop'] .hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: 'copy art' 'tag art' 'cta art';
  align-items: center; column-gap: clamp(1.5rem, 4vw, 4rem); row-gap: 1.25rem;
  padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
}
[data-theme='pop'] .hero::before { background: radial-gradient(ellipse 60% 70% at 78% 45%, rgb(255 121 176 / 0.16), transparent 70%), var(--blush); opacity: 1; }
[data-theme='pop'] .hero::after { content: ''; position: absolute; left: -50vw; right: -50vw; bottom: -27px; height: 28px; z-index: -1; background: url('/deco/wave.svg') 0 0 / 240px 28px repeat-x; }
[data-theme='pop'] .hero-copy { grid-area: copy; align-self: end; }
[data-theme='pop'] .hero-logo { display: block; width: min(100%, 540px); height: auto; }
[data-theme='pop'] .hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-theme='pop'] .hero-side { display: contents; }
[data-theme='pop'] .hero-blob { display: none; }
[data-theme='pop'] .hero [data-tagline] { grid-area: tag; color: var(--ink-2); font-size: 1.15rem; max-width: 36ch; }
[data-theme='pop'] .hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 0.75rem; align-self: start; }
[data-theme='pop'] .hero-art { grid-area: art; position: relative; width: 100%; max-width: 580px; aspect-ratio: 4 / 3.3; justify-self: end; }
[data-theme='pop'] .hero-jar { position: absolute; inset: 14% 0 0 4%; z-index: 1; background: var(--art-jar) center / contain no-repeat; }
[data-theme='pop'] .twinkle { position: absolute; z-index: 2; width: 22px; aspect-ratio: 1; background: var(--art-sparkle) center / contain no-repeat; }
[data-theme='pop'] .twinkle.t1 { top: 8%; right: 12%; }
[data-theme='pop'] .twinkle.t2 { top: 48%; left: 2%; width: 15px; }
[data-theme='pop'] .twinkle.t3 { bottom: 4%; right: 38%; width: 13px; }

@media (max-width: 760px) {
  [data-theme='pop'] .hero { grid-template-columns: 1fr; grid-template-areas: 'copy' 'art' 'tag' 'cta'; text-align: center; row-gap: 1rem; }
  [data-theme='pop'] .hero-logo { margin-inline: auto; width: min(100%, 420px); }
  [data-theme='pop'] .hero-art { justify-self: center; max-width: 340px; margin-top: -0.5rem; }
  [data-theme='pop'] .hero [data-tagline] { margin-inline: auto; }
  [data-theme='pop'] .hero-cta { justify-content: center; }
}

/* ---------- Section rhythm: heart rule, eyebrow, brushed headings ---------- */
[data-theme='pop'] .heart-rule { height: clamp(44px, 7vw, 72px); width: min(440px, 78%); margin: var(--space-section) auto clamp(1rem, 3vw, 2rem); background: var(--art-divider) center / contain no-repeat; }
[data-theme='pop'] .section-head { text-align: center; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); }
[data-theme='pop'] .eyebrow { display: flex; width: fit-content; align-items: center; gap: 0.45rem; margin: 0 0 0.2rem; font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.2; color: var(--raspberry); }
[data-theme='pop'] .eyebrow::before { content: ''; width: 0.75em; height: 0.75em; background: var(--art-sparkle) center / contain no-repeat; }
[data-theme='pop'] .brushed { position: relative; isolation: isolate; display: inline-block; margin: 0; padding: 0 0.25em; font-family: var(--font-hand); font-weight: 400; font-size: clamp(2.6rem, 1.7rem + 3.2vw, 4.2rem); line-height: 1.05; color: var(--ink); }
[data-theme='pop'] .brushed::before { content: ''; position: absolute; z-index: -1; inset: 38% -0.35em -0.2em; background: var(--brush, var(--brush-2)) center / 100% 100% no-repeat; opacity: 0.32; transform: rotate(-1.5deg); }
[data-theme='pop'] .brushed.b1 { --brush: var(--brush-1); }
[data-theme='pop'] .brushed.b2 { --brush: var(--brush-2); }
[data-theme='pop'] .brushed.b3 { --brush: var(--brush-3); }

/* ---------- Shop grid ---------- */
[data-theme='pop'] .chips { justify-content: center; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
[data-theme='pop'] .chip { background: var(--white); border: 1.5px solid var(--line); font-weight: 600; transition: border-color 0.2s, color 0.2s, background 0.2s; }
[data-theme='pop'] .chip:hover { border-color: var(--raspberry); color: var(--raspberry); }
[data-theme='pop'] .chip[aria-pressed='true'] { background: var(--raspberry); border-color: var(--raspberry); color: var(--white); }
[data-theme='pop'] .grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem); padding-bottom: 0; }
[data-theme='pop'] .card-img { border-radius: var(--radius-card); background: var(--blush); box-shadow: var(--shadow-1); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
[data-theme='pop'] .card:hover .card-img, [data-theme='pop'] .card:focus-visible .card-img { transform: translateY(-4px); box-shadow: var(--shadow-2); }
[data-theme='pop'] .card:hover img { transform: scale(1.03); }
[data-theme='pop'] .card-meta { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
[data-theme='pop'] .card-title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
[data-theme='pop'] .price { color: var(--ink); }
[data-theme='pop'] .price.sale { color: var(--raspberry); }
[data-theme='pop'] .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: rgb(255 255 255 / 0.94); color: var(--ink); }
[data-theme='pop'] .tag.sale { background: var(--raspberry); color: var(--white); }
[data-theme='pop'] .tag.sold { background: var(--ink); color: var(--white); }

/* Branded badges: handmade, new, limited edition, custom */
[data-theme='pop'] .flag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.32rem 0.7rem 0.32rem 0.55rem; font: 700 0.7rem/1 var(--font-body); letter-spacing: 0.07em; text-transform: uppercase; border: 1.5px solid rgb(255 255 255 / 0.75); box-shadow: 0 6px 14px -6px rgb(23 23 23 / 0.4); }
[data-theme='pop'] .flag::before { content: ''; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
[data-theme='pop'] .flag-handmade { --icon: var(--icon-heart); background: var(--raspberry); color: var(--white); }
[data-theme='pop'] .flag-new { --icon: var(--icon-sparkle); background: var(--teal); color: var(--ink); }
[data-theme='pop'] .flag-limited { --icon: var(--icon-gem); background: var(--holo); color: var(--ink); border-color: rgb(23 23 23 / 0.12); }
[data-theme='pop'] .flag-custom { --icon: var(--icon-brush); background: var(--gold); color: var(--ink); }

/* ---------- Behind the Glitter ---------- */
[data-theme='pop'] .story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); position: relative; isolation: isolate; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-panel); background: var(--blush); }
[data-theme='pop'] .story::before { content: ''; position: absolute; z-index: -1; top: -2px; left: -2px; width: clamp(100px, 15vw, 180px); aspect-ratio: 1; background: var(--art-corner) center / contain no-repeat; transform: scaleX(-1); }
[data-theme='pop'] .story .brushed { padding-left: 0; }
[data-theme='pop'] .story [data-about] { color: var(--ink-2); font-size: 1.08rem; max-width: 54ch; margin: 1rem 0 0; white-space: pre-line; }
[data-theme='pop'] .facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
[data-theme='pop'] .facts li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.7rem; align-items: start; color: var(--ink-2); }
[data-theme='pop'] .facts li::before { content: ''; width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; background: var(--raspberry); -webkit-mask: var(--icon-heart) center / contain no-repeat; mask: var(--icon-heart) center / contain no-repeat; }
[data-theme='pop'] .facts b { color: var(--ink); }
[data-theme='pop'] .social-link { display: inline-flex; margin-top: 1.25rem; font-weight: 700; color: var(--raspberry); text-underline-offset: 0.2em; }
[data-theme='pop'] .social-link:hover { color: var(--raspberry-deep); }
[data-theme='pop'] .story-art { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; justify-self: center; }
[data-theme='pop'] .story-art .holo { position: absolute; inset: 0; background: var(--art-holo) center / contain no-repeat; opacity: 0.85; }
[data-theme='pop'] .story-art .sticker { position: absolute; inset: 18%; background: var(--art-sticker) center / contain no-repeat; transform: rotate(-8deg); filter: drop-shadow(0 14px 16px rgb(23 23 23 / 0.2)); }
@media (max-width: 760px) {
  [data-theme='pop'] .story { grid-template-columns: 1fr; text-align: center; }
  [data-theme='pop'] .story [data-about] { margin-inline: auto; }
  [data-theme='pop'] .facts { text-align: left; max-width: 30rem; margin-inline: auto; }
  [data-theme='pop'] .story-art { max-width: 260px; }
}

/* ---------- Make It Yours (promo card) ---------- */
[data-theme='pop'] .promo { position: relative; isolation: isolate; overflow: hidden; max-width: 860px; margin: var(--space-section) auto 0; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-2); }
[data-theme='pop'] .promo::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--art-confetti) 0 0 / 260px repeat; opacity: 0.18; -webkit-mask: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 45%, #000 90%); mask: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 45%, #000 90%); }
[data-theme='pop'] .promo::after { content: ''; position: absolute; z-index: -1; top: -2px; right: -2px; width: clamp(100px, 17vw, 190px); aspect-ratio: 1; background: var(--art-corner) center / contain no-repeat; }
[data-theme='pop'] .promo > p:not(.eyebrow) { max-width: 46ch; margin: 1rem auto 1.75rem; color: var(--ink-2); font-size: 1.08rem; }
[data-theme='pop'] .section-head .eyebrow, [data-theme='pop'] .promo .eyebrow { margin-inline: auto; }
@media (max-width: 760px) { [data-theme='pop'] .story .eyebrow { margin-inline: auto; } }

/* Custom order form */
[data-theme='pop'] .custom-form { display: grid; gap: 1rem; max-width: 560px; margin: 0.5rem auto 0; text-align: left; }
[data-theme='pop'] .custom-form .field input, [data-theme='pop'] .custom-form .field textarea { background: rgb(255 255 255 / 0.96); }
[data-theme='pop'] .custom-form .btn { justify-self: center; }
[data-theme='pop'] .custom-form .error:empty { display: none; }
[data-theme='pop'] .custom-done { max-width: 40ch; margin: 0.5rem auto 0; padding: 1rem 1.25rem; border-radius: 18px; background: var(--blush); color: var(--ink); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Product, cart, thanks ---------- */
[data-theme='pop'] .gallery-main { border-radius: 28px; background: var(--blush); box-shadow: var(--shadow-2); }
[data-theme='pop'] .thumbs button { border-radius: 14px; }
[data-theme='pop'] .thumbs button[aria-current='true'] { border-color: var(--raspberry); }
[data-theme='pop'] .product-info > a.stock { font-family: var(--font-hand); font-size: 1.35rem; color: var(--raspberry); text-decoration: none; }
[data-theme='pop'] .product-info h1, [data-theme='pop'] .page-title { font-weight: 800; letter-spacing: -0.03em; }
[data-theme='pop'] .stock.low { color: var(--raspberry); }
[data-theme='pop'] .summary { border-radius: 28px; background: var(--white); border-color: var(--line); }
[data-theme='pop'] .line img, [data-theme='pop'] .line .ph { border-radius: 16px; }
[data-theme='pop'] .field input:focus, [data-theme='pop'] .field textarea:focus { border-color: var(--raspberry); box-shadow: 0 0 0 3px rgb(181 31 87 / 0.15); }
[data-theme='pop'] .thanks::before { content: ''; width: 150px; aspect-ratio: 1; background: var(--art-sticker) center / contain no-repeat; transform: rotate(-6deg); }
[data-theme='pop'] .empty::before { content: ''; display: block; width: 130px; aspect-ratio: 1; margin: 0 auto 1rem; background: var(--art-hearts) center / contain no-repeat; }
[data-theme='pop'] .empty { color: var(--muted); }
[data-theme='pop'] .toast { background: var(--ink); display: inline-flex; align-items: center; gap: 0.5rem; }
[data-theme='pop'] .toast::before { content: ''; width: 1rem; height: 1rem; background: var(--art-sparkle) center / contain no-repeat; }

/* ---------- Footer ---------- */
[data-theme='pop'] .site-foot { position: relative; margin-top: var(--space-section); border-top: 0; background: var(--blush); padding: 3.25rem 0 3.5rem; }
[data-theme='pop'] .site-foot::before { content: ''; position: absolute; left: 0; right: 0; top: -27px; height: 28px; background: url('/deco/wave.svg') 0 0 / 240px 28px repeat-x; transform: scaleY(-1); }
[data-theme='pop'] .site-foot::after { content: ''; position: absolute; right: clamp(0.5rem, 3vw, 2.5rem); bottom: 0.75rem; width: clamp(80px, 11vw, 130px); aspect-ratio: 1; background: var(--art-swirl) center / contain no-repeat; pointer-events: none; }
[data-theme='pop'] .site-foot h2 { font-family: var(--font-hand); font-weight: 400; font-size: 1.7rem; color: var(--raspberry); }
[data-theme='pop'] .site-foot a { color: var(--raspberry); font-weight: 600; }
[data-theme='pop'] body[data-page='home'] .site-foot .wrap { grid-template-columns: 1fr; }
[data-theme='pop'] body[data-page='home'] .site-foot .wrap > div:first-child { display: none; }

/* ---------- Motion (only when the visitor allows it) ---------- */
[data-theme='pop'] .burst { position: absolute; inset: 0; pointer-events: none; }
[data-theme='pop'] .burst i { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--art-sparkle) center / contain no-repeat; opacity: 0; --d: 62px; }
[data-theme='pop'] .burst i:nth-child(odd) { background: var(--bubblegum); -webkit-mask: var(--icon-heart) center / contain no-repeat; mask: var(--icon-heart) center / contain no-repeat; --d: 48px; width: 13px; height: 13px; }
[data-theme='pop'] .burst i:nth-child(1) { --a: 0deg; }
[data-theme='pop'] .burst i:nth-child(2) { --a: 45deg; }
[data-theme='pop'] .burst i:nth-child(3) { --a: 90deg; }
[data-theme='pop'] .burst i:nth-child(4) { --a: 135deg; }
[data-theme='pop'] .burst i:nth-child(5) { --a: 180deg; }
[data-theme='pop'] .burst i:nth-child(6) { --a: 225deg; }
[data-theme='pop'] .burst i:nth-child(7) { --a: 270deg; }
[data-theme='pop'] .burst i:nth-child(8) { --a: 315deg; }

@media (prefers-reduced-motion: no-preference) {
  [data-theme='pop'] .twinkle { animation: pop-twinkle 3.2s ease-in-out infinite; }
  [data-theme='pop'] .twinkle.t2 { animation-delay: 1.1s; }
  [data-theme='pop'] .twinkle.t3 { animation-delay: 2.1s; }
  [data-theme='pop'] .story-art .sticker { animation: pop-bob 7s ease-in-out infinite; }
  [data-theme='pop'] .empty::before { animation: pop-beat 2.6s ease-in-out infinite; }
  [data-theme='pop'] .burst i { animation: pop-burst 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
  [data-theme='pop'] .cart-count.bump { animation: pop-bump 0.45s var(--ease-pop); }
}
@media (prefers-reduced-motion: reduce) { [data-theme='pop'] .burst { display: none; } }

@keyframes pop-twinkle { 0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.35; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes pop-bob { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-8px); } }
@keyframes pop-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.06); } 30% { transform: scale(1); } }
@keyframes pop-burst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(0.2); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(1); }
}
@keyframes pop-bump { 40% { transform: scale(1.35); } }

/* Product video accents */
[data-theme='pop'] .watch-btn { background: var(--raspberry); box-shadow: 0 10px 22px -10px rgb(181 31 87 / 0.8); }
[data-theme='pop'] .watch-btn:hover { background: var(--raspberry-deep); }
[data-theme='pop'] .has-video { background: rgb(181 31 87 / 0.9); }
