/* ==========================================================================
   Purrfect Picks — affiliate store styles
   Sections: tokens · base · buttons · header · hero · marquee · sections ·
   categories · product cards · tabs · personalities · promo · perks ·
   gallery · newsletter · footer · page hero · shop · product page ·
   prose/faq · toast · 404 · animations
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #fff8f1;
  --surface: #ffffff;
  --surface-2: #fff1e6;
  --ink: #2a1f3d;
  --ink-soft: #4a3f5c;
  --muted: #6b6180;
  --line: #f0e3d6;

  --coral: #ff6b4a;
  --coral-600: #e9502f;
  --coral-100: #ffe3da;
  --sun: #ffc857;
  --sun-100: #fff1cc;
  --mint: #3cc8a8;
  --mint-100: #d8f5ec;
  --lilac: #b79cff;
  --lilac-100: #eee6ff;
  --sky-100: #e0f0ff;
  --success: #1f9d6c;
  --danger: #d6334a;
  --focus: #5b3fd6;

  --font-display: "Fredoka", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --shadow-sm: 0 2px 6px rgba(42, 31, 61, 0.06);
  --shadow: 0 10px 30px -12px rgba(42, 31, 61, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(42, 31, 61, 0.28);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1240px;
  --gutter: 20px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Clip slide-in animations sideways without breaking position: sticky */
main { display: block; overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--coral); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-coral { color: var(--coral); }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, background-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(42, 31, 61, 0.55); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover .arrow { transform: translateX(4px); }
.btn .arrow { transition: transform 0.25s var(--ease-out); }

.btn-coral { --btn-bg: var(--coral); --btn-fg: var(--ink); }
.btn-coral:hover { --btn-bg: #ff7f62; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-amazon { --btn-bg: var(--sun); --btn-fg: var(--ink); overflow: hidden; isolation: isolate; }
.btn-amazon:hover { --btn-bg: #ffbd3a; }
.btn-amazon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  transition: background-position 0.8s var(--ease-out);
}
.btn-amazon:hover::after { background-position: 150% 0; }
.btn-whatsapp { --btn-bg: #25d366; --btn-fg: var(--ink); }
.btn-whatsapp:hover { --btn-bg: #1ebe5a; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }
.btn-lg { min-height: 58px; padding: 14px 32px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.25s var(--ease-bounce);
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 24px; height: 24px; }

.count-badge {
  position: absolute;
  top: 3px; right: 1px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: var(--pill);
  background: var(--coral);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  transform: scale(1);
}
.count-badge:empty,
.count-badge[data-count="0"] { transform: scale(0); }
.count-badge.bump { animation: bump 0.5s var(--ease-bounce); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}
.link-arrow svg { width: 18px; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Announcement + header ---------- */
.announce {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}
.announce-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 9px 0;
  padding-right: 48px; /* equals the gap, so the duplicated list loops seamlessly */
  animation: marquee 32s linear infinite;
}
.announce-track span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.announce-track span::before { content: "🐾"; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 241, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(42, 31, 61, 0.4); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--header-h);
  padding-block: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo img { width: 42px; height: 42px; transition: transform 0.4s var(--ease-bounce); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
.logo span b { color: var(--coral); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 2px; order: 2; }

.nav-toggle { display: none; }

.site-nav { order: 3; width: 100%; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--coral-100); }
.site-nav a.is-active { background: var(--ink); color: #fff; }

/* JS on: collapse nav into a dropdown panel on small screens */
.js .nav-toggle { display: inline-grid; }
.js .site-nav {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.js .site-nav > ul { overflow: hidden; flex-direction: column; }
.js .site-nav.is-open { grid-template-rows: 1fr; }
.js .site-nav.is-open > ul { padding-bottom: 12px; }
.js .site-nav a { display: block; padding: 12px 14px; font-size: 1.15rem; }

.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  display: block;
  width: 22px; height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before,
.nav-toggle .bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 30em) {
  :root { --gutter: 16px; }
  .header-inner { gap: 6px 8px; }
  .logo { font-size: 1.2rem; gap: 8px; }
  .logo img { width: 36px; height: 36px; }
  .icon-btn { width: 42px; height: 42px; }
  .btn-lg { padding: 14px 22px; font-size: 1.05rem; }
}

@media (min-width: 64em) {
  .logo { margin-right: 0; }
  .site-nav,
  .js .site-nav { order: 0; width: auto; display: block; margin-inline: auto; }
  .site-nav ul,
  .js .site-nav > ul { flex-direction: row; overflow: visible; padding: 0; }
  .js .site-nav a { display: inline-block; padding: 8px 14px; font-size: 1.02rem; }
  .js .nav-toggle { display: none; }
}

/* Header search */
.header-search {
  order: 4;
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.header-search > div { overflow: hidden; }
.header-search.is-open { grid-template-rows: 1fr; }
.header-search form { display: flex; gap: 8px; padding: 4px 0 14px; }
.no-js .header-search { display: none; }

/* ---------- Inputs ---------- */
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus,
.select:focus,
.textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--lilac-100); }
.input-pill { border-radius: var(--pill); padding-inline: 22px; }
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1f3d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 40em) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 70px;
}

.blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: var(--coral-100); top: -120px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: var(--lilac-100); bottom: -140px; left: -120px; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: var(--sun-100); top: 40%; left: 45%; animation-delay: -12s; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 60em) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero { padding-block: 60px 100px; }
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-label .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(60, 200, 168, 0.6);
  animation: pulse 2s infinite;
}

.hero h1 .squiggle {
  position: relative;
  display: inline-block;
  color: var(--coral);
}
.hero h1 .squiggle svg {
  position: absolute;
  left: 0; bottom: -0.18em;
  width: 100%; height: 0.35em;
  overflow: visible;
}
.hero h1 .squiggle path {
  fill: none;
  stroke: var(--sun);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.2s 0.9s var(--ease-out) forwards;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 22px; height: 22px; color: var(--mint); }

.hero-art {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  aspect-ratio: 1;
}
.hero-art-main {
  position: absolute;
  inset: 6% 6% 6% 6%;
  overflow: hidden;
  border-radius: 58% 42% 50% 50% / 48% 52% 48% 52%;
  box-shadow: var(--shadow-lg);
  animation: morph 12s ease-in-out infinite;
}
.hero-art-main img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 20s ease-in-out infinite alternate; }

.hero-art-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--coral);
  border-radius: 50%;
  opacity: 0.5;
  animation: spin 40s linear infinite;
}

.hero-art-mini {
  position: absolute;
  left: -2%; bottom: 4%;
  width: 34%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid var(--bg);
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero-art-mini img { width: 100%; height: 100%; object-fit: cover; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.float-chip .chip-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
}
.float-chip small { display: block; font-weight: 600; color: var(--muted); font-size: 0.78rem; }
.chip-1 { top: 8%; left: -4%; animation-delay: -1.5s; }
.chip-1 .chip-icon { background: var(--mint-100); }
.chip-2 { right: -3%; bottom: 22%; animation-delay: -3s; }
.chip-2 .chip-icon { background: var(--sun-100); }

.spin-badge {
  position: absolute;
  top: -2%; right: 4%;
  width: 26%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: var(--shadow);
}
.spin-badge svg { position: absolute; inset: 6%; width: 88%; height: 88%; animation: spin 14s linear infinite; }
.spin-badge text { font-family: var(--font-display); font-weight: 600; font-size: 10px; fill: var(--ink); }
.spin-badge .paw { font-size: 2rem; animation: wiggle 3s ease-in-out infinite; }

@media (max-width: 30em) {
  .float-chip { font-size: 0.8rem; padding: 8px 12px 8px 8px; }
  .float-chip .chip-icon { width: 28px; height: 28px; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: 18px;
  background: var(--coral);
  color: var(--ink);
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow);
}
.marquee-wrap { overflow: hidden; padding-block: 16px 40px; }
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding-right: 40px;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  font-weight: 600;
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; font-size: 0.8em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section-tint { background: var(--surface-2); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 36px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 36rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--coral-600);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.center { text-align: center; }
.section-head.center { flex-direction: column; align-items: center; }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 18px;
  margin: 0;
  padding: 6px 4px 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.cat-grid > li { scroll-snap-align: start; }
@media (min-width: 64em) {
  .cat-grid { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); overflow: visible; }
}

.cat-tile {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}
.cat-tile-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tile-bg, var(--coral-100));
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s, border-radius 0.4s var(--ease-out);
}
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.cat-tile:hover .cat-tile-img { transform: translateY(-6px) rotate(-3deg); box-shadow: var(--shadow); border-radius: 38%; }
.cat-tile:hover .cat-tile-img img { transform: scale(1.1); }
.cat-tile h3 { margin: 14px 0 2px; font-size: 1.1rem; }
.cat-tile p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.cat-grid li:nth-child(7n + 2) .cat-tile-img { --tile-bg: var(--mint-100); }
.cat-grid li:nth-child(7n + 3) .cat-tile-img { --tile-bg: var(--sun-100); }
.cat-grid li:nth-child(7n + 4) .cat-tile-img { --tile-bg: var(--lilac-100); }
.cat-grid li:nth-child(7n + 5) .cat-tile-img { --tile-bg: var(--sky-100); }

/* ---------- Product grid + cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; } }
@media (min-width: 72em) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.product-card-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-out);
}
.product-card-media .img-alt { opacity: 0; transform: scale(1.08); }
.product-card:hover .img-main { opacity: 0; transform: scale(1.08); }
.product-card:hover .img-alt { opacity: 1; transform: scale(1); }
.product-card:hover .product-card-media .img-main:only-of-type { opacity: 1; transform: scale(1.06); }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.badge-sale { background: var(--coral); }
.badge-new { background: var(--mint); }
.badge-hot { background: var(--sun); }

.wish-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-bounce), background-color 0.2s;
}
.wish-btn:hover { transform: scale(1.1); }
.wish-btn svg { width: 22px; height: 22px; transition: fill 0.2s, color 0.2s; }
.wish-btn[aria-pressed="true"] { color: var(--coral); }
.wish-btn[aria-pressed="true"] svg { fill: var(--coral); }
.wish-btn.pop { animation: heart-pop 0.55s var(--ease-bounce); }

.card-peek {
  position: absolute;
  left: 50%; bottom: 14px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.95);
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.35s var(--ease-bounce);
}
.product-card:hover .card-peek { opacity: 1; transform: translate(-50%, 0); }

.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 4px 0; }
.product-card-desc {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card-body .btn { margin-top: auto; }
.product-card-cat {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 600; }
.product-card h3 a { text-decoration: none; background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 2px no-repeat; transition: background-size 0.35s var(--ease-out); }
.product-card h3 a:hover { background-size: 100% 2px; }

/* Skeletons while data loads */
.skeleton {
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  background: linear-gradient(100deg, var(--surface-2) 40%, #fff 50%, var(--surface-2) 60%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ---------- Tabs ---------- */
.tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tab {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
}
.tab[aria-selected="true"] { color: #fff; }
.tab-indicator {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  border-radius: var(--pill);
  background: var(--ink);
  transition: transform 0.45s var(--ease-bounce), width 0.45s var(--ease-bounce);
}
.grid-fade { animation: fade-up 0.5s var(--ease-out) both; }

/* ---------- Shop by personality ---------- */
.moods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 56em) { .moods { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.mood {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mood-bg, var(--coral-100));
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  will-change: transform;
}
.mood:hover { box-shadow: var(--shadow); }
.mood-img { aspect-ratio: 4 / 3; overflow: hidden; }
.mood-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.mood:hover .mood-img img { transform: scale(1.08); }
.mood-body { padding: 16px 18px 20px; }
.mood-emoji {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-bounce);
}
.mood:hover .mood-emoji { transform: rotate(-15deg) scale(1.15); }
.mood h3 { margin: 0 0 4px; font-size: 1.15rem; }
.mood p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.moods li:nth-child(2) .mood { --mood-bg: var(--mint-100); }
.moods li:nth-child(3) .mood { --mood-bg: var(--sun-100); }
.moods li:nth-child(4) .mood { --mood-bg: var(--lilac-100); }

/* ---------- Promo ---------- */
.promo {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--lilac-100);
}
@media (min-width: 56em) { .promo { grid-template-columns: 1fr 1fr; } }
.promo-body { padding: clamp(32px, 5vw, 64px); align-self: center; }
.promo-body h2 { margin-bottom: 14px; }
.promo-body p { color: var(--ink-soft); font-size: 1.1rem; max-width: 30rem; }
.promo-media { position: relative; min-height: 320px; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.promo:hover .promo-media img { transform: scale(1.05); }
.promo-sticker {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.05;
  text-align: center;
  transform: rotate(12deg);
  box-shadow: var(--shadow);
  animation: wobble 4s ease-in-out infinite;
}
.promo-sticker b { display: block; font-size: 1.9rem; }

/* ---------- Perks ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 56em) { .perks { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.perk {
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s;
}
.perk:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.perk-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: var(--coral-100);
  font-size: 1.8rem;
  transition: transform 0.5s var(--ease-bounce);
}
.perk:hover .perk-icon { transform: rotate(-10deg) scale(1.1); }
.perk:nth-child(2) .perk-icon { background: var(--mint-100); }
.perk:nth-child(3) .perk-icon { background: var(--sun-100); }
.perk:nth-child(4) .perk-icon { background: var(--lilac-100); }
.perk h3 { font-size: 1.1rem; margin-bottom: 4px; }
.perk p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  /* 8 photos fill a 4 × 3 grid exactly */
  .gallery li:nth-child(1),
  .gallery li:nth-child(6) { grid-row: span 2; }
  .gallery li:nth-child(4),
  .gallery li:nth-child(8) { grid-column: span 2; }
}
.gallery li { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.gallery li::after {
  content: "♥ " attr(data-name);
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.4s var(--ease-bounce);
}
.gallery li:hover img { transform: scale(1.08) rotate(1deg); }
.gallery li:hover::after { opacity: 1; transform: none; }

/* ---------- Newsletter ---------- */
.newsletter {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--coral);
  color: var(--ink);
}
.newsletter h2 { max-width: 16ch; }
.newsletter p { max-width: 32rem; font-size: 1.1rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 32rem; margin-top: 22px; }
.newsletter-form .input { flex: 1 1 220px; border-color: transparent; }
.newsletter-cat {
  position: absolute;
  right: -30px; bottom: -40px;
  width: min(42%, 360px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}
.newsletter-cat img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 48em) { .newsletter-cat { display: none; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding-top: 70px;
  background: var(--ink);
  color: #efe8ff;
}
.footer-wave { position: absolute; top: -38px; left: 0; width: 100%; height: 40px; color: var(--ink); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 56em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .logo { color: #fff; }
.footer-about p { max-width: 30ch; margin-top: 14px; color: #c9bfdc; }
.footer-heading { margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a {
  display: inline-block;
  padding: 5px 0;
  color: #c9bfdc;
  text-decoration: none;
  transition: color 0.2s, transform 0.25s var(--ease-out);
}
.site-footer li a:hover { color: var(--coral); transform: translateX(4px); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.2s, transform 0.3s var(--ease-bounce);
}
.socials a:hover { background: var(--coral); color: var(--ink); transform: translateY(-4px) rotate(-8deg); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a79cbc;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 44px 50px;
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 44px;
}
.page-hero h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem); margin-bottom: 8px; }
.page-hero p { max-width: 40rem; margin: 0; color: var(--ink-soft); font-size: 1.1rem; }
.page-hero .paw-deco {
  position: absolute;
  right: 5%; top: 50%;
  font-size: 7rem;
  opacity: 0.12;
  transform: translateY(-50%) rotate(-18deg);
  animation: wiggle 5s ease-in-out infinite;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--coral-600); }

/* ---------- Shop ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.shop-toolbar .search-wrap { position: relative; flex: 1 1 260px; }
.shop-toolbar .search-wrap svg { position: absolute; left: 18px; top: 50%; width: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.shop-toolbar .search-wrap .input { padding-left: 50px; }
.shop-toolbar .select { width: auto; min-width: 200px; border-radius: var(--pill); }

.chips {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 4px 2px 10px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips > li { flex: none; }
.chip {
  display: inline-block; /* chips are links now; inline links let the padding spill out and get clipped */
  flex: none;
  white-space: nowrap;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip[aria-pressed="true"],
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.result-count { margin: 0 0 22px; font-weight: 700; color: var(--muted); }

.empty-state {
  padding: 60px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.empty-state .big-emoji { font-size: 4rem; display: inline-block; animation: wiggle 3s ease-in-out infinite; }
.empty-state h2, .empty-state h3 { margin: 10px 0 6px; }
.empty-state p { color: var(--muted); }

/* ---------- Product page ---------- */
.pdp {
  display: grid;
  gap: 36px;
  padding-top: 20px;
}
@media (min-width: 60em) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }

.pdp-gallery { position: relative; }
@media (min-width: 60em) { .pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.pdp-main {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  cursor: zoom-in;
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.pdp-main.is-zoomed img { transform: scale(1.8); }
.pdp-main img.is-swapping { opacity: 0; }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp-thumbs button {
  width: 88px;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.25s var(--ease-bounce);
}
.pdp-thumbs button:hover { transform: translateY(-3px); }
.pdp-thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 10px; }
.pdp-cat {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: var(--pill);
  background: var(--mint-100);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}
.pdp-short { margin: 16px 0 24px; font-size: 1.12rem; color: var(--ink-soft); }

.pdp-highlights { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.pdp-highlights li { position: relative; padding-left: 32px; font-weight: 600; }
.pdp-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 900;
}

.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 26px 0 14px; }
.buy-row .btn { flex: 1 1 220px; }
.aff-note { margin: 0 0 22px; font-size: 0.85rem; color: var(--muted); }
.aff-note a { color: inherit; }

.wish-lg {
  display: grid;
  place-items: center;
  width: 58px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), border-color 0.2s;
}
.wish-lg:hover { border-color: var(--coral); transform: scale(1.06); }
.wish-lg svg { width: 24px; height: 24px; }
.wish-lg[aria-pressed="true"] { color: var(--coral); border-color: var(--coral); }
.wish-lg[aria-pressed="true"] svg { fill: var(--coral); }
.wish-lg.pop { animation: heart-pop 0.55s var(--ease-bounce); }

.mini-perks {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.mini-perks li { display: flex; gap: 10px; align-items: center; }

.accordion { border-top: 2px solid var(--line); }
.accordion details { border-bottom: 2px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  list-style: none;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 1.3rem;
  transition: transform 0.35s var(--ease-bounce), background-color 0.2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--coral-100); }
.accordion details[open] > :not(summary) { animation: fade-up 0.4s var(--ease-out); }
.accordion .acc-body { padding: 0 4px 20px; color: var(--ink-soft); }
.accordion ul { padding-left: 1.2em; }

/* ---------- Prose, about, FAQ, contact ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--coral-600); font-weight: 700; }
.notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--sun-100);
  border: 2px dashed var(--sun);
  font-weight: 600;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 56em) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 5; }
.split-media .float-chip { bottom: 24px; left: -10px; }

.values { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .values { grid-template-columns: repeat(3, 1fr); } }

.contact-grid { display: grid; gap: 28px; }
@media (min-width: 56em) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-info .perk { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
.contact-info .perk-icon { margin: 0; flex: none; width: 54px; height: 54px; }
.contact-info a { color: var(--coral-600); font-weight: 800; }

.form-card {
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.45rem; }

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  left: 50%; bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  pointer-events: auto;
  animation: toast-in 0.45s var(--ease-bounce) both;
}
.toast.is-leaving { animation: toast-out 0.3s var(--ease-out) forwards; }
.toast img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.toast .toast-msg { flex: 1; line-height: 1.3; }
.toast a, .toast button { color: var(--coral); font-weight: 800; background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }

.fly-img {
  position: fixed;
  z-index: 300;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: var(--shadow);
}

/* ---------- 404 ---------- */
.nf { padding-block: 40px 20px; text-align: center; }
.nf-digits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 4rem + 10vw, 12rem);
  line-height: 1;
  color: var(--coral);
}
.cat-face { width: clamp(110px, 18vw, 190px); height: auto; animation: float 5s ease-in-out infinite; }
.cat-face .pupil { transition: transform 0.12s linear; }
.nf .hero-ctas { justify-content: center; }

/* ---------- Reveal-on-scroll (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.9); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Safety net: if scripts fail to run, show everything (see inline script in <head>) */
.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; }
.reveal-all .site-nav { grid-template-rows: 1fr !important; }
.reveal-all .nav-toggle { display: none !important; }

/* Hero entrance */
.js .hero-copy > * { animation: fade-up 0.9s var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.4s; }
.js .hero-art { animation: pop-in 1.1s 0.2s var(--ease-bounce) both; }

/* ==========================================================================
   Static-site additions (disclosure bar, guides, comparison table, pros/cons).
   Uses the existing design tokens only.
   ========================================================================== */
[hidden] { display: none !important; }

.aff-bar {
  margin: 0;
  padding: 8px var(--gutter);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.aff-bar a { color: inherit; }

.pick-meta { margin: 0 0 18px; color: var(--ink-soft); }

.pros-cons { display: grid; gap: 14px; margin: 0 0 18px; }
@media (min-width: 30em) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons ul { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.pros-cons li { position: relative; margin-bottom: 6px; padding-left: 1.5em; }
.pros li::before, .cons li::before { position: absolute; left: 0; font-weight: 900; }
.pros li::before { content: "+"; color: var(--success); }
.cons li::before { content: "\2212"; color: var(--danger); }
.pros-title, .cons-title { margin: 0 0 6px; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.pros-title { color: var(--success); }
.cons-title { color: var(--danger); }

.guide { max-width: 860px; padding-top: 28px; }
.guide-header h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem); margin: 6px 0 10px; }
.guide-meta { margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.guide-hero { width: 100%; height: auto; margin: 10px 0 28px; border-radius: var(--radius-xl); box-shadow: var(--shadow); object-fit: cover; }
.guide-body { max-width: none; }
.guide-body h2 { scroll-margin-top: calc(var(--header-h) + 20px); }

.table-wrap {
  position: relative;
  margin: 18px 0 28px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare-table thead th { background: var(--surface-2); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tbody th a { color: var(--ink); font-weight: 800; }
.compare-table .btn { white-space: nowrap; }

.pick-box {
  display: grid;
  gap: 22px;
  margin: 16px 0 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
@media (min-width: 40em) { .pick-box { grid-template-columns: 200px 1fr; align-items: start; } }
.pick-media { display: block; overflow: hidden; border-radius: var(--radius); }
.pick-media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.pick-media:hover img { transform: scale(1.06); }
.pick-name { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.pick-name a { color: var(--ink); text-decoration: none; }
.prose a.btn { color: var(--ink); }

/* ---------- Keyframes ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(12deg) scale(1); } 50% { transform: rotate(4deg) scale(1.06); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 50% 50% / 48% 52% 48% 52%; }
  33% { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
  66% { border-radius: 52% 48% 60% 40% / 42% 58% 42% 58%; }
}
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60, 200, 168, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(60, 200, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 200, 168, 0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.8) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes heart-pop { 0% { transform: scale(1); } 30% { transform: scale(0.8); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes slide-out { to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(16px) scale(0.95); } }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(720deg); } }

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

@media print {
  .site-header, .site-footer, .announce, .toast-region { display: none !important; }
}
