/* =========================================================
   MilkyBreeze — Design System (shared across all pages)
   Sharp firm boxes (radius 0) + pastel premium palette.
   Only the floating nav bubble and WhatsApp float are rounded.
   Tailwind Play CDN handles utilities; this file holds the
   reusable components + tokens (plain CSS, no build step).
   ========================================================= */

:root{
  /* Blue identity (firm, not pastel). Names kept for stability. */
  --powder:#D3E4FB;      /* light blue accent (badges/tints) */
  --powder-soft:#EAF2FD; /* very light blue tint background  */
  --brand:#1C6DD0;       /* primary blue, interactive        */
  --brand-deep:#124A8F;  /* deep blue, for text/contrast     */
  --cream:#EFF5FC;       /* cool light section background    */
  --ink:#233240;         /* near black blue grey text        */
  --ink-soft:#556370;    /* muted body (AA on white/tint)    */
  --line:#E2E9F1;        /* hairline borders                 */
  --dark:#0E2F52;        /* dark navy section bg             */
  --wa:#25D366;          /* whatsapp green                   */
  --shadow:0 18px 50px -24px rgba(18,74,143,.4);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:92px; }
body{
  margin:0; background:#fff; color:var(--ink);
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  -webkit-font-smoothing:antialiased; line-height:1.6;
}
h1,h2,h3,h4,h5,.font-head{
  font-family:'Poppins',ui-sans-serif,system-ui,sans-serif;
  color:var(--ink); line-height:1.12; margin:0;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* ---- layout helpers ---- */
.wrap{ max-width:1200px; margin-inline:auto; padding-inline:1rem; }
.section{ padding-block:clamp(3.5rem,7vw,6rem); }
.eyebrow{
  font-size:.72rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase;
  color:var(--brand-deep);
}
.lead{ color:var(--ink-soft); }
.divider{ height:1px; background:var(--line); border:0; }

/* ---- ANNOUNCEMENT BAR ---- */
.announce{
  background:var(--brand-deep); color:#fff; text-align:center;
  font-size:.8rem; font-weight:600; letter-spacing:.01em;
  padding:.55rem 1rem;
}
.announce strong{ font-weight:800; }

/* ============================================================
   HEADER — full-width sticky bar, centered nav (Baby Brezza style)
   ============================================================ */
.header-shell{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.96); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-bar{
  max-width:1280px; margin-inline:auto;
  display:grid; grid-template-columns:auto 1fr auto;
  align-items:center; gap:1.5rem;
  padding:0 1.25rem; min-height:74px;
}
.brand-logo{ display:flex; align-items:center; gap:.6rem; font-family:'Poppins'; font-weight:800; font-size:1.2rem; white-space:nowrap; }
.brand-logo .mark{
  width:38px; height:38px; border-radius:999px; display:grid; place-items:center;
  background:var(--powder); color:var(--brand-deep); font-weight:800; flex:none;
}
.brand-logo .mb-blue{ color:var(--brand); }

.header-nav{ display:flex; align-items:center; justify-content:center; gap:1.6rem; list-style:none; margin:0; padding:0; }
.header-nav > li{ position:relative; padding:.4rem 0; }
.header-nav a, .header-nav summary{
  font-size:.92rem; font-weight:600; color:var(--ink);
  display:inline-flex; align-items:center; gap:.3rem; cursor:pointer;
  padding:0; list-style:none; white-space:nowrap;
}
.header-nav summary::-webkit-details-marker{ display:none; }
.header-nav a:hover, .header-nav summary:hover{ color:var(--brand); }
.header-nav .nav-sale{ color:#a60f00; font-weight:700; }
.header-nav .sale-badge{
  font-size:.58rem; font-weight:800; background:#a60f00; color:#fff;
  padding:.12rem .35rem; margin-left:.3rem; letter-spacing:.02em;
}
.header-nav .chev{ transition:transform .18s; width:11px; height:11px; }
.has-drop:hover .chev, .has-drop:focus-within .chev{ transform:rotate(180deg); }

/* action icons (right) */
.header-right{ display:flex; align-items:center; justify-content:flex-end; gap:.2rem; }
.header-icon{
  width:42px; height:42px; display:grid; place-items:center; color:var(--ink); position:relative;
  transition:color .15s; background:none; border:0; cursor:pointer;
}
.header-icon:hover{ color:var(--brand); }
.cart-count{
  position:absolute; top:4px; right:4px; min-width:18px; height:18px; padding:0 4px;
  border-radius:999px; background:var(--brand); color:#fff; font-size:.62rem; font-weight:800;
  display:grid; place-items:center;
}

/* MEGA DROPDOWN (cream panel, Baby Brezza #f5f1e9) */
.mega{
  position:absolute; top:100%; left:50%;
  transform:translateX(-50%) translateY(8px);
  min-width:560px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow);
  opacity:0; visibility:hidden; transition:opacity .18s ease, transform .18s ease, visibility .18s;
  z-index:70; padding:1.6rem;
}
.has-drop:hover .mega, .has-drop:focus-within .mega{
  opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}
.mega h4{ font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--brand-deep); margin:0 0 .7rem; }
.mega-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.5rem 2rem; }
.mega ul{ list-style:none; padding:0; margin:0; display:grid; gap:.45rem; }
.mega ul a{ font-size:.9rem; font-weight:500; color:var(--ink); }
.mega ul a:hover{ color:var(--brand); }
.mega-foot{ margin-top:1.2rem; padding-top:1rem; border-top:1px solid rgba(33,94,112,.15); font-size:.82rem; color:var(--ink-soft); }
.mega-foot a{ color:var(--brand-deep); font-weight:700; }

/* MOBILE */
.header-burger{ display:none; background:none; border:0; padding:.4rem; cursor:pointer; color:var(--ink); }
.header-drawer{ display:none; }
@media (max-width:1024px){
  .header-nav{ display:none; }
  .header-burger{ display:inline-flex; }
  .header-bar{ grid-template-columns:auto 1fr auto; gap:1rem; min-height:62px; }
  .header-icon{ width:38px; height:38px; }
  .header-drawer.open{
    display:block; max-width:1280px; margin-inline:auto; background:#fff;
    border-bottom:1px solid var(--line); box-shadow:var(--shadow);
  }
  .header-drawer a{ display:block; padding:.95rem 1.2rem; font-weight:600; border-bottom:1px solid var(--line); }
  .header-drawer a:last-child{ border-bottom:0; }
}

/* ============================================================
   BUTTONS (sharp)
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem; text-align:center;
  font-weight:700; font-size:.95rem; padding:.85rem 1.6rem; border-radius:0;
  border:1.5px solid transparent; cursor:pointer; transition:.15s; line-height:1;
}
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ background:var(--brand-deep); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:#1d2a30; }
.btn-outline{ background:transparent; color:var(--brand-deep); border-color:var(--brand); }
.btn-outline:hover{ background:var(--powder-soft); }
.btn-light{ background:#fff; color:var(--brand-deep); border-color:var(--line); }
.btn-light:hover{ border-color:var(--brand); }
.btn-block{ width:100%; }
.btn-sm{ padding:.6rem 1.05rem; font-size:.85rem; }

/* ============================================================
   BADGES / PILLS / CHIPS
   ============================================================ */
.badge{
  display:inline-block; background:var(--brand-deep); color:#fff;
  font-size:.68rem; font-weight:800; letter-spacing:.02em; text-transform:uppercase;
  padding:.28rem .55rem; border-radius:0;
}
.badge-powder{ background:var(--powder); color:var(--brand-deep); }
.chip{
  display:inline-block; font-size:.72rem; font-weight:700; color:var(--brand-deep);
  background:var(--cream); border:1px solid var(--line); padding:.35rem .7rem; border-radius:0;
}
.swatch{ width:18px; height:18px; border-radius:999px; border:1px solid rgba(0,0,0,.15); display:inline-block; }

/* ============================================================
   CARDS (sharp, firm)
   ============================================================ */
.card{ background:#fff; border:1px solid var(--line); border-radius:0; }
.card-pad{ padding:1.5rem; }

/* category card */
.cat-card{ position:relative; background:#fff; border:1px solid var(--line); display:flex; flex-direction:column; transition:.18s; }
.cat-card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); }

/* product card (e-commerce) */
.product-card{ background:#fff; border:1px solid var(--line); display:flex; flex-direction:column; transition:.18s; position:relative; }
.product-card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); }
.product-card .pc-media{ position:relative; background:var(--cream); overflow:hidden; }

/* HOVER IMAGE-SWITCH — smooth crossfade + zoom (desktop only).
   Stacks .pc-img-main over .pc-img-alt; hover fades main out + zooms alt in. */
.product-card .pc-img{
  position:absolute; inset:0; width:100%; height:100%;
  transition:opacity .55s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}
.product-card .pc-img-alt{ opacity:0; transform:scale(1.08); }
@media (hover:hover) and (pointer:fine){
  .product-card:hover .pc-img-main{ opacity:0; transform:scale(1.06); }
  .product-card:hover .pc-img-alt{ opacity:1; transform:scale(1); }
}

/* HOVER VIDEO — muted autoplay on hover, sits on top of images */
.product-card .pc-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .5s ease; pointer-events:none; z-index:1;
}
@media (hover:hover) and (pointer:fine){
  .product-card:hover .pc-video{ opacity:1; }
}
.product-card .pc-media .ph{ position:absolute; inset:0; }

/* video badge */
.pc-video-badge{
  position:absolute; top:.6rem; right:.6rem; z-index:3;
  display:inline-flex; align-items:center; gap:.3rem;
  background:rgba(33,94,112,.92); color:#fff; font-size:.62rem; font-weight:700;
  padding:.25rem .5rem; letter-spacing:.02em;
}
.pc-video-badge svg{ width:11px; height:11px; }
@media (hover:none){ .pc-video-badge{ display:none; } }
.product-card .pc-body{ padding:1rem 1.1rem 1.3rem; display:flex; flex-direction:column; gap:.55rem; flex:1; }
.product-card .pc-name{ font-family:'Poppins'; font-weight:700; font-size:1.02rem; }
.product-card .pc-price{ font-family:'Poppins'; font-weight:800; color:var(--ink); }
.product-card .pc-old{ color:var(--ink-soft); text-decoration:line-through; font-size:.85rem; font-weight:500; }
.pc-badges{ position:absolute; top:.6rem; left:.6rem; display:flex; gap:.35rem; z-index:2; }

/* review card */
.review-card{ background:#fff; border:1px solid var(--line); display:flex; flex-direction:column; }
.stars{ color:#F2B01E; letter-spacing:.1em; font-size:.95rem; }

/* trust item */
.trust-item{ display:flex; align-items:center; gap:.7rem; color:#fff; }
.trust-item .ti-ic{ width:38px; height:38px; flex:none; display:grid; place-items:center; color:var(--powder); }
.trust-item small{ display:block; font-size:.82rem; line-height:1.3; color:rgba(255,255,255,.92); font-weight:600; }

/* ============================================================
   PLACEHOLDER SLOTS (map to PROMPT-GENERATE-MEDIA.md by asset id)
   ============================================================ */
.ph{
  position:relative; display:grid; place-items:center; text-align:center; border-radius:0;
  background:
    linear-gradient(135deg, rgba(211,228,251,.5), rgba(239,245,252,.92)),
    repeating-linear-gradient(45deg, rgba(28,109,208,.07) 0 12px, transparent 12px 24px);
  border:2px dashed rgba(28,109,208,.4); color:var(--ink); overflow:hidden;
}
.ph-tag{
  display:inline-block; font-family:'Inter',monospace; font-size:.72rem; line-height:1.4;
  background:rgba(18,74,143,.95); color:#fff; padding:.5rem .7rem; border-radius:0;
  max-width:94%; box-shadow:0 6px 18px -8px rgba(0,0,0,.5);
}
.ph-tag b{ display:block; font-weight:800; letter-spacing:.02em; margin-bottom:.1rem; }
.ph img{ width:100%; height:100%; object-fit:cover; display:block; }
.ph:has(img){ border:0; background:none; }

/* ============================================================
   CAROUSEL — horizontal snap on mobile, grid on desktop
   ============================================================ */
.snap-row{
  display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch; padding:.25rem .25rem 1rem; margin-inline:-.25rem;
  scrollbar-width:none;
}
.snap-row::-webkit-scrollbar{ display:none; }
.snap-row > *{ flex:0 0 82%; scroll-snap-align:center; }
@media (min-width:768px){
  .snap-row{ display:grid; gap:1.5rem; overflow:visible; margin-inline:0; padding:0; }
  .snap-row.cols-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .snap-row.cols-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .snap-row.cols-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .snap-row > *{ flex:none; }
}
.snap-hint{ display:flex; gap:.4rem; align-items:center; justify-content:center; font-size:.78rem; color:var(--ink-soft); margin-top:.5rem; }
@media (min-width:768px){ .snap-hint{ display:none; } }

/* static responsive grids */
.grid2{ display:grid; gap:1.5rem; grid-template-columns:1fr; }
.grid3{ display:grid; gap:1.5rem; grid-template-columns:1fr; }
.grid4{ display:grid; gap:1.25rem; grid-template-columns:repeat(2,1fr); }
@media (min-width:768px){
  .grid2{ grid-template-columns:repeat(2,1fr); }
  .grid3{ grid-template-columns:repeat(3,1fr); }
  .grid4{ grid-template-columns:repeat(4,1fr); }
}

/* ============================================================
   FORMS (sharp)
   ============================================================ */
.field{ display:flex; flex-direction:column; gap:.4rem; }
.field label{ font-size:.85rem; font-weight:700; color:var(--ink); }
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--line); background:#fff; color:var(--ink);
  padding:.8rem .9rem; border-radius:0; font:inherit; font-size:.95rem; transition:.15s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(47,127,151,.18);
}

/* ============================================================
   HERO video background placeholder
   ============================================================ */
.hero-video{
  background:
    radial-gradient(120% 120% at 15% 10%, rgba(211,228,251,.95) 0%, transparent 45%),
    radial-gradient(120% 120% at 85% 20%, rgba(234,242,253,.95) 0%, transparent 40%),
    linear-gradient(160deg,#cfe2fb 0%, #e9f1fd 42%, #ffffff 100%);
  background-size:200% 200%,200% 200%,100% 100%;
  animation:drift 18s ease-in-out infinite alternate;
}
@keyframes drift{ 0%{ background-position:0% 0%,100% 0%,center; } 100%{ background-position:30% 40%,70% 60%,center; } }
@media (prefers-reduced-motion:reduce){ .hero-video{ animation:none; } }

/* page hero band (interior pages) */
.pagehero{ background:var(--cream); border-bottom:1px solid var(--line); }
.breadcrumb{ font-size:.82rem; color:var(--ink-soft); }
.breadcrumb a:hover{ color:var(--brand); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background:var(--dark); color:rgba(255,255,255,.86); }
.footer h4{ color:#fff; font-size:1rem; margin-bottom:.9rem; }
.footer a{ color:rgba(255,255,255,.82); font-size:.9rem; }
.footer a:hover{ color:#fff; }
.footer .foot-grid{ display:grid; gap:2.2rem; grid-template-columns:1fr; padding-block:3.2rem; }
@media (min-width:768px){ .footer .foot-grid{ grid-template-columns:2fr 1fr 1fr 1.3fr; } }
.footer .foot-bar{ border-top:1px solid rgba(255,255,255,.14); font-size:.78rem; color:rgba(255,255,255,.82); }

/* ============================================================
   FLOATING WHATSAPP — pill on desktop, circle on mobile
   ============================================================ */
.wa-float{
  position:fixed; z-index:70; right:1.25rem; bottom:1.25rem;
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  height:56px; width:56px; border-radius:999px; background:var(--wa); color:#fff;
  box-shadow:0 14px 30px -10px rgba(0,0,0,.4);
}
.wa-float span{ display:none; font-weight:700; white-space:nowrap; }
.wa-float:hover{ filter:brightness(1.05); }
.wa-float::before{
  content:""; position:absolute; inset:0; border-radius:999px; background:var(--wa);
  opacity:.5; z-index:-1; animation:wa 2.2s ease-out infinite;
}
@keyframes wa{ 0%{ transform:scale(1); opacity:.5; } 100%{ transform:scale(1.8); opacity:0; } }
@media (min-width:768px){
  .wa-float{ width:auto; padding:0 1.25rem; }
  .wa-float span{ display:inline; }
}
@media (prefers-reduced-motion:reduce){ .wa-float::before{ animation:none; } }

/* small utilities */
.text-center{ text-align:center; }
.mt-2{ margin-top:.5rem; } .mt-4{ margin-top:1rem; } .mt-6{ margin-top:1.5rem; } .mt-8{ margin-top:2rem; }
.center-narrow{ max-width:640px; margin-inline:auto; }

/* ============================================================
   MOTION — smooth hover, buttons, dropdowns, scroll reveal
   ============================================================ */
/* header elevation on scroll */
.header-shell{ transition:box-shadow .28s ease; }
.header-shell.scrolled{ box-shadow:0 12px 28px -18px rgba(18,74,143,.42); }

/* animated underline for top nav links */
.header-nav > li > a{ position:relative; }
.header-nav > li > a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--brand);
  transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.header-nav > li:hover > a::after,
.header-nav > li:focus-within > a::after,
.header-nav > li > a.active::after{ transform:scaleX(1); }
.header-nav > li > a.active{ color:var(--brand); }

/* chev already rotates via .has-drop:hover; smooth the mega links too (handled in header block) */

/* buttons: lift + shadow on hover */
.btn{ transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover:not(:disabled){ transform:translateY(-2px); box-shadow:0 10px 20px -12px rgba(18,74,143,.5); }
.btn:active:not(:disabled){ transform:translateY(0); box-shadow:none; }

/* cards: gentle lift for interactive cards */
.review-card, .cat-card, .product-card, .card, .mega-card{ transition:transform .22s ease, box-shadow .22s ease; }
a.card:hover, .review-card:hover, article.product-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }

/* chips */
.chip{ transition:background .15s ease, color .15s ease, border-color .15s ease; }
.chip:hover{ background:var(--powder); border-color:var(--brand); color:var(--brand-deep); }

/* generic link/icon smoothing */
a{ transition:color .15s ease; }

/* reveal on scroll (JS adds .reveal to below-fold sections, then .in) */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none; }
  .btn:hover:not(:disabled), a.card:hover, .review-card:hover, article.product-card:hover,
  .mega-card:hover, .header-icon:hover, .brand-logo:hover .mark{ transform:none !important; }
}
