/* ============================================================
   Bigford — Landing page kẹo sữa
   Layers: tokens → reset/base → layout → components → sections → utilities → responsive
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Màu chốt theo brief */
  --cream:        #FFF9F0;   /* nền chính */
  --milk-caramel: #D99545;   /* brand chính (CTA, nhấn) */
  --chocolate:    #5A3825;   /* text đậm / section tối */
  --strawberry:   #F6B6C8;   /* phụ */

  /* Bổ trợ */
  --pastel-yellow:#FCE9B8;
  --soft-beige:   #F3E7D6;
  --milk-white:   #FFFDF9;
  --light-caramel:#EBC48A;

  /* Text & đường nét */
  --ink:     #3B2A1E;
  --muted:   #8A7767;
  --line:    #EFE4D4;
  --success: #4CAF7D;

  /* Vị */
  --milk:       #EBC48A;
  --caramel:    #E6B26A;
  --choco:      #8A5A3C;
  --straw:      #F6B6C8;

  /* Typography */
  --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10:128px;

  /* Radius */
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-pill: 999px;

  /* Shadow */
  --sh-soft:  0 8px 30px rgba(90,56,37,.08);
  --sh-hover: 0 16px 40px rgba(90,56,37,.14);
  --sh-card:  0 4px 18px rgba(90,56,37,.06);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: 180ms var(--ease);
  --t: 240ms var(--ease);
}

/* ------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; color: var(--chocolate); letter-spacing: -0.01em; }

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

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

.section { padding-block: clamp(56px, 8vw, 104px); }

.section-head { max-width: 620px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--milk-caramel); margin-bottom: var(--s-3);
}
.eyebrow-light { color: var(--light-caramel); }

.section-title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.title-light { color: var(--cream); }

.section-sub { margin-top: var(--s-4); font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--muted); }

/* ------------------------------------------------------------
   4. COMPONENTS
   ------------------------------------------------------------ */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  white-space: nowrap; user-select: none;
}
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--milk-caramel); color: #fff; box-shadow: 0 8px 20px rgba(217,149,69,.32); }
.btn-primary:hover { background: #C9852F; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(217,149,69,.42); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--chocolate); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--milk-caramel); color: var(--milk-caramel); transform: translateY(-2px); }

.btn-dark { background: var(--chocolate); color: var(--cream); }
.btn-dark:hover { background: #45291a; transform: translateY(-2px); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
}
.pill-accent { background: rgba(246,182,200,.35); color: var(--chocolate); }
.pill-accent strong { color: #C43C63; }
.pill-light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }

/* Stars */
.stars { color: #F0A93C; letter-spacing: 2px; font-size: 18px; }
.stars-sm { font-size: 14px; letter-spacing: 1px; }

/* Badge */
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-head); font-weight: 600; font-size: 12px;
  padding: 6px 12px; border-radius: var(--r-pill); color: #fff;
}
.badge-bestseller { background: var(--milk-caramel); }
.badge-new { background: var(--success); }
.badge-save { position: static; display: inline-block; background: #C43C63; }

/* Check icons */
.check { color: var(--milk-caramel); font-weight: 700; }
.check-light { color: var(--light-caramel); }

/* ------------------------------------------------------------
   5. SECTIONS
   ------------------------------------------------------------ */

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,249,240,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.site-header.scrolled {
  background: rgba(255,249,240,.92);
  box-shadow: 0 4px 24px rgba(90,56,37,.07);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; margin-inline: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; padding: 0; }
.nav-list a {
  display: block; padding: 9px 14px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-list a:hover { color: var(--milk-caramel); background: rgba(217,149,69,.1); }
.nav-close, .nav-call { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--r-pill); color: var(--chocolate);
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: rgba(217,149,69,.12); color: var(--milk-caramel); }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--milk-caramel); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: var(--r-pill);
  transition: transform var(--t-fast);
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.45); } }

.btn-buy-header { padding: 11px 22px; font-size: 14px; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; padding: 11px 9px; border-radius: 12px; }
.hamburger span { display: block; height: 2.5px; border-radius: 2px; background: var(--chocolate); transition: transform var(--t), opacity var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(59,42,30,.4); backdrop-filter: blur(2px); }

/* ---- HERO ---- */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 72px); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; min-height: min(84vh, 760px);
}
.hero-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 45% 55% 52% 48% / 55% 45% 55% 45%; filter: blur(2px); opacity: .55; }
.blob-a { width: 460px; height: 460px; top: -120px; right: -80px; background: radial-gradient(circle at 40% 40%, var(--pastel-yellow), transparent 70%); }
.blob-b { width: 380px; height: 380px; bottom: -140px; left: -100px; background: radial-gradient(circle at 60% 40%, var(--strawberry), transparent 70%); opacity: .4; }

.hero-copy { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2rem, 6vw, 5rem); margin: var(--s-4) 0 var(--s-4); }
.text-gradient { background: linear-gradient(90deg, var(--milk-caramel), #C43C63); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 500px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); }

.hero-rating { display: flex; align-items: center; gap: 12px; margin-top: var(--s-5); flex-wrap: wrap; }
.rating-text { font-size: 15px; color: var(--ink); }

.hero-cta { display: flex; gap: 14px; margin-top: var(--s-6); flex-wrap: wrap; }

.hero-usp { list-style: none; padding: 0; display: flex; gap: var(--s-5); margin-top: var(--s-6); flex-wrap: wrap; }
.hero-usp li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }

/* Hero visual */
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; min-height: 420px; }
.hero-splash { position: absolute; width: 118%; max-width: none; z-index: 0; opacity: .9; animation: floaty 8s ease-in-out infinite; }
.hero-pack { position: relative; z-index: 2; width: min(74%, 300px); filter: drop-shadow(0 24px 40px rgba(90,56,37,.28)); animation: floaty 6s ease-in-out infinite; }
.hero-pack-side { position: absolute; z-index: 1; width: 40%; opacity: .95; }
.hero-pack-left  { left: -2%; bottom: 8%; transform: rotate(-12deg); animation: floaty 7s ease-in-out infinite .4s; }
.hero-pack-right { right: -2%; top: 6%; transform: rotate(11deg); animation: floaty 7.5s ease-in-out infinite .8s; }

.hero-candy { position: absolute; z-index: 3; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--light-caramel)); box-shadow: var(--sh-card); }
.hero-candy-1 { width: 42px; height: 42px; top: 8%; left: 18%; animation: floaty 5s ease-in-out infinite; }
.hero-candy-2 { width: 28px; height: 28px; bottom: 14%; right: 16%; background: radial-gradient(circle at 35% 30%, #fff, var(--strawberry)); animation: floaty 6s ease-in-out infinite .5s; }
.hero-candy-3 { width: 22px; height: 22px; top: 22%; right: 26%; background: radial-gradient(circle at 35% 30%, #fff, var(--caramel)); animation: floaty 4.5s ease-in-out infinite 1s; }

.hero-badge {
  position: absolute; z-index: 4; bottom: 4%; left: 2%;
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 12px 18px; border-radius: var(--r-md);
  box-shadow: var(--sh-soft);
}
.hero-badge strong { font-family: var(--font-head); font-size: 28px; color: var(--milk-caramel); line-height: 1; }
.hero-badge span { font-size: 11px; color: var(--muted); line-height: 1.15; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(-14px) rotate(var(--rot,0deg)); } }
.hero-pack-left  { --rot: -12deg; }
.hero-pack-right { --rot: 11deg; }

/* ---- TRUST BAR ---- */
.trust-bar { background: var(--milk-white); border-block: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); padding-block: var(--s-5); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--chocolate); text-align: center; }
.trust-ico { font-size: 26px; }

/* ---- BEST SELLER ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-card); border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--sh-hover); }
.product-media { position: relative; padding: var(--s-5); display: grid; place-items: center; aspect-ratio: 1 / 1; }
.product-media[data-flavor="original"]   { background: linear-gradient(160deg, #FFFDF9, #F6E9D2); }
.product-media[data-flavor="caramel"]     { background: linear-gradient(160deg, #FBEDD3, #F0D3A2); }
.product-media[data-flavor="chocolate"]   { background: linear-gradient(160deg, #EFE0D2, #D9BFA6); }
.product-media[data-flavor="strawberry"]  { background: linear-gradient(160deg, #FFF0F4, #F9D3DE); }
.product-media img { width: 66%; transition: transform var(--t); filter: drop-shadow(0 12px 20px rgba(90,56,37,.2)); }
.product-card:hover .product-media img { transform: scale(1.06) rotate(-2deg); }

.wishlist {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; line-height: 1;
  background: rgba(255,255,255,.85); color: var(--chocolate);
  box-shadow: var(--sh-card); transition: transform var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.wishlist:hover { transform: scale(1.12); }
.wishlist.active { color: #E5486E; background: #fff; }

.product-body { display: flex; flex-direction: column; gap: 8px; padding: var(--s-5); flex: 1; }
.product-name { font-size: 1.15rem; }
.product-desc { font-size: 14px; color: var(--muted); }
.product-meta { display: flex; align-items: center; gap: 8px; }
.rate-num { font-size: 14px; font-weight: 600; color: var(--ink); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: var(--s-3); }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--chocolate); }
.btn-add { padding: 11px 18px; font-size: 14px; }

/* ---- BRAND STORY ---- */
.story { background: linear-gradient(180deg, var(--cream), var(--soft-beige)); }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-photo {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 120% at 30% 20%, var(--pastel-yellow), var(--light-caramel) 55%, #C99B5E);
  display: grid; place-items: center; box-shadow: var(--sh-soft);
}
.story-pack { width: 46%; filter: drop-shadow(0 20px 34px rgba(90,56,37,.32)); transform: rotate(-6deg); }
.story-tag { position: absolute; bottom: 18px; left: 18px; background: #fff; padding: 8px 16px; border-radius: var(--r-pill); font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--chocolate); box-shadow: var(--sh-card); }
.story-copy .section-title { text-align: left; }
.story-text { margin: var(--s-4) 0 var(--s-5); font-size: 1.05rem; color: var(--ink); }
.story-points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--s-6); }
.story-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }

/* ---- INGREDIENTS ---- */
.ingredient-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.ingredient-card {
  text-align: center; background: #fff; border-radius: var(--r-lg); padding: var(--s-6) var(--s-5);
  box-shadow: var(--sh-card); border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t);
}
.ingredient-card:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); }
.ing-ico {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto var(--s-4);
  font-size: 36px; border-radius: 50%;
  background: var(--ing); /* fallback nếu trình duyệt không hỗ trợ color-mix */
  background: color-mix(in srgb, var(--ing) 30%, #fff);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--ing) 18%, #fff);
}
.ingredient-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ingredient-card p { font-size: 14px; color: var(--muted); }

/* ---- FLAVOR EXPERIENCE ---- */
.flavor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.flavor-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  min-height: 400px; padding: var(--s-6) var(--s-5); display: flex; flex-direction: column;
  justify-content: flex-end; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: var(--sh-card);
}
.flavor-card[data-flavor="milk"]        { background: linear-gradient(165deg, #FFFDF9, #EBC48A); }
.flavor-card[data-flavor="caramel"]     { background: linear-gradient(165deg, #F6D9A6, #CE8B3C); }
.flavor-card[data-flavor="chocolate"]   { background: linear-gradient(165deg, #8A5A3C, #4A2C17); }
.flavor-card[data-flavor="strawberry"]  { background: linear-gradient(165deg, #FCE0E8, #E88BA5); }
.flavor-card[data-flavor="chocolate"] h3 { color: var(--cream); }
.flavor-card[data-flavor="chocolate"] .flavor-link { color: var(--light-caramel); }

.flavor-glow { position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 20%, rgba(255,255,255,.5), transparent 70%); opacity: 0; transition: opacity var(--t); }
.flavor-card:hover .flavor-glow, .flavor-card:focus-visible .flavor-glow { opacity: 1; }

.flavor-pack {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%) scale(.9);
  width: 62%; filter: drop-shadow(0 18px 28px rgba(90,56,37,.28));
  transition: transform var(--t);
}
.flavor-card:hover .flavor-pack, .flavor-card:focus-visible .flavor-pack { transform: translateX(-50%) translateY(-8px) scale(1); }

.flavor-label { position: relative; z-index: 1; }
.flavor-label h3 { font-size: 1.4rem; letter-spacing: .04em; color: var(--chocolate); }
.flavor-link {
  display: inline-block; margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--chocolate);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--t), transform var(--t);
}
.flavor-card:hover .flavor-link, .flavor-card:focus-visible .flavor-link { opacity: 1; transform: translateY(0); }
.flavor-card:hover, .flavor-card:focus-visible { transform: translateY(-6px); box-shadow: var(--sh-hover); }

/* ---- COMBO ---- */
.combo { background: linear-gradient(150deg, var(--chocolate), #6B3F27); color: var(--cream); position: relative; overflow: hidden; }
.combo::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(217,149,69,.35), transparent 70%); top: -140px; right: -120px; }
.combo-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.combo-copy .section-title { text-align: left; }
.combo-lead { margin: var(--s-4) 0 var(--s-5); color: rgba(255,249,240,.82); font-size: 1.05rem; max-width: 460px; }
.combo-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.combo-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,249,240,.92); }

.combo-card {
  background: var(--cream); color: var(--ink); border-radius: var(--r-lg);
  padding: var(--s-6); text-align: center; box-shadow: var(--sh-hover);
}
.combo-packs { display: flex; justify-content: center; margin-bottom: var(--s-4); }
.combo-packs img { width: 82px; margin-inline: -18px; filter: drop-shadow(0 10px 16px rgba(90,56,37,.24)); }
.combo-packs img:nth-child(1){ transform: rotate(-9deg) translateY(6px); z-index:1;}
.combo-packs img:nth-child(2){ transform: rotate(-3deg); z-index:2;}
.combo-packs img:nth-child(3){ transform: rotate(3deg); z-index:2;}
.combo-packs img:nth-child(4){ transform: rotate(9deg) translateY(6px); z-index:1;}
.combo-name { font-size: 1.5rem; margin-top: var(--s-3); }
.combo-desc { color: var(--muted); font-size: 14px; margin-bottom: var(--s-4); }
.combo-price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: var(--s-2); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; }
.price-new { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: var(--milk-caramel); }
.combo-card .btn { margin-top: var(--s-4); }
.combo-freeship { margin-top: var(--s-4); font-size: 14px; font-weight: 500; color: var(--success); }

/* ---- REVIEWS ---- */
.reviews { background: var(--milk-white); }
.reviews-summary { display: inline-flex; align-items: center; gap: 16px; margin-top: var(--s-5); text-align: left; }
.big-rate { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; color: var(--milk-caramel); line-height: 1; }
.reviews-count { font-size: 14px; color: var(--muted); margin-top: 2px; }

.carousel { position: relative; }
.carousel-track { display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 18px; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 calc((100% - 2 * var(--s-5)) / 3); scroll-snap-align: start;
  background: #fff; border-radius: var(--r-lg); padding: var(--s-6);
  box-shadow: var(--sh-card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.review-text { font-size: 1rem; color: var(--ink); line-height: 1.65; flex: 1; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; color: #fff; flex-shrink: 0;
  background: var(--av, var(--milk-caramel));
}
.reviewer strong { display: block; font-size: 15px; color: var(--chocolate); }
.reviewer small { color: var(--muted); font-size: 13px; }

.carousel-nav { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-4); }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--sh-card); border: 1px solid var(--line); font-size: 18px; color: var(--chocolate); transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast); }
.carousel-btn:hover { background: var(--milk-caramel); color: #fff; transform: scale(1.08); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: transform var(--t-fast), background var(--t-fast); }
.carousel-dots button.active { background: var(--milk-caramel); transform: scale(1.3); }

/* ---- SOCIAL / INSTAGRAM ---- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
.insta-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden;
  display: grid; place-items: center; font-size: 34px;
  transition: transform var(--t), box-shadow var(--t);
}
.insta-item[data-tone="milk"]       { background: linear-gradient(150deg, #FFF7E7, #EBC48A); }
.insta-item[data-tone="caramel"]    { background: linear-gradient(150deg, #F6D9A6, #D99545); }
.insta-item[data-tone="strawberry"] { background: linear-gradient(150deg, #FCE0E8, #F6B6C8); }
.insta-item[data-tone="chocolate"]  { background: linear-gradient(150deg, #A9744C, #5A3825); }
.insta-item::after { content: "＋"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; background: rgba(90,56,37,.35); opacity: 0; transition: opacity var(--t); }
.insta-item:hover { transform: scale(1.03); box-shadow: var(--sh-hover); }
.insta-item:hover::after { opacity: 1; }

/* ---- NEWSLETTER ---- */
.newsletter { background: linear-gradient(150deg, var(--milk-caramel), #C43C63); color: #fff; text-align: center; padding-block: clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.12); top: -160px; left: -80px; }
.newsletter-inner { position: relative; z-index: 1; max-width: 620px; margin-inline: auto; }
.newsletter .pill-light { margin-bottom: var(--s-4); }
.newsletter-text { margin: var(--s-4) 0 var(--s-6); color: rgba(255,255,255,.9); font-size: 1.08rem; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter-input {
  flex: 1; min-width: 240px; max-width: 340px;
  padding: 16px 22px; border-radius: var(--r-pill); border: none;
  background: rgba(255,255,255,.95); color: var(--ink);
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow var(--t-fast);
}
.newsletter-input::placeholder { color: var(--muted); }
.newsletter-input:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--chocolate); }
.newsletter-msg { flex-basis: 100%; margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 20px; }
.newsletter-msg.ok { color: #FFF; }
.newsletter-msg.err { color: #5A3825; }

/* ---- FOOTER ---- */
.site-footer { background: var(--chocolate); color: rgba(255,249,240,.8); padding-top: clamp(48px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); padding-bottom: var(--s-7); }
.footer-logo { height: 34px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: var(--s-4); }
.footer-desc { font-size: 14px; line-height: 1.65; max-width: 320px; }
.footer-desc strong { color: var(--light-caramel); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); }
.footer-social a { font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill); background: rgba(255,249,240,.08); transition: background var(--t-fast), color var(--t-fast); }
.footer-social a:hover { background: var(--milk-caramel); color: #fff; }
.footer-title { font-size: 1rem; color: var(--cream); margin-bottom: var(--s-4); }
.footer-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { font-size: 14px; transition: color var(--t-fast); }
.footer-list a:hover { color: var(--light-caramel); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s-5); font-style: normal; font-size: 14px; }
.footer-contact a:hover { color: var(--light-caramel); }
.footer-bottom { border-top: 1px solid rgba(255,249,240,.12); padding-block: var(--s-5); }
.footer-bottom p { font-size: 13px; color: rgba(255,249,240,.6); }

/* ---- STICKY BOTTOM CTA (mobile) ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,249,240,.96); backdrop-filter: blur(10px);
  box-shadow: 0 -6px 24px rgba(90,56,37,.14); border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform var(--t);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-info { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-brand { font-family: var(--font-head); font-weight: 700; color: var(--chocolate); font-size: 15px; }
.sticky-price { font-size: 13px; color: var(--muted); }
.sticky-buy { flex: 1; max-width: 220px; padding: 15px; }

/* ---- TOAST ---- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 24px);
  z-index: 200; background: var(--chocolate); color: var(--cream);
  padding: 14px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px;
  box-shadow: var(--sh-hover); opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------
   6. UTILITIES
   ------------------------------------------------------------ */
.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; }

/* ------------------------------------------------------------
   7. RESPONSIVE  (breakpoints: 1024 / 768 / 480)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .nav-list { gap: 0; }
  .nav-list a { padding: 9px 10px; font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .ingredient-grid { grid-template-columns: repeat(2, 1fr); }
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .review-card { flex-basis: calc((100% - var(--s-5)) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet & mobile: hamburger nav */
@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 0; right: 0; z-index: 95;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: var(--s-5); width: min(84vw, 340px); height: 100vh; height: 100dvh; margin: 0;
    padding: calc(var(--header-h) + 12px) var(--s-6) var(--s-6);
    background: var(--milk-white); box-shadow: -12px 0 40px rgba(90,56,37,.18);
    transform: translateX(100%); transition: transform var(--t); overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 4px; width: 100%; }
  .nav-list a { padding: 12px 14px; font-size: 16px; border-radius: var(--r-sm); }
  .nav-close { display: block; position: absolute; top: 20px; right: 20px; font-size: 20px; color: var(--chocolate); width: 40px; height: 40px; border-radius: 50%; }
  .nav-close:hover { background: rgba(217,149,69,.12); }
  .nav-call { display: inline-flex; margin-top: auto; font-weight: 600; color: var(--milk-caramel); }
  .hamburger { display: flex; }
  .btn-buy-header { display: none; }
  .icon-btn { width: 40px; height: 40px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .hero-copy { order: 1; display: flex; flex-direction: column; align-items: center; }
  .hero-visual { order: 2; min-height: 360px; margin-top: var(--s-4); }
  .hero-sub { margin-inline: auto; }
  .hero-rating, .hero-usp { justify-content: center; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .story-inner { grid-template-columns: 1fr; }
  .story-copy .section-title, .combo-copy .section-title { text-align: center; }
  .story-copy { text-align: center; }
  .story-points li { justify-content: flex-start; text-align: left; }
  .story-copy .btn { align-self: center; }
  .combo-inner { grid-template-columns: 1fr; }
  .combo-copy { text-align: center; }
  .combo-copy .combo-lead { margin-inline: auto; }
  .combo-list { max-width: 320px; margin-inline: auto; }
  .review-card { flex-basis: 84%; }
  .reviews-summary { flex-direction: column; text-align: center; gap: 6px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .product-media { padding: var(--s-4); }
  .product-body { padding: var(--s-4); gap: 6px; }
  .product-name { font-size: 1rem; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .btn-add { width: 100%; }
  .ingredient-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .flavor-grid { grid-template-columns: 1fr; }
  .flavor-card { min-height: 340px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { max-width: none; width: 100%; }
  .newsletter-form .btn { width: 100%; }
  .combo-packs img { width: 66px; }
}
