/* The Cookie Club: the shop in the new look. The shop's front page, a product, and the pages for each
   occasion (src/shop/render.mjs and src/shop/collections.mjs). Loaded after fresh.css. */

/* ------------------------------ where you are ------------------------------ */
.f-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px; padding: 0; font-size: 0.88rem; font-weight: 800; color: var(--muted); }
.f-crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.45; }
.f-crumbs a { color: var(--muted); text-decoration: none; }
.chrome-new .f-crumbs a { color: var(--muted); }
.chrome-new .f-crumbs a:hover { color: var(--accent-ink); }

/* ------------------------------ the shop's front page ------------------------------ */
.s-hero { background: radial-gradient(50% 80% at 85% 20%, var(--field-glow) 0%, transparent 70%), var(--field); padding: calc(var(--head-h) + clamp(1.5rem, 3.5vw, 3rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.s-hero h1 { margin: 0; color: var(--field-head); font-size: clamp(3rem, 7.4vw, 6rem); line-height: 0.92; max-width: 8.6em; }
.s-hero-sub { margin: clamp(0.9rem, 2vw, 1.4rem) 0 0; max-width: 44ch; font-size: clamp(1.08rem, 1.5vw, 1.25rem); font-weight: 700; line-height: 1.45; color: var(--field-ink); }
.chrome-new .s-hero .f-crumbs, .chrome-new .s-hero .f-crumbs a { color: var(--field-ink); }
.s-hero .f-crumbs ol { opacity: 0.8; }
.s-cats { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
/* On the sand field, tiles are the page's cream. */
.s-cats li:nth-child(n) .f-tile { --tile: var(--page); }
.s-cats .f-tile { min-height: 180px; box-shadow: 0 16px 30px -22px rgba(var(--shade-deep), 0.6); }
.s-cats .f-tile img { width: 50%; right: -18px; top: 50%; margin-top: -25%; }
.s-cats .f-tile strong { max-width: 8.5ch; }
.s-hero-gift, .c-hero-gift { margin: 14px 0 0; font-weight: 800; }
.chrome-new .s-hero .s-hero-gift .f-link, .chrome-new .c-hero .c-hero-gift .f-link { color: var(--field-ink); border-color: rgba(91, 65, 43, 0.3); }
.s-hero-drip { --drip: var(--field); }
.s-hero-drip + .f-sec { padding-top: clamp(6rem, 10vw, 8rem); }
.s-cat { scroll-margin-top: 84px; }
.s-rounds { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 26px 18px; }
@media (max-width: 760px) { .s-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .s-cats .f-tile { min-height: 148px; padding: 14px; } .s-cats .f-tile strong { font-size: 1.1rem; max-width: 11ch; } .s-cats .f-tile img { width: 62%; right: -16px; top: -16px; margin-top: 0; } }

/* ------------------------------ a product ------------------------------ */
.p-page { padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(3.5rem, 8vw, 6rem); }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: clamp(1.5rem, 4.5vw, 4.5rem); }
.p-media { position: sticky; top: calc(var(--head-h) + 20px); }
.pg { display: grid; gap: 14px; }
.pg--many { grid-template-columns: 84px minmax(0, 1fr); }
.chrome-new .pg-thumbs { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; margin: 0; }
.chrome-new .pg-thumbs button { display: block; width: 100%; height: auto; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--soft); cursor: pointer; opacity: 0.62; box-shadow: none; transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.chrome-new .pg-thumbs button[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--mark); }
.chrome-new .pg-thumbs button:hover { opacity: 1; }
.chrome-new .pg-thumbs button:active { transform: scale(0.96); }
.chrome-new .pg-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.chrome-new .pg-main { aspect-ratio: 1; border: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--soft); box-shadow: none; }
.chrome-new .pg-main img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; background: none; }
.chrome-new .cookie-preview-wrap { margin-bottom: 14px; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.p-panel h1 { margin: 0 0 0.3em; font-size: clamp(2.3rem, 4.3vw, 3.7rem); line-height: 0.98; }
.p-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 0.9rem; }
.chrome-new .p-price .price-from { margin: 0; font-size: 1rem; font-weight: 800; color: var(--muted); }
.chrome-new .p-price .price-from strong { margin-left: 4px; font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--accent-ink); }
.p-price-note { padding: 6px 13px; border-radius: 999px; background: var(--soft-2); color: var(--text); font-weight: 800; font-size: 0.9rem; line-height: 1; }
.p-summary { margin: 0 0 1.5rem; max-width: 46ch; font-size: 1.14rem; line-height: 1.55; }

.p-form { display: grid; gap: 18px; margin-bottom: 18px; }
.p-form:empty, .p-one { display: none; }
.p-opt { min-width: 0; margin: 0; padding: 0; border: 0; }
.p-opt[hidden] { display: none; }
.p-opt > legend { margin-bottom: 10px; padding: 0; font-weight: 900; font-size: 1.02rem; color: var(--text); }
.p-opt .opt { margin-left: 6px; font-weight: 700; font-size: 0.84rem; color: var(--muted); }
.p-opt .req { color: var(--accent-ink); }
.p-help { margin: -4px 0 10px; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.p-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.p-pill { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.p-pill > input[type='radio'], .p-pill > input[type='checkbox'] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.p-pill > span { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; line-height: 1.15; color: var(--text); transition: box-shadow 0.15s ease, background-color 0.15s ease, transform 0.15s ease; }
.p-pill small { font-weight: 800; font-size: 0.92rem; color: var(--accent-deep); }
.p-pill .dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(91, 65, 43, 0.15); }
.p-pill > input:checked + span { background: var(--soft); box-shadow: inset 0 0 0 3px var(--mark); }
.p-pill > input:focus-visible + span { outline: 3px solid var(--mark); outline-offset: 3px; }
.p-pill:active > span { transform: scale(0.97); }
.p-pill.qty-custom input[type='number'] { width: 84px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--page); font: inherit; font-weight: 800; color: var(--text); position: relative; z-index: 1; }
.chrome-new .p-form textarea, .chrome-new .p-form input[type='text'], .chrome-new .p-form select { display: block; width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--page); font: inherit; color: var(--text); resize: vertical; box-shadow: none; }
.chrome-new .p-form textarea:focus, .chrome-new .p-form input[type='text']:focus, .chrome-new .p-form select:focus { border-color: var(--mark); outline: none; }
.chrome-new .p-form .counter { display: block; margin-top: 4px; text-align: right; font-size: 0.8rem; color: var(--muted); }
.p-upload { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--soft); font-weight: 700; font-size: 0.95rem; }
.p-upload .f-ico { width: 34px; height: 34px; }
/* Design the cookie on the website instead of sending a file (shown by configurator.js when the design editor is open). */
.p-design { margin-top: 10px; }
.p-design[hidden], .p-design-new[hidden], .p-design-have[hidden] { display: none; }
.p-design-new, .p-design-have { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.p-design p { flex: 1 1 200px; display: grid; gap: 2px; margin: 0; min-width: 0; }
.p-design p strong { font-weight: 900; color: var(--text); }
.p-design p span { font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.p-design-have img { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.p-design-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; font-size: 0.92rem; font-weight: 800; }
.p-design-acts button { padding: 0; border: 0; background: none; font: inherit; color: var(--text); text-decoration: underline; text-decoration-color: var(--tint); cursor: pointer; min-height: 32px; }
.p-design-acts a { display: inline-flex; align-items: center; min-height: 32px; }
/* An extra: a card that opens for the words. */
.p-extra details { border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow 0.2s ease; }
.p-extra details[open] { box-shadow: inset 0 0 0 3px var(--mark); }
.p-extra summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--r-md); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.p-extra summary::-webkit-details-marker { display: none; }
.p-extra summary .f-ico { width: 42px; height: 42px; }
.p-extra-what { flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.p-extra-what strong { font-weight: 900; color: var(--text); }
.p-extra-what small { font-weight: 800; font-size: 0.88rem; color: var(--accent-ink); }
.p-extra-plus { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(var(--mark), var(--mark)) center / 14px 3px no-repeat, linear-gradient(var(--mark), var(--mark)) center / 3px 14px no-repeat, var(--plus-bg, var(--soft)); transition: transform 0.3s var(--ease-out); }
.p-extra details[open] .p-extra-plus { transform: rotate(135deg); }
.p-extra-body { padding: 0 16px 14px; }
.p-extra-body .p-help { margin: 0 0 10px; }

.p-buy { display: grid; gap: 12px; padding: 18px 18px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.p-lines { display: none; font-size: 0.95rem; font-weight: 700; }
.p-lines:has(#pb-lines li) { display: block; }
.chrome-new .p-lines .pb-row, .chrome-new .p-lines .pb-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
.chrome-new .p-lines .pb-lines { list-style: none; margin: 0; padding: 0; }
.p-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.p-total { margin: 0; display: flex; flex-direction: column; line-height: 1.05; }
.p-total span { font-size: 0.84rem; font-weight: 800; color: var(--muted); }
.p-total strong { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.p-total small { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.p-total small:empty { display: none; }
.p-buy-row .f-btn { flex: 1 1 auto; max-width: 360px; margin-bottom: 6px; }
.p-added { margin: 0; padding: 12px 15px; border-radius: 16px; background: var(--soft-3); font-weight: 800; color: var(--text); }
.chrome-new .p-added a { color: var(--accent-deep); }
.p-nudge { margin: 0; font-size: 0.93rem; font-weight: 800; color: var(--accent-deep); }
.p-nudge:empty { display: none; }
.chrome-new .p-buy .pb-errors { list-style: none; margin: 0; padding: 12px 15px; border: 0; border-radius: 16px; background: #ffe2e4; font-weight: 800; color: #8a1525; }
.chrome-new .p-buy .pb-errors[hidden] { display: none; }
.p-instead { margin: 0; font-size: 0.92rem; color: var(--muted); }
.p-textbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.p-textbtn:hover { text-decoration-color: var(--mark); }

.p-promises { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.p-promises li { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--soft); font-weight: 800; font-size: 0.92rem; line-height: 1.25; color: var(--text); }
.p-promises .f-ico { width: 36px; height: 36px; }

.p-when { margin-bottom: 18px; padding: 18px; border-radius: var(--r-lg); background: var(--soft-2); }
.chrome-new .p-when h2 { margin: 0 0 10px; color: var(--text); font-family: var(--font-body); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; }
.p-when-form label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.95rem; }
.p-when-row { display: flex; gap: 8px; }
.chrome-new .p-when-row input { width: 108px; padding: 9px 16px; border: 2px solid var(--panel); border-radius: 999px; background: #fff; font: inherit; font-weight: 800; color: var(--text); }
.chrome-new .p-when-row input:focus { border-color: var(--text); outline: none; }
.chrome-new .p-when .pp-when-err { margin: 8px 0 0; font-weight: 800; font-size: 0.92rem; color: #8a1525; }
.chrome-new .p-when .pp-when-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.chrome-new .p-when .pp-when-list:empty { display: none; }
.chrome-new .p-when .pp-way { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 10px 14px; border: 0; border-radius: 16px; background: #fff; font-size: 0.95rem; }
.chrome-new .p-when .pp-way-name { font-weight: 800; color: var(--text); }
.chrome-new .p-when .pp-way-name small { margin-left: 4px; font-weight: 800; color: var(--accent-ink); }
.chrome-new .p-when .pp-way.is-off { opacity: 0.65; }
/* The date they gave the gift finder, and whether this one can make it. */
.chrome-new .p-when .pp-gift { background: var(--accent); color: var(--on-accent); }
.chrome-new .p-when .pp-gift .pp-way-name, .chrome-new .p-when .pp-gift strong, .chrome-new .p-when .pp-gift a { color: var(--on-accent); }
.chrome-new .p-when .pp-gift a { margin-left: 4px; font-weight: 800; text-decoration-color: rgba(255, 249, 243, 0.6); }
.chrome-new .p-when .pp-gift.is-late { background: #fff; color: var(--text-soft); box-shadow: inset 0 0 0 2px var(--line); }
.chrome-new .p-when .pp-gift.is-late .pp-way-name, .chrome-new .p-when .pp-gift.is-late strong { color: var(--text); }
.chrome-new .p-when .pp-gift.is-late a { color: var(--accent-ink); text-decoration-color: var(--line); }
.chrome-new .p-when .pp-when-note { margin: 10px 0 0; font-size: 0.84rem; color: var(--muted); }
.p-when.is-busy .pp-when-list { opacity: 0.5; }

.p-more { margin-top: 4px; }
.p-more, .p-promises, .p-know { --accent-ink: var(--accent-deep); }
.p-more details { background: var(--soft); }
.p-more details[open] { box-shadow: none; }
.p-more summary::after { --plus-bg: #fff; }
.p-prose > :first-child { margin-top: 0; }
.p-prose ul { padding-left: 1.2rem; }
.p-specs { margin: 0; }
.p-specs div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 2px dashed var(--line); }
.p-specs div:last-child { border-bottom: 0; }
.p-specs dt { font-weight: 800; color: var(--text); }
.p-specs dd { margin: 0; }
.p-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.p-tags a { display: block; padding: 0.6em 1em; border-radius: 999px; background: #fff; font-weight: 800; font-size: 0.93rem; line-height: 1; color: var(--text); text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.chrome-new .p-tags a:hover { background: var(--accent); color: var(--on-accent); }
.p-know-in { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); align-items: start; gap: clamp(1.2rem, 4vw, 3.5rem); }
.p-know-in h2 { margin: 0; position: sticky; top: calc(var(--head-h) + 24px); }
.p-know .f-faq details { background: var(--soft); }

/* On a phone, the price and button stay in reach. */
.chrome-new .pp-sticky { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; padding: 8px 8px 12px 22px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--lift); }
.chrome-new .pp-sticky[hidden] { display: none; }
.chrome-new .pp-sticky-in { width: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; }
.chrome-new .pp-sticky-what { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.chrome-new .pp-sticky-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.84rem; font-weight: 800; color: var(--muted); }
.chrome-new .pp-sticky strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--text); }
.chrome-new.has-pp-sticky .f-preview { bottom: 86px; }

@media (max-width: 900px) {
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .p-media { position: static; }
  .pg--many { grid-template-columns: minmax(0, 1fr); }
  .chrome-new .pg-thumbs { order: 2; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; margin: -6px; }
  .pg-thumbs::-webkit-scrollbar { display: none; }
  .chrome-new .pg-thumbs button { flex: none; width: 72px; border-radius: 16px; }
  .chrome-new .pg-main { border-radius: var(--r-lg); }
  .p-know-in { grid-template-columns: minmax(0, 1fr); }
  .p-know-in h2 { position: static; }
}
@media (max-width: 520px) {
  .p-buy-row { flex-wrap: wrap; }
  .p-buy-row .f-btn { flex-basis: 100%; max-width: none; }
  .p-total { flex-direction: row; align-items: baseline; gap: 10px; }
  .p-promises { gap: 8px; }
  .p-promises li { padding: 11px; font-size: 0.84rem; }
  .p-specs div { grid-template-columns: 6.5rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .p-pill > span, .p-extra-plus, .chrome-new .pg-thumbs button { transition: none; } }

/* ------------------------------ a page for an occasion ------------------------------ */
.c-hero { position: relative; overflow: hidden; background: radial-gradient(46% 70% at 80% 40%, var(--field-glow) 0%, transparent 72%), var(--field); padding: calc(var(--head-h) + clamp(1.5rem, 3.5vw, 3rem)) 0 clamp(3rem, 6vw, 5rem); }
.c-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.chrome-new .c-hero .f-crumbs, .chrome-new .c-hero .f-crumbs a { color: var(--field-ink); }
.c-hero .f-crumbs ol { opacity: 0.8; }
.c-hero h1 { margin: 0; color: var(--field-head); font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 0.92; max-width: 9em; }
.c-hero-sub { margin: clamp(1rem, 2vw, 1.5rem) 0 0; max-width: 42ch; font-size: clamp(1.08rem, 1.5vw, 1.24rem); font-weight: 700; line-height: 1.5; color: var(--field-ink); }
.c-hero-when { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 1.1rem; padding: 8px 15px 8px 9px; border-radius: 999px; background: var(--panel); color: var(--text); font-weight: 900; font-size: 0.95rem; line-height: 1; transform: rotate(-2deg); }
.c-hero-when .f-ico { width: 28px; height: 28px; color: var(--text); --i2: #fff; }
.c-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(1.4rem, 3vw, 2rem); }
.c-collage { position: relative; aspect-ratio: 1 / 0.82; }
.c-collage img, .c-collage .c-blank { position: absolute; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--soft); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.55), 0 30px 40px -24px rgba(var(--shade-deep), 0.6); }
.c-collage > :nth-child(1) { width: 62%; left: 19%; top: 12%; z-index: 2; }
.c-collage > :nth-child(2) { width: 36%; left: 0; top: 0; transform: rotate(-8deg); }
.c-collage > :nth-child(3) { width: 38%; right: 0; bottom: 0; transform: rotate(9deg); z-index: 3; }
.c-collage--1 > :nth-child(1) { width: 78%; left: 11%; top: 2%; }
.c-collage--2 > :nth-child(1) { left: 30%; }
.c-collage--2 > :nth-child(2) { width: 46%; top: 44%; z-index: 3; }
.c-collage .f-stamp { position: absolute; right: 4%; top: 0; z-index: 4; width: clamp(96px, 11vw, 138px); }
.c-hero-drip { --drip: var(--field); }
.c-facts { padding: clamp(5.5rem, 9vw, 7.5rem) 0 0; }
.c-facts .f-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-products { padding-top: clamp(2.5rem, 5vw, 4rem); }
.c-count { margin: 0; font-weight: 800; color: var(--muted); }
.f-more { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; aspect-ratio: 1; padding: clamp(16px, 2vw, 26px); border-radius: var(--r-lg); background: var(--accent); color: var(--on-accent); text-decoration: none; overflow: hidden; isolation: isolate; }
.chrome-new a.f-more { color: var(--on-accent); }
.f-more::before { content: ''; position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; right: -30%; top: -30%; border-radius: 50%; background: var(--pop-2); }
.f-more strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 2.1rem); line-height: 1; max-width: 8ch; }
.f-more span { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.f-more span svg { transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .f-more:hover span svg { transform: translateX(5px); } }
@media (max-width: 700px) { .f-more { border-radius: var(--r-md); } }
.c-none { max-width: 46ch; font-size: 1.2rem; font-weight: 700; }
.c-custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r-xl); background: var(--panel); color: var(--text); }
.chrome-new .c-custom h2 { margin: 0; color: var(--text); font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 12ch; }
.c-custom p { margin: 1rem 0 0; max-width: 38ch; font-size: 1.12rem; font-weight: 700; line-height: 1.5; }
.chrome-new .c-custom p a { color: var(--text); text-decoration-color: rgba(91, 65, 43, 0.35); }
.c-custom-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 1.6rem; }
.chrome-new .c-custom .f-link { color: var(--text); border-color: rgba(91, 65, 43, 0.3); }
.c-custom-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.c-custom-photos li:nth-child(2) { transform: translateY(18px); }
.c-custom-photos--1 { grid-template-columns: minmax(0, 300px); justify-content: center; }
.c-custom-photos--1 li { transform: rotate(4deg); }
.c-custom-photos--2 { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; }
.c-custom-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
.c-about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.c-about h2 { margin: 0 0 1rem; }
.c-about-text p { max-width: 54ch; font-size: 1.08rem; line-height: 1.65; }
.c-more .f-rounds { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 26px 18px; }
.c-more-row + .c-more-row { margin-top: clamp(2rem, 4vw, 3rem); }
.c-more-h { margin: 0 0 1.2rem; font: 900 1.15rem/1.2 var(--font-body); color: var(--text); }
.c-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.c-chips a { display: block; padding: 0.8em 1.2em; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; line-height: 1; color: var(--text); text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.chrome-new .c-chips a:hover { background: var(--accent); color: var(--on-accent); }
.c-hub-sec .f-rounds { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 34px 22px; }
.c-hub-sec .f-round { font-size: 1.08rem; }
.c-hub-sec .f-round img, .c-hub-sec .f-round .f-round-blank { max-width: 190px; box-shadow: 0 0 0 8px var(--ring, var(--soft)); }
.c-hub-sec .f-round small { font-weight: 700; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 860px) {
  .c-hero-in, .c-custom, .c-about { grid-template-columns: minmax(0, 1fr); }
  .c-collage { max-width: 420px; margin-inline: auto; width: 100%; }
  .c-facts .f-facts { grid-template-columns: minmax(0, 1fr); }
  .c-facts .f-fact { flex-direction: row; align-items: center; }
  .c-hub-sec .f-rounds { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 24px 14px; }
  .c-hub-sec .f-round { font-size: 0.95rem; }
}

/* ------------------------------ search results (src/shop/search.mjs) ------------------------------ */
.s-find h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 13em; }
.s-find .s-hero-sub a { color: inherit; font-weight: 900; text-decoration-color: var(--accent); }
.s-find-form { position: relative; display: flex; align-items: center; gap: 10px; max-width: 660px; margin-top: clamp(1.2rem, 2.6vw, 1.9rem); }
.s-find-ico { position: absolute; left: 20px; top: 50%; display: grid; transform: translateY(-50%); color: var(--accent-ink); pointer-events: none; }
.s-find-form input { flex: 1; min-width: 0; height: 60px; margin: 0; padding: 0 20px 0 54px; border: 0; border-radius: 999px; background: #fff; color: var(--text); font: 800 1.1rem/1.2 var(--font-body); box-shadow: 0 16px 30px -22px rgba(var(--shade-deep), 0.6); -webkit-appearance: none; appearance: none; }
.s-find-form input::placeholder { color: var(--muted); opacity: 1; font-weight: 700; }
.s-find-form input:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; border-radius: 999px; }
.s-find-form .f-btn { flex: none; }
.s-find-sec { padding-block: clamp(1.1rem, 2.4vw, 1.75rem); }
.s-find-sec:last-of-type { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.s-find-h { margin: 0 0 16px; font: 900 1.2rem/1.2 var(--font-body); letter-spacing: -0.01em; color: var(--text); }
.s-find-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.s-find-chips a { display: block; padding: 0.85em 1.25em; border-radius: 999px; background: var(--soft); color: var(--text); font-weight: 800; line-height: 1; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.s-find-chips a:hover { background: var(--accent); color: var(--on-accent); }
.chrome-new .s-find-chips a:focus-visible { border-radius: 999px; }
.s-find-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.s-find-pages a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; height: 100%; padding: 18px 22px; border-radius: var(--r-md); background: var(--soft); text-decoration: none; --accent-ink: var(--accent-deep); transition: background-color 0.15s ease; }
.s-find-pages a:hover { background: var(--soft-2); }
.s-find-pages strong { font-weight: 900; font-size: 1.08rem; line-height: 1.25; color: var(--text); }
.s-find-pages span { grid-column: 1; font-weight: 700; font-size: 0.95rem; line-height: 1.4; color: var(--text-soft); }
.s-find-pages svg { grid-column: 2; grid-row: 1 / span 2; color: var(--accent-ink); }
.s-find-narrow > * { max-width: 820px; }
/* One of the site's own answers, in full, with "This helped" under it (styled in fresh.css). */
.s-answers { display: grid; gap: 14px; max-width: 860px; }
.s-answer { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.s-answer h2 { margin: 0 0 12px; font: 900 clamp(1.2rem, 2.2vw, 1.45rem)/1.25 var(--font-body); letter-spacing: -0.01em; color: var(--text); }
.s-answer-a { max-width: 68ch; font-size: 1.05rem; line-height: 1.6; }
.s-answer-a p { margin: 0; }
.s-answer-a a { font-weight: 800; }
.s-answer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 20px 0 0; }
.s-find-custom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px; padding: clamp(1.5rem, 3.6vw, 2.6rem); border-radius: var(--r-lg); background: var(--accent); color: var(--on-accent); }
.s-find-custom h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--on-accent); }
.s-find-custom p { margin: 10px 0 0; max-width: 46ch; font-weight: 700; line-height: 1.45; }
.s-find-custom .s-find-custom-go { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (max-width: 560px) {
  .s-find-form { flex-wrap: wrap; }
  .s-find-form input { flex-basis: 100%; height: 56px; }
  .s-find-ico { top: 28px; }
  .s-find-form .f-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .s-find-chips a, .s-find-pages a { transition: none; } }

/* ------------------------------ the gift finder (src/shop/gift-finder.mjs) ------------------------------ */
/* Who, when, where: one white card on the page's field of colour, then only what can arrive in time. */
.g-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 12em; }
.g-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: 'who when where go' '. . pick pick'; align-items: end; gap: 10px 14px; max-width: 1080px; margin-top: clamp(1.4rem, 3vw, 2.2rem); padding: 18px 18px 14px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 22px 44px -28px rgba(var(--shade-deep), 0.6); }
.g-form:not(:has(.g-who)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: 'when where go' '. pick pick'; }
.g-field { display: grid; gap: 7px; min-width: 0; margin: 0; }
.g-who { grid-area: who; }
.g-when { grid-area: when; }
.g-where { grid-area: where; }
.g-pick { grid-area: pick; margin: 0; }
.g-go { grid-area: go; margin: 0; }
.g-field > label { font-weight: 900; font-size: 0.95rem; line-height: 1.2; color: var(--text); }
.g-form select, .g-form input[type='date'], .g-form input[type='text'] { width: 100%; min-width: 0; height: 56px; margin: 0; padding: 0 16px; border: 2px solid var(--field-line); border-radius: 16px; background: #fff; color: var(--text); font: 800 1.02rem/1.2 var(--font-body); -webkit-appearance: none; appearance: none; }
.g-form select { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235b412b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat; }
.g-form input::placeholder { color: var(--muted); opacity: 1; font-weight: 700; }
.g-form input:disabled { background: var(--soft); border-color: var(--line); color: var(--muted); }
.chrome-new .g-form select:focus-visible, .chrome-new .g-form input:focus-visible { outline: 3px solid var(--mark); outline-offset: 1px; border-radius: 16px; }
.g-pickup { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; font-weight: 700; font-size: 0.95rem; color: var(--text-soft); cursor: pointer; }
.g-pickup input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.g-go .f-btn { height: 56px; padding-block: 0; white-space: nowrap; }
.g-errors { max-width: 1080px; margin-top: 16px; padding: 12px 18px; border-radius: 16px; background: #fff; border: 2px solid #b4432f; color: #8a2c1c; font-weight: 800; }
.g-errors ul { margin: 0; padding-left: 1.1em; }
.g-sec { padding-block: clamp(1.1rem, 2.4vw, 1.75rem); }
.g-sec:last-of-type { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.g-h { margin: 0; max-width: 20em; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.g-sub { margin: 12px 0 0; max-width: 64ch; font-weight: 700; line-height: 1.5; }
.g-grid { margin-top: clamp(1.2rem, 2.6vw, 1.9rem); }
.g-grid .f-card-tag { max-width: calc(100% - 24px); line-height: 1.15; }
/* When it gets there is the point of the page: that label is the strong colour. */
.g-sec--fits .f-card-tag { background: var(--accent); color: var(--on-accent); }
.g-grid--late .f-card-pic img { opacity: 0.82; }
.g-late { padding: 2px 20px; border-radius: var(--r-md); background: var(--soft); }
.g-late summary { padding: 16px 0; font-weight: 900; color: var(--text); cursor: pointer; }
.chrome-new .g-late summary:focus-visible { border-radius: 12px; }
.g-late[open] { padding-bottom: 22px; }
.g-late .g-grid { margin-top: 6px; }
.g-alt { margin: 20px 0 0; }
.g-facts { margin: 0; }
@media (max-width: 900px) {
  .g-form, .g-form:not(:has(.g-who)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'who who' 'when where' 'pick pick' 'go go'; }
  .g-form:not(:has(.g-who)) { grid-template-areas: 'when where' 'pick pick' 'go go'; }
  .g-go .f-btn { width: 100%; }
}
@media (max-width: 460px) {
  .g-form, .g-form:not(:has(.g-who)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'who' 'when' 'where' 'pick' 'go'; padding: 14px; }
  .g-form:not(:has(.g-who)) { grid-template-areas: 'when' 'where' 'pick' 'go'; }
}
