/* Pearl & Paper: website shop only (loaded by shop.html after styles.css) */

/* ---- Website shop ---- */
.basket-btn { gap: 0.4rem; }
.basket-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.basket-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 999px; background: var(--paper); color: var(--blush-ink); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.basket-count.bump { animation: bump 420ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 420px) { .basket-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Square photo frame. A photo positioned on the boss page carries its own size and offset. */
/* No saved position = the whole photo, centred on a soft blush background */
.ph { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--blush-soft); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ph img.cropped { inset: auto; max-width: none; object-fit: fill; }
.ph-empty { display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--gold); }

/* Shop listing: centred title, quick category buttons, a Filter / Sort bar,
   a result count, then a clean grid of designs */
.shop-wrap { padding-top: 1.8rem; }
.shop-head { text-align: center; margin-bottom: 1.2rem; }
.shop-head h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); margin: 0; }
.shop-tagline { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.92rem; text-wrap: balance; }
/* Phones: "Made to order in Horsham" on its own line, so no separator hangs at a line end */
@media (max-width: 495.98px) { .shop-tagline .tl-sep { display: none; } .shop-tagline > .nowrap:first-child { display: block; } }
.shop-cats { display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem 1.3rem; padding: 0.1rem 1rem; min-height: 48px; }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats.none { display: none; }
/* Centred when they fit, scrollable from the first one when they don't */
.shop-cats > :first-child { margin-left: auto; }
.shop-cats > :last-child { margin-right: auto; }
.shop-cats button { flex: none; min-height: 48px; padding: 0 1.25rem; border: 1px solid var(--ink); border-radius: 0.35rem; background: transparent; color: var(--ink); font-size: 0.95rem; white-space: nowrap; transition: background 160ms, color 160ms; }
.shop-cats button:hover { background: var(--deep); }
.shop-cats button.on { background: var(--ink); color: var(--paper); }
/* On phones the bar sticks under the header while scrolling */
.shop-bar { position: sticky; top: var(--bar-h, 69px); z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.75rem; margin: 0 -1rem; padding: 0.5rem 1rem; background: var(--paper); }
.shop-bar-btn, .shop-sort select { width: 100%; min-height: 50px; border: 0; border-radius: 0.3rem; background: var(--deep); color: var(--ink); font-size: 0.98rem; font-weight: 500; transition: background 160ms; }
.shop-bar-btn:hover, .shop-sort select:hover { background-color: #e8dac6; }
.shop-bar-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0 1rem; }
.shop-bar-btn:disabled { cursor: default; }
.shop-bar-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.filter-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.74rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.shop-sort { display: block; min-width: 0; }
.shop-sort select { appearance: none; padding: 0 2.6rem 0 1rem; text-align: center; text-align-last: center; text-overflow: ellipsis; cursor: pointer; background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1.2 7 6.8 13 1.2' fill='none' stroke='%232c241c' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1rem center; }
@media (max-width: 759px) { .shop-sort select { padding: 0 2rem 0 0.7rem; font-size: 0.92rem; background-position: right 0.75rem center; } }
@media (max-width: 359px) {
  .badge:not(.round) { padding-inline: 0.45rem; font-size: 0.62rem; letter-spacing: 0; }
  .shop-bar { gap: 0.5rem; }
  .shop-bar-btn { gap: 0.35rem; padding: 0 0.6rem; }
  .shop-sort select { padding: 0 1.7rem 0 0.5rem; font-size: 0.86rem; background-position: right 0.55rem center; }
}
.shop-count { margin: 0.8rem 0 1.2rem; text-align: center; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.shop-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.45rem; margin: -0.5rem 0 1.4rem; }
.chip-x { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.65rem 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fffdf9; color: var(--ink); font-size: 0.85rem; transition: border-color 160ms; }
.chip-x:hover { border-color: var(--ink); }
.chip-x span { font-size: 1.15rem; line-height: 1; color: var(--muted); }
.chip-clear, .link-btn { border: 0; background: none; padding: 0.4rem 0.3rem; color: var(--ink); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.shop-empty .link-btn { font-size: inherit; padding: 0; color: #8a4652; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
.shop-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; color: var(--ink); text-decoration: none; }
.shop-card .ph { width: 100%; border-radius: 0.2rem; margin-bottom: 0.8rem; background: #f1ebe2; }
.shop-card .ph img { transition: transform 600ms var(--ease); }
.shop-card:hover .ph img { transform: scale(1.03); }
.shop-card:hover .shop-card-name { text-decoration: underline; text-underline-offset: 3px; }
.shop-card-kicker { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; line-height: 1.3; text-transform: uppercase; }
.shop-card-name { margin-top: 0.2rem; font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-price { margin-top: 0.6rem; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.shop-card-price small { font-size: 0.82rem; font-weight: 380; color: var(--muted); }
.shop-card-note { margin-top: 0.15rem; font-size: 0.8rem; color: #8a4652; }
.shop-more { display: grid; justify-items: center; gap: 0.7rem; max-width: 20rem; margin: 2.8rem auto 0; text-align: center; }
.shop-more p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.shop-progress { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.shop-progress i { display: block; height: 100%; background: var(--ink); transition: width 300ms var(--ease); }
.shop-more .btn { min-width: 12rem; min-height: 50px; }
.shop-skel { display: grid; gap: 0.5rem; }
.shop-skel::before { content: ""; aspect-ratio: 1; border-radius: 0.2rem; }
/* As tall as a loaded card's text, so the page below does not jump when the designs arrive */
.shop-skel i { height: 6.3rem; border-radius: 0.4rem; width: 80%; }
.shop-skel::before, .shop-skel i { background: linear-gradient(100deg, var(--deep) 30%, color-mix(in srgb, var(--deep) 40%, var(--paper)) 50%, var(--deep) 70%) 0 0 / 300% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { to { background-position: -150% 0; } }
.shop-empty { margin: 1rem 0 0; padding: 1.2rem 1.4rem; border: 1px dashed var(--gold); border-radius: 1rem; color: var(--muted); }
.shop-empty a:not(.btn) { color: var(--blush-ink); }
/* A shop.html#f-… link to a category with nothing in the website shop yet */
.shop-empty.is-note { display: grid; justify-items: center; gap: 0.55rem; max-width: 40rem; margin: 0.4rem auto 0; padding: 1.8rem 1.4rem 1.4rem; text-align: center; border-radius: 1.25rem; background: color-mix(in srgb, var(--deep) 45%, var(--paper)); }
.shop-empty.is-note strong { font-family: var(--serif); font-weight: 460; font-size: 1.35rem; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.shop-empty.is-note > span { max-width: 32rem; text-wrap: balance; }
.shop-note-actions { display: grid; gap: 0.6rem; width: 100%; max-width: 22rem; margin-top: 0.5rem; }
.shop-note-actions .btn { width: 100%; }
.shop-note-actions .ghost { color: var(--ink); }
.shop-empty.is-note .link-btn { min-height: 44px; color: var(--ink); }
@media (min-width: 600px) { .shop-note-actions { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; } .shop-note-actions .btn { width: auto; } }
.shop-etsy { display: grid; gap: 1.2rem; align-items: center; padding: 1.6rem; border-radius: 1.5rem; background: var(--deep); border: 1px solid var(--line); }
.shop-etsy p { margin: 0; color: var(--muted); max-width: 36rem; }
.shop-etsy .kicker { color: var(--sage); }
.shop-etsy .btn { justify-self: start; }

/* Product view: a full-screen sheet on phones, a window on larger screens.
   Photos sit in a short swipeable strip so the options are visible straight away,
   and "Add to basket" stays pinned to the bottom. */
.pdlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.pdlg::backdrop, .basket::backdrop { background: rgb(44 36 28 / 60%); backdrop-filter: blur(4px); }
.pdlg[open] { animation: pd-in 320ms var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(16px); } }
.pd-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0.35rem 0.6rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.pd-back { min-height: 44px; padding: 0 0.5rem; border: 0; background: none; font-size: 0.95rem; color: var(--ink); }
.pdlg .pdlg-close { position: static; width: 44px; height: 44px; border-color: var(--line); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.pd-media, .pd-form { min-width: 0; }
.pd-stage-wrap { position: relative; }
/* Photo strip: the next photo peeks in from the right so it's clear there are more */
.pd-stage { display: flex; gap: 0.6rem; height: clamp(210px, 34svh, 320px); padding: 0.75rem 1rem; scroll-padding-inline: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; box-sizing: content-box; }
.pd-stage::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 78%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; padding: 0.5rem; overflow: hidden; background: var(--blush-soft); border-radius: 0.8rem; box-shadow: 0 1px 0 var(--line), 0 6px 18px -12px rgb(44 36 28 / 30%); }
.pd-slide:only-child { flex-basis: 100%; }
.pd-slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
/* Each photo is a button that opens the full-screen view; a magnifier marks the one on show */
.pd-slide { position: relative; }
.pd-zoom { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: inherit; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.pd-zoom:focus-visible { outline: 2px solid var(--blush); outline-offset: -2px; }
.pd-zoom:not([tabindex="-1"])::after { content: ""; position: absolute; left: 0.55rem; bottom: 0.55rem; width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / 92%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232c241c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 2px 8px -3px rgb(44 36 28 / 45%); pointer-events: none; }
.pd-counter { position: absolute; right: 1.6rem; bottom: 1.35rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: rgb(44 36 28 / 72%); color: var(--paper); font-size: 0.75rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.pd-counter:empty { display: none; }
.pd-thumbs { display: flex; gap: 0.4rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0 1rem 0.2rem; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs:empty { display: none; }
.pd-thumbs button { flex: none; width: 3rem; padding: 0; border: 2px solid transparent; border-radius: 0.5rem; overflow: hidden; background: none; cursor: pointer; transition: border-color 160ms, opacity 160ms; opacity: 0.75; }
.pd-thumbs button.on { border-color: var(--ink); opacity: 1; }
.pd-thumbs .ph { border-radius: 0.35rem; }
/* Arrows on every screen */
.pd-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 2px; border-radius: 50%; border: 1px solid var(--line); background: rgb(255 255 255 / 94%); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px -6px rgb(44 36 28 / 40%); transition: opacity 160ms; }
.pd-arrow[hidden], .pd-arrow:disabled { opacity: 0; pointer-events: none; }
.pd-arrow.prev { left: 0.5rem; }
.pd-arrow.next { right: 0.5rem; }
.pd-form { display: grid; gap: 0.8rem; align-content: start; grid-auto-rows: max-content; padding: 0.9rem 1rem 0; }
.pd-form h2 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.pd-price { margin: -0.3rem 0 0; color: var(--muted); }
.pd-price strong { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.pd-summary { margin: 0; color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-fields { display: grid; gap: 0.85rem; }
.pd-field { display: grid; gap: 0.35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.pd-label { font-weight: 500; font-size: 0.92rem; padding: 0; }
.pd-opt { font-weight: 380; color: var(--muted); }
.pd-help { margin: 0; color: var(--muted); font-size: 0.84rem; white-space: pre-line; }
.pd-field select, .pd-field textarea, .bk-zone select {
  width: 100%; min-height: 46px; padding: 0.55rem 0.85rem; border: 1px solid #cdbca6; border-radius: 0.6rem; background: #fffdf9; font-size: 1rem;
}
.pd-field select, .bk-zone select { -webkit-appearance: none; appearance: none; padding-right: 2.4rem; text-overflow: ellipsis; cursor: pointer; background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%232c241c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.95rem center; }
.pd-field textarea { resize: vertical; line-height: 1.45; }
.pd-field select:focus, .pd-field textarea:focus, .bk-zone select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(44 36 28 / 12%); }
.pd-count { justify-self: end; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -0.15rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; box-sizing: border-box; padding: 0 1rem; border-radius: 999px; border: 1px solid #cdbca6; background: #fffdf9; transition: background 160ms, color 160ms, border-color 160ms; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--blush); outline-offset: 2px; }
.pill input:disabled + span { opacity: 0.4; text-decoration: line-through; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #cdbca6; border-radius: 999px; background: #fffdf9; flex: none; }
.stepper button { width: 44px; height: 46px; border: 0; background: none; border-radius: 999px; font-size: 1.2rem; }
.stepper button:hover:not(:disabled) { background: var(--deep); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.stepper.sm button { width: 44px; height: 44px; font-size: 1.05rem; }
.pd-error, .bk-err { margin: 0; padding: 0.6rem 0.9rem; border-radius: 0.75rem; background: #f7e3e6; color: #9b3d4a; font-size: 0.9rem; }
.pd-note { margin: 0; color: var(--muted); font-size: 0.84rem; }
.pd-note:empty { display: none; }
.pd-more { border-top: 1px solid var(--line); }
.pd-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; font-size: 0.95rem; }
.pd-more summary { list-style: none; }
.pd-more summary::-webkit-details-marker { display: none; }
.pd-more summary::after { content: ""; width: 8px; height: 8px; margin: -4px 0.3rem 0 auto; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: rotate(45deg); transition: transform 200ms var(--ease); }
.pd-more[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.pd-more p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.93rem; white-space: pre-line; }
.pd-etsy { display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.6rem; color: var(--muted); font-size: 0.85rem; text-underline-offset: 3px; justify-self: start; }
.pd-buy { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 0.5rem; margin: 0.2rem -1rem 0; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgb(44 36 28 / 35%); }
.pd-buy-row { display: flex; gap: 0.6rem; align-items: center; }
.pd-add { flex: 1; min-height: 48px; font-size: 1rem; white-space: nowrap; }
.pd-add:disabled { opacity: 0.5; cursor: not-allowed; }
/* Trust points under the price (kept out of the sticky buy bar so it stays one row on phones).
   Each point wraps as a whole, so no separator is ever left hanging at a line end */
.pd-assure { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.1rem 0.9rem; font-size: 0.8rem; line-height: 1.45; color: var(--muted); text-align: left; }
.pd-assure > span { white-space: nowrap; }
.pd-assure > span::before { content: "\2713"; content: "\2713" / ""; margin-right: 0.3rem; color: var(--sage); }
/* A 44px tap area without changing the line: inline padding does not grow the line box.
   The links sit on the wrapped second line, so the extra padding above only covers plain text */
.pd-assure a { color: inherit; text-underline-offset: 2px; padding: 0.9rem 0.3rem; margin: 0 -0.3rem; }

/* Basket drawer */
.basket { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100vw, 27rem); max-width: 100vw; height: 100%; max-height: 100%; padding: 0; border: 0; border-left: 1px solid var(--gold); background: var(--paper); color: var(--ink); display: none; flex-direction: column; }
.basket[open] { display: flex; animation: bk-in 420ms var(--ease); }
@keyframes bk-in { from { transform: translateX(40px); opacity: 0; } }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem 0.8rem 1.3rem; border-bottom: 1px solid var(--line); }
.bk-head h2 { margin: 0; font-size: 1.6rem; }
.bk-close { position: static; }
.bk-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.4rem 1.3rem; }
.bk-lines { list-style: none; margin: 0; padding: 0; }
.bk-line { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.bk-line > .ph { border-radius: 0.55rem; }
.bk-info { display: grid; gap: 0.25rem; min-width: 0; }
.bk-info p { margin: 0; }
.bk-name { font-size: 0.98rem; line-height: 1.3; font-weight: 500; }
.bk-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.35rem; }
.bk-remove { min-height: 44px; border: 0; background: none; padding: 0 0.3rem; color: var(--muted); font-size: 0.84rem; text-decoration: underline; text-underline-offset: 3px; }
.bk-remove:hover { color: #9b3d4a; }
.bk-info .bk-price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-empty { margin: 2rem 0; text-align: center; color: var(--muted); }
.bk-empty a { color: var(--blush-ink); }
.bk-foot { display: grid; gap: 0.7rem; padding: 1rem 1.3rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--deep) 45%, var(--paper)); }
.bk-zone { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); }
.bk-zone select { color: var(--ink); }
.bk-note { margin: 0; font-size: 0.85rem; color: var(--sage); }
.bk-go { width: 100%; min-height: 52px; font-size: 1rem; gap: 0.5rem; }
/* Padlock (drawn in CSS, because the button's text is rewritten while checkout opens) */
.bk-go::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.bk-go:disabled { opacity: 0.7; cursor: wait; }
.bk-foot .fine { text-align: center; }
.bk-foot .fine a { color: inherit; text-underline-offset: 2px; padding: 0.9rem 0.3rem; margin: 0 -0.3rem; }
/* Full-width drawer on phones: no stray gold line at the screen edge */
@media (max-width: 432px) { .basket { border-left: 0; } }

@media (min-width: 760px) {
  .shop-skel i { height: 7.9rem; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.8rem 1.4rem; }
  .shop-cats { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0 0 1.5rem; padding: 0; }
  .shop-cats > :first-child, .shop-cats > :last-child { margin: 0; }
  .shop-bar { position: static; max-width: 42rem; margin: 0 auto; padding: 0; }
  .shop-count { margin: 1.1rem 0 1.6rem; }
  .shop-card-kicker { font-size: 0.8rem; }
  .shop-card-name { font-size: 1rem; }
  .shop-card-price { font-size: 1.1rem; }
  .shop-etsy { grid-template-columns: 1fr auto; padding: 2rem 2.4rem; }
  .pdlg { width: min(94vw, 60rem); height: min(88svh, 44rem); max-height: 88svh; margin: auto; border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: 0 30px 80px rgb(44 36 28 / 30%); overflow: hidden; }
  .pd-bar { position: absolute; top: 0.8rem; right: 0.8rem; padding: 0; background: none; backdrop-filter: none; border: 0; }
  .pd-back { display: none; }
  .pd-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: 100%; }
  .pd-media { padding: 1rem 0 1.1rem; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.5rem; min-height: 0; }
  .pd-stage-wrap { min-height: 0; }
  .pd-stage { height: calc(100% - 1.5rem); padding: 0.75rem 1.2rem; scroll-padding-inline: 1.2rem; }
  .pd-slide { flex-basis: 82%; }
  .pd-thumbs { padding: 0 1.2rem 0.2rem; }
  .pd-thumbs button { width: 3.4rem; }
  .pd-form { overflow-y: auto; overscroll-behavior: contain; padding: 1.4rem 1.6rem 0 1.4rem; }
  .pd-form h2 { font-size: 1.6rem; padding-right: 3rem; }
  .pd-price strong { font-size: 1.45rem; }
  .pd-summary { -webkit-line-clamp: 3; }
  .pd-buy { margin: 0.2rem -1.6rem 0 -1.4rem; padding: 0.8rem 1.6rem 1rem 1.4rem; }
}
@media (min-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Fewer designs than columns: same card width, centred under the title */
@media (min-width: 760px) { .shop-grid:not(:has(> :nth-child(3))) { grid-template-columns: repeat(auto-fit, calc((100% - 2.8rem) / 3)); justify-content: center; } }
@media (min-width: 1100px) { .shop-grid:not(:has(> :nth-child(4))) { grid-template-columns: repeat(auto-fit, calc((100% - 4.2rem) / 4)); justify-content: center; } }
/* Exactly 4 designs on tablets: a full row (wide) or a centred 2+2 (narrow), never 3+1 */
@media (min-width: 760px) and (max-width: 899px) { .shop-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, calc((100% - 2.8rem) / 3)); justify-content: center; } }
@media (min-width: 900px) and (max-width: 1099px) { .shop-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Filter panel: slides in from the left, full screen on phones */
.fdlg { width: min(100vw, 26rem); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto 0 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
.fdlg[open] { display: flex; flex-direction: column; animation: fd-in 300ms var(--ease); }
@keyframes fd-in { from { transform: translateX(-100%); } }
.fdlg::backdrop { background: rgb(44 36 28 / 55%); }
.fd-head { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem 0.7rem 1.3rem; border-bottom: 1px solid var(--line); }
.fd-head h2 { margin: 0; font-size: 1.45rem; }
.fdlg .fd-close { position: static; width: 44px; height: 44px; border-color: var(--line); }
.fd-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.3rem; }
.fd-group { border-bottom: 1px solid var(--line); }
.fd-group summary { display: flex; align-items: center; gap: 0.6rem; min-height: 58px; list-style: none; cursor: pointer; font-weight: 500; }
.fd-group summary::-webkit-details-marker { display: none; }
.fd-group summary::after { content: ""; width: 8px; height: 8px; margin: -4px 0.3rem 0 auto; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: rotate(45deg); transition: transform 200ms var(--ease); }
.fd-group[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.fd-picked { color: #8a4652; font-size: 0.8rem; font-weight: 500; }
.fd-list { display: grid; padding-bottom: 0.7rem; }
.fd-opt { position: relative; display: flex; align-items: center; gap: 0.8rem; min-height: 46px; cursor: pointer; }
.fd-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fd-box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 4px; background: #fffdf9; transition: background 140ms; }
.fd-opt input:checked + .fd-box { background: var(--ink); }
.fd-opt input:checked + .fd-box::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fd-opt input:focus-visible + .fd-box { outline: 2px solid var(--blush); outline-offset: 2px; }
.fd-label { flex: 1; }
.fd-n { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.fd-opt.off { opacity: 0.4; cursor: default; }
.fd-foot { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; padding: 0.9rem 1.3rem calc(0.9rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--deep) 45%, var(--paper)); }
.fd-foot .btn { min-height: 50px; }
.fd-foot .btn:disabled { opacity: 0.45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .fdlg[open] { animation: none; } }

/* Basket: "added" confirmation and continue shopping */
.bk-added { margin: 0.15rem 0 0; color: var(--sage); font-size: 0.88rem; font-weight: 500; }
.bk-more { width: 100%; min-height: 46px; }

/* No page scroll behind open panels */
html.sheet-open, html.sheet-open body { overflow: hidden; }

/* Badges (set per product on the boss page) */
.badge { position: absolute; left: 0.55rem; top: 0.55rem; z-index: 1; max-width: calc(100% - 1.1rem); padding: 0.25rem 0.65rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fffdf9; color: var(--ink); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge.round { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; padding: 0; }
.badge.is-new { border-color: #8a4652; color: #8a4652; }
.pd-badge { justify-self: start; margin: 0 0 -0.4rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--blush-soft); color: #8a4652; font-size: 0.76rem; font-weight: 600; }

/* Order a sample first */
.pd-sample { justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; margin-top: -0.2rem; padding: 0 1rem; border-radius: 999px; border: 1px dashed var(--blush); background: var(--blush-soft); color: #8a4652; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background 160ms; }
.pd-sample:hover { background: #ecd3cf; }
.pd-sample span:first-child::before { content: "✦ "; }
.pd-sample span:last-child { font-weight: 400; color: var(--muted); }
.pd-sample-note { margin: -0.3rem 0 0; padding: 0.55rem 0.85rem; border-radius: 0.7rem; background: var(--blush-soft); color: #8a4652; font-size: 0.88rem; }

/* Complete the set */
.pd-set { display: grid; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line); min-width: 0; }
.pd-set h3 { margin: 0; font-size: 1.1rem; }
.pd-set-row { display: flex; gap: 0.65rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem 0.3rem; scroll-snap-type: x proximity; }
.pd-set-row::-webkit-scrollbar { display: none; }
.pd-set-card { flex: 0 0 7.5rem; display: grid; gap: 0.2rem; align-content: start; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; scroll-snap-align: start; }
.pd-set-card .ph { border-radius: 0.6rem; margin-bottom: 0.2rem; }
.pd-set-card:hover .pd-set-name { text-decoration: underline; text-underline-offset: 2px; }
.pd-set-name { font-size: 0.82rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-set-price { font-size: 0.85rem; font-weight: 600; }
@media (min-width: 760px) { .pd-set-row { margin: 0 -1.6rem 0 -1.4rem; padding: 0 1.6rem 0.3rem 1.4rem; } }

/* Full-screen photo view: opens on top of the product window (a second <dialog>) */
.photo-view { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--paper); overflow: hidden; overscroll-behavior: contain; }
.photo-view::backdrop { background: #14100c; }
.photo-view[open], .photo-view[open]::backdrop { animation: pv-in 220ms var(--ease); }
@keyframes pv-in { from { opacity: 0; } }
.pv-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.pv-track::-webkit-scrollbar { display: none; }
/* The strip fills the screen, so draw its keyboard ring inside the edge */
.pv-track:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.pv-slide { flex: 0 0 100%; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: calc(4rem + env(safe-area-inset-top, 0px)) 0.75rem calc(4.5rem + env(safe-area-inset-bottom, 0px)); scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-out; }
.pv-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0.25rem; box-shadow: 0 30px 80px rgb(0 0 0 / 45%); cursor: default; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pv-close, .pv-arrow { position: absolute; z-index: 2; display: grid; place-items: center; padding: 0; border-radius: 999px; border: 1px solid rgb(246 240 230 / 35%); background: rgb(20 16 12 / 60%); color: var(--paper); line-height: 1; transition: background 160ms, opacity 160ms; }
.pv-close:hover, .pv-arrow:hover { background: rgb(246 240 230 / 16%); }
.pv-close:focus-visible, .pv-arrow:focus-visible { outline-color: var(--gold); }
.pv-close { top: calc(0.75rem + env(safe-area-inset-top, 0px)); right: 0.75rem; width: 44px; height: 44px; font-size: 1.6rem; }
.pv-arrow { bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; padding-bottom: 3px; font-size: 1.8rem; }
.pv-arrow.prev { left: 0.75rem; }
.pv-arrow.next { right: 0.75rem; }
.pv-arrow:disabled { opacity: 0.3; cursor: default; }
.pv-count { position: absolute; left: 50%; bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); translate: -50% 0; margin: 0; padding: 0.2rem 0.7rem; border-radius: 999px; background: rgb(20 16 12 / 60%); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.pv-count:empty { display: none; }
@media (min-width: 760px) {
  .pv-slide { padding: 3.5rem 5.5rem 4rem; }
  .pv-count { bottom: 1.25rem; }
  .pv-arrow { top: 50%; bottom: auto; translate: 0 -50%; width: 52px; height: 52px; }
  .pv-arrow.prev { left: 1.25rem; }
  .pv-arrow.next { right: 1.25rem; }
  .pv-close { top: 1.25rem; right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .photo-view[open], .photo-view[open]::backdrop { animation: none; } }
/* Opened by a tap or click: no focus ring on the button that receives focus (keyboard users keep it) */
.pp-pointer .pd-back:focus-visible, .pp-pointer .pv-close:focus-visible, .pp-pointer .pd-zoom:focus-visible, .pp-pointer .pv-track:focus-visible { outline: none; }

/* Multi-buy offers ("3 for £6.50"), set per design: a banner across the foot of the tile's photo,
   a box by the price, a typed quantity, a hint in the buy bar and the saving in the basket */
.deal-ribbon { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 0.5rem; padding: 0.4rem 0.6rem 0.45rem; background: #8a4652; color: #fffdf9; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; text-align: center; }
.deal-ribbon strong { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; }
.pd-deal { display: grid; gap: 0.1rem; margin: -0.25rem 0 0; padding: 0.6rem 0.9rem 0.65rem; border-radius: 0.7rem; background: #8a4652; color: #fffdf9; font-size: 0.86rem; line-height: 1.45; }
.pd-deal strong { font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }
.pd-deal-hint { margin: 0; color: #8a4652; font-size: 0.84rem; line-height: 1.4; text-align: center; }
.stepper input { width: 2.9rem; height: 46px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--blush); outline-offset: 1px; border-radius: 0.4rem; }
@media (max-width: 359px) { .stepper input { width: 2.2rem; } }
/* A long "Add to basket · £214.50" wraps onto two lines on a narrow phone, rather than pushing the window wider */
.pd-add { min-width: 0; white-space: normal; line-height: 1.2; }
@media (max-width: 399px) { .pd-add { padding-inline: 0.8rem; } }
/* Basket lines: the price drops under the quantity when the row is too narrow */
.bk-row { flex-wrap: wrap; row-gap: 0.2rem; }
/* Phones: just the offer on the tile's banner, on one line, so it covers less of the photo */
@media (max-width: 759px) {
  .deal-ribbon { padding: 0.3rem 0.4rem; }
  .deal-ribbon span { display: none; }
}
/* A note for the choice made, e.g. how to send a photo of your car */
.pd-opt-note { margin: 0.1rem 0 0; padding: 0.65rem 0.9rem; border: 1px dashed var(--blush); border-radius: 0.7rem; background: var(--blush-soft); color: var(--ink); font-size: 0.9rem; line-height: 1.45; white-space: pre-line; }
.pd-opt-note a { color: #8a4652; font-weight: 600; text-underline-offset: 2px; overflow-wrap: anywhere; }
.bk-sum .bk-deal dt, .bk-sum .bk-deal dd { color: #8a4652; font-weight: 500; }
.bk-deal-hint { margin: 0; padding: 0.5rem 0.8rem; border-radius: 0.6rem; background: var(--blush-soft); color: #8a4652; font-size: 0.85rem; line-height: 1.4; }

/* Quick taps on + and − (or any button) mustn't zoom the page on phones: no double-tap zoom on
   controls, while pinch-zoom still works */
button, a, label, select, input, .pill, .stepper { touch-action: manipulation; }

/* A video of the design (TikTok), played on the page when asked for */
/* The badge row: "New" and the video pill side by side; the video itself opens on its own line below */
.pd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0 0 -0.4rem; }
.pd-tags:not(:has(> :not([hidden]))) { display: none; }
.pd-tags .pd-badge { margin: 0; }
.pd-video { display: contents; }
.pd-video-btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 32px; padding: 0.2rem 0.75rem 0.2rem 0.3rem; border: 0; border-radius: 999px; background: #14100c; color: #fffdf9; text-decoration: none; font: inherit; font-size: 0.76rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background 160ms; position: relative; }
/* A bigger tap area than the pill shows */
.pd-video-btn::after { content: ""; position: absolute; inset: -6px -2px; }
.pd-video-btn:hover { background: #2c241c; }
.pd-video-btn svg { flex: none; width: 22px; height: 22px; padding: 5px 4px 5px 6px; border-radius: 50%; background: #fe2c55; fill: #fff; box-shadow: -1.5px 0 0 #25f4ee; }
/* The video pop-up: over everything, the player as large as the screen allows, a close button above */
.video-view { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.video-view[open] { display: grid; place-items: center; animation: pv-in 220ms var(--ease); }
.video-view::backdrop { background: rgb(20 16 12 / 85%); }
.vv-box { display: grid; justify-items: center; gap: 0.7rem; width: min(calc(100vw - 2rem), calc((100dvh - 9rem) * 9 / 16), 400px); }
.vv-close { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 2px; border-radius: 999px; border: 1px solid rgb(246 240 230 / 35%); background: rgb(20 16 12 / 60%); color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.vv-close:hover { background: rgb(246 240 230 / 16%); }
.vv-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vv-frame { width: 100%; aspect-ratio: 9 / 16; border-radius: 1rem; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgb(0 0 0 / 45%); }
.vv-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vv-open { color: rgb(246 240 230 / 80%); font-size: 0.85rem; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .video-view[open] { animation: none; } }
