/* ==========================================================
   Chen's Cookies — sistema visual
   Paleta tomada de las publicaciones de @chens.cookiess:
   rosa empolvado, verde oliva, crema y marrón chocolate.
   El drop de Halloween usa su propio acento (naranja/morado del cartel).
   ========================================================== */
:root {
  --pink: #f6cbd3;
  --pink-soft: #fbe6ea;
  --pink-deep: #e89aaa;
  --olive: #7d8c4f;
  --olive-dark: #5f6c37;
  --cream: #fff8ec;
  --beige: #f2e9dc;
  --choco: #4a2a1e;
  --choco-2: #6b3d2c;
  --muted: #7c5d50;
  --white: #fffdf9;
  --ok: #3f7a3a;
  --warn: #a5541d;
  --err: #b3261e;

  --drop-a: #c65a2e;   /* naranja del cartel */
  --drop-b: #75577f;   /* morado del cartel */
  --drop-bg: #ecc39a;  /* melocotón del cartel */

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 4px 5px 0 var(--choco);
  --shadow-sm: 3px 3px 0 var(--choco);
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-title: "Bree Serif", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--choco);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--choco); color: var(--cream); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--olive-dark); margin-bottom: .6em; }
.section-title { font-family: var(--font-title); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; }
.lead { font-size: 1.12rem; color: var(--choco-2); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--white); --fg: var(--choco);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--choco);
  background: var(--bg); color: var(--fg); font-weight: 800; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, background .15s;
  line-height: 1.1; white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--choco); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--choco); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn-primary { --bg: var(--olive); --fg: var(--white); }
.btn-primary:hover { --bg: var(--olive-dark); }
.btn-dark { --bg: var(--choco); --fg: var(--cream); }
.btn-ghost { --bg: transparent; }
.btn-pink { --bg: var(--pink); }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--choco); background: var(--white); cursor: pointer; font-size: 1rem; font-weight: 900; display: grid; place-items: center; }
.icon-btn:hover { background: var(--pink-soft); }

/* ---------- Aviso superior ---------- */
.announce { background: var(--choco); color: var(--cream); text-align: center; font-weight: 700; font-size: .9rem; padding: .55em 16px; }
.announce strong { color: var(--pink); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--pink); border-bottom: 2px solid var(--choco); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--choco); background: var(--white); }
.brand-word { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .04em; }
.main-nav { display: flex; gap: 6px; margin-left: 8px; }
.main-nav a { text-decoration: none; font-weight: 800; padding: .5em .9em; border-radius: 999px; }
.main-nav a:hover { background: var(--pink-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--choco); background: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.cart-btn:hover { background: var(--cream); }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--olive); color: var(--white); border: 2px solid var(--choco); font-size: .78rem; font-weight: 900; display: grid; place-items: center; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--choco); background: var(--white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span:not(.sr-only) { width: 20px; height: 2.5px; background: var(--choco); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--pink); border-bottom: 2px solid var(--choco); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; padding: 56px 0 64px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 6.2vw, 5rem); letter-spacing: .01em; text-transform: uppercase; line-height: .98; }
.hero h1 .hl { color: var(--olive-dark); -webkit-text-stroke: 0; }
.hero .lead { max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { background: var(--white); border: 2px solid var(--choco); border-radius: 999px; padding: .35em .9em; font-weight: 800; font-size: .88rem; }
.hero-media { position: relative; }
.hero-photo { border: 2px solid var(--choco); border-radius: 32px; overflow: hidden; box-shadow: 8px 9px 0 var(--choco); transform: rotate(1.5deg); background: var(--pink-soft); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1400 / 860; object-fit: cover; object-position: 50% 30%; }
.hero-sticker {
  position: absolute; left: -22px; bottom: -18px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--drop-a); color: var(--white); border: 2px solid var(--choco); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; text-align: center; font-weight: 900; line-height: 1.05; font-size: .9rem;
  transform: rotate(-10deg); animation: wobble 6s ease-in-out infinite;
}
.hero-sticker b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; }
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.03); } }

/* ---------- Comprobador de zona ---------- */
.zone-check { padding: 36px 0 0; }
.zone-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center; background: var(--white); border: 2px solid var(--choco); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; }
.zone-text h2 { font-family: var(--font-title); font-weight: 400; font-size: 1.6rem; margin-bottom: .15em; }
.zone-text p { margin: 0; color: var(--muted); }
.zone-field { display: flex; gap: 10px; }
.zone-field select { width: 280px; }
select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%234a2a1e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 44px; cursor: pointer; }
.date-field { border: 0; padding: 0; min-width: 0; }
.co-step .date-field .field-legend { font-family: var(--font-body); font-weight: 800; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.date-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.date-chip { position: relative; cursor: pointer; }
.date-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.date-chip span { display: grid; justify-items: center; min-width: 76px; padding: .5em .7em; border: 2px solid var(--choco); border-radius: var(--radius-sm); background: var(--white); font-weight: 800; line-height: 1.15; transition: background .15s, transform .15s, box-shadow .15s; }
.date-chip span small { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date-chip span b { font-size: 1.35rem; }
.date-chip:hover span { background: var(--pink-soft); }
.date-chip input:checked + span { background: var(--olive); color: var(--white); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
.date-chip input:checked + span small { color: var(--pink-soft); }
.date-chip input:focus-visible + span { outline: 3px solid var(--olive); outline-offset: 3px; }
.date-field[aria-invalid="true"] .date-chip span { border-color: var(--err); }
.zone-result { grid-column: 1 / -1; margin: 0; font-weight: 800; min-height: 1.2em; }
.status-ok { color: var(--ok); }
.status-warn { color: var(--warn); }
.status-err { color: var(--err); }

/* ---------- Formularios ---------- */
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; padding: .78em 1em; border: 2px solid var(--choco); border-radius: var(--radius-sm);
  background: var(--white); outline: none; transition: box-shadow .15s, border-color .15s;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(125, 140, 79, .3); border-color: var(--olive-dark); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
textarea { resize: vertical; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; font-size: .95rem; }
.field .err-msg { color: var(--err); font-weight: 700; font-size: .85rem; margin: 6px 0 0; }
.req { color: var(--err); }
.opt { color: var(--muted); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-hint { color: var(--muted); font-size: .9rem; }
.form-error { background: #fde8e6; border: 2px solid var(--err); color: var(--err); border-radius: var(--radius-sm); padding: .8em 1em; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; margin: 18px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--olive); }

/* ---------- Drop / catálogo ---------- */
.drop { padding: 64px 0 72px; }
.drop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
/* título del drop: estilo de marca por defecto; los drops temáticos (data-drop-theme) cambian tipografía y color */
.drop-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 8vw, 5.4rem); text-transform: uppercase; letter-spacing: .02em; line-height: .95; margin: 0; }
.drop-title span:first-child { color: var(--choco); }
.drop-title span:last-child { color: var(--olive-dark); }
[data-drop-theme="halloween"] .drop-title { font-family: "Creepster", var(--font-display); text-transform: none; letter-spacing: .03em; }
[data-drop-theme="halloween"] .drop-title span:first-child { color: var(--drop-a); -webkit-text-stroke: 2px var(--choco); paint-order: stroke fill; }
[data-drop-theme="halloween"] .drop-title span:last-child { color: var(--drop-b); -webkit-text-stroke: 2px var(--choco); paint-order: stroke fill; }
body:not([data-drop-theme="halloween"]) .product-tag, body:not([data-drop-theme="halloween"]) .hero-sticker { background: var(--olive); }
.drop-sub { margin: .5em 0 0; font-weight: 700; color: var(--choco-2); }
.drop-flyer { flex: none; display: grid; justify-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-weight: 800; font-size: .85rem; }
.drop-flyer img { width: 92px; height: 115px; object-fit: cover; border-radius: 12px; border: 2px solid var(--choco); box-shadow: var(--shadow-sm); transform: rotate(4deg); transition: transform .2s; }
.drop-flyer:hover img { transform: rotate(0) scale(1.05); }
.demo-note { background: var(--beige); border: 2px dashed var(--choco-2); border-radius: var(--radius-sm); padding: .7em 1em; font-weight: 700; font-size: .92rem; color: var(--choco-2); }

.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product {
  position: relative; background: var(--white); border: 2px solid var(--choco); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 22px 20px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: 6px 9px 0 var(--choco); }
.product:nth-child(3n+1) .product-media { background: var(--pink-soft); }
.product:nth-child(3n+2) .product-media { background: #e8ecd8; }
.product:nth-child(3n) .product-media { background: var(--beige); }
.product-media { border-radius: 16px; padding: 18px; margin-bottom: 16px; border: 0; cursor: pointer; display: block; width: 100%; }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 10px 12px rgba(74, 42, 30, .28)); transition: transform .4s cubic-bezier(.2, .8, .2, 1.2); }
.product:hover .product-media img { transform: rotate(-8deg) scale(1.04); }
.product-tag { position: absolute; top: 14px; left: 14px; background: var(--drop-a); color: var(--white); border: 2px solid var(--choco); border-radius: 999px; font-weight: 900; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .3em .75em; }
.product h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.45rem; margin: 0 0 .2em; }
.product-desc { color: var(--muted); font-size: .95rem; margin: 0 0 .8em; flex: 1; }
.product-desc.empty { flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-weight: 900; font-size: 1.2rem; }
.price small { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product.is-out { opacity: .65; }
.product.is-out .product-media img { filter: grayscale(.8); }
.soldout { font-weight: 900; color: var(--err); text-transform: uppercase; font-size: .85rem; }

.qty { display: inline-flex; align-items: center; border: 2px solid var(--choco); border-radius: 999px; background: var(--white); overflow: hidden; box-shadow: var(--shadow-sm); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; font-weight: 900; display: grid; place-items: center; }
.qty button:hover { background: var(--pink-soft); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 30px; text-align: center; font-weight: 900; }
.qty.sm button { width: 32px; height: 32px; font-size: 1.05rem; }
.qty.sm { box-shadow: none; }

/* ---------- Cómo funciona ---------- */
.how { background: var(--olive); color: var(--white); border-block: 2px solid var(--choco); padding: 64px 0; }
.how .section-title { color: var(--white); text-align: center; margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--cream); color: var(--choco); border: 2px solid var(--choco); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--pink); border: 2px solid var(--choco); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 14px; }
.step h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.35rem; }
.step p { margin: 0; color: var(--choco-2); }

/* ---------- Fidelidad ---------- */
.loyalty { padding: 72px 0; background: var(--pink-soft); }
.loyalty-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 56px; align-items: center; }
.loyalty-grid img { border: 2px solid var(--choco); border-radius: var(--radius); box-shadow: 8px 9px 0 var(--choco); transform: rotate(-2deg); max-height: 520px; width: auto; justify-self: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--choco); color: var(--cream); padding: 40px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { border-radius: 50%; border: 2px solid var(--cream); }
.footer-brand p { margin: 0; opacity: .8; font-size: .92rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--pink); font-weight: 700; }

/* ---------- Carrito (drawer) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(74, 42, 30, .45); z-index: 60; animation: fade .2s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 61; background: var(--cream);
  border-left: 2px solid var(--choco); display: flex; flex-direction: column; animation: slide-in .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 2px solid var(--choco); background: var(--pink); }
.drawer-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; letter-spacing: .03em; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { border-top: 2px solid var(--choco); padding: 16px 20px 20px; background: var(--white); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1.5px dashed rgba(74, 42, 30, .25); }
.cart-line img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.cart-line h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.1rem; margin: 0 0 4px; }
.cart-line .unit { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.cart-line .line-total { font-weight: 900; text-align: right; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-weight: 700; font-size: .85rem; color: var(--muted); }
.link-btn:hover { color: var(--err); }
.cart-line .line-actions { display: flex; align-items: center; gap: 12px; }
.empty-cart { text-align: center; padding: 40px 10px; }
.empty-cart img { width: 140px; margin: 0 auto 18px; border-radius: 50%; opacity: .9; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(6deg); } }
.empty-cart h3 { font-family: var(--font-title); font-weight: 400; font-size: 1.5rem; }
.empty-cart p { color: var(--muted); }

.totals { margin: 0 0 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 0; }
.totals dt { color: var(--choco-2); }
.totals dd { margin: 0; padding-left: 12px; text-align: right; font-weight: 800; }
.totals .grand { font-size: 1.25rem; font-weight: 900; color: var(--choco); padding-top: 8px; border-top: 2px solid var(--choco); margin-top: 4px; }
.totals .muted { color: var(--muted); font-weight: 700; font-size: .9rem; }
.min-progress { margin: 0 0 12px; font-size: .88rem; font-weight: 700; color: var(--warn); }
.bar { height: 8px; border-radius: 999px; background: var(--beige); border: 1.5px solid var(--choco); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--olive); transition: width .3s; }
.loyalty-hint { font-size: .85rem; font-weight: 700; color: var(--olive-dark); margin: 0 0 12px; }

/* barra móvil */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: none;
  justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px;
  background: var(--olive); color: var(--white); border: 2px solid var(--choco); box-shadow: var(--shadow); font-weight: 800; cursor: pointer;
}

/* ---------- Modal ---------- */
.modal { border: 2px solid var(--choco); border-radius: 26px; padding: 0; width: min(820px, calc(100% - 24px)); max-height: calc(100% - 24px); background: var(--cream); color: var(--choco); box-shadow: 8px 9px 0 var(--choco); }
.modal::backdrop { background: rgba(74, 42, 30, .5); }
.modal[open] { animation: pop .25s cubic-bezier(.2, .8, .2, 1.2); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; }
.pdp-media { background: var(--pink); padding: 36px; display: grid; place-items: center; border-right: 2px solid var(--choco); }
.pdp-media img { width: 100%; max-width: 330px; border-radius: 50%; filter: drop-shadow(0 14px 16px rgba(74, 42, 30, .3)); }
.pdp-info { padding: 36px 32px 30px; display: flex; flex-direction: column; gap: 6px; }
.pdp-info h2 { font-family: var(--font-title); font-weight: 400; font-size: 2rem; margin-top: 4px; }
.pdp-note { background: var(--beige); border-radius: var(--radius-sm); padding: .7em .9em; font-size: .88rem; color: var(--choco-2); font-weight: 600; }
.pdp-buy { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; flex-wrap: wrap; }
.flyer-full img { width: 100%; height: auto; border-radius: 24px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; visibility: hidden; z-index: 80;
  background: var(--choco); color: var(--cream); padding: .8em 1.3em; border-radius: 999px; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1.2), opacity .2s, visibility .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
body.has-cart .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 641px) { body.has-cart .toast { bottom: 28px; } }

/* ---------- Checkout ---------- */
.checkout { padding: 32px 0 80px; }
.back-link { font-weight: 800; text-decoration: none; display: inline-block; margin-bottom: 14px; }
.back-link:hover { text-decoration: underline; }
.checkout-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; }
.stepper { list-style: none; padding: 0; margin: 10px 0 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: .45em 1em .45em .5em; border: 2px solid var(--choco); border-radius: 999px; font-weight: 800; background: var(--white); opacity: .55; }
.stepper li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--beige); border: 2px solid var(--choco); font-size: .85rem; }
.stepper li.is-active { opacity: 1; background: var(--pink); }
.stepper li.is-done { opacity: 1; }
.stepper li.is-done span { background: var(--olive); color: var(--white); }
.checkout-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.card { background: var(--white); border: 2px solid var(--choco); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.co-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.co-step legend { font-family: var(--font-title); font-size: 1.6rem; margin-bottom: 6px; padding: 0; }
.co-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.co-actions .btn-primary { margin-left: auto; }
.zone-inline { margin: -4px 0 16px; font-weight: 800; min-height: 1.2em; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 14px; }
.summary-lines li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1.5px dashed rgba(74, 42, 30, .2); }
.summary-lines img { width: 48px; height: 48px; border-radius: 50%; }
.summary-lines .q { color: var(--muted); font-size: .85rem; font-weight: 700; }
.pay-methods { display: grid; gap: 12px; margin: 12px 0; }
.pay-option { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px 18px; border: 2px solid var(--choco); border-radius: var(--radius-sm); cursor: pointer; background: var(--cream); }
.pay-option input { width: 22px; height: 22px; accent-color: var(--olive); grid-row: span 2; margin-top: 2px; }
.pay-option strong { font-size: 1.05rem; }
.pay-option span { color: var(--muted); font-size: .9rem; }
.pay-option:has(input:checked) { background: var(--pink-soft); box-shadow: var(--shadow-sm); }
.pay-option.is-disabled { opacity: .55; cursor: not-allowed; }
.review { display: grid; gap: 14px; }
.review-block { background: var(--cream); border: 2px solid var(--choco); border-radius: var(--radius-sm); padding: 14px 16px; }
.review-block h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--olive-dark); margin-bottom: 6px; display: flex; justify-content: space-between; }
.review-block p { margin: 0; }
.review-block .link-btn { text-transform: none; letter-spacing: 0; }

/* ---------- Resultado ---------- */
.result { padding: 56px 0 90px; max-width: 760px; }
.result-card { text-align: center; }
.result-card .big-emoji { font-size: 3.4rem; line-height: 1; margin-bottom: 10px; }
.result-card h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); text-transform: uppercase; }
.result-card .order-text { text-align: left; white-space: pre-wrap; background: var(--cream); border: 2px dashed var(--choco-2); border-radius: var(--radius-sm); padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; max-height: 260px; overflow: auto; margin: 16px 0; }
.result-summary { text-align: left; margin: 18px auto 0; max-width: 520px; display: grid; gap: 4px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.steps-list { text-align: left; margin: 14px auto; max-width: 520px; padding-left: 1.2em; }
.steps-list li { margin-bottom: 6px; }
.badge { display: inline-block; padding: .3em .8em; border-radius: 999px; border: 2px solid var(--choco); font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: var(--beige); }
.badge.ok { background: #dcebd5; }
.badge.warn { background: #fbe3cf; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .hero-media { max-width: 620px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: var(--pink); border-bottom: 2px solid var(--choco); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .9em .6em; border-bottom: 1.5px dashed rgba(74, 42, 30, .25); border-radius: 0; }
  .menu-btn { display: flex; }
  .header-cta { display: none; }
  .zone-card { grid-template-columns: 1fr; }
  .zone-field select { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .loyalty-grid { grid-template-columns: 1fr; gap: 36px; }
  .loyalty-grid img { max-height: 400px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { border-right: 0; border-bottom: 2px solid var(--choco); padding: 28px; }
  .pdp-media img { max-width: 220px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .brand-word { font-size: 1.45rem; }
  .cart-btn { width: 46px; height: 46px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product { padding: 12px 12px 14px; border-radius: 18px; box-shadow: var(--shadow-sm); }
  .product-media { padding: 10px; margin-bottom: 10px; }
  .product h3 { font-size: 1.08rem; }
  .product-desc { display: none; }
  .product-tag { top: 8px; left: 8px; font-size: .6rem; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-foot .btn { width: 100%; }
  .product-foot .qty { justify-content: space-between; width: 100%; }
  .price { font-size: 1.05rem; }
  .drop-head { align-items: flex-start; }
  .drop-flyer img { width: 70px; height: 88px; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
  .hero-sticker { width: 104px; height: 104px; font-size: .75rem; left: -6px; }
  .hero-sticker b { font-size: 1.05rem; }
  .co-actions .btn { flex: 1; }
  body.has-cart:not(.in-checkout) .mobile-bar { display: flex; }
  body.has-cart .site-footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
