/* ═══════════════════════════════════════════════════════════
   ANAYA kids&mom — Design System
   Boutique infantil · Barrio Jesús, Valencia
   Estética: crema + rosa vichy, romántica y llamativa
   ═══════════════════════════════════════════════════════════ */

:root {
  --cream: #FDFAF5;
  --paper: #FFFFFF;
  --ink: #43312B;
  --ink-soft: #8A7268;
  --rose: #E98FA8;
  --rose-deep: #C9536F;
  --rose-soft: #FADDE5;
  --rose-whisper: #FCEEF2;
  --flash: #E4573D;
  --line: #F0E4DC;
  --shadow: 0 10px 40px -18px rgba(67, 49, 43, .25);
  --radius: 18px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Vichy gingham pattern ── */
.vichy {
  background:
    repeating-linear-gradient(0deg, rgba(233,143,168,.55) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, rgba(233,143,168,.55) 0 10px, transparent 10px 20px),
    var(--paper);
}
.vichy-soft {
  background:
    repeating-linear-gradient(0deg, rgba(233,143,168,.16) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(90deg, rgba(233,143,168,.16) 0 12px, transparent 12px 24px),
    var(--paper);
}

/* ── Announcement ticker ── */
.announce {
  overflow: hidden;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.announce-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  width: max-content;
}
.announce span {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 rgba(201,83,111,.55);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.announce--bg { background: var(--rose-deep); }

/* ── Header ── */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo b {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.9rem;
  letter-spacing: -.01em;
}
.logo small {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-top: 4px;
}
.header-icons { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: all .25s;
}
.icon-btn:hover { background: var(--rose-whisper); border-color: var(--rose-soft); }
#cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 19px; height: 19px;
  background: var(--rose-deep); color: #fff;
  border-radius: 50%;
  font-size: .68rem; font-weight: 800;
  display: none; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ── Category nav ── */
.cat-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.cat-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a {
  padding: 11px 13px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.cat-nav a:hover, .cat-nav a.active { color: var(--rose-deep); border-bottom-color: var(--rose-deep); }
.cat-nav a.outlet { color: var(--flash); }

/* burger (mobile) */
.burger { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 15px 34px;
  border-radius: 60px;
  font-size: .82rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all .25s;
}
.btn-rose {
  background: var(--rose-deep); color: #fff;
  box-shadow: 0 12px 28px -12px rgba(201,83,111,.65);
}
.btn-rose:hover { background: #B4425D; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ── Product card ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 20px;
}
.pcard { position: relative; }
.pcard-img {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #F7F1EA;
  margin-bottom: 12px;
}
.pcard-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--flash); color: #fff;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 40px;
  z-index: 2;
  animation: pulse-badge 2.4s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
.pcard-name {
  font-size: .92rem; font-weight: 700;
  line-height: 1.35;
  margin-bottom: 5px;
}
.pcard-prices { display: flex; align-items: baseline; gap: 9px; }
.price-old {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: .85rem;
}
.price-now {
  color: var(--rose-deep);
  font-size: 1.08rem; font-weight: 800;
}
.pcard-add {
  margin-top: 10px;
  width: 100%;
  padding: 11px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: .76rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s;
}
.pcard-add:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }

/* ── Sections ── */
.section { max-width: 1280px; margin: 0 auto; padding: 70px 24px; }
.section-head { text-align: center; margin-bottom: 42px; }
.eyebrow {
  font-size: .72rem; font-weight: 800;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--rose-deep);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 550;
  letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--rose-deep); }

/* ── Footer ── */
.site-footer { background: var(--ink); color: #EFE4DC; margin-top: 40px; }
.footer-vichy { height: 12px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-inner h4 {
  font-size: .74rem; font-weight: 800;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 16px;
}
.footer-inner p, .footer-inner a { font-size: .9rem; color: #CBB7AC; }
.footer-inner a:hover { color: #fff; }
.footer-logo b {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.7rem; color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 18px 24px;
  text-align: center;
  font-size: .76rem; color: #937F74;
}

/* ── Page hero (interior pages) ── */
.page-hero { text-align: center; padding: 54px 24px 10px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 550;
}
.page-hero p { color: var(--ink-soft); margin-top: 8px; }

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .section { padding: 46px 18px; }
  .header-main { padding: 13px 16px; }
  .logo b { font-size: 1.5rem; }
  .logo small { letter-spacing: .3em; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cat-nav-inner { justify-content: flex-start; padding: 0 12px; }
}
