/* ==========================================================================
   KIDDO HUNT — "Marketplace" design system
   Clean, bright, mainstream e-commerce: white canvas, near-black type,
   bold red for sale/discount emphasis, soft realistic shadows, standard
   rounded cards, uppercase bold section labels. A deliberate departure
   from the earlier "candy playground" pass toward a straightforward,
   trustworthy family-retail look.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* ---- Color ---- */
  --ivory:      #FFFFFF;   /* page background — clean white */
  --cream-deep: #F5F5F7;   /* secondary/alternating section bg */
  --ink:        #171717;   /* near-black — text + primary buttons */
  --warm-gray:  #6B6B70;   /* neutral gray for secondary text */
  --gold:       #E0272B;   /* bold red — sale, discount, primary CTA accent */
  --gold-soft:  #FF6A6E;   /* lighter red — hover state */
  --sky:        #2E86AB;   /* muted blue — info/category accent */
  --grass:      #2F9E5B;   /* green — trust/COD/in-stock cues */
  --white:      #FFFFFF;
  --border:     #E7E7EA;   /* light neutral hairline */
  --border-soft:#EFEFF2;
  --line:       var(--ink);
  --ink-wash:   rgba(23,23,23,.04);
  --sale-tint:  #FDECEC;   /* pale red tint for sale-badge backgrounds */

  /* ---- Type ---- */
  --font-display: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'Inter', -apple-system, sans-serif; /* re-purposed: bold uppercase "label" voice */

  /* ---- Scale ---- */
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23,23,23,.05);
  --shadow-md: 0 6px 20px rgba(23,23,23,.08);
  --shadow-lg: 0 18px 48px rgba(23,23,23,.12);
  --shadow-pop: var(--shadow-md);       /* alias kept for cross-file compatibility */
  --shadow-pop-sm: var(--shadow-sm);
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --t-fast: 150ms;
  --t-med: 220ms;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
button{ font-family:inherit; }

/* ---- Typography ---- */
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.15;
  margin:0;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.2rem,5vw,3.8rem); font-weight:700; }
h2{ font-size:clamp(1.6rem,3vw,2.3rem); text-transform:uppercase; letter-spacing:.01em; }
h3{ font-size:1.25rem; }
h4{ font-size:1.02rem; }
p{ margin:0; color:var(--ink); }
.lede{ font-size:1.08rem; color:var(--warm-gray); line-height:1.7; font-weight:400; }

.eyebrow{
  font-family:var(--font-mono);
  font-size:.76rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:800;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{ content:""; width:20px; height:2px; background:var(--gold); display:inline-block; }
.eyebrow.on-dark{ color:var(--gold-soft); }
.eyebrow.on-dark::before{ background:var(--gold-soft); }

.small-caps{
  font-variant:small-caps;
  letter-spacing:.04em;
  font-weight:700;
}

/* ---- Layout helpers ---- */
.wrap{ max-width:1240px; margin:0 auto; padding:0 32px; }
.wrap-narrow{ max-width:760px; margin:0 auto; padding:0 32px; }
.wrap-wide{ max-width:1400px; margin:0 auto; padding:0 32px; }
@media (max-width:640px){
  .wrap, .wrap-narrow, .wrap-wide{ padding:0 20px; }
}

/* Signature divider — plain hairline rule */
.stitch-rule{
  border:0; height:1px; margin:0;
  background:var(--border);
}
.stitch-rule.dark{
  background:rgba(255,255,255,.14);
}

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-display); font-size:.84rem; letter-spacing:.04em; text-transform:uppercase;
  font-weight:700; text-decoration:none; cursor:pointer;
  padding:14px 30px; border-radius:var(--radius-sm); border:1.5px solid transparent;
  transition:transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft);
  white-space:nowrap;
}
.btn:hover{ box-shadow:var(--shadow-md); transform:translateY(-1px); }
.btn:active{ transform:translateY(0); box-shadow:none; }
.btn-primary{ background:var(--ink); color:var(--white); }
.btn-primary:hover{ background:#000; }
.btn-outline{ background:var(--white); color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--white); }
.btn-gold{ background:var(--gold); color:var(--white); }
.btn-gold:hover{ background:#C71F23; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--border); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-block{ width:100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--sky); outline-offset:2px;
}

/* ---- Sale/tag badge — signature product label: small bold pill,
   red-on-tint by default, used for age range, "Bestseller", discounts. */
.tag-badge{
  position:relative;
  display:inline-flex; align-items:center;
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.03em; text-transform:uppercase;
  color:var(--gold); background:var(--sale-tint);
  border:1px solid rgba(224,39,43,.25); border-radius:var(--radius-pill);
  padding:5px 11px;
  font-weight:800;
}

/* ---- Cards ---- */
.card{
  background:var(--white);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  transition:box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  box-shadow:var(--shadow-sm);
}
.card:hover{ box-shadow:var(--shadow-md); border-color:var(--border); }

/* ---- Product card (shared by shop grid, home rails, related) ---- */
.product-card{
  position:relative;
  display:flex; flex-direction:column;
  text-decoration:none; color:inherit;
  background:var(--white);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.product-card:hover{ box-shadow:var(--shadow-lg); transform:translateY(-3px); border-color:var(--border); }
/* Full-bleed click target — a <div> card can't itself be an <a> since the
   wishlist button below needs to sit inside it; this overlay makes the
   whole card clickable without nesting a <button> inside an <a>. */
.pc-link-overlay{ position:absolute; inset:0; z-index:1; }
.pc-wishlist{
  position:absolute; top:10px; right:10px; z-index:2;
  width:32px; height:32px; border-radius:50%; background:var(--white); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink); padding:0;
  transition:color var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft), transform var(--t-fast) var(--ease);
}
.pc-wishlist:hover{ transform:scale(1.08); }
.pc-wishlist.active{ color:var(--gold); border-color:var(--gold); }
.pc-wishlist.active svg{ fill:var(--gold); }
.product-card .pc-media{
  position:relative; aspect-ratio:4/5; overflow:hidden; background:var(--ink-wash);
}
.product-card .pc-media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform 500ms var(--ease-soft);
}
.product-card:hover .pc-media img{ transform:scale(1.05); }
.product-card .pc-age{
  position:absolute; top:10px; left:10px;
}
.product-card .pc-body{ padding:14px 14px 16px; display:flex; flex-direction:column; gap:5px; }
.product-card .pc-cat{ font-family:var(--font-mono); font-size:.66rem; letter-spacing:.07em; text-transform:uppercase; color:var(--warm-gray); font-weight:700; }
.product-card h3{ font-size:1.02rem; font-weight:600; font-family:var(--font-body); text-transform:none; }
.product-card .pc-price{ font-family:var(--font-display); font-size:1.02rem; color:var(--gold); margin-top:2px; font-weight:700; }

/* ---- Forms ---- */
.field{ display:flex; flex-direction:column; gap:7px; }
.field label{
  font-family:var(--font-mono); font-size:.74rem; letter-spacing:.03em; text-transform:uppercase; color:var(--warm-gray); font-weight:700;
}
.field input, .field select, .field textarea{
  font-family:var(--font-body); font-size:.98rem; color:var(--ink);
  background:var(--white); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:12px 14px; transition:border-color var(--t-med) var(--ease-soft), box-shadow var(--t-med) var(--ease-soft);
  width:100%;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--ink); box-shadow:0 0 0 3px rgba(23,23,23,.08); outline:none; }
.field textarea{ resize:vertical; min-height:90px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .field-row{ grid-template-columns:1fr; } }

/* underline-style input, used on the contact page for a lighter feel */
.field-underline label{ color:var(--warm-gray); }
.field-underline input, .field-underline textarea{
  border:0; border-bottom:1.5px solid var(--border); border-radius:0; padding:10px 2px;
  background:transparent;
}
.field-underline input:focus, .field-underline textarea:focus{ border-bottom-color:var(--gold); box-shadow:none; }

/* ---- Reveal-on-scroll ---- */
.reveal{ opacity:0; transform:translateY(14px); transition:opacity 500ms var(--ease-soft), transform 500ms var(--ease-soft); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; }
}
