/* ================= HOME ================= */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(27,16,53,.12) 1.6px, transparent 1.6px); background-size: 26px 26px; -webkit-mask: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); mask: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__stickers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: .92; margin-bottom: 22px; }
.hero h1 .pop { color: var(--pink); }
.hero h1 .pop2 { display: inline-block; background: var(--lime); padding: 0 .16em .04em; border: var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transform: rotate(2deg); }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 31rem; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; }
.hero-stage { --blob-c1: #FFD84D; --blob-c2: #FFB547; position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 50% 55%, var(--paper) 0 45%, transparent 46%), conic-gradient(from 0deg, var(--pink-soft), var(--sky-soft), var(--lime-soft), var(--grape-soft), var(--pink-soft)); border: var(--line); box-shadow: var(--shadow); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-stage:active { cursor: grabbing; }
.hero-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border-radius: 50%; }
.hero-fallback { position: absolute; inset: 14%; display: grid; place-items: center; transition: opacity .4s; }
.hero-fallback .slime-svg { width: 100%; }
.hero-fallback.squish .slime-svg { animation: squish .7s var(--ease-bounce); }
.hero-stage.is-3d .hero-fallback { opacity: 0; pointer-events: none; }
.hero-guide { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 2; transition: opacity .4s; }
.hero-guide__hand { position: absolute; left: -8px; top: 4px; font-size: 2.4rem; animation: tap 1.8s ease-in-out infinite; }
.hero-guide__ring { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); border-radius: 50%; opacity: 0; animation: ring 1.8s ease-out infinite; }
@keyframes tap { 0%, 100% { transform: translate(16px, 20px); } 40%, 55% { transform: translate(0, 0) scale(.9); } }
@keyframes ring { 0%, 40% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
.hero-stage.poked .hero-guide { opacity: 0; }
.hero-howto { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 16px 0 12px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.hero-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hero-chip { min-height: 44px; padding: 8px 16px; border: var(--line); border-radius: var(--pill); background: var(--paper); font-weight: 800; transition: transform .2s var(--ease-bounce); }
.hero-chip i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); margin-right: 6px; vertical-align: -2px; }
.hero-chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.hero-chip:hover { transform: translateY(-2px); }
.hero-slime-note { max-width: 420px; min-height: 3em; margin: 14px auto 0; text-align: center; font-size: .98rem; line-height: 1.45; }
.hero-slime-note strong { display: block; font-size: 1.05rem; }

.collections { background: transparent; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.coll { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 210px; background: var(--paper); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.coll:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.coll__emoji { width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem; line-height: 1; margin-bottom: auto; background: var(--bg); border: var(--line); border-radius: 18px; transition: transform .3s var(--ease-bounce); }
.coll:hover .coll__emoji { transform: scale(1.08); }
.coll__name { font-weight: 800; font-size: 1.25rem; line-height: 1.2; margin-top: 18px; }
.coll__blurb { font-size: .95rem; color: var(--ink-soft); }
.coll__count { font-weight: 800; margin-top: 6px; font-size: .92rem; color: var(--pink); }

.texture { background: var(--ink); color: var(--cream); overflow: hidden; }
.texture .sec-head p { color: #CFC8E6; }
.tex-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.tex-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tex-tabs button { min-height: 48px; padding: 10px 18px; border: 3px solid var(--cream); border-radius: var(--pill); background: transparent; color: var(--cream); font-weight: 800; transition: transform .2s var(--ease-bounce), background .15s; }
.tex-tabs button:hover { background: rgba(255,255,255,.08); }
.tex-tabs button[aria-selected="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tex-info h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--yellow); margin-bottom: 10px; }
.tex-info p { color: #E3DDF5; font-size: 1.15rem; margin-bottom: 24px; max-width: 28rem; }
.tex-stage { --c1: #FFD84D; --c2: #FFB547; --bg: var(--yellow); position: relative; aspect-ratio: 1.15; border: 3px solid var(--cream); border-radius: var(--r-xl); background: var(--bg); background-image: radial-gradient(rgba(27,16,53,.12) 2px, transparent 2px); background-size: 22px 22px; display: grid; place-items: center; cursor: pointer; transition: background-color .4s; touch-action: manipulation; }
.tex-stage .slime-svg { width: 68%; }
.tex-stage__hint { position: absolute; top: 18px; right: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 22px; background: var(--paper); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.step__num { width: 40px; height: 40px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; border: var(--line); border-radius: 50%; background: var(--lime); }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--ink-soft); font-size: .97rem; }

.story { background: var(--pink-soft); border-block: var(--line); }
.story__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story__art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 440px; width: 100%; margin-inline: auto; }
.story__tile { border: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.story__tile:nth-child(2), .story__tile:nth-child(4) { transform: translateY(24px); }
.story h2 { margin-bottom: 18px; }
.story p { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 14px; max-width: 36rem; }

.faq-wrap { max-width: 820px; margin-inline: auto; }
.cta-band { background: transparent; }
.cta-band .container { background: var(--lime); border: var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding-inline: clamp(20px, 4vw, 48px) !important; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px; max-width: calc(var(--max) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.cta-band h2 { max-width: 18ch; }

/* ================= INNER PAGES ================= */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 12px; }
.page-hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }

.shop-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shop-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px 12px; scrollbar-width: thin; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; justify-content: flex-end; }
.shop-tools input, .shop-tools select { min-height: 48px; padding: 10px 16px; border: var(--line); border-radius: var(--pill); background: var(--paper); font-weight: 600; }
.shop-tools input { flex: 1; min-width: 180px; max-width: 320px; }
.shop-count { font-weight: 800; }

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pdp__stage { position: relative; border: var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; touch-action: manipulation; }
.pdp__stage .slime-art__topper { font-size: 3.6rem; }
.pdp__hint { position: absolute; bottom: 16px; right: 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--pill); padding: 4px 12px; font-weight: 700; font-size: .82rem; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 14px; }
.pdp__thumbs button { width: 72px; height: 72px; border: var(--line); border-radius: var(--r-sm); overflow: hidden; padding: 0; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { display: flex; flex-direction: column; gap: 14px; }
.pdp__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.pdp__price { font-weight: 800; font-size: 1.7rem; }
.pdp__desc { font-size: 1.12rem; color: var(--ink-soft); }
.pdp__form { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.opts { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.opts legend { margin-bottom: 10px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 10px 18px; border: var(--line); border-radius: var(--pill); background: var(--paper); font-weight: 700; cursor: pointer; transition: transform .2s var(--ease-bounce); }
.opt span small { font-weight: 600; color: var(--ink-soft); }
.opt input:checked + span { background: var(--ink); color: var(--cream); }
.opt input:checked + span small { color: #CFC8E6; }
.opt input:focus-visible + span { outline: 3px dashed var(--grape); outline-offset: 3px; }
.pdp__buy { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp__perks { list-style: none; padding: 18px 20px; display: grid; gap: 10px; background: var(--paper); border: var(--line); border-radius: var(--r); margin-top: 8px; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(20px, 4vw, 40px); align-items: start; }
.lines { list-style: none; padding: 0; display: grid; gap: 16px; }
.line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 14px; background: var(--paper); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.line__art { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.line__art .slime-art__topper { display: none; }
.line__info h3 { font-size: 1.25rem; margin-bottom: 4px; }
.line__info h3 a { text-decoration: none; }
.line__var, .line__unit { color: var(--ink-soft); font-size: .92rem; }
.line__warn { color: var(--danger); font-weight: 700; font-size: .9rem; }
.line--bad { background: #FFF2F1; }
.line__ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__total { font-weight: 800; font-size: 1.15rem; }
.cart-more { margin-top: 24px; font-weight: 800; }

.sum { position: sticky; top: 110px; padding: 24px; background: var(--paper); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.sum h2 { font-size: 1.8rem; }
.sum dl, .totals, .status-list { display: grid; gap: 10px; }
.sum dl div, .totals div, .status-list div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt, .totals dt, .status-list dt { color: var(--ink-soft); font-weight: 600; }
.sum dd, .totals dd, .status-list dd { font-weight: 800; text-align: right; }
.sum__total { padding-top: 12px; border-top: 3px dashed var(--ink); font-size: 1.3rem; }
.sum__total dt { color: var(--ink) !important; font-weight: 800 !important; }
.sum__total dd { font-family: var(--font-display); font-weight: 400 !important; font-size: 1.6rem; }
.sum__hint { background: var(--lime-soft); border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 8px 12px; font-weight: 700; font-size: .92rem; }
.sum__warn { color: var(--danger); font-weight: 700; }
.sum__note { font-size: .9rem; color: var(--ink-soft); text-align: center; }

.checkout-form { display: flex; flex-direction: column; gap: 22px; }
.card-box { padding: clamp(18px, 3vw, 28px); background: var(--paper); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.card-box h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.card-box h2 .n { width: 38px; height: 38px; display: grid; place-items: center; background: var(--yellow); border: var(--line); border-radius: 50%; font-size: 1.1rem; flex-shrink: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.howbox { background: var(--lime-soft); border: var(--line); border-radius: var(--r); padding: 16px 18px; }
.howbox ol { padding-left: 20px; display: grid; gap: 4px; margin-top: 6px; }
.form-error { background: #FFE4E1; border: var(--line); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 700; color: var(--danger); }
.checkout-side { position: sticky; top: 110px; display: grid; gap: 16px; }
.checkout-side .sum { position: static; }
.mini-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.mini, .mini-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.mini-list li { grid-template-columns: 1fr auto; }
.mini .slime-art { border: 2px solid var(--ink); border-radius: 12px; }
.mini .slime-art__topper { display: none; }
.mini b, .mini-list b { display: block; line-height: 1.25; }
.mini small, .mini-list small { display: block; color: var(--ink-soft); font-size: .85rem; }
.mini > span, .mini-list li > span { font-weight: 800; }
.review { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; overflow-wrap: anywhere; }
.review span:first-child { font-weight: 800; }

/* Order confirmation */
.ok-hero { position: relative; text-align: center; padding: clamp(36px, 6vw, 64px) 0 32px; max-width: 760px; margin-inline: auto; }
.ok-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 18px 0 14px; }
.ok-hero__lead { font-size: 1.15rem; color: var(--ink-soft); }
.ok-ref { margin-top: 20px; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 10px 20px; background: var(--paper); border: var(--line); border-radius: var(--pill); box-shadow: var(--shadow-sm); font-weight: 600; }
.ok-ref b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: .03em; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; animation: fall 2.6s ease-in forwards; }
.confetti i:nth-child(4n) { background: var(--pink); } .confetti i:nth-child(4n+1) { background: var(--lime); } .confetti i:nth-child(4n+2) { background: var(--sky); } .confetti i:nth-child(4n+3) { background: var(--yellow); }
.confetti i:nth-child(1) { left: 5%; animation-delay: .1s; } .confetti i:nth-child(2) { left: 11%; animation-delay: .5s; } .confetti i:nth-child(3) { left: 17%; animation-delay: .2s; } .confetti i:nth-child(4) { left: 23%; animation-delay: .7s; } .confetti i:nth-child(5) { left: 29%; animation-delay: .3s; } .confetti i:nth-child(6) { left: 35%; animation-delay: .9s; }
.confetti i:nth-child(7) { left: 41%; animation-delay: .15s; } .confetti i:nth-child(8) { left: 47%; animation-delay: .6s; } .confetti i:nth-child(9) { left: 53%; animation-delay: .35s; } .confetti i:nth-child(10) { left: 59%; animation-delay: .8s; } .confetti i:nth-child(11) { left: 65%; animation-delay: .25s; } .confetti i:nth-child(12) { left: 71%; animation-delay: .55s; }
.confetti i:nth-child(13) { left: 77%; animation-delay: .05s; } .confetti i:nth-child(14) { left: 83%; animation-delay: .45s; } .confetti i:nth-child(15) { left: 89%; animation-delay: .75s; } .confetti i:nth-child(16) { left: 95%; animation-delay: .4s; } .confetti i:nth-child(17) { left: 8%; animation-delay: 1s; } .confetti i:nth-child(18) { left: 92%; animation-delay: 1.1s; }
@keyframes fall { to { transform: translateY(520px) rotate(540deg); opacity: 0; } }
.confirm-card { max-width: 860px; margin: 0 auto 36px; padding: clamp(20px, 4vw, 36px); background: var(--lime-soft); border: var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.confirm-card h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.confirm-steps { list-style: none; padding: 0; display: grid; gap: 18px; }
.confirm-steps li { display: flex; gap: 16px; padding: 18px; background: var(--paper); border: var(--line); border-radius: var(--r-lg); }
.confirm-steps .num { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; background: var(--yellow); border: var(--line); border-radius: 50%; }
.confirm-steps li > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.confirm-steps b { font-size: 1.15rem; }
.confirm-steps p { color: var(--ink-soft); }
.row-links { display: flex; gap: 16px; }
.pdf-status:empty { display: none; }
.pdf-status { font-size: .92rem; font-weight: 600; }
.wa-number { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--wa); border: var(--line); border-radius: var(--r-lg); }
.wa-number span { display: flex; flex-direction: column; font-weight: 700; }
.wa-number b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 4vw, 2rem); }
.confirm-card .fine { margin-top: 14px; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto 24px; }
.panel { padding: 24px; background: var(--paper); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); display: grid; gap: 14px; align-content: start; }
.panel h2 { font-size: 1.6rem; }
.panel h3 { font-family: var(--font); font-weight: 800; font-size: 1rem; margin-top: 6px; }
.addr { color: var(--ink-soft); overflow-wrap: anywhere; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 700; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.contact-card { padding: 28px; border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-card h2 { font-size: 1.8rem; }
.contact-card p { color: var(--ink-soft); }
.contact-card .big { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); overflow-wrap: anywhere; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero__grid, .tex-grid, .story__grid, .pdp { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero__copy { text-align: center; }
  .hero__stickers, .hero__cta { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .sum, .checkout-side { position: static; }
  .checkout-side { order: -1; }
  .story__art { max-width: 300px; }
}
@media (max-width: 640px) {
  .steps, .order-grid, .row2 { grid-template-columns: 1fr; }
  .step { transform: none !important; }
  .line { grid-template-columns: 76px 1fr; }
  .line__ctrl { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .shop-tools { justify-content: stretch; }
  .shop-tools input, .shop-tools select { flex: 1; max-width: none; }
  .hero h1 .pop { -webkit-text-stroke-width: 2px; text-shadow: 3px 3px 0 var(--ink); }
  .confirm-steps li { flex-direction: column; }
  .confirm-steps .btn { width: 100%; }
  .coll { min-height: 190px; }
  .hero__visual { max-width: 280px; }
  .hero__stickers { display: none; }
  .hero { padding-top: 24px; }
  .hero-chip { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .pdp__buy .btn { flex-basis: 100%; }
}

/* My orders */
.order-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 20px; background: var(--paper); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.order-row__ref { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; display: block; }
.order-row small { color: var(--ink-soft); }
.order-row__total { font-weight: 800; }
@media (max-width: 640px) { .order-row { grid-template-columns: 1fr auto; } .order-row .btn { grid-column: 1 / -1; } }

/* Sticky add-to-cart bar (phones) */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: var(--paper); border: var(--line); border-radius: var(--pill); box-shadow: var(--shadow-sm); transform: translateY(140%); transition: transform .35s var(--ease-bounce); }
  .buybar.show { transform: none; }
  .buybar div { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .buybar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar span { font-weight: 800; color: var(--ink-soft); font-size: .9rem; }
  body.has-buybar .wa-fab { bottom: 92px; }
  body.has-buybar .wa-panel { bottom: 160px; }
  body.has-buybar .toast { bottom: 96px; }
}
