/* ============ Senda · estilo latino colorido ============ */
:root {
  --ink: #2A1740;
  --ink-soft: #5b4a72;
  --cream: #FFF6E5;
  --paper: #FFFFFF;
  --pink: #FF2E7E;
  --orange: #FF7A1A;
  --yellow: #FFC400;
  --teal: #00B8A9;
  --purple: #7B4DFF;
  --green: #2FBF71;
  --radius: 20px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --f-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(42, 23, 64, .07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .btn, .pill, .cart-btn, .nav a, .tab, .icon-btn, .text-btn { touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
@supports (padding: max(0px)) {
  .wrap { width: min(1180px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
}

/* ---------- Anuncio ---------- */
.announce {
  background: var(--ink);
  color: var(--yellow);
  text-align: center;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: 8px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.header-row { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: -.01em; line-height: 1; color: var(--pink); text-shadow: 2px 2px 0 var(--ink); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 99px; transition: background .15s; }
.nav a:hover { background: var(--yellow); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 99px;
  padding: 7px 14px 7px 12px; text-decoration: none; font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s;
}
.cart-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.cart-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center;
  background: var(--pink); color: #fff; border: 2px solid var(--ink); border-radius: 99px; font-size: .8rem;
}
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.14) rotate(-3deg); } 60% { transform: scale(.97) rotate(2deg); } }

/* ---------- Papel picado ---------- */
.bunting {
  height: 56px; margin-bottom: -56px; position: relative; z-index: 5; pointer-events: none;
  background-repeat: repeat-x; background-size: 300px 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='56' viewBox='0 0 300 56'%3E%3Cpath d='M0 3h300' stroke='%232A1740' stroke-width='2.5'/%3E%3Cg fill-rule='evenodd' stroke='%232A1740' stroke-width='2'%3E%3Cpath fill='%23FF2E7E' d='M4 4h52v34l-8.7 9-8.7-9-8.6 9-8.7-9-8.7 9L4 38zM30 18.5a5 5 0 1 0 .01 0z'/%3E%3Cpath fill='%23FF7A1A' d='M64 4h52v34l-8.7 9-8.7-9-8.6 9-8.7-9-8.7 9L64 38zM90 18.5a5 5 0 1 0 .01 0z'/%3E%3Cpath fill='%23FFC400' d='M124 4h52v34l-8.7 9-8.7-9-8.6 9-8.7-9-8.7 9L124 38zM150 18.5a5 5 0 1 0 .01 0z'/%3E%3Cpath fill='%2300B8A9' d='M184 4h52v34l-8.7 9-8.7-9-8.6 9-8.7-9-8.7 9L184 38zM210 18.5a5 5 0 1 0 .01 0z'/%3E%3Cpath fill='%237B4DFF' d='M244 4h52v34l-8.7 9-8.7-9-8.6 9-8.7-9-8.7 9L244 38zM270 18.5a5 5 0 1 0 .01 0z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.1;
  padding: 11px 20px; border-radius: 99px; border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .12s, filter .12s;
  color: var(--ink); background: var(--paper);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, .cart-btn:focus-visible, .pill:focus-visible, .qty button:focus-visible, a:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-yellow { background: var(--yellow); }
.btn-teal { background: var(--teal); }
.btn-green { background: var(--green); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 14px 26px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 46, 126, .55) 0 90px, transparent 91px),
    radial-gradient(circle at 6% 92%, rgba(0, 184, 169, .55) 0 120px, transparent 121px),
    linear-gradient(135deg, #FFC400 0%, #FF9F1C 100%);
  border-bottom: 3px solid var(--ink);
  padding: 92px 0 72px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 99px;
  font-weight: 800; font-size: .85rem; box-shadow: var(--shadow-sm); transform: rotate(-1.5deg);
}
.hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.04; margin: 0 0 18px; letter-spacing: -.015em; }
.hl { display: inline-block; background: var(--pink); color: #fff; padding: 0 .25em .06em; border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); transform: rotate(-1.5deg); margin-top: 8px; }
.lead { font-size: 1.15rem; font-weight: 600; max-width: 34em; margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.chips li { font-weight: 800; font-size: .88rem; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .75); border: 2px solid var(--ink); }
.chips li::before { content: "✓ "; color: var(--green); }

.hero-art { position: relative; min-height: 380px; }
.polaroid {
  position: absolute; width: 56%; padding: 10px 10px 34px; background: #fff;
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow);
  transition: transform .3s;
}
.polaroid .ph { aspect-ratio: 1; border-radius: 8px; background: var(--c, var(--teal)) center / cover no-repeat; border: 2px solid var(--ink); }
.p1 { --c: #FF2E7E; left: 0; top: 14px; transform: rotate(-8deg); z-index: 1; }
.p2 { --c: #00B8A9; right: 0; top: 0; transform: rotate(6deg); z-index: 2; }
.p3 { --c: #7B4DFF; left: 20%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.hero-art:hover .p1 { transform: rotate(-11deg) translateX(-6px); }
.hero-art:hover .p2 { transform: rotate(9deg) translateX(6px); }
.sticker {
  position: absolute; z-index: 5; font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  padding: 7px 14px; border: 3px solid var(--ink); border-radius: 99px; box-shadow: var(--shadow-sm);
}
.s1 { background: var(--green); right: 4%; bottom: 24%; transform: rotate(7deg); }
.s2 { background: #fff; left: -2%; bottom: 10%; transform: rotate(-6deg); }

/* ---------- Secciones ---------- */
.section-head { margin-bottom: 22px; }
.section-head.center { text-align: center; }
.section-head h2, .cart-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 6px; }
.section-head h2::after {
  content: ""; display: block; width: 110px; height: 12px; margin-top: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='12' viewBox='0 0 110 12'%3E%3Cpath d='M3 6q6.8-8 13.6 0t13.6 0 13.6 0 13.6 0 13.6 0 13.6 0 13.6 0 13.6 0' fill='none' stroke='%23FF2E7E' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.section-head.center h2::after { margin-inline: auto; }
.section-head p { margin: 8px 0 0; color: var(--ink-soft); font-weight: 600; }

.catalog { padding: 56px 0 64px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-weight: 800; font-size: .92rem; cursor: pointer; padding: 7px 16px; border-radius: 99px;
  background: var(--paper); border: 3px solid var(--ink); transition: transform .12s, background .12s;
}
.pill:hover { transform: translateY(-2px); background: #fff3c4; }
.pill[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 3px solid var(--ink); border-radius: 99px; padding: 0 14px; min-width: min(280px, 100%); }
.search input { border: 0; outline: 0; background: transparent; padding: 9px 0; width: 100%; font-weight: 600; }
.search:focus-within { box-shadow: 0 0 0 3px var(--purple); }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card {
  --accent: var(--pink);
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  animation: pop .45s both;
}
.card:nth-child(5n+1) { --accent: var(--pink); }
.card:nth-child(5n+2) { --accent: var(--teal); }
.card:nth-child(5n+3) { --accent: var(--orange); }
.card:nth-child(5n+4) { --accent: var(--purple); }
.card:nth-child(5n+5) { --accent: var(--green); }
.card:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--ink); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.card-img { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-bottom: 3px solid var(--ink); background: color-mix(in srgb, var(--accent) 25%, #fff); cursor: pointer; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: -4px; z-index: 2; background: var(--yellow); border: 3px solid var(--ink);
  border-radius: 0 99px 99px 0; padding: 3px 14px 3px 12px; font-family: var(--f-display); font-weight: 600; font-size: .82rem;
  box-shadow: 2px 2px 0 var(--ink);
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); filter: brightness(.82); }
.card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; margin: 0; cursor: pointer; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.price { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.price small { font-size: .9rem; font-weight: 600; }
.per { font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.moq {
  align-self: flex-start; font-weight: 800; font-size: .82rem; padding: 4px 11px; border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 18%, #fff); border: 2px solid var(--ink);
}
.card-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }

.qty { display: inline-flex; align-items: stretch; border: 3px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.qty button { width: 34px; border: 0; background: var(--yellow); font-weight: 800; font-size: 1.15rem; cursor: pointer; line-height: 1; }
.qty button:hover:not([disabled]) { background: #ffd84d; }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty input { width: 58px; border: 0; text-align: center; font-weight: 800; background: transparent; outline: 0; -moz-appearance: textfield; padding: 6px 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card-actions .btn { flex: 1; padding: 9px 12px; font-size: .95rem; }

.skeleton { height: 420px; border-radius: var(--radius); border: 3px solid var(--ink); background: linear-gradient(100deg, #fff 30%, #ffe9a8 50%, #fff 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -300% 0; } }
.empty { text-align: center; font-weight: 700; color: var(--ink-soft); padding: 30px 0; }

/* ---------- Cómo comprar ---------- */
.how { background: var(--ink); color: #fff; padding: 64px 0 72px; border-top: 3px solid var(--ink); }
.how .section-head p { color: #cdbfe3; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; counter-reset: s; }
.steps li { position: relative; background: var(--paper); color: var(--ink); border: 3px solid #fff; border-radius: var(--radius); padding: 34px 20px 22px; box-shadow: 6px 6px 0 var(--c); }
.steps .num {
  position: absolute; top: -22px; left: 18px; width: 46px; height: 46px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; background: var(--c); color: #fff;
  border: 3px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink);
}
.steps h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 6px; }
.steps p { margin: 0; font-weight: 600; color: var(--ink-soft); }

/* ---------- Carrito ---------- */
.cart-page { padding: 84px 0 70px; }
.back { display: inline-block; font-weight: 800; text-decoration: none; margin-bottom: 8px; padding: 4px 0; }
.back:hover { text-decoration: underline wavy var(--pink); }
.cart-title { margin-bottom: 22px; }
.cart-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 12px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.ci-info h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; margin: 0 0 4px; }
.ci-meta { font-size: .86rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-sub { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.ci-remove { background: none; border: 0; cursor: pointer; font-weight: 800; font-size: .82rem; color: var(--pink); text-decoration: underline; padding: 2px; }
.ci-remove:hover { color: var(--ink); }
.cart-item .qty button { width: 30px; }
.cart-item .qty input { width: 54px; }

.order-card { position: sticky; top: 90px; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.order-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; margin: 0 0 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 800; font-size: .84rem; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; background: #fffdf6; border: 3px solid var(--ink); border-radius: 14px; outline: 0; font-weight: 600;
}
.field textarea { resize: vertical; min-height: 78px; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 48px; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: 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.5 1.5 7 7l5.5-5.5' fill='none' stroke='%232A1740' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px var(--purple); }
.field.invalid input, .field.invalid select { border-color: var(--pink); background: #fff0f5; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.totals { margin: 16px 0 6px; padding: 12px 14px; border: 3px dashed var(--ink); border-radius: 16px; background: #fff8dc; }
.totals div { display: flex; justify-content: space-between; font-weight: 700; padding: 2px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--ink); align-items: baseline; }
.totals .grand dt { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.totals .grand dd { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; color: var(--pink); }
.fineprint { font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin: 8px 0 16px; }

.cart-empty { text-align: center; padding: 50px 20px; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 560px; margin: 20px auto; }
.cart-empty-art { font-size: 4rem; }
.cart-empty h3 { font-family: var(--f-display); font-size: 1.6rem; margin: 6px 0; }
.cart-empty p { font-weight: 600; color: var(--ink-soft); margin: 0 0 20px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(42, 23, 64, .72); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: relative; width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--cream);
  border: 3px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--pink); animation: rise .3s cubic-bezier(.2, 1.2, .4, 1);
}
.modal.narrow { width: min(820px, 100%); }
@keyframes rise { from { transform: translateY(24px) scale(.96); opacity: 0; } }
.modal-x {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink);
  background: var(--yellow); font-size: 1.3rem; font-weight: 800; cursor: pointer; line-height: 1; box-shadow: var(--shadow-sm);
}
.modal-x:hover { background: var(--pink); color: #fff; }

.detail { display: grid; grid-template-columns: 1fr 1fr; }
.detail-img { background: var(--yellow); border-right: 3px solid var(--ink); display: flex; flex-direction: column; align-self: stretch; }
.stage { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff8dc; }
.stage img { width: 100%; height: 100%; object-fit: cover; touch-action: pan-y; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); font-size: 1.5rem; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); padding: 0 0 4px; }
.g-nav:hover { background: #fff; }
.g-nav.prev { left: 10px; } .g-nav.next { right: 10px; }
.g-count { position: absolute; right: 10px; bottom: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: .78rem; padding: 2px 10px; border-radius: 99px; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; border-top: 3px solid var(--ink); background: var(--cream); scrollbar-width: thin; }
.thumb { flex: none; width: 62px; height: 62px; padding: 0; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; opacity: .65; transition: opacity .15s, transform .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.on { opacity: 1; border-color: var(--pink); transform: translateY(-2px); }
.detail-body { padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.detail-body h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1.15; margin: 0; padding-right: 36px; }
.detail-body p { margin: 0; font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.facts li { font-weight: 700; font-size: .92rem; padding: 7px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.facts b { color: var(--pink); }
.detail-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.detail-buy .btn { flex: 1; min-width: 150px; }

.done { padding: 28px; }
.done h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; margin: 0 40px 4px 0; line-height: 1.1; }
.done > p { margin: 0 0 20px; font-weight: 600; color: var(--ink-soft); }
.done-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; align-items: start; }
.preview { max-height: 560px; overflow: auto; border: 3px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.preview img { width: 100%; }
.todo { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.todo > li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.todo .n { width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; border-radius: 50%; border: 3px solid var(--ink); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.todo li:nth-child(1) .n { background: var(--pink); }
.todo li:nth-child(2) .n { background: var(--teal); }
.todo li:nth-child(3) .n { background: var(--purple); }
.todo h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; margin: 6px 0 6px; }
.todo p { margin: 0 0 8px; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row .btn { padding: 9px 16px; font-size: .95rem; }
.qr-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.qr-box img { width: 170px; height: 170px; object-fit: contain; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 6px; box-shadow: var(--shadow-sm); }
.qr-side { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 8px; }
.warn { padding: 10px 12px; background: #fff0f5; border: 2px dashed var(--pink); border-radius: 12px; font-weight: 700; font-size: .9rem; }
.linkline { word-break: break-all; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2, 1.2, .4, 1), opacity .2s;
  background: var(--ink); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 99px; border: 3px solid var(--yellow);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .25); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--ink); color: #fff; padding: 74px 0 calc(22px + env(safe-area-inset-bottom)); position: relative; border-top: 3px solid var(--ink); }
.site-footer .bunting { position: absolute; top: 0; left: 0; right: 0; margin: 0; }
.foot-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.brand-foot .brand-name { color: var(--yellow); text-shadow: 2px 2px 0 var(--pink); }
.foot-tag { margin: 8px 0 0; font-weight: 600; color: #cdbfe3; }
.foot-small { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8rem; color: #a897c2; font-weight: 600; }
.quiet { text-decoration: none; color: inherit; opacity: .55; padding: 2px 4px; }
.quiet:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 84px; }
  .hero-art { min-height: 300px; max-width: 460px; margin-inline: auto; width: 100%; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-card { position: static; }
  .detail { grid-template-columns: 1fr; }
  .detail-img { border-right: 0; border-bottom: 3px solid var(--ink); }
  .stage { aspect-ratio: 1 / .8; }
  .done-grid { grid-template-columns: 1fr; }
  .preview { max-height: 340px; }
}
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow); }
  .card:hover .card-img img { transform: none; }
  .btn:hover, .cart-btn:hover { transform: none; box-shadow: var(--shadow-sm); }
  .pill:hover { transform: none; background: var(--paper); }
  .pill[aria-selected="true"]:hover { background: var(--ink); }
  .hero-art:hover .p1 { transform: rotate(-8deg); }
  .hero-art:hover .p2 { transform: rotate(6deg); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .announce { font-size: .8rem; padding: 7px 12px; line-height: 1.35; }
  .header-row { gap: 10px; padding: 8px 0; }
  .nav { display: none; }
  .cart-btn { margin-left: auto; padding: 6px 12px 6px 10px; min-height: 44px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.7rem; }
  .bunting { height: 40px; margin-bottom: -40px; background-size: 214px 40px; }
  .site-footer .bunting { margin: 0; }
  .hero { padding: 62px 0 40px; background:
    radial-gradient(circle at 92% 6%, rgba(255, 46, 126, .5) 0 60px, transparent 61px),
    radial-gradient(circle at 4% 96%, rgba(0, 184, 169, .5) 0 80px, transparent 81px),
    linear-gradient(135deg, #FFC400 0%, #FF9F1C 100%); }
  .hero-grid { gap: 28px; }
  .eyebrow { font-size: .78rem; padding: 5px 12px; }
  .hero h1 { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  .lead { font-size: 1.02rem; margin-bottom: 20px; }
  .hero-cta { gap: 10px; margin-bottom: 20px; }
  .hero-cta .btn { flex: 1 1 140px; }
  .btn-lg { padding: 12px 18px; font-size: 1rem; }
  .chips li { font-size: .8rem; padding: 5px 11px; }
  .hero-art { min-height: 0; aspect-ratio: 1 / .92; max-width: 340px; }
  .polaroid { padding: 7px 7px 24px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .sticker { font-size: .78rem; padding: 5px 11px; border-width: 2px; }

  .catalog { padding: 36px 0 44px; }
  .section-head { margin-bottom: 16px; }
  .section-head p { font-size: .95rem; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; flex: none; padding: 9px 16px; scroll-snap-align: start; }
  .search { min-width: 0; width: 100%; padding: 0 14px; }
  .search input { padding: 12px 0; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { box-shadow: 3px 3px 0 var(--ink); border-radius: 16px; }
  .card-body { padding: 10px 11px 12px; gap: 6px; }
  .card h3 { font-size: .95rem; overflow-wrap: anywhere; }
  .cat { font-size: .68rem; }
  .price { font-size: 1.3rem; }
  .per { font-size: .8rem; }
  .moq { font-size: .74rem; padding: 3px 9px; }
  .card-actions { flex-direction: column; align-items: stretch; }
  .card-actions .qty { align-self: stretch; justify-content: space-between; }
  .card-actions .qty input { flex: 1; width: auto; min-width: 0; }
  .qty button { width: 40px; min-height: 40px; }
  .card-actions .btn { padding: 10px 10px; min-height: 42px; }
  .badge { font-size: .7rem; padding: 2px 10px 2px 8px; top: 8px; }

  .how { padding: 44px 0 52px; }
  .steps { gap: 30px; margin-top: 30px; }

  .cart-page { padding: 60px 0 44px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .cart-item { grid-template-columns: 76px minmax(0, 1fr); gap: 10px 12px; padding: 10px; }
  .cart-item img { width: 76px; height: 76px; }
  .cart-item .qty button { width: 40px; }
  .ci-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .ci-remove { padding: 10px 6px; }
  .order-card { padding: 18px 16px; box-shadow: var(--shadow-sm); }
  .field input, .field select, .field textarea { padding: 12px; }
  .totals .grand dd { font-size: 1.5rem; }
  .cart-empty { padding: 36px 16px; }

  .modal-back { padding: 0; place-items: end center; }
  .modal { max-height: 100dvh; width: 100%; border-radius: 22px 22px 0 0; border-bottom-width: 0; box-shadow: none; animation: sheet .3s cubic-bezier(.2, 1, .4, 1); overscroll-behavior: contain; }
  .modal.narrow { width: 100%; }
  .modal-x { position: sticky; top: 10px; display: block; margin: 10px 10px -54px auto; width: 44px; height: 44px; }
  .stage { aspect-ratio: 1 / .85; }
  .g-nav { width: 44px; height: 44px; }
  .thumb { width: 56px; height: 56px; }
  .detail-body { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .detail-body h2 { font-size: 1.4rem; }
  .detail-buy { gap: 8px; }
  .detail-buy .qty { flex: 1 0 100%; justify-content: space-between; }
  .detail-buy .qty input { flex: 1; width: auto; }
  .detail-buy .btn { min-width: 0; flex: 1 1 100%; }
  .done { padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
  .done h2 { font-size: 1.45rem; margin-right: 52px; }
  .done-grid { gap: 20px; }
  .qr-box img { width: 150px; height: 150px; margin-inline: auto; }
  .qr-box { justify-content: center; }
  .qr-side { min-width: 0; flex-basis: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-row .btn { width: 100%; }
  .foot-small { flex-direction: column; gap: 6px; }
  .toast { width: max-content; font-size: .9rem; padding: 10px 16px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 360px) {
  .grid { gap: 10px; }
  .brand-name { font-size: 1.5rem; }
  .cart-label { display: none; }
  .price { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

body.lock { overflow: hidden; }
