/* MaBaby design system. The owner-approved look (docs/superpowers/mockups/home.html), made premium in the 2026-11-30
   design pass (docs/superpowers/specs/2026-11-30-premium-design-pass.md). Shell pieces (header, phone menu, footer,
   floating buttons) live in their components' .razor.css files; page sections live with their pages. Rules that
   join several components (the welcome loader, the toast) are here. */

/* ── Design tokens: the old MaBaby palette, kept and refined ─────────────────────────────── */
:root {
  --text: #5d5a72;         /* old foreground */
  --text-strong: #3f3c55;  /* headings: a deeper step of the same hue */
  --text-muted: #6e6a85;   /* small secondary text (counters): 5.2:1 on white, AA */
  --teal: #4a90a4;         /* old primary */
  --teal-deep: #3a7a8d;
  --hotpink: #ec407a;      /* old accent: badges, sign up, back to top */
  --lavender: #a59acb;     /* the logo */
  --lavender-deep: #6f61b5;/* lavender text and icons on white: 5.4:1, AA */
  --lavender-soft: #ebe7f6;
  --plum: #2f2a45;         /* text on lavender, the toast */
  --pink: #facfe2;         /* old gradient stops */
  --pink-soft: #fdeef5;
  --sky: #b3e2f9;
  --mint: #cfe9db;
  --mint-strong: #a8d5ba;
  --yellow: #f9f2c9;
  --blue: #7fb3d3;
  --flame: #ff8a3d;        /* Hot Deals: the warm start of the heading's underline */
  --card: rgba(255,255,255,.94);
  --line: rgba(165,154,203,.28); /* hairline edges on cards and bars */
  --photo: #f5f2fa;        /* behind every product photo while it loads */

  --font: "Poppins", system-ui, sans-serif;
  --font-name: "Grand Hotel", cursive;

  --r-pill: 999px;
  --r-card: 20px;
  --r-panel: 28px;

  --shadow-card: 0 1px 2px rgba(63,60,85,.05), 0 10px 26px -14px rgba(63,60,85,.18), 0 16px 34px -22px rgba(236,64,122,.2);
  --shadow-lift: 0 2px 6px rgba(63,60,85,.06), 0 20px 40px -18px rgba(63,60,85,.24), 0 30px 56px -30px rgba(236,64,122,.34);

  /* Motion: answers what the visitor does */
  --ease-out: cubic-bezier(.22,.8,.26,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-drawer: cubic-bezier(.32,.72,0,1);
  --ease-pop: cubic-bezier(.18,1.2,.4,1);
  --dur-1: 140ms; --dur-2: 240ms; --dur-3: 420ms;

  --gutter: clamp(14px, 3.5vw, 32px);
  --max: 1240px;
  --section-gap: clamp(30px, 4.6vw, 60px);
  --header-h: 112px; --header-h-scrolled: 80px;
  --logo-h: 96px; --logo-shrink: .72;
}

/* ── Base ───────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip (here and on body; never hidden) keeps the page phone-wide without breaking position: sticky.
   scrollbar-gutter: the scroll locks below hide the scrollbar; its space stays, so the layout does not shift.
   No CSS smooth scrolling: back to top scrolls smoothly in JS, and only without reduced motion. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h-scrolled) + 16px); overflow-x: clip; scrollbar-gutter: stable; -webkit-tap-highlight-color: transparent; }
/* Scroll lock while the mobile menu is open (header.js toggles the class). */
html.menu-open { overflow: hidden; }
body {
  margin: 0; color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* the header is fixed: the page is offset by its full height, so shrinking it never moves content */
  padding-top: var(--header-h); min-height: 100vh;
  /* a second guard against sideways overflow; clip (unlike hidden) makes no scroll container, so sticky works */
  overflow-x: clip;
  /* the old site's pastel gradient, kept, with a soft light veil so content reads cleanly */
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%) fixed,
    linear-gradient(rgba(255,255,255,.52), rgba(255,255,255,.52)) fixed,
    linear-gradient(135deg, var(--pink) 0%, var(--sky) 50%, var(--mint) 100%) fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(236,64,122,.18); color: var(--text-strong); }
:focus-visible { outline: 3px solid var(--hotpink); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { color: var(--text-strong); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.25rem); }
h2 .light { font-weight: 400; }
.section { margin-top: var(--section-gap); }
.section-head { text-align: center; margin-bottom: clamp(14px, 2.2vw, 26px); }
.section-head p { margin: 6px auto 0; max-width: 52ch; }
.section-head.row { display: flex; align-items: end; justify-content: space-between; gap: 6px 16px; text-align: left; }
.section-head.row p { margin-inline: 0; }
.center { text-align: center; margin-top: 20px; }
/* "See all" style link at the end of a row heading */
.link-more { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 40px; padding: 0 4px; color: var(--lavender-deep); font-weight: 600; font-size: .92rem; }
.link-more .ico { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
.link-more:hover { color: var(--hotpink); }
.link-more:hover .ico { transform: translateX(3px); }
/* Page heading (h1) on inner pages: the section heading's size */
.page-title { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem); }
.page-title .light { font-weight: 400; }
/* Skip to content: the first focusable element, shown only while it has focus (above the fixed header) */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 18px; border-radius: var(--r-pill); background: var(--teal); color: #fff; font-weight: 600; box-shadow: var(--shadow-card); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
/* the skip link moves focus to <main> (tabindex="-1"); it needs no ring */
main:focus { outline: none; }
/* FocusOnNavigate (Routes.razor) moves focus to each page's h1 so screen readers start there; a heading is not a
   control, so it shows no focus ring (on the home page it would box the hero headline). */
h1:focus, h1:focus-visible { outline: none; }
/* Visually hidden, still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── Icons (Components/Ui/Icon.razor) ───────────────────────────────────────────────────── */
.ico { width: 1.25em; height: 1.25em; flex: none; display: block; }

/* ── Buttons (old shapes, refined): lift on hover, press in on tap ──────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 0; font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), background-color var(--dur-2), color var(--dur-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: var(--dur-1); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 20px -10px rgba(74,144,164,.9); }
.btn-teal:hover { background: var(--teal-deep); color: #fff; box-shadow: 0 14px 24px -12px rgba(74,144,164,.95); }
.btn-pink { background: linear-gradient(135deg, #f0568a, var(--hotpink) 55%, #dd3470); color: #fff; box-shadow: 0 10px 22px -10px rgba(236,64,122,.85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-pink:hover { color: #fff; background: linear-gradient(135deg, #ea4a80, #df3570 55%, #cf2c64); box-shadow: 0 14px 26px -12px rgba(236,64,122,.95), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-red { background: #e53935; color: #fff; box-shadow: 0 10px 20px -10px rgba(229,57,53,.9); }
.btn-red:hover { color: #fff; }
.btn-outline { background: #fff; color: var(--lavender-deep); box-shadow: inset 0 0 0 1.5px var(--lavender), 0 6px 16px -12px rgba(63,60,85,.4); }
.btn-outline:hover { background: #faf8ff; color: var(--lavender-deep); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
/* A light sweeps across the filled buttons under the pointer */
.btn-pink, .btn-teal { overflow: hidden; isolation: isolate; }
.btn-pink::after, .btn-teal::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 65%); transform: translateX(-130%); transition: transform .9s var(--ease-out); pointer-events: none; }
.btn-pink:hover::after, .btn-teal:hover::after { transform: translateX(130%); }
.btn[disabled], .btn[aria-disabled="true"] { transform: none; }

/* Round icon button (header tools, close buttons) */
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: transparent; color: var(--text-strong); transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.icon-btn:hover { background: var(--lavender-soft); color: var(--lavender-deep); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 23px; height: 23px; }

/* Count badge (header cart, cart FAB) */
.badge-count { position: absolute; top: 1px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-pill); background: var(--hotpink); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.badge-count[hidden] { display: none; }
.badge-count.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.45); } }
/* Add-to-cart flight (cart.js / fly.js) */
.fly { position: fixed; z-index: 60; width: 64px; height: 64px; border-radius: 16px; background-size: cover; pointer-events: none; box-shadow: var(--shadow-lift); transition: transform .75s cubic-bezier(.5,-0.3,.6,1), opacity .75s; }

/* ── Cards and panels ───────────────────────────────────────────────────────────────────── */
/* White glass card with a hairline edge and the soft pink-tinted shadow */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255,255,255,.7); }
/* The old yellow → pink panel (What's New, MaBaby Stars) */
.panel { border-radius: var(--r-panel); padding: clamp(18px, 3.6vw, 40px); background: linear-gradient(135deg, rgba(249,242,201,.78), rgba(250,207,226,.78)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 18px 40px -30px rgba(236,64,122,.45); }

/* ── Photos: a soft backdrop that shimmers until the photo arrives (images.js adds .is-loading) ── */
img.is-loading { opacity: 0; }
/* Photos settle into place as they arrive (their own transitions carry the zoom) */
.shot img.is-loading, .cat-pic img.is-loading, .star img.is-loading { transform: scale(1.08); }
.skel { background-color: var(--photo); background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 70%); background-size: 220% 100%; background-repeat: no-repeat; background-position: 130% 0; }
.skel:has(img.is-loading:not(.alt)) { animation: shimmer 1.25s linear infinite; }
@keyframes shimmer { to { background-position: -130% 0; } }

/* ── Price block and stock note (product card, product page) ────────────────────────────── */
.price { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-weight: 700; color: var(--teal); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price s { color: #a19db3; font-weight: 400; font-size: .86rem; }
.price.sale { color: var(--hotpink); }
.price.on-request { color: var(--text); font-weight: 600; font-size: .92rem; }
.stock { font-size: .8rem; color: #c24e00; font-weight: 500; }
.stock.out { color: var(--text-muted); }

/* ── Grid helpers: product grid is 4 / 3 / 2 columns; columns never force the page wider ── */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }

/* ── Social pills (footer, mobile menu) ─────────────────────────────────────────────────── */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; color: var(--text-strong); font-weight: 500; font-size: .88rem; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(63,60,85,.35); transition: transform var(--dur-2) var(--ease-out), color var(--dur-2); }
.social a:hover { transform: translateY(-2px); color: var(--hotpink); }
.social svg { width: 18px; height: 18px; flex: none; }

/* ── Logo "painted on" at first load (the real logo image, revealed by brush strokes) ─── */
.logo-paint { display: block; height: var(--logo-h); width: auto; aspect-ratio: 515 / 485; transform-origin: left center; transition: transform .35s var(--ease-out); will-change: transform; }
.logo-paint .brush { stroke-dasharray: 1; stroke-dashoffset: 1; animation: paint .7s var(--ease-out) forwards; }
.logo-paint .b1 { animation-delay: .15s; }
.logo-paint .b2 { animation-delay: .55s; animation-duration: .6s; }
.logo-paint .b3 { animation-delay: .9s; }
.logo-paint .b4 { animation-delay: 1.35s; animation-duration: .6s; }
.logo-paint .b5 { animation-delay: 1.6s; animation-duration: .6s; }
.logo-paint .b6 { animation-delay: 2s; animation-duration: .25s; }
.logo-paint .b7 { animation-delay: 2.2s; animation-duration: .65s; animation-timing-function: cubic-bezier(.45,0,.3,1); }
.logo-paint .paint-done { opacity: 0; animation: paint-done .3s 2.9s forwards; }
@keyframes paint { to { stroke-dashoffset: 0; } }
@keyframes paint-done { to { opacity: 1; } }
/* Already painted in this tab session (logo-paint.js, or the early check in App.razor): show it at once */
.logo-paint.is-painted .brush, .logo-painted .logo-paint .brush { animation: none; stroke-dashoffset: 0; }
.logo-paint.is-painted .paint-done, .logo-painted .logo-paint .paint-done { animation: none; opacity: 1; }

/* ── Welcome loader (Components/Layout/Splash.razor, wwwroot/js/splash.js) ───────────────── */
/* Shown only while html.mababy-splash is set: the first page of a tab session. The veil and the orbs clear while
   the painted logo flies into the header (splash.js), whose own logo is hidden until then. If the script never
   runs, the overlay hides itself after 8 s and the header logo comes back. */
.splash { display: none; }
html.mababy-splash .splash { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; overflow: hidden; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: -webkit-backdrop-filter .7s var(--ease-out), backdrop-filter .7s var(--ease-out); animation: splash-failsafe 0s 8s forwards; }
html.mababy-splash .header .brand { opacity: 0; animation: splash-failsafe-show 0s 8s forwards; }
@keyframes splash-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@keyframes splash-failsafe-show { to { opacity: 1; } }
.splash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(46% 40% at 50% 46%, #fff 0%, rgba(255,255,255,.82) 45%, rgba(255,255,255,0) 100%), linear-gradient(135deg, #fde6f0 0%, #e5f4fc 50%, #e4f4ec 100%); transition: opacity .6s var(--ease-out) .08s; }
.splash-orb { position: absolute; border-radius: 50%; animation: splash-drift 7s ease-in-out infinite alternate; transition: opacity .45s; }
.splash-orb.o1 { width: 60vmax; height: 60vmax; left: -22vmax; top: -24vmax; background: radial-gradient(circle, rgba(250,207,226,.9), rgba(250,207,226,0) 66%); }
.splash-orb.o2 { width: 56vmax; height: 56vmax; right: -20vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(179,226,249,.85), rgba(179,226,249,0) 66%); animation-delay: -2.4s; }
.splash-orb.o3 { width: 40vmax; height: 40vmax; right: 4vmax; top: -18vmax; background: radial-gradient(circle, rgba(207,196,240,.8), rgba(207,196,240,0) 66%); animation-delay: -4.8s; }
@keyframes splash-drift { to { transform: translate3d(5vmax, 4vmax, 0) scale(1.1); } }
.splash-stage { position: relative; display: grid; justify-items: center; gap: 16px; }
.splash-mark { position: relative; width: clamp(150px, 40vw, 212px); isolation: isolate; filter: drop-shadow(0 4px 10px rgba(165,154,203,.35)); }
.splash-mark::before { content: ""; position: absolute; inset: -34%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.6) 42%, rgba(255,255,255,0) 70%); transition: opacity .35s; }
.splash .logo-paint { width: 100%; height: auto; transform-origin: 0 0; will-change: transform; }
.splash .logo-paint .brush { animation: none; stroke-dashoffset: 1; }
.splash .logo-paint .paint-done { animation: none; opacity: 0; }
.splash.is-playing .splash-mark { animation: splash-settle 2.4s var(--ease-out) both; }
@keyframes splash-settle { from { transform: scale(.9); } }
.splash.is-playing .logo-paint .brush { animation: paint .5s var(--ease-out) forwards; }
.splash.is-playing .logo-paint .b1 { animation-delay: .05s; }
.splash.is-playing .logo-paint .b2 { animation-delay: .32s; animation-duration: .42s; }
.splash.is-playing .logo-paint .b3 { animation-delay: .56s; }
.splash.is-playing .logo-paint .b4 { animation-delay: .86s; animation-duration: .42s; }
.splash.is-playing .logo-paint .b5 { animation-delay: 1.04s; animation-duration: .42s; }
.splash.is-playing .logo-paint .b6 { animation-delay: 1.32s; animation-duration: .2s; }
.splash.is-playing .logo-paint .b7 { animation-delay: 1.44s; animation-duration: .5s; animation-timing-function: cubic-bezier(.45,0,.3,1); }
.splash.is-playing .logo-paint .paint-done { animation: paint-done .3s 1.95s forwards; }
.splash-line { margin: 0; color: var(--lavender-deep); font-weight: 500; font-size: clamp(.88rem, .8rem + .4vw, 1rem); letter-spacing: .32em; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.splash.is-playing .splash-line { animation: splash-line 1s var(--ease-out) 1.05s forwards; }
@keyframes splash-line { to { opacity: 1; letter-spacing: .05em; } }
.splash-gauge { width: 168px; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(165,154,203,.22); transition: opacity .3s; }
.splash-gauge i { display: block; width: 100%; height: 100%; border-radius: inherit; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, var(--hotpink), var(--lavender) 55%, var(--teal)); box-shadow: 0 0 14px rgba(236,64,122,.55); }
.splash.is-playing .splash-gauge i { animation: splash-gauge 2.35s cubic-bezier(.45,.05,.2,1) forwards; }
@keyframes splash-gauge { to { transform: scaleX(1); } }
/* The exit: the veil clears and the page comes into focus; the logo (already finished) flies to the header */
.splash.is-leaving { pointer-events: none; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
.splash.is-leaving::before, .splash.is-leaving .splash-orb, .splash.is-leaving .splash-line, .splash.is-leaving .splash-gauge, .splash.is-leaving .splash-mark::before { opacity: 0; }
.splash.is-leaving .splash-mark { animation: none; }
.splash.is-leaving .logo-paint .brush { animation: none; stroke-dashoffset: 0; }
.splash.is-leaving .logo-paint .paint-done { animation: none; opacity: 1; }
.splash.is-leaving .logo-paint { transition: transform .72s cubic-bezier(.7,0,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .splash-gauge { display: none; }
  .splash-line { opacity: 1; letter-spacing: .05em; }
}
@media print { .splash { display: none !important; } }

/* ── Staggered entrance: cards in a [data-stagger] row or grid rise in one after another as it enters the view
   (reveal.js sets --i on each card, adds .in, then .done, after which the cards' own hover transitions apply). ── */
html.js [data-stagger]:not(.in) > * { opacity: 0; transform: translateY(30px) scale(.96); }
html.js [data-stagger].in:not(.done) > * { transition: opacity .7s var(--ease-out), transform .9s var(--ease-pop); transition-delay: calc(var(--i, 0) * 70ms); }

/* The home hero's entrance waits under the welcome loader and plays as the loader clears */
html.mababy-splash .hero * { animation-play-state: paused; }

/* ── Reveal: each section rises once as it enters (reveal.js adds .in) ──────────────────── */
/* Only with html.js (set by the head script, removed again if site.js fails): without scripts nothing is hidden. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Swipe-row position dots (swipe.js adds them after each .swipe row; shown on phones only) */
.swipe-hint { display: none; }

/* ── Toast: "Added to cart" (toast.js; screen readers hear #cart-status instead) ────────── */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 12px; width: min(420px, calc(100% - 24px)); padding: 9px 9px 9px 10px; border-radius: 18px; background: rgba(47,42,69,.95); color: #fff; box-shadow: 0 20px 44px -18px rgba(47,42,69,.7); transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden; transition: transform .5s var(--ease-spring), opacity .25s, visibility 0s .5s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease-spring), opacity .25s; }
.toast-thumb { width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; color: #fff; }
.toast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.toast-check { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--hotpink); }
.toast-check .ico { width: 24px; height: 24px; }
.toast-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.toast-text b { font-size: .92rem; font-weight: 600; }
.toast-text span { font-size: .8rem; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-go { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: #fff; color: var(--plum); font-weight: 600; font-size: .85rem; }
.toast-go:hover { color: var(--hotpink); }


/* ── Responsive ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  :root { --header-h: 80px; --header-h-scrolled: 64px; --logo-h: 64px; --logo-shrink: .78; --r-panel: 24px; }
  .wrap { width: calc(100% - 2 * var(--gutter)); }

  /* Wide stacks become swipeable rows (shorter page, same content) */
  .swipe { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; gap: 12px; margin-inline: calc(-1 * clamp(18px, 3.6vw, 40px)); padding: 4px clamp(18px, 3.6vw, 40px) 14px; scrollbar-width: none; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .section > .swipe { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .swipe-hint { display: flex; justify-content: center; gap: 6px; margin-top: 0; }
  .swipe-hint span { width: 6px; height: 6px; border-radius: 50%; background: rgba(93,90,114,.25); transition: width .3s, background-color .3s; }
  .swipe-hint span.on { width: 18px; border-radius: 6px; background: var(--hotpink); }

  /* A product page's buy bar: the floating buttons and the toast move above it */
  body:has(.pd-buybar.is-shown) .fabs { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.pd-buybar.is-shown) .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
.fabs { transition: bottom .45s var(--ease-drawer); }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .section-head.row { align-items: center; }
  .btn { min-height: 44px; }
}

/* ── Reduced motion: every non-essential animation off ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .logo-paint .brush { stroke-dashoffset: 0; }
  .logo-paint .paint-done { opacity: 1; }
  html.js .reveal, html.js [data-stagger]:not(.in) > * { opacity: 1; transform: none; }
  /* The welcome loader's failsafe must still wait its 8 s (the rule above removes every delay). */
  html.mababy-splash .splash, html.mababy-splash .header .brand { animation-delay: 8s !important; }
}

/* Products listing: heading, then category chips and search on one row (stacked on phones), count, grid, pager. */
.listing-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; margin: clamp(16px, 2.5vw, 24px) 0 clamp(14px, 2vw, 20px); min-width: 0; }
.listing-tools .chips, .listing-tools .chips-wrap { flex: 1 1 auto; min-width: 0; }
.listing-tools .search { flex: 0 1 340px; }
.listing-sub { margin: 10px 0 0; }
.listing-count { margin: 0 0 14px; font-size: .9rem; font-weight: 500; }

@media (max-width: 820px) {
  .listing-tools { flex-direction: column; align-items: stretch; gap: 6px; }
  .listing-tools .search { flex: none; }
}

/* Sets listing: 3 columns, 2 on tablets, 1 on phones (the skeleton grid shares the class). Search sits alone, right-aligned. */
.sets-tools { justify-content: flex-end; }
.grid.sets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
/* While a dialog is open the page behind it does not scroll. */
html.dialog-open, html.mini-cart-open { overflow: hidden; }
@media (max-width: 820px) {
  .grid.sets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sets-tools { justify-content: stretch; }
}
@media (max-width: 480px) {
  .grid.sets-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The customize page is a full-height sheet on phones with Back / Next at its bottom: the floating buttons would
   cover Next, so they step aside there (the header still has the cart and menu). */
@media (max-width: 820px) {
  body:has(section.customize) .fabs { display: none; }
}

/* Mini-cart drawer (mini-cart.js fills it; the markup is in MainLayout.razor). Full width on phones. */
.mini-cart[hidden] { display: none; }
.mini-cart { position: fixed; inset: 0; z-index: 80; }
.mc-backdrop { position: absolute; inset: 0; background: rgba(47,42,69,.4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mc-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; border-radius: 24px 0 0 24px; box-shadow: -30px 0 60px -30px rgba(47,42,69,.5); outline: none; }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--lavender-soft); }
.mc-head h2 { margin: 0; font-size: 1.15rem; color: var(--text-strong); }
.mc-close, .mc-remove { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--lavender-soft); color: var(--text-strong); cursor: pointer; flex: none; }
.mc-close svg, .mc-remove svg { width: 18px; height: 18px; }
.mc-remove { background: transparent; }
.mc-close:hover, .mc-remove:hover { background: var(--pink); }
.mc-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 18px; }
.mc-lines { list-style: none; margin: 0; padding: 0; }
.mc-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lavender-soft); }
.mc-thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--lavender-soft); }
.mc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-info { min-width: 0; }
.mc-name { font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.mc-qty { font-size: .9rem; }
.mc-empty { display: grid; justify-items: center; gap: 14px; padding: 40px 0; text-align: center; }
.mc-empty-title { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--text-strong); }
.mc-foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--lavender-soft); }
.mc-foot[hidden] { display: none; }
.mc-sub { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-weight: 600; color: var(--text-strong); }
.mc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mc-actions .btn { justify-content: center; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .mc-panel { animation: mc-in .45s var(--ease-drawer); }
  .mc-backdrop { animation: mc-fade .3s ease-out; }
}
@keyframes mc-in { from { transform: translateX(100%); } }
@keyframes mc-fade { from { opacity: 0; } }
