/* =========================================================
   DanKai Brownies — style.css
   Paleta tomada del menú y del "Pack de 4" de la marca.
   ========================================================= */
:root {
  --cocoa: #4a2a1b;        /* tinta del menú, bandas oscuras */
  --cocoa-soft: #6b4130;
  --milk: #9a664c;         /* fondo chocolate del Pack de 4 */
  --milk-deep: #7c4f3a;
  --sky: #e1fafd;          /* fondo celeste de las historias */
  --sky-mid: #bdeff8;
  --pool: #45cff0;         /* tarjeta azul */
  --maroon: #7b423d;       /* tarjeta vino */
  --paper: #fffdf9;        /* etiqueta blanca de la tarjeta */
  --wa: #1fa855;

  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --body: "Poppins", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.2, .9, .25, 1.15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cocoa);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pool); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Títulos "pop" (como en el menú: relleno claro, borde café y sombra) ---------- */
.pop-title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--sky);
  -webkit-text-stroke: .09em var(--cocoa);
  paint-order: stroke fill;
  text-shadow: .06em .07em 0 var(--cocoa);
  margin: 0;
}
.pop-title--sky { color: var(--sky); }

/* Rayitas a los lados del título (como ">BROWNIES<" en el menú) */
.burst { display: inline-flex; align-items: center; gap: .35em; }
.burst::before, .burst::after {
  content: "";
  width: .9em; height: .9em;
  flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%234a2a1b' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M6 8l14 7M4 20h18M6 32l14-7'/%3E%3C/svg%3E");
}
.burst::after { transform: scaleX(-1); }

/* Banda café con texto espaciado (como "brownies" del Pack de 4) */
.hero-band {
  display: inline-block;
  margin-top: .18em;
  padding: .06em .35em .12em;
  background: var(--cocoa);
  font-family: var(--body);
  font-weight: 400;
  letter-spacing: .14em;
  font-size: .62em;
  color: var(--sky);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2.5px solid var(--cocoa);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: 3px 4px 0 var(--cocoa);
  transition: transform .18s var(--ease-out), box-shadow .18s ease, background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--cocoa); }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--cocoa); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sky { background: var(--sky); color: var(--cocoa); }
.btn-ghost { background: transparent; color: var(--sky); border-color: var(--sky); box-shadow: 3px 4px 0 var(--cocoa); }
.btn-choco { background: var(--cocoa); color: var(--sky); }
.btn-small { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-big { font-size: 1.15rem; padding: 1rem 2rem; }
.btn-wa { width: 100%; background: var(--wa); color: #fff; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: var(--sky); box-shadow: 0 2px 0 var(--cocoa); }
.nav { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { position: relative; display: block; width: 128px; flex: none; }
.brand-logo { width: 100%; height: auto; transition: opacity .3s; }
.brand-logo--brown { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .brand-logo--cream { opacity: 0; }
.is-scrolled .brand-logo--brown { opacity: 1; }

.navlinks { display: flex; gap: 1.6rem; margin-left: auto; }
.navlinks a { text-decoration: none; font-weight: 500; color: var(--sky); position: relative; }
.is-scrolled .navlinks a { color: var(--cocoa); }
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.navlinks a:hover::after { transform: scaleX(1); }

.cart-button {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--sky); border: 2.5px solid var(--cocoa); border-radius: 999px;
  padding: .45rem .5rem .45rem 1rem; font-weight: 600;
  box-shadow: 2px 3px 0 var(--cocoa);
}
.cart-count {
  min-width: 1.8rem; height: 1.8rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--cocoa); color: var(--sky); font-size: .85rem;
}
.cart-count.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.45) rotate(-8deg); } }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  background: var(--milk);
  display: grid; align-items: center;
  overflow: hidden;
}
.hero::before { /* textura sutil de papel */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #000 1px, transparent 0);
  background-size: 5px 5px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; }
.hero-title { font-size: clamp(2.7rem, 6.2vw, 5.3rem); }
.hero-line { display: block; }
.hero-title .hero-band { font-size: .5em; }
.hero-lede { color: var(--sky); max-width: 44ch; font-size: 1.08rem; margin: 1.6rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-table { position: relative; height: min(600px, 70vh); min-height: 460px; touch-action: none; }
.table-hint {
  position: absolute; right: 0; bottom: -.5rem; margin: 0;
  font-family: var(--display); font-weight: 700; font-style: italic; color: var(--sky); opacity: .85;
  transform: rotate(-6deg);
}
.table-hint::before { content: "↖ "; }

/* ---------- Tarjeta tipo muestra de color (swatch) ---------- */
.swatch {
  --sw: var(--pool);
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 18px 30px -14px rgba(60, 30, 15, .55), 0 2px 0 rgba(60, 30, 15, .15);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.swatch-photo { background: var(--sw); aspect-ratio: 1 / 1; overflow: hidden; }
.swatch-photo img { width: 100%; height: 100%; object-fit: cover; }
.swatch-label { padding: .9rem 1rem 1rem; font-family: "Georgia", "Times New Roman", serif; line-height: 1.15; }
.swatch-brand { margin: 0; font-weight: 900; font-size: 1.25rem; letter-spacing: -.01em; font-family: var(--display); font-variation-settings: "SOFT" 0, "opsz" 72; }
.swatch-name { margin: .1rem 0 0; font-size: 1.05rem; font-weight: 400; }
.swatch-flavor { margin: .1rem 0 0; font-size: .85rem; }

/* Tarjetas del hero */
.hero-card {
  position: absolute; width: clamp(150px, 15vw, 205px);
  cursor: grab; user-select: none; -webkit-user-select: none;
  transition: box-shadow .2s;
  will-change: transform;
}
.hero-card img { pointer-events: none; }
.hero-card.is-dragging { cursor: grabbing; z-index: 20; box-shadow: 0 34px 40px -16px rgba(40, 18, 8, .6); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--cocoa); color: var(--sky);
  overflow: hidden; padding: .9rem 0;
  transform: rotate(-1.5deg); margin: -1.2rem -1rem 0; position: relative; z-index: 3;
  border-block: 3px solid var(--sky);
}
.marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2.5vw, 1.8rem); white-space: nowrap; font-variation-settings: "SOFT" 100; }
.crumb { width: 18px; height: 16px; background: var(--pool); border-radius: 40% 55% 45% 60%; transform: rotate(18deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones celestes ---------- */
.sky-section { position: relative; background: var(--sky); padding: 7rem 0 6rem; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; background: var(--sky-mid); opacity: .55; filter: blur(2px); pointer-events: none; }
.blob-a { width: 520px; height: 380px; left: -180px; top: 120px; border-radius: 60% 40% 55% 45%; }
.blob-b { width: 460px; height: 460px; right: -160px; bottom: -60px; border-radius: 45% 55% 40% 60%; }
.blob-c { width: 600px; height: 420px; right: -200px; top: 40px; border-radius: 50% 60% 40% 50%; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; position: relative; }
.section-head .pop-title { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.section-head p { margin: 1.2rem auto 0; font-size: 1.05rem; max-width: 50ch; }

/* ---------- Grilla de brownies ---------- */
.swatch-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.menu-card { transition: transform .35s var(--ease-out); }
.menu-card:nth-child(odd) { transform: rotate(-2.5deg); }
.menu-card:nth-child(even) { transform: rotate(2deg) translateY(1.4rem); }
.menu-card:hover { transform: rotate(0) translateY(-.6rem) scale(1.03); z-index: 2; }
.menu-card .swatch-photo img { transition: transform .5s var(--ease-out); }
.menu-card:hover .swatch-photo img { transform: rotate(-4deg) scale(1.05); }

.card-buy { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .9rem; font-family: var(--body); }
.price {
  font-family: var(--display); font-weight: 900; font-size: 1.35rem; line-height: 1;
  color: var(--paper); -webkit-text-stroke: .12em var(--cocoa); paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--cocoa);
  font-variation-settings: "SOFT" 100;
}

.add-btn {
  border: 2px solid var(--cocoa); background: var(--cocoa); color: var(--sky);
  border-radius: 999px; padding: .45rem .95rem; font-weight: 600; font-size: .88rem;
  transition: transform .15s;
}
.add-btn:active { transform: scale(.94); }

.stepper { display: inline-flex; align-items: center; border: 2px solid var(--cocoa); border-radius: 999px; overflow: hidden; background: var(--sky); animation: pop-in .3s var(--ease-out); }
.stepper button { width: 2rem; height: 2rem; border: 0; background: transparent; font-weight: 700; font-size: 1.1rem; line-height: 1; }
.stepper button:hover { background: var(--sky-mid); }
.stepper output { min-width: 1.6rem; text-align: center; font-weight: 700; }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }

/* ---------- Pack builder ---------- */
.pack-section { background: var(--milk); padding: 7rem 0; position: relative; overflow: hidden; color: var(--sky); }
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.pack-copy .pop-title { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.pack-title-top { display: block; }
.pack-copy > p { max-width: 46ch; margin: 1.5rem 0 2rem; }

.pack-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.flavor-btn {
  display: flex; align-items: center; gap: .75rem; text-align: left;
  background: var(--paper); color: var(--cocoa);
  border: 2.5px solid var(--cocoa); border-radius: var(--radius-sm);
  padding: .5rem .8rem .5rem .5rem; box-shadow: 3px 4px 0 var(--cocoa);
  transition: transform .18s var(--ease-out), box-shadow .18s;
}
.flavor-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--cocoa); }
.flavor-btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--cocoa); }
.flavor-btn img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.flavor-btn strong { display: block; font-size: .92rem; line-height: 1.2; }
.flavor-btn small { font-size: .8rem; opacity: .8; }

.pack-box-wrap { display: grid; gap: 1.5rem; justify-items: center; }
.pack-box {
  position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1;
  background: var(--cocoa); border-radius: 14px; padding: 1.1rem;
  box-shadow: 0 30px 40px -20px rgba(30, 12, 5, .7), inset 0 0 0 6px var(--cocoa-soft);
}
.pack-lid {
  position: absolute; inset: -4px; z-index: 3; border-radius: 16px;
  background: var(--pool); display: grid; place-items: center;
  border: 3px solid var(--cocoa);
  transform-origin: top center;
  transform: perspective(900px) rotateX(0deg);
  transition: transform .8s var(--ease-out), opacity .4s .5s;
  pointer-events: none; opacity: 0;
}
.pack-lid img { width: 55%; filter: brightness(0) saturate(100%) invert(15%) sepia(30%) saturate(1200%) hue-rotate(345deg); }
.pack-box.is-closing .pack-lid { opacity: 1; transition: none; animation: lid-close 1.1s var(--ease-out) forwards; }
@keyframes lid-close {
  0% { transform: perspective(900px) rotateX(-95deg); opacity: 1; }
  45% { transform: perspective(900px) rotateX(0deg); }
  80% { transform: perspective(900px) rotateX(0deg) scale(1); opacity: 1; }
  100% { transform: perspective(900px) rotateX(0deg) scale(.9); opacity: 0; }
}
.pack-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; height: 100%; }
.pack-slot {
  position: relative; border-radius: 8px; border: 2.5px dashed rgba(225, 250, 253, .45);
  display: grid; place-items: center; overflow: hidden; background: rgba(0, 0, 0, .12);
  font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: rgba(225, 250, 253, .35);
}
.pack-slot.is-filled { border: 0; }
.pack-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drop-in .5s var(--ease-out); }
.pack-slot .slot-remove {
  position: absolute; top: .4rem; right: .4rem; z-index: 2;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--cocoa);
  background: var(--sky); color: var(--cocoa); font-size: .85rem; font-family: var(--body); font-weight: 700;
  display: grid; place-items: center;
}
@keyframes drop-in { from { transform: translateY(-60%) rotate(-12deg) scale(1.2); opacity: 0; } }

.pack-summary { text-align: center; }
.pack-status { margin: 0; }
.pack-price { font-family: var(--display); font-weight: 900; font-size: 2.4rem; margin: .2rem 0 1rem; line-height: 1;
  color: var(--sky); -webkit-text-stroke: .08em var(--cocoa); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--cocoa); font-variation-settings: "SOFT" 100; }
.pack-buttons { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.pack-buttons .btn-ghost { box-shadow: none; }

/* ---------- Cuchareables ---------- */
.cuch-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 980px; margin-inline: auto; }
.cuch-card {
  position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.4rem; align-items: center;
  background: var(--paper); border: 2.5px solid var(--cocoa); border-radius: var(--radius-lg);
  padding: 1.2rem; box-shadow: 6px 8px 0 var(--cocoa);
}
.cuch-card:nth-child(2) { transform: translateY(2.5rem); }
.cuch-photo { position: relative; border-radius: 14px; overflow: hidden; background: var(--sky); aspect-ratio: 4 / 5; }
.cuch-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); transform-origin: 50% 20%; }
.cuch-card:hover .cuch-photo img { transform: scale(1.08) rotate(-2deg); }
.cuch-tag {
  display: inline-block; background: var(--cocoa); color: var(--sky);
  border-radius: 8px; padding: .25rem .7rem; font-weight: 600; font-size: .85rem; letter-spacing: .04em;
}
.cuch-card h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; margin: .7rem 0 .4rem; font-variation-settings: "SOFT" 100; }
.cuch-card p { margin: 0; font-size: .95rem; }
.cuch-card .cuch-desc { margin-top: .9rem; font-size: 1rem; }
.cuch-tag { font-size: .9rem; }
.cuch-card .card-buy { margin-top: 1.2rem; }

/* ---------- Pasos ---------- */
.steps-section { background: var(--paper); padding: 8rem 0; }
.steps-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.steps-sticky { position: sticky; top: calc(var(--header-h) + 3rem); }
.steps-sticky .pop-title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--pool); }
.badge-spin { position: relative; width: 190px; aspect-ratio: 1; margin-top: 2.5rem; }
.badge-spin svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.badge-spin text { font-family: var(--body); font-weight: 600; font-size: 15.5px; letter-spacing: .08em; fill: var(--cocoa); }
.badge-spin img { position: absolute; inset: 27%; width: 46%; height: 46%; object-fit: cover; border-radius: 50%; border: 3px solid var(--cocoa); }
@keyframes spin { to { transform: rotate(360deg); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.6rem; border-radius: var(--radius-lg); border: 2.5px solid var(--cocoa);
  background: var(--sky); opacity: .45; transform: scale(.97);
  transition: opacity .4s, transform .4s var(--ease-out), background-color .4s, box-shadow .4s;
}
.step.is-active { opacity: 1; transform: scale(1); background: var(--pool); box-shadow: 6px 8px 0 var(--cocoa); }
.step-num {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--cocoa); color: var(--sky); font-family: var(--display); font-weight: 900; font-size: 1.5rem;
}
.step h3 { margin: .2rem 0 .3rem; font-family: var(--display); font-size: 1.45rem; font-weight: 800; font-variation-settings: "SOFT" 100; }
.step p { margin: 0; }

/* ---------- CTA + footer ---------- */
.cta-section { background: var(--milk); padding: 6rem 0; text-align: center; }
.cta-inner { display: grid; gap: 2rem; justify-items: center; }
.cta-inner .pop-title { font-size: clamp(2.6rem, 7vw, 5.5rem); }

.site-footer { background: var(--cocoa); color: var(--sky); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-logo { width: 170px; }
.footer-title { font-weight: 700; margin: 0 0 .6rem; }
.footer-link { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; opacity: .9; }
.footer-link:hover { text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(225, 250, 253, .2); font-size: .85rem; opacity: .7; }

/* ---------- Carrito ---------- */
.cart-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 45;
  display: inline-flex; align-items: center; gap: .8rem;
  background: var(--cocoa); color: var(--sky); border: 2.5px solid var(--sky);
  border-radius: 999px; padding: .9rem 1.3rem; font-weight: 600;
  box-shadow: 0 12px 24px -8px rgba(40, 18, 8, .6);
  animation: pop-in .35s var(--ease-out);
}
.cart-fab strong { background: var(--sky); color: var(--cocoa); border-radius: 999px; padding: .15rem .6rem; }

.drawer-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(40, 20, 10, .45); opacity: 0; transition: opacity .3s; }
.drawer-overlay.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(430px, 100%); background: var(--sky);
  border-left: 3px solid var(--cocoa);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .45s var(--ease-out);
  visibility: hidden;
}
.cart-drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 2px solid var(--cocoa); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.8rem; font-variation-settings: "SOFT" 100; }
.drawer-close { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--cocoa); background: var(--paper); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.drawer-foot { padding: 1rem 1.4rem 1.4rem; border-top: 2px solid var(--cocoa); background: var(--paper); }

.cart-empty { text-align: center; padding: 2rem 0; }
.cart-empty p { margin: 0 0 1rem; }
.cart-items { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .8rem; }
.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center;
  background: var(--paper); border: 2px solid var(--cocoa); border-radius: 12px; padding: .6rem;
  animation: pop-in .3s var(--ease-out);
}
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-item-name { font-weight: 600; line-height: 1.25; font-size: .95rem; }
.cart-item-detail { font-size: .8rem; opacity: .8; line-height: 1.3; }
.cart-item-price { font-weight: 700; font-size: .9rem; margin-top: .15rem; }
.cart-item .stepper { animation: none; }

.order-form { display: grid; gap: .9rem; }
.order-form label > span, .order-form legend { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.order-form fieldset { border: 0; padding: 0; margin: 0; }
.order-form input[type="text"], .order-form textarea {
  width: 100%; font: inherit; padding: .7rem .9rem; border-radius: 10px;
  border: 2px solid var(--cocoa); background: var(--paper); color: var(--cocoa); resize: vertical;
}
.order-form input.is-invalid { border-color: #c0392b; background: #fff3f1; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--cocoa); border-radius: 999px; overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: .55rem; font-weight: 600; transition: background-color .2s, color .2s; margin: 0 !important; }
.seg input:checked + span { background: var(--cocoa); color: var(--sky); }
.seg input:focus-visible + span { outline: 3px solid var(--pool); outline-offset: -3px; }
[data-address-field][hidden] { display: none; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; font-weight: 600; }
.total-row strong { font-family: var(--display); font-size: 1.8rem; font-weight: 900; }
.form-error { color: #b0281b; font-size: .88rem; margin: 0 0 .6rem; }
.drawer-note { font-size: .78rem; text-align: center; margin: .7rem 0 0; opacity: .75; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80;
  transform: translate(-50%, 150%); background: var(--cocoa); color: var(--sky);
  padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: transform .4s var(--ease-out); pointer-events: none; white-space: nowrap;
}
.toast.is-visible { transform: translate(-50%, 0); }

.fly-thumb { position: fixed; z-index: 90; border-radius: 10px; pointer-events: none; object-fit: cover; box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .hero-grid, .pack-grid, .steps-grid { grid-template-columns: 1fr; }
  .hero-table { height: 480px; min-height: 0; }
  .steps-sticky { position: static; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .badge-spin { width: 130px; margin: 0; flex: none; }
  .cuch-grid { grid-template-columns: 1fr; max-width: 560px; }
  .cuch-card:nth-child(2) { transform: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand { width: 104px; }
  .cart-button > span:not(.cart-count) { display: none; }
  .cart-button { padding: .35rem; margin-left: auto; }
  .menu-toggle {
    display: grid; place-content: center; gap: 5px; width: 2.6rem; height: 2.6rem;
    border-radius: 50%; border: 2.5px solid var(--cocoa); background: var(--sky);
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 16px; height: 2.5px; background: var(--cocoa); border-radius: 2px; transition: transform .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .navlinks {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--sky); border-bottom: 3px solid var(--cocoa);
    transform: translateY(-120%); transition: transform .35s var(--ease-out); z-index: -1;
  }
  .navlinks.is-open { transform: none; }
  .navlinks a { color: var(--cocoa); padding: 1rem 1.5rem; font-family: var(--display); font-size: 1.5rem; font-weight: 800; border-top: 1px solid var(--sky-mid); }
  .hero { padding-top: calc(var(--header-h) + 1.5rem); }
  .hero-table { height: 420px; }
  .hero-card { width: 150px; }
  .swatch-grid { gap: 2rem 1rem; }
  .swatch-label { padding: .7rem .7rem .8rem; }
  .swatch-brand { font-size: 1.05rem; }
  .swatch-name { font-size: .92rem; }
  .card-buy { flex-direction: column; align-items: flex-start; }
  .pack-picker { grid-template-columns: 1fr; }
  .cuch-card { grid-template-columns: 1fr; }
  .cuch-photo { aspect-ratio: 5 / 4; }
  .footer-grid { grid-template-columns: 1fr; }
  .sky-section, .pack-section, .steps-section { padding: 5rem 0; }
}

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