/* ============================================================
   PBLE — design tokens, components & motion
   Layered on top of Tailwind (CDN). Tailwind handles utility
   layout; this file owns brand tokens, bespoke components and
   all keyframe animation (kept transform/opacity only).
   ============================================================ */

:root {
  /* surfaces */
  --cream:   #FFF9F3;
  --cream-2: #FBEFE4;
  --paper:   #FFFFFF;
  --line:    #ECDFD0;

  /* text */
  --ink:   #2E2622;   /* 13.4:1 on cream */
  --muted: #6E5F54;   /* 5.3:1  on cream */

  /* brand accents (soft & playful premium) */
  --clay:   #D9694A;  /* primary CTA */
  --clay-d: #C0543A;
  --blush:  #F2A9A1;
  --sage:   #A7C39E;
  --butter: #F3C56A;
  --sky:    #91C2D4;
  --grape:  #C2A7D6;
  --whatsapp: #25D366;
  --whatsapp-d: #1Fae54;

  --shadow-sm: 0 2px 8px rgba(70,46,30,.06);
  --shadow:    0 10px 30px -12px rgba(70,46,30,.18);
  --shadow-lg: 0 26px 60px -22px rgba(70,46,30,.28);

  --r-sm: 14px;
  --r:    22px;
  --r-lg: 30px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--butter); color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.section  { padding: clamp(56px, 9vw, 116px) 0; }
.center   { text-align: center; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* accent helpers */
.acc-blush  { color: var(--blush);  }
.acc-sage   { color: var(--sage);   }
.acc-butter { color: var(--butter); }
.acc-sky    { color: var(--sky);    }
.acc-grape  { color: var(--grape);  }
.acc-clay   { color: var(--clay);   }
.bg-blush  { background: var(--blush);  }
.bg-sage   { background: var(--sage);   }
.bg-butter { background: var(--butter); }
.bg-sky    { background: var(--sky);    }
.bg-grape  { background: var(--grape);  }
.bg-clay   { background: var(--clay);   }
/* soft tints for tiles */
.tint-blush  { background: #FCEAE7; }
.tint-sage   { background: #EBF1E7; }
.tint-butter { background: #FCF1D9; }
.tint-sky    { background: #E6F1F5; }
.tint-grape  { background: #F0E9F6; }
.tint-clay   { background: #FBE7DF; }

/* ---------- Typography scale ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-d);
}
.eyebrow svg { width: 15px; height: 15px; }
.h-hero  { font-size: clamp(2.7rem, 6.4vw, 4.7rem); }
.section-title { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.section-sub { color: var(--muted); max-width: 56ch; margin: 14px auto 0; font-size: 1.06rem; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--muted); }
.text-grad {
  background: linear-gradient(100deg, var(--clay), var(--grape) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--clay); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  font-family: inherit; font-weight: 800; font-size: 1rem; line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease, color .2s ease;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--clay-d); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }
.btn--ink   { --bg: var(--ink); }
.btn--ink:hover { background: #443931; }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 2px var(--clay); color: var(--clay-d); }
.btn--white { --bg: #fff; --fg: var(--clay-d); }
.btn--white:hover { background:#fff; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 18px; height: 76px; }
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.nav__links a:hover { background: var(--cream-2); }
.nav__links a.active { color: var(--clay-d); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px;
  border-radius: 3px; background: var(--clay);
}
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.icon-btn:hover { background: var(--cream-2); transform: translateY(-1px); }
.icon-btn svg { width: 23px; height: 23px; }
.cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--clay); color: #fff; font-size: .68rem; font-weight: 800;
  border: 2px solid var(--cream); transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.show { transform: scale(1); }
.nav__toggle { display: none; }

/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Fraunces", serif; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand__name { font-size: 1.42rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.brand__name b { color: var(--clay); font-weight: 600; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 49;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 12px 22px 22px; display: grid; gap: 2px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 13px 8px; border-radius: 12px; font-weight: 700; font-size: 1.08rem; }
.mobile-menu a:hover { background: var(--cream-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 78px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; }
.hero__copy { max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 38px; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-family: "Fraunces", serif; font-size: 1.6rem; color: var(--ink); }
.hero__trust span { font-size: .82rem; color: var(--muted); font-weight: 700; }

.hero__stage { position: relative; aspect-ratio: 1 / 1; }
.hero__disc {
  position: absolute; inset: 6% 6%; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #FCEAE7, #FBEFE4 55%, #EBF1E7);
  box-shadow: var(--shadow-lg);
}
.hero__ring { position: absolute; inset: -2% -2%; border-radius: 50%; border: 2px dashed var(--line); animation: spin 60s linear infinite; }
.hero__center {
  position: absolute; inset: 22%; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow); color: var(--clay);
}
.hero__center svg { width: 54%; height: 54%; }
.float-toy {
  position: absolute; width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
.float-toy svg { width: 56%; height: 56%; }
.ft-1 { top: 2%;  left: 4%;  color: var(--clay);   animation-delay: -1s; }
.ft-2 { top: 8%;  right: 0%; color: var(--sky);    animation-delay: -3s; }
.ft-3 { bottom: 14%; left: -2%; color: var(--sage); animation-delay: -2s; }
.ft-4 { bottom: 2%;  right: 8%; color: var(--grape); animation-delay: -4s; }
.hero__sparkle { position: absolute; color: var(--butter); width: 26px; height: 26px; animation: twinkle 3.4s ease-in-out infinite; }

.blob-bg { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; }

/* ---------- Marquee (trust strip) ---------- */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 15px 0; }
.marquee__track { display: flex; gap: 44px; width: max-content; align-items: center; animation: scroll-x 32s linear infinite; }
.marquee__track span, .marquee__track a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .96rem; white-space: nowrap; opacity: .92; color: inherit; text-decoration: none; }
.marquee__track a:hover { opacity: 1; text-decoration: underline; }
.marquee__track svg { width: 19px; height: 19px; color: var(--butter); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.cat-card {
  position: relative; display: block; border-radius: var(--r); padding: 26px 22px 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card__ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.cat-card__ic svg { width: 60%; height: 60%; }
.cat-card h3 { font-size: 1.24rem; margin: 18px 0 6px; }
.cat-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.cat-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 800; color: var(--clay-d); font-size: .92rem; }
.cat-card__go svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.cat-card:hover .cat-card__go svg { transform: translateX(4px); }
.cat-soon { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--ink); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.cat-card.is-soon { opacity: .92; }
.cat-card.is-soon .cat-card__ic { opacity: .6; }
.filter-btn .soon-tag { color: var(--clay-d); font-weight: 800; text-transform: uppercase; font-size: .66rem; letter-spacing: .06em; }
.empty-state.coming-soon .ic { width: 96px; height: 96px; }
.empty-state.coming-soon .ic svg { width: 46px; height: 46px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pcard {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard__media { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.pcard__media .motif { display: grid; place-items: center; width: 50%; opacity: .92; transition: transform .5s var(--ease); }
.pcard__media .motif svg { width: 100%; height: auto; display: block; }
/* real product photos fill their square tiles */
.pp-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__media { overflow: hidden; }
.pcard:hover .pp-photo { transform: scale(1.04); transition: transform .5s var(--ease); }
.cart-item__media { overflow: hidden; }
.pcard:hover .pcard__media .motif { transform: scale(1.07) rotate(-3deg); }
.pcard__badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: #fff;
}
.pcard__badge.is-sale { background: var(--clay); }
.pcard__badge.is-new  { background: var(--sage); color: var(--ink); }
.pcard__fav {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px); color: var(--ink);
  display: grid; place-items: center; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), color .2s ease, background .2s ease;
}
.pcard__fav svg { width: 19px; height: 19px; }
.pcard__fav:hover { transform: scale(1.12); color: var(--clay); }
.pcard__fav.on { color: #fff; background: var(--clay); }
.pcard__body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard__brand { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pcard__name { font-family: "Fraunces", serif; font-size: 1.08rem; font-weight: 600; margin: 5px 0 0; }
.pcard__rating { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.pcard__rating svg { width: 14px; height: 14px; color: var(--butter); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.pcard__price { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.16rem; }
.pcard__price s { color: var(--muted); font-size: .88rem; font-weight: 400; margin-right: 6px; }
.pcard__add {
  width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--cream-2); color: var(--ink); display: grid; place-items: center;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease);
}
.pcard__add svg { width: 20px; height: 20px; }
.pcard__add:hover { background: var(--clay); color: #fff; transform: translateY(-2px); }

/* ---------- Features / why-us ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.feature__ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--ink); }
.feature__ic svg { width: 54%; height: 54%; }
.feature h3 { font-size: 1.16rem; margin: 16px 0 7px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Brand row / logos ---------- */
.brand-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-chip {
  display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 22px 16px; text-align: center; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.brand-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--clay); }
.brand-chip b { font-family: "Fraunces", serif; font-size: 1.24rem; font-weight: 600; }
.brand-chip span { font-size: .8rem; color: var(--muted); font-weight: 700; }

.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.brand-card { display: flex; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-card__logo { flex: 0 0 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.brand-card h3 { font-size: 1.3rem; margin: 0 0 2px; }
.brand-card .from { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--clay-d); }
.brand-card p { color: var(--muted); font-size: .96rem; margin: 10px 0 0; }

/* ---------- Testimonials ---------- */
.tg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.tcard .stars { display: inline-flex; gap: 2px; color: var(--butter); margin-bottom: 12px; }
.tcard .stars svg { width: 17px; height: 17px; }
.tcard p { margin: 0 0 18px; font-size: 1.02rem; }
.tcard__who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: "Fraunces", serif; }
.tcard__who b { display: block; font-size: .98rem; }
.tcard__who span { font-size: .82rem; color: var(--muted); }

/* ---------- Banner CTA ---------- */
.banner {
  position: relative; overflow: hidden; border-radius: var(--r-lg); text-align: center;
  padding: clamp(40px, 6vw, 72px) 24px; color: #fff;
  background: linear-gradient(135deg, var(--clay), #E08A5B 55%, var(--grape));
  box-shadow: var(--shadow-lg);
}
.banner h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.banner p { max-width: 46ch; margin: 14px auto 24px; opacity: .96; }
.banner__deco { position: absolute; width: 30px; height: 30px; opacity: .7; }

/* ---------- Newsletter ---------- */
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.field {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
.field::placeholder { color: #A89788; }
.field:focus { outline: 3px solid var(--clay); outline-offset: 2px; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #EBDED2; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 38px; }
.site-footer .brand__name { color: #fff; }
.site-footer p { color: #C7B8AB; font-size: .95rem; max-width: 32ch; }
.site-footer h4 { color: #fff; font-family: "Nunito", sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.site-footer ul a, .site-footer li { color: #C7B8AB; font-size: .96rem; transition: color .2s ease; }
.site-footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s ease, transform .2s ease; }
.socials a:hover { background: var(--clay); transform: translateY(-2px); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #A99A8D; font-size: .86rem; }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); text-align: center; position: relative; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-head p { color: var(--muted); max-width: 56ch; margin: 14px auto 0; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--clay-d); }

/* ---------- Shop layout ---------- */
.shop-wrap { display: grid; grid-template-columns: 248px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: 94px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.filters h4 { font-family: "Nunito", sans-serif; font-weight: 800; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filter-list { display: grid; gap: 4px; }
.filter-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease; }
.filter-btn:hover { background: var(--cream-2); }
.filter-btn.active { background: var(--clay); color: #fff; }
.filter-btn small { font-weight: 700; opacity: .7; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.shop-toolbar .count { color: var(--muted); font-weight: 700; }
.filter-toggle { display: none; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp__media { position: relative; border-radius: var(--r-lg); aspect-ratio: 1/1; display: grid; place-items: center; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.pdp__media .motif { display: grid; place-items: center; width: 46%; }
.pdp__media .motif svg { width: 100%; height: auto; display: block; }
.pdp__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp__thumb { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; border: 2px solid var(--line); cursor: pointer; background: var(--paper); transition: border-color .2s ease; }
.pdp__thumb.active, .pdp__thumb:hover { border-color: var(--clay); }
.pdp__thumb svg { width: 52%; height: 52%; color: var(--ink); }
.pdp h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 8px 0 0; }
.pdp__price { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 600; margin: 14px 0; }
.pdp__price s { color: var(--muted); font-size: 1.1rem; font-weight: 400; margin-right: 10px; }
.swatches { display: flex; gap: 10px; margin: 10px 0 4px; }
.swatch { width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--line); cursor: pointer; transition: transform .2s var(--ease), border-color .2s ease; }
.swatch:hover, .swatch.active { transform: scale(1.08); border-color: var(--ink); }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.size { min-width: 52px; padding: 9px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); font: inherit; font-weight: 700; cursor: pointer; transition: all .2s ease; }
.size:hover { border-color: var(--clay); }
.size.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size--oos { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.spec { display: grid; gap: 10px; margin-top: 22px; }
.spec li { display: flex; gap: 10px; align-items: flex-start; list-style: none; color: var(--muted); font-size: .98rem; }
.spec svg { width: 19px; height: 19px; color: var(--sage); flex: 0 0 auto; margin-top: 2px; }
.label-strong { font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin: 16px 0 0; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.cart-item__media { width: 90px; height: 90px; border-radius: 16px; display: grid; place-items: center; }
.cart-item__media svg { width: 54%; height: 54%; color: var(--ink); }
.cart-item h4 { font-family: "Fraunces", serif; font-size: 1.08rem; margin: 0; }
.cart-item .meta { color: var(--muted); font-size: .85rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--paper); cursor: pointer; font-size: 1.1rem; color: var(--ink); transition: background .2s; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 32px; text-align: center; font-weight: 800; }
.cart-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-weight: 700; font-size: .85rem; }
.cart-remove:hover { color: var(--clay); }
.summary { position: sticky; top: 94px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--muted); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; color: var(--ink); font-weight: 800; font-size: 1.2rem; }
.summary-row.total b { font-family: "Fraunces", serif; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ic { width: 90px; height: 90px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; margin: 0 auto 20px; color: var(--clay); }
.empty-state .ic svg { width: 44px; height: 44px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(140%);
  z-index: 90; background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px;
  display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease); max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 20px; height: 20px; color: var(--sage); }

/* ---------- Payments: WhatsApp button ---------- */
.btn--wa { --bg: var(--whatsapp); --fg: #fff; }
.btn--wa:hover { background: var(--whatsapp-d); }

/* ---------- Card / FPX (ToyyibPay) button ---------- */
.btn--card { --bg: var(--clay); --fg: #fff; }
.btn--card:hover { background: var(--clay-d); }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.pay-secure svg { width: 15px; height: 15px; flex: 0 0 auto; }
.pay-brands { font-weight: 800; color: var(--ink); }
.spin { display: inline-flex; animation: spin .8s linear infinite; }
.spin svg { width: 18px; height: 18px; }

/* ---------- TikTok Shop button ---------- */
.btn--tiktok { --bg: #010101; --fg: #fff; position: relative; }
.btn--tiktok:hover { background: #1c1c1c; }
.btn--tiktok svg { width: 20px; height: 20px; filter: drop-shadow(1px 0 0 #fe2c55) drop-shadow(-1px 0 0 #25f4ee); }

/* product-page instant-pay options */
.pay-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 14px; color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pay-btns { display: grid; gap: 10px; }
.pay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 22px; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--line);
  font: inherit; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.pay-btn svg { width: 20px; height: 20px; }
.pay-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Modal (DuitNow QR) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px;
  background: rgba(46,38,34,.74); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease;
}
.modal-overlay.show { opacity: 1; }
.modal {
  position: relative; width: 100%; max-width: 24rem; max-height: 92vh; overflow-y: auto;
  background: var(--cream); border-radius: var(--r); padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.97); transition: transform .3s var(--ease);
}
.modal-overlay.show .modal { transform: none; }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; cursor: pointer;
  border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--cream-2); color: var(--ink); }
.modal__title { font-size: 1.35rem; margin: 4px 0 0; }
.qr-box { width: 13rem; margin: 18px auto 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.qr-box svg, .qr-box img { display: block; width: 100%; height: auto; border-radius: 4px; }
.qr-name { margin: 12px 0 0; font-weight: 800; color: var(--ink); }
.qr-sample { max-width: 17rem; margin: 12px auto 0; padding: 8px 12px; border-radius: 10px; background: var(--tint-clay, #FBE7DF); color: var(--clay-d); font-size: .78rem; line-height: 1.45; }
.qr-steps { max-width: 18rem; margin: 18px auto 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 8px; counter-reset: s; }
.qr-steps li { position: relative; padding-left: 30px; color: var(--muted); font-size: .9rem; }
.qr-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 999px; background: var(--clay); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }

/* ---------- Checkout form ---------- */
.checkout { display: flex; flex-direction: column; gap: 14px; }
.co-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.co-back:hover { color: var(--clay-d); }
.co-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.co-field { display: flex; flex-direction: column; }
.co-field label { margin-bottom: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.checkout .field { width: 100%; border-radius: var(--r-sm); }
.checkout textarea.field { resize: vertical; min-height: 84px; line-height: 1.5; }
.checkout .field.err { border-color: var(--clay); outline-color: var(--clay); }
.co-err { margin: 6px 0 0; min-height: 0; font-size: .8rem; font-weight: 700; color: var(--clay-d); display: none; }
.co-err.show { display: block; }
.co-lines { display: grid; gap: 8px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.co-line { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--muted); }
.co-line span:last-child { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; bottom: 20px; right: 20px; z-index: 40;
  display: flex; align-items: center; gap: 0; overflow: hidden;
  border-radius: 999px; background: var(--whatsapp); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transform: translateY(24px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .5s var(--ease), gap .4s var(--ease);
}
.float-wa.show { transform: none; opacity: 1; pointer-events: auto; }
.float-wa:hover { gap: 8px; }
.float-wa__ic { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto; }
.float-wa__ic svg { width: 28px; height: 28px; }
.float-wa__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: .82rem; letter-spacing: .04em; transition: max-width .4s var(--ease), padding .4s var(--ease); }
.float-wa:hover .float-wa__label { max-width: 11rem; padding-right: 20px; }

/* ---------- Info pages (delivery, etc.) ---------- */
.info-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.info-table thead th { background: var(--cream-2); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-table tbody tr:last-child td { border-bottom: 0; }
.info-table td:first-child { font-weight: 700; color: var(--ink); }
.info-table td:last-child, .info-table th:last-child { text-align: right; white-space: nowrap; }
.info-table .free { color: var(--sage); font-weight: 800; }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; counter-reset: s; max-width: 640px; }
.steps li { position: relative; padding-left: 48px; color: var(--muted); padding-top: 3px; }
.steps li b { color: var(--ink); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--clay); color: #fff; font-weight: 800; display: grid; place-items: center; }

.spec.spec-no svg { color: var(--clay); }

@media (max-width: 540px) {
  .info-table th, .info-table td { padding: 12px 12px; font-size: .9rem; }
}

/* ---------- Order confirmation ---------- */
.confirm { max-width: 640px; margin: 0 auto; text-align: center; }
.confirm__badge { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: #EBF1E7; color: var(--sage); animation: pop .5s var(--ease) both; }
.confirm__badge svg { width: 40px; height: 40px; }
.order-id { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 9px 9px 18px; border-radius: 999px; background: var(--paper); border: 1px dashed var(--clay); }
.order-id > svg { width: 18px; height: 18px; color: var(--clay-d); }
.order-id span { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.12rem; letter-spacing: .06em; color: var(--ink); }
.order-id__copy { width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--cream-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.order-id__copy svg { width: 16px; height: 16px; }
.order-id__copy:hover { background: var(--clay); color: #fff; }
.confirm__note { display: inline-flex; align-items: center; gap: 8px; margin: 16px auto 0; font-size: .92rem; color: var(--muted); }
.confirm__note svg { width: 18px; height: 18px; color: var(--sky); flex: 0 0 auto; }
.confirm-card { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); margin-top: 26px; }
.confirm-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.confirm-card__head b { font-family: "Fraunces", serif; font-size: 1.15rem; }
.confirm-card__head span { font-size: .82rem; color: var(--muted); }
.confirm-card__deliver { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); line-height: 1.7; }
.confirm-card__deliver b { display: block; color: var(--ink); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.confirm__steps-wrap { margin-top: 26px; }
.confirm__steps-wrap > b { font-family: "Fraunces", serif; font-size: 1.15rem; display: block; margin-bottom: 8px; }
.confirm__actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 28px auto 0; }

@media print {
  .site-header, .site-footer, .float-wa, .toast, .breadcrumb, .confirm__actions, .page-head p { display: none !important; }
  body { background: #fff; }
  .confirm__badge { animation: none; }
  .confirm-card { box-shadow: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .22s; }
.reveal[data-d="4"] { transition-delay: .30s; }
.reveal[data-d="5"] { transition-delay: .38s; }
.reveal[data-d="6"] { transition-delay: .46s; }

/* ---------- Keyframes ---------- */
@keyframes bob      { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes twinkle  { 0%,100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@keyframes blink    { 0%,90%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.blink { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
@keyframes pop      { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid, .product-grid, .features, .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .tg { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero__grid { gap: 32px; }
  .brand-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 440px; margin: 0 auto; width: 100%; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary, .filters { position: static; }
  .shop-wrap { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .cat-grid, .product-grid, .features, .brand-strip, .footer-grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; border-radius: var(--r); }
  .newsletter form .field, .newsletter form .btn { width: 100%; }
  .hero__trust { gap: 16px 22px; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item__media { width: 70px; height: 70px; }
}

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