/* ==========================================================================
   COLOUR THEMES (moods). The only file that defines colours.
   One block per theme. A page gets its theme from <body data-theme="...">,
   written by scripts/render.mjs from each family's "theme" in site.config.json.
   Header, announcement strip, footer and logo always use "blush".

   Every theme sets the same 9 properties:
     --bg            page background
     --surface       cards, panels, bag (white)
     --tint          pastel backdrop behind product photos and tiles
     --border        hairlines and outlines
     --text          all text (deep, AA on bg, surface and tint)
     --muted         secondary text (AA on bg and surface)
     --accent        ONLY price, primary buy buttons, bag count, wishlist heart
     --accent-hover  hover/pressed state of the accent
     --on-accent     text on accent buttons
   The build fails if any pair is under 4.5:1 and prints every ratio.
   To add a theme: copy a block, rename it, change the values, then set
   "theme": "<name>" on a family in the editor.
   ========================================================================== */

/* Default. Home, Build your box, bag, bundles, feelings, info pages. */
:root, [data-theme="blush"] {
  --bg: #FFF6F3; --surface: #FFFFFF; --tint: #F9D5DC; --border: #E2D2D4;
  --text: #4A1630; --muted: #72475B;
  --accent: #B3174F; --accent-hover: #8F1240; --on-accent: #FFFFFF;
}

/* Mugs, Candles */
[data-theme="cocoa-cherry"] {
  --bg: #FBF1E8; --surface: #FFFFFF; --tint: #F3D9C9; --border: #DCCFC8;
  --text: #3B1A1F; --muted: #65494B;
  --accent: #9B1B30; --accent-hover: #7F1627; --on-accent: #FFFFFF;
}

/* Glass Cups */
[data-theme="strawberry"] {
  --bg: #FFF1F0; --surface: #FFFFFF; --tint: #FFD6DC; --border: #E2CED1;
  --text: #4A1630; --muted: #72465A;
  --accent: #D01B55; --accent-hover: #AB1646; --on-accent: #FFFFFF;
}

/* Room Glow lamps */
[data-theme="lilac"] {
  --bg: #F6F0FA; --surface: #FFFFFF; --tint: #E3D3F2; --border: #D6CEDD;
  --text: #2E1A47; --muted: #5A496E;
  --accent: #6F3496; --accent-hover: #5B2B7B; --on-accent: #FFFFFF;
}

/* Charms and Clips. Accent darkened from #D9472F to pass contrast. */
[data-theme="peach"] {
  --bg: #FFF3EA; --surface: #FFFFFF; --tint: #FFDCC4; --border: #E2D2C8;
  --text: #4A2218; --muted: #725046;
  --accent: #C3402A; --accent-hover: #A03422; --on-accent: #FFFFFF;
}

/* Crochet Flowers */
[data-theme="mint"] {
  --bg: #F1F7F1; --surface: #FFFFFF; --tint: #D3E9DA; --border: #CFD9D1;
  --text: #1D3A2C; --muted: #4C6457;
  --accent: #2E7455; --accent-hover: #265F46; --on-accent: #FFFFFF;
}

/* Desk and Paper */
[data-theme="sky"] {
  --bg: #EFF6FB; --surface: #FFFFFF; --tint: #D3E5F5; --border: #CDD6DF;
  --text: #1B2F4A; --muted: #4A5B71;
  --accent: #2B5C9E; --accent-hover: #234B82; --on-accent: #FFFFFF;
}

/* Treats */
[data-theme="cocoa"] {
  --bg: #F7ECE3; --surface: #FFFFFF; --tint: #E8D2BF; --border: #D9CCC2;
  --text: #3B2316; --muted: #644F43;
  --accent: #7A3E1D; --accent-hover: #643318; --on-accent: #FFFFFF;
}

/* Photo backdrops by family theme (generated from the blocks above) */
.tint-blush { --tint: #F9D5DC; }
.tint-cocoa-cherry { --tint: #F3D9C9; }
.tint-strawberry { --tint: #FFD6DC; }
.tint-lilac { --tint: #E3D3F2; }
.tint-peach { --tint: #FFDCC4; }
.tint-mint { --tint: #D3E9DA; }
.tint-sky { --tint: #D3E5F5; }
.tint-cocoa { --tint: #E8D2BF; }

/* Blush Hour styles. Mobile first. Colours come only from the theme tokens in src/css/tokens.css. */
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/assets/fonts/nunito-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; src: url(/assets/fonts/nunito-rupee.woff2) format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+20B9; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 78%; ascent-override: 127%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 99.6%; ascent-override: 101.5%; descent-override: 35.4%; line-gap-override: 0%; }

:root {
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --sans: "Nunito", "Sans Fallback", Arial, system-ui, sans-serif;
  --r: 22px; --shadow: 0 1px 2px rgba(59, 28, 51, .05), 0 10px 28px -14px rgba(59, 28, 51, .2);
  --gut: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --measure: 65ch;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
[data-theme] { color: var(--text); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); overflow-x: clip; }
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: rgba(59, 28, 51, .4); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1232px; margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--muted); }

/* Type */
.h1 { font: 400 clamp(2.4rem, 1.4rem + 4.6vw, 4.4rem)/1.03 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.h2 { font: 400 clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem)/1.08 var(--serif); text-wrap: balance; }
.h3 { font: 400 1.6rem/1.1 var(--serif); }
.eyebrow { font-size: .875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lede { font-size: 1.1rem; max-width: 52ch; margin-top: 14px; }
.link, button.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(59, 28, 51, .35); }
.link:hover { text-decoration-color: currentColor; }
.prose .link, .cstrip .link { display: inline; overflow-wrap: anywhere; }

/* Buttons: berry = buy, plum = other actions */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--text); background: transparent; color: var(--text); font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.btn:hover { background: rgba(59, 28, 51, .07); }
.btn--buy { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--buy:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--buy:disabled { background: var(--border); border-color: var(--border); color: var(--text); cursor: not-allowed; }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--dark:hover { opacity: .88; }
.btn--light { background: var(--bg); border-color: var(--bg); color: var(--text); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: var(--bg); color: var(--bg); }
.btn--ghost:hover { background: rgba(251, 246, 238, .12); }
.btn--quiet { border-color: var(--border); }
.btn--off, .btn--off:hover { background: var(--border); border-color: var(--border); color: var(--text); cursor: not-allowed; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.price__now { color: var(--accent); font-weight: 800; }

/* Banner and header */
.banner { background: var(--text); color: var(--bg); text-align: center; font-size: .88rem; font-weight: 700; padding: 0 var(--gut); }
.banner a, .banner p { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; padding-block: 6px; }
.banner a:hover { text-decoration: underline; }
.top { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); background: var(--bg); border-bottom: 1px solid var(--border); view-transition-name: site-header; }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 6px; }
.logo { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font: 400 1.7rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.mark { width: 38px; height: 38px; flex: none; }
.spk { position: absolute; left: -2px; top: 0; width: 42px; height: 48px; pointer-events: none; }
.spk svg { position: absolute; width: 10px; fill: #E8B23A; opacity: 0; }
.spk svg:nth-child(1) { left: -4px; top: 4px; } .spk svg:nth-child(2) { left: 34px; top: 2px; width: 8px; } .spk svg:nth-child(3) { left: 36px; top: 32px; width: 7px; }
.top__acts { display: flex; align-items: center; gap: 4px; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.iconbtn:hover { background: rgba(59, 28, 51, .06); }
.iconbtn__n { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .7rem; }
.iconbtn__n[hidden], .bagbtn__n[hidden] { display: none; }
.menu summary span { font-size: .95rem; }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 120px); overflow: auto; padding: 8px var(--gut) 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px -18px rgba(59, 28, 51, .35); }
.menu__h { font-size: .875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.menu__panel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.menu__panel a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.menu__panel a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.bagbtn { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); font-weight: 800; text-decoration: none; }
.bagbtn__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8rem; }
.nav { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__visual { position: relative; justify-self: center; width: min(64vw, 270px); margin-top: 14px; }
.hs { display: block; width: 100%; height: auto; overflow: visible; }
.hs-lights circle:first-child { fill: #FFE08A; opacity: .45; }
.hs-lights circle + circle { fill: #FFD86B; stroke: #3B1C33; stroke-width: 1.5; }
.hs-tulip, .hs-flame path { transform-box: fill-box; transform-origin: 50% 100%; }
.hero__in { position: relative; display: grid; gap: 8px; padding-block: 32px 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__quick { margin-top: 4px; }
.hero__art img { width: 100%; }

/* Sections */
.section { padding-block: 40px; }
.section > .h2, .section > .sechead { margin-bottom: 18px; }
.sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.sechead .h2 { margin: 0; }
.phead { background: transparent; }
.phead__in { padding-block: 32px 0; }
.phead + .section { padding-top: 28px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 252, 247, .7); max-width: var(--measure); font-weight: 600; }
.note .ico { margin-top: 3px; }
.stack { display: grid; gap: 20px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cardrow { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46vw); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 18px; margin-inline: calc(var(--gut) * -1); scroll-padding-inline: var(--gut); }
.cardrow > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.card__media { position: relative; border-radius: 16px; overflow: hidden; background: var(--tint); }
.card__img { display: block; }
.card__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card__img .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.card__img .alt img { height: 100%; }
.swap .alt { opacity: 1; }
.dots { position: absolute; left: 50%; bottom: 8px; display: flex; gap: 5px; transform: translateX(-50%); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); opacity: .8; }
.dots i + i { opacity: .25; }
.swap .dots i { opacity: .25; } .swap .dots i + i { opacity: .8; }
.card__name { font: 700 .95rem/1.3 var(--sans); padding: 4px 4px 0; overflow-wrap: anywhere; }
.card__name a { display: flex; align-items: flex-start; min-height: 44px; text-decoration: none; }
.card__name a:hover { text-decoration: underline; }
.card__meta { font-size: .875rem; font-weight: 700; padding: 0 4px; }
.card .price { font-size: 1.3rem; }
.card .price__now { font-weight: 900; }
.card__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: auto; padding: 4px 4px 0; }
.card .btn--off { padding: 0 12px; font-size: .85rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 1.15rem; }
.price__was { color: var(--muted); font-size: .95rem; }
.save { background: var(--tint); border-radius: 999px; padding: 1px 10px; font-size: .875rem; font-weight: 800; }
.tl { display: flex; gap: 6px; align-items: flex-start; padding: 0 4px; font-size: .8rem; line-height: 1.35; color: var(--muted); }
.tl .ico { margin-top: 1px; }
.tl a { font-weight: 800; color: var(--text); }
.heart { position: absolute; right: 6px; top: 6px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 252, 247, .92); cursor: pointer; box-shadow: 0 2px 8px -2px rgba(59, 28, 51, .25); }
.heart .ico { stroke-width: 1.9; }
.heart[aria-pressed="true"] .ico { fill: var(--accent); }
.badge { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: .875rem; font-weight: 800; box-shadow: var(--shadow); }
.urgent { display: inline-block; background: var(--tint); border-radius: 999px; padding: 3px 10px; font-size: .875rem; font-weight: 800; }
.cd:not(:empty)::before { content: " · "; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; height: 100%; padding: 8px 8px 14px; border-radius: var(--r); background: var(--tint); text-decoration: none; box-shadow: var(--shadow); }
.tile picture { border-radius: 16px; overflow: hidden; }
.tile img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.tile__label { display: flex; flex-direction: column; align-self: flex-start; margin: 10px 2px 0; padding: 6px 12px 7px; border-radius: 14px; background: rgba(255, 255, 255, .9); color: var(--text); }
.tile__name { font: 400 1.35rem/1.1 var(--serif); }
.tile__n { font-size: .875rem; font-weight: 700; }

/* Build your box */
.box { padding-block: 40px; }
.box--full { padding-block: 36px 48px; }
.box__head { max-width: var(--measure); }
.box__grid { display: grid; gap: 22px; margin-top: 22px; }
.box__panel { display: grid; gap: 10px; align-content: start; justify-items: center; text-align: center; padding: 20px 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.boxart { position: relative; width: min(260px, 78%); aspect-ratio: 260 / 200; margin-top: 14px; }
.boxart__slots { position: absolute; left: 9%; right: 9%; top: 6%; height: 62%; display: flex; gap: 6%; z-index: 1; }
.boxart__slot { flex: 1; border-radius: 12px; border: 2px dashed rgba(59, 28, 51, .3); background: rgba(255, 255, 255, .6); overflow: hidden; }
.boxart__slot.full { border: 2px solid var(--text); }
.boxart__slot img { width: 100%; height: 100%; object-fit: cover; }
.boxart__front { position: absolute; left: 0; bottom: 0; width: 100%; z-index: 2; }
.boxart__bow { position: absolute; left: 31%; top: -16%; width: 38%; z-index: 3; fill: #F9D5DC; stroke: var(--text); stroke-width: 2.4; stroke-linejoin: round; opacity: 0; transform: scale(.4) rotate(-12deg); }
.boxart.done .boxart__bow { opacity: 1; transform: none; }
.box__count { font-weight: 800; font-size: 1.05rem; }
.box__bar { width: 100%; max-width: 280px; height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.box__bar span { display: block; height: 100%; background: var(--text); border-radius: inherit; transform: scaleX(0); transform-origin: left; }
.box__sum { max-width: 34ch; font-size: .98rem; }
.box__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.box__nojs { font-size: .9rem; }
.box__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.box__items.box__items--row { position: relative; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(140px, 40vw); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 14px; margin-inline: calc(var(--gut) * -1); }
.box__items--row li { scroll-snap-align: start; }
.pick { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 8px 8px 10px; border: 2px solid transparent; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.pick picture { border-radius: 14px; overflow: hidden; background: var(--tint); }
.pick img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pick__n { font-weight: 700; font-size: .92rem; line-height: 1.25; min-height: 2.5em; padding: 2px 2px 0; }
.pick__p { color: var(--accent); font-weight: 800; padding: 0 2px; }
.pick__s { margin-top: auto; display: grid; place-items: center; min-height: 40px; border-radius: 999px; border: 2px solid var(--text); font-weight: 800; font-size: .9rem; }
.pick__in { display: none; }
.pick[aria-pressed="true"] { border-color: var(--text); }
.pick[aria-pressed="true"] .pick__s { background: var(--text); color: var(--bg); }
.pick[aria-pressed="true"] .pick__add { display: none; }
.pick[aria-pressed="true"] .pick__in { display: inline; }
.box__more { margin-top: 6px; }

/* Product page */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .88rem; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-weight: 700; }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.pp { display: grid; gap: 18px; padding-bottom: 24px; }
.pp__gal { position: relative; min-width: 0; }
.gal__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); background: var(--tint); scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { scroll-snap-align: start; display: grid; place-items: center; }
.gal__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal__open img, .gal__slide video { width: 100%; height: min(calc((100vw - 32px) * 1.25), 46svh); object-fit: contain; }
.gal__slide video { object-fit: cover; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.gal__thumbs button { flex: none; width: 52px; height: 65px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--tint); cursor: pointer; display: grid; place-items: center; }
.gal__thumbs button[aria-current] { border-color: var(--text); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal__note { margin-top: 8px; font-size: .875rem; color: var(--muted); font-style: italic; }
.pp__gal > .badge { left: 12px; top: 12px; }
.pp__info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.pp__name { font: 400 clamp(2rem, 1.5rem + 2vw, 3rem)/1.04 var(--serif); }
.pp__tag { font-size: 1.05rem; }
@media (max-width: 767px) { .pp__tag { order: 1; } .pp__info > .tl, .pp__info > .ships { order: 0; } .pp__info > :not(.pp__name):not(.price):not(.pp__buy):not(.tl):not(.urgent) { order: 2; } .pp__tag { order: 1; } }
@media (max-width: 767px) and (max-height: 640px) { .gal__open img, .gal__slide video { height: 33svh; } }
.pp .price { font-size: 1.4rem; }
.pp__buy { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; }
.pp__buy .btn { flex: 1; min-height: 52px; }
.pp__buy .heart { position: static; flex: none; width: 52px; height: 52px; border: 1.5px solid var(--border); box-shadow: none; background: var(--surface); }
.pp .tl, .prod .tl { padding: 0; margin-top: -2px; font-size: .88rem; }
.ships { font-size: .88rem; font-weight: 700; color: var(--muted); }
.desc { max-width: var(--measure); }
.specs { display: grid; gap: 4px; }
.specs li::before { content: "· "; }
.ask { display: flex; align-items: center; gap: 8px; }
.ask a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.facts { display: grid; gap: 8px; width: 100%; max-width: var(--measure); padding: 12px 14px; border-radius: 16px; background: var(--bg); font-size: .95rem; }
.facts dt { font-weight: 800; }
.addons, .inb { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px; }
.addons__h { font: 800 .875rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.addons ul, .inb ul { display: grid; gap: 8px; }
.addon { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.addon picture { grid-row: span 2; border-radius: 10px; overflow: hidden; background: var(--tint); }
.addon img { width: 48px; height: 60px; object-fit: cover; }
.addon__name { display: flex; align-items: flex-end; min-height: 44px; font-weight: 700; font-size: .95rem; line-height: 1.25; text-decoration: none; }
.addon__name:hover { text-decoration: underline; }
.addon__price { font-size: .9rem; grid-column: 2; align-self: start; }
.addon .btn { grid-column: 3; grid-row: 1 / span 2; }
.inb li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.inb a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Lightbox */
.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(32, 14, 27, .97); color: var(--bg); }
.lb::backdrop { background: rgba(32, 14, 27, .9); }
.lb__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb__slide { scroll-snap-align: start; display: grid; place-items: center; height: 100dvh; overflow: auto; }
.lb__slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.lb__slide.zoomed { place-items: start; }
.lb__slide.zoomed img { width: 200%; height: auto; max-width: none; cursor: zoom-out; }
.lb__btn { position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--bg); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb__x { right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); }
.lb__prev, .lb__next { top: 50%; margin-top: -24px; }
.lb__prev { left: max(12px, env(safe-area-inset-left)); } .lb__next { right: max(12px, env(safe-area-inset-right)); }
.lb__count { position: fixed; left: max(16px, env(safe-area-inset-left)); top: max(22px, env(safe-area-inset-top)); font-weight: 800; }
.lb__hint { position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); text-align: center; font-size: .85rem; opacity: .85; }
.lb :focus-visible { outline-color: var(--tint); }

/* Bundle blocks (bundles page) */
.prod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "media head" "more more"; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.prod__media { grid-area: media; position: relative; align-self: start; border-radius: 16px; overflow: hidden; background: var(--tint); }
.prod__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.prod__head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.prod__name { font: 400 clamp(1.4rem, 1.1rem + 1vw, 2.4rem)/1.08 var(--serif); }
.prod__tag { font-size: .95rem; line-height: 1.45; }
.prod .pp__buy { flex-wrap: wrap; }
.prod .pp__buy .btn { min-height: 48px; padding: 0 16px; }
.prod .pp__buy .heart { width: 48px; height: 48px; }
.prod__more { grid-area: more; display: grid; gap: 12px; align-content: start; border-top: 1px dashed var(--border); padding-top: 14px; }
.incl { font-weight: 600; }
.incl__h { display: block; font-size: .875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.sum { font-size: .95rem; }

/* Stall, reels, contact strip */
.stall { padding-block: 8px 28px; }
.stall__card { display: grid; gap: 18px; padding: 24px; border-radius: 28px; background: var(--tint); }
.stall__art { width: 120px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.stall__art path:not([fill="none"]), .stall__art rect { stroke: none; }
.stall__meta { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 10px; }
.stall__meta .ico { margin-top: 4px; }
.reels { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 42vw); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 16px; margin-inline: calc(var(--gut) * -1); }
.reels li { scroll-snap-align: start; }
.reel { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.reel picture { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.reel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.reel__play { position: absolute; left: 50%; top: 40%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 252, 247, .9); box-shadow: var(--shadow); }
.reel__play::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent var(--text); }
.reel__t { font-weight: 700; font-size: .95rem; }
.reviews { margin-top: 16px; }
.reviews__list { display: grid; gap: 12px; margin-top: 12px; }
.reviews__list li { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.cstrip { padding-block: 8px 48px; }
.cstrip__in { display: grid; gap: 18px; padding: 28px 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); }
.cstrip p { margin-top: 8px; max-width: 52ch; }
.cstrip__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chips, contact, prose */
.more-cols { padding-top: 8px; }
.more-cols ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); text-decoration: none; font-weight: 700; }
.chip:hover { border-color: var(--text); }
.people { display: grid; gap: 14px; }
.person { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.person__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.person__no { font-size: 1.3rem; font-weight: 800; margin-top: 4px; }
.person__btns .btn { white-space: normal; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.prose { max-width: calc(var(--measure) + 2 * var(--gut)); }
.prose .h2 { margin: 28px 0 10px; font-size: 1.9rem; }
.prose .h2:first-child { margin-top: 0; }
.prose p { margin-top: 10px; }
.plist { display: grid; gap: 8px; list-style: disc; padding-left: 1.2em; }
.nf .phead__in { padding-block: 72px; }

/* Footer */
.foot { background: #7A1F3D; color: #FFF6F3; padding-bottom: env(safe-area-inset-bottom); font-size: .95rem; }
.foot .muted, .foot__h { color: #F7DCE4; }
.foot .mark { width: 44px; height: 44px; padding: 3px; border-radius: 50%; background: #FFF6F3; }
.foot :focus-visible { outline-color: #FFF6F3; }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-block: 40px 12px; }
.foot__brand { grid-column: 1 / -1; }
.foot__h { font-size: .875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #F7DCE4; margin-bottom: 4px; }
.foot ul a { display: inline-block; min-width: 44px; padding-block: 10px; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.foot ul a:hover { text-decoration: underline; }
.foot__brand p + p { margin-top: 6px; }
.logo--foot { min-height: 0; }
.foot__end { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; padding-block: 8px 24px; font-size: .9rem; border-top: 1px solid rgba(255, 246, 243, .2); }
.foot__end a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.foot__end span { margin-right: auto; }

/* Bag drawer */
.bag { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88dvh; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -10px 40px rgba(59, 28, 51, .2); }
.bag::backdrop { background: rgba(59, 28, 51, .38); }
.bag__in { display: flex; flex-direction: column; gap: 14px; padding: 18px var(--gut) calc(18px + env(safe-area-inset-bottom)); }
.bag__top { display: flex; align-items: center; justify-content: space-between; }
.bag__x { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.bag__x:hover { background: rgba(59, 28, 51, .07); }
.bag__lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.line img { width: 52px; height: 65px; object-fit: cover; border-radius: 10px; grid-row: span 2; background: var(--tint); }
.line__n { font-weight: 700; line-height: 1.25; font-size: .95rem; }
.line__p { text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 2px; grid-column: 2 / 4; }
.qty button { min-width: 44px; min-height: 44px; border: 1.5px solid var(--border); background: var(--bg); border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 1.1rem; }
.qty output { min-width: 28px; text-align: center; font-weight: 800; }
.qty .rm { margin-left: auto; border: 0; background: none; text-decoration: underline; font-size: .88rem; font-weight: 700; padding: 0 6px; }
.meter { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--text); border-radius: inherit; transform-origin: left; }
.gift { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--bg); }
.gift label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 700; min-height: 44px; }
.gift input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--text); flex: none; }
.gift small { display: block; font-weight: 600; color: var(--muted); }
.gift textarea { width: 100%; min-height: 72px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); font: inherit; background: var(--surface); color: var(--text); resize: vertical; }
.tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; }
.bag .btn { width: 100%; white-space: normal; text-align: center; }
.bag__alt { display: grid; gap: 8px; font-size: .92rem; }
.bag__alt ul { display: grid; gap: 4px; }
.bag__alt a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.bag__note { font-size: .88rem; color: var(--muted); }

/* Toast, sticky bar, flyer */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 16px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.sticky { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 252, 247, .97); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(59, 28, 51, .25); }
.sticky[hidden] { display: none; }
.sticky__n { font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky__p { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky .btn { min-height: 48px; padding: 0 18px; }
body:has(.sticky:not([hidden])) .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.flyer { position: fixed; z-index: 70; margin: 0; object-fit: cover; border-radius: 14px; pointer-events: none; box-shadow: var(--shadow); }

/* Larger screens */
@media (max-width: 419px) { .bagbtn__t, .menu summary span { display: none; } .logo { font-size: 1.5rem; } .pp__name { font-size: 1.75rem; } .pp__info { gap: 8px; } }
@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cardrow { grid-auto-columns: minmax(180px, 30vw); }
  .box__items.box__items--row { grid-auto-columns: minmax(160px, 26vw); }
  .reels { grid-auto-columns: minmax(180px, 30vw); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stall__card { grid-template-columns: auto 1fr; align-items: center; padding: 32px; gap: 28px; }
  .stall__art { width: 160px; }
  .box__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  html { font-size: 106.25%; }
  .section, .box { padding-block: 60px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 40px; }
  .pp__gal { position: sticky; top: 90px; }
  .gal__open img, .gal__slide video { height: auto; aspect-ratio: 4 / 5; }
  .prod { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "media head" "media more"; gap: 8px 32px; padding: 16px; }
  .prod__head { padding-top: 12px; }
  .prod__more { border-top: 0; padding-top: 6px; }
  .sticky { display: none; }
  body:has(.sticky:not([hidden])) .foot { padding-bottom: env(safe-area-inset-bottom); }
  .toast { bottom: 32px; }
  .bag { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); border-radius: 24px 0 0 24px; }
  .bag__in { padding: 24px; min-height: 100%; }
  .cstrip__in { grid-template-columns: 1fr auto; align-items: center; padding: 36px 40px; }
  .phead__in { padding-block: 44px 0; }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
  .foot__brand { grid-column: auto; }
  .crumbs [aria-current] { max-width: none; }
}
@media (min-width: 960px) {
  html { scroll-padding-top: 24px; }
  .top { position: static; }
  .top__bar { padding-block: 12px 2px; }
  .menu { display: none; }
  .nav { display: grid; gap: 2px; padding-bottom: 8px; }
  .nav__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 4px; }
  .nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; }
  .nav ul { gap: 0; }
  .nav a:hover { background: rgba(59, 28, 51, .06); }
  .nav a[aria-current="page"] { background: var(--text); color: var(--bg); }
  .nav__row--feel a { font-size: .88rem; }
  .nav__label { font-size: .875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
  .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 32px; padding-block: 52px 28px; }
  .hero__visual { width: 100%; max-width: 460px; justify-self: end; }
  .box__grid { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); align-items: start; gap: 28px; }
  .box__panel { position: sticky; top: 24px; padding: 28px 22px; }
  .box__items.box__items--row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; margin: 0; overflow: visible; padding: 0; }
  .reels { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles:has(> :nth-child(6)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cardrow { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .tiles:has(> :nth-child(6)) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tiles:has(> :nth-child(6)) .tile__name { font-size: 1.15rem; }
  .tiles:has(> :nth-child(6)) .tile__label { padding: 5px 9px 6px; }
  .prod { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
}
@media (min-width: 1440px) { html { font-size: 112.5%; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
::view-transition-group(site-header) { animation: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Motion: hero glow, lifts, add-to-bag pops, sparkle, fade-ups. All off for reduced motion. Transform and opacity only. */
@media (prefers-reduced-motion: no-preference) {
  body, .card, .pick, .tile, .phead, .box__panel, .cstrip__in, .btn { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
  /* Home hero: the sun sets, the sky blushes, then the room switches on. Plays once; small loops after. */
  .hs-sun { animation: hsSun 2.6s cubic-bezier(.45, 0, .3, 1) .2s backwards; }
  @keyframes hsSun { from { transform: translateY(-190px); } }
  .hs-dusk { animation: hsIn 2.8s ease .3s backwards; }
  @keyframes hsIn { from { opacity: 0; } }
  .hs-star { animation: hsIn .8s ease calc(2.5s + var(--i, 0) * .2s) backwards, hsTw 2.6s ease-in-out calc(3.4s + var(--i, 0) * .5s) infinite alternate; }
  @keyframes hsTw { to { opacity: .35; } }
  .hs-lights circle:first-child { animation: hsGlowIn .4s ease calc(2.5s + var(--i) * .13s) backwards; }
  @keyframes hsGlowIn { from { opacity: 0; } }
  .hs-lights circle + circle { animation: hsBulb .4s ease calc(2.5s + var(--i) * .13s) backwards; }
  @keyframes hsBulb { from { fill: #FFF6F3; } }
  .hs-lamp { animation: hsIn .7s ease 2.4s backwards, hsBreath 4s ease-in-out 3.2s infinite alternate; }
  @keyframes hsBreath { to { opacity: .7; } }
  .hs-flame { animation: hsIn .5s ease 3.2s backwards; }
  .hs-flame path { animation: hsFlick 1.4s ease-in-out 3.6s infinite alternate; }
  @keyframes hsFlick { 0% { transform: scale(1, 1) rotate(-2deg); } 100% { transform: scale(.92, 1.1) rotate(2deg); } }
  .hs-steam path { animation: hsSteam 3.2s linear infinite; }
  .hs-steam path + path { animation-delay: -1.6s; }
  @keyframes hsSteam { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
  .hs-cloud { animation: hsDrift 18s ease-in-out infinite alternate; }
  .hs-cloud--2 { animation-duration: 24s; animation-direction: alternate-reverse; }
  @keyframes hsDrift { to { transform: translateX(28px); } }
  .hs-tulip { animation: hsSway 5s ease-in-out infinite alternate; }
  @keyframes hsSway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

  /* Offers ribbon scrolls slowly; pauses when touched or hovered */
  .rib__track { animation: rib 38s linear infinite; }
  .rib:hover .rib__track, .rib:active .rib__track { animation-play-state: paused; }
  @keyframes rib { to { transform: translateX(-50%); } }

  /* Saving a piece: a little burst around the heart */
  .heart.pop[aria-pressed="true"]::after { animation: burst .55s ease-out; }
  @keyframes burst { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.15); } }

  /* Section titles: a hand-drawn squiggle draws itself once */
  .rv::after { clip-path: inset(0 100% 0 0); }
  .rv.in::after { clip-path: inset(0 0 0 0); transition: clip-path .7s cubic-bezier(.6, 0, .3, 1) .1s; }
  @media (hover: hover) {
    .card, .tile, .reel picture, .person, .pick { transition: transform .25s ease, box-shadow .25s ease, rotate .3s cubic-bezier(.3, 1.6, .5, 1); }
    .tile:hover { rotate: 0deg; }
    .card:hover, .tile:hover, .reel:hover picture, .person:hover, .pick:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(59, 28, 51, .06), 0 18px 36px -14px rgba(59, 28, 51, .28); }
    .has-alt:hover .alt { opacity: 1; }
    .has-alt:hover .dots i { opacity: .25; } .has-alt:hover .dots i + i { opacity: .8; }
  }
  .pop { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
  .boxart__slot.pop { animation: slot .4s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes slot { from { transform: translateY(14px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
  .spk.pop { animation: none; }
  .spk.pop svg { animation: twinkle .8s ease-out; }
  .spk.pop svg:nth-child(2) { animation-delay: .08s; } .spk.pop svg:nth-child(3) { animation-delay: .16s; }
  @keyframes twinkle { 0% { opacity: 0; transform: scale(.2) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(40deg); } 100% { opacity: 0; transform: scale(.6) rotate(90deg); } }
  .box__bar span { transition: transform .45s cubic-bezier(.3, .8, .4, 1); }
  .boxart__bow { transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
  .bag[open] { animation: rise .25s ease-out; }
  @keyframes rise { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media (forced-colors: active) { .btn { border: 2px solid ButtonText; } }

/* Search and the "everything we sell" block */
.sform { display: flex; gap: 8px; width: 100%; max-width: 620px; margin: 18px 0 6px; }
.sform__in { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border: 2px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.sform__in:focus { border-color: var(--text); outline: none; }
.sform__in::placeholder { color: var(--muted); opacity: 1; }
.sform__go { min-height: 52px; padding: 0 18px; }
.shop-all .tiles { margin-top: 18px; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 0 20px; }
.search-head { padding-bottom: 8px; }
.sfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sfilters .chip { cursor: pointer; font: inherit; font-weight: 700; color: var(--text); }
.sfilters .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip__n { font-weight: 600; margin-left: 4px; }
.scount { margin-top: 12px; font-weight: 800; }
.sgroup { padding-block: 22px; }
.sgroup .sechead { margin-bottom: 14px; }
.snone { padding: 28px 0 40px; max-width: var(--measure); }
.snone p { margin-top: 10px; }
.cstrip__btns { align-items: flex-start; }
.cstrip__nums { display: flex; flex-wrap: wrap; gap: 8px; }
.cstrip__nums .btn { white-space: nowrap; }
@media (max-width: 379px) { .iconbtn--saved { display: none; } .sform__go span { display: none; } }
@media (min-width: 768px) { .cstrip__btns { flex-direction: column; align-items: flex-end; } .cstrip__nums { justify-content: flex-end; } }
@media (min-width: 1100px) { .shop-all .tiles { grid-template-columns: repeat(9, minmax(0, 1fr)); } .shop-all .tile__name { font-size: 1.05rem; } .shop-all .tile__label { padding: 4px 8px 5px; } }

/* Home: bestsellers sit right under the hero */
.fav { padding-top: 20px; }

/* Recently viewed (home, filled from this browser) */
.seen { padding-block: 20px 0; }
.seen__list { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; position: relative; padding: 4px var(--gut) 12px; margin-inline: calc(var(--gut) * -1); scroll-snap-type: x mandatory; }
.seen__list li { scroll-snap-align: start; display: grid; }
.seen__list a { display: grid; gap: 4px; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.25; min-height: 44px; }
.seen__list img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--tint); }
.seen__list .price__now { font-size: 1rem; }

/* Bag: pieces that close the free-shipping gap */
.fill { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--tint); }
.fill__h { font: 800 .875rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.fill ul { display: grid; gap: 8px; }
.fill li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.fill img { width: 44px; height: 55px; object-fit: cover; border-radius: 8px; background: var(--surface); }
.fill li > a:not(.btn) { font-weight: 700; font-size: .92rem; line-height: 1.25; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.fill .price__now { font-size: 1rem; }
.bag__alt summary { cursor: pointer; font-weight: 700; padding-block: 11px; text-decoration: underline; text-underline-offset: 3px; }

/* Saved: share a list */
.share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.share p { flex: 1 1 260px; }

/* Offers ribbon: a tilted strip of real offers with scalloped trim */
.rib { overflow: hidden; padding-block: 22px 8px; }
.rib__band { position: relative; width: 112%; margin-left: -6%; rotate: -1.6deg; background: #F3B6C6; color: #4E1229; font-weight: 800; }
.rib__band::before, .rib__band::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: radial-gradient(circle at 8px 7px, #F3B6C6 6px, transparent 6.5px) 0 0 / 16px 7px repeat-x; }
.rib__band::before { bottom: 100%; }
.rib__band::after { top: 100%; transform: scaleY(-1); }
.rib__track { display: flex; width: max-content; }
.rib__row { display: flex; flex: none; }
.rib__row li { display: flex; align-items: center; gap: 10px; padding: 12px 18px; white-space: nowrap; font-size: .98rem; }
.rib__h { width: 16px; height: 16px; fill: #C2185B; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .rib__band { width: 100%; margin-left: 0; rotate: 0deg; }
  .rib__track { width: auto; justify-content: center; }
  .rib__row { flex-wrap: wrap; justify-content: center; }
  .rib__row[aria-hidden] { display: none; }
}

/* Section titles on home get a hand-drawn squiggle in the page accent */
.hero ~ .section .h2::after, .hero ~ .box .h2::after { content: ""; display: block; width: 92px; height: 12px; margin-top: 8px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 12'%3E%3Cpath d='M2 7c8-6 14 4 22 0s14-6 22 0 14 4 22 0 14-5 22-1' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 12'%3E%3Cpath d='M2 7c8-6 14 4 22 0s14-6 22 0 14 4 22 0 14-5 22-1' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; }

/* Collection and feeling tiles sit like stickers, slightly askew */
.tiles > li:nth-child(odd) .tile { rotate: -1.4deg; }
.tiles > li:nth-child(even) .tile { rotate: 1.2deg; }
.tiles > li:nth-child(3n) .tile { rotate: -.6deg; }

/* Heart burst dots (animated only when motion is allowed) */
.heart::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; opacity: 0; pointer-events: none; box-shadow: 0 -24px 0 var(--accent), 21px -12px 0 #F7C25E, 21px 12px 0 var(--accent), 0 24px 0 #F7C25E, -21px 12px 0 var(--accent), -21px -12px 0 #F7C25E; }

/* Footer: scalloped top edge */
.foot { position: relative; margin-top: 14px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; background: radial-gradient(circle at 10px 10px, #7A1F3D 9px, transparent 9.5px) 0 0 / 20px 10px repeat-x; }
.pp__buy .heart { position: relative; }
