/* ==========================================================================
   Nissie — main stylesheet

   Layout language follows the Minimog "Home Print" reference: generous vertical
   rhythm, centred section headings, an asymmetric category grid, quiet product
   cards. Colour and type are Nissie's own.
   ========================================================================== */

:root {
  /* Brand palette — from Nissie Visual Brand Guidelines */
  --purple:     #870e82;   /* vivid neon purple — primary */
  --plum:       #3b0c3a;   /* deep plum — body text, footer */
  --lavender:   #e9d2ff;   /* light lavender — soft sections */
  --parchment:  #f5ecd7;   /* warm neutral */
  --terracotta: #994f28;   /* accent */

  --ink:        #2a0a29;
  --muted:      #6b5a6a;
  --line:       #e7e1e6;
  --bg:         #ffffff;
  --bg-soft:    #faf7f9;

  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Howell drops in here once licensed. See header.php. */
  --font-display: "Outfit", "Open Sans", system-ui, sans-serif;

  --container: 1280px;
  --gap: 24px;
  --radius: 4px;
  --section-y: clamp(56px, 8vw, 104px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 2px;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--purple); color: #fff; padding: 12px 20px;
  text-decoration: none; border-radius: 0 0 var(--radius) var(--radius);
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--plum); }
.btn--ghost { border-color: currentColor; color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: #fff; border-color: var(--plum); }

/* ---------- announcement ---------- */
.announcement { background: var(--lavender); color: var(--plum); font-size: .875rem; }
.announcement__inner {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; min-height: 42px; text-align: center; flex-wrap: wrap;
}
.announcement a { font-weight: 600; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header__inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--gap); padding-block: 18px;
}
.site-header__logo img { width: 150px; height: auto; }

.search { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.search input {
  width: 100%; border: 1px solid var(--line); background: var(--bg-soft);
  border-radius: var(--radius); padding: 12px 46px 12px 16px; font: inherit; font-size: .92rem;
}
.search input::placeholder { color: var(--muted); }
.search button {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--plum);
}

.site-header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: none; border: 0; cursor: pointer; color: var(--plum); text-decoration: none;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn__count {
  position: absolute; top: 2px; right: 0;
  background: var(--purple); color: #fff; font-size: .68rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.nav-toggle { display: none; }

/* ---------- primary nav ---------- */
.primary-nav { border-top: 1px solid var(--line); }
.primary-nav > .container > ul { display: flex; justify-content: center; gap: 38px; }
.primary-nav a {
  display: block; padding: 15px 0; text-decoration: none;
  font-size: .93rem; font-weight: 600; color: var(--plum);
}
.primary-nav a:hover { color: var(--purple); }

.has-sub { position: relative; }
.subnav {
  position: absolute; left: 50%; translate: -50% 0; top: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgb(59 12 58 / .12);
  min-width: 290px; padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity .15s ease; z-index: 20;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; }
.subnav a { padding: 10px 14px; border-radius: var(--radius); }
.subnav a:hover { background: var(--bg-soft); }
.subnav span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }

/* ---------- hero ---------- */
.hero { background: var(--parchment); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(24px, 5vw, 64px); min-height: clamp(420px, 56vw, 600px);
}
.hero__copy { padding-block: 48px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 400; }
.hero__copy p { margin-top: 20px; max-width: 42ch; color: var(--muted); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__media { align-self: stretch; position: relative; min-height: clamp(420px, 56vw, 600px); }
.hero__media .img__el { object-position: center 30%; }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section-y); }
.section--lavender { background: var(--lavender); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto clamp(32px, 4vw, 52px); }
.section__head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 400; }
.section__head p { margin-top: 12px; color: var(--muted); }
.section--lavender .section__head p { color: #5c3f5b; }

.section__head--row {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; text-align: left; max-width: none;
}
.section__head--row p { margin-top: 8px; }

/* ---------- branch grid (asymmetric, per reference) ---------- */
.branch-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1.12fr 1fr 1fr;
  grid-template-rows: 252px 252px;
}
.branch-card--wide { grid-row: span 2; }
.branch-card:nth-child(4) { grid-column: 2 / 4; }

.branch-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  text-decoration: none; color: #fff; display: block; background: var(--plum);
}
.branch-card .img { position: absolute; inset: 0; }
.branch-card .img__el { transition: scale .7s var(--ease-out); }
/*
  Scrim. These cards sit over bright, high-key product photography (hot pink
  glitter, pale acrylic), so a light gradient leaves white text failing contrast
  right where the headline sits. Weighted to stay dense through the lower ~two
  thirds — where all the text is — and only clear near the top.
*/
.branch-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgb(59 12 58 / .94) 0%,
    rgb(59 12 58 / .84) 38%,
    rgb(59 12 58 / .52) 68%,
    rgb(59 12 58 / .12) 100%);
}
.branch-card:hover .img__el, .branch-card:focus-visible .img__el { scale: 1.05; }
.branch-card__body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; padding: 22px; }
.branch-card h3 { font-size: 1.35rem; font-weight: 500; }
.branch-card--wide h3 { font-size: 1.7rem; }
.branch-card__tagline { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-top: 4px; }
.branch-card__blurb { margin-top: 10px; font-size: .93rem; opacity: .9; max-width: 34ch; }
.branch-card__cta { margin-top: 14px; font-weight: 600; font-size: .9rem; border-bottom: 1.5px solid currentColor; align-self: start; padding-bottom: 2px; }
.tag {
  align-self: start; margin-bottom: 10px; background: var(--parchment); color: var(--plum);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

/* ---------- occasions ---------- */
.occasions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.occasions a {
  display: block; background: #fff; color: var(--plum); text-decoration: none;
  border: 1px solid rgb(59 12 58 / .12); border-radius: 999px;
  padding: 13px 26px; font-weight: 600; font-size: .95rem;
  transition: background .15s, color .15s, border-color .15s;
}
.occasions a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ---------- trust ---------- */
.trust { background: var(--bg-soft); padding-block: clamp(40px, 5vw, 64px); border-block: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.trust__item h2 { font-size: 1.1rem; font-weight: 600; }
.trust__item p { margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* ---------- carousel + product cards ---------- */
.carousel__nav { display: flex; gap: 8px; flex: none; }
.carousel__nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--plum);
}
.carousel__nav button:hover { background: var(--plum); color: #fff; border-color: var(--plum); }

.carousel { overflow: hidden; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr);
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 4px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.product-card { scroll-snap-align: start; }
.product-card__media {
  display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft);
}
.product-card__media .img__el { transition: scale .7s var(--ease-out); }
.product-card:hover .product-card__media .img__el { scale: 1.06; }
.product-card__branch {
  margin-top: 14px; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--terracotta); font-weight: 700;
}
.product-card h3 { margin-top: 6px; font-size: 1.02rem; font-weight: 600; font-family: var(--font-body); }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { color: var(--purple); }
.product-card__price { margin-top: 4px; color: var(--plum); font-weight: 600; }

/* ---------- feature blocks ---------- */
.feature { padding-block: var(--section-y); }
.feature--vibe { background: var(--parchment); }
.feature__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.feature__inner--reverse .feature__media { order: 2; }
.feature__media .img { border-radius: var(--radius); }
.eyebrow { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--purple); }
.feature__copy h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; margin-top: 12px; }
.feature__copy p:not(.eyebrow) { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.feature__copy .btn { margin-top: 28px; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--lavender); padding-block: clamp(56px, 7vw, 88px); }
.newsletter__inner { max-width: 560px; margin-inline: auto; text-align: center; color: var(--plum); }
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; }
.newsletter__inner > p { margin-top: 10px; color: #5c3f5b; }
.newsletter__form { margin-top: 26px; }
.newsletter__row { display: flex; gap: 8px; }
.newsletter__row input {
  flex: 1; border: 1px solid transparent; border-radius: var(--radius);
  padding: 15px 18px; font: inherit; font-size: .95rem; background: #fff; min-width: 0;
}
.newsletter__row button {
  border: 0; background: var(--purple); color: #fff; font-weight: 600;
  padding: 0 28px; border-radius: var(--radius); cursor: pointer;
}
.newsletter__row button:hover { background: var(--plum); }

.consent { display: flex; align-items: start; gap: 10px; margin-top: 16px; text-align: left; font-size: .88rem; }
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--purple); }
.consent a { font-weight: 600; }
.consent__error { margin-top: 10px; text-align: left; font-size: .88rem; font-weight: 600; color: #8c1220; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum); color: #e5d9e4; padding-block: clamp(48px, 6vw, 76px) 28px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px 32px; padding-bottom: 44px;
}
.site-footer__brand img { width: 168px; }
.site-footer__brand p { margin-top: 16px; font-size: .92rem; max-width: 32ch; color: #c9b6c8; }
.socials { display: flex; gap: 18px; margin-top: 20px; font-size: .88rem; }
.socials a { text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .3); padding-bottom: 2px; }
.socials a:hover { border-color: #fff; color: #fff; }

.site-footer__col h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-weight: 700; font-family: var(--font-body); }
.site-footer__col ul { margin-top: 16px; display: grid; gap: 11px; font-size: .92rem; }
.site-footer__col a { text-decoration: none; color: #c9b6c8; }
.site-footer__col a:hover { color: #fff; }
.contact li { color: #c9b6c8; }

.site-footer__bar {
  border-top: 1px solid rgb(255 255 255 / .14); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: .84rem; color: #b9a3b8;
}
.payments { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .site-header__inner { grid-template-columns: auto auto; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .nav-toggle { display: grid; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav > .container > ul { flex-direction: column; gap: 0; }
  .primary-nav > .container > ul > li { border-bottom: 1px solid var(--line); }
  .subnav { position: static; translate: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; min-width: 0; padding: 0 0 10px 14px; }

  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding-block: 44px 0; }
  /* An explicit height, not just aspect-ratio: on a device seen live, this
     box (a grid row sized only by an aspect-ratio child with nothing but
     absolutely positioned children inside it) was computing to zero height
     — the row simply never appeared, not an opacity/paint issue. height:
     75vw is a real, viewport-based size no browser can get wrong the same
     way; aspect-ratio stays as an enhancement on top of it, not the only
     thing holding the box open. */
  .hero__media { min-height: 280px; height: 75vw; max-height: 480px; aspect-ratio: 4 / 3; }

  .branch-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .branch-card { aspect-ratio: 4 / 3; }
  .branch-card--wide { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .branch-card:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

  .feature__inner { grid-template-columns: 1fr; }
  .feature__inner--reverse .feature__media { order: 0; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .trust__grid { grid-template-columns: 1fr; gap: 28px; }
  .branch-grid { grid-template-columns: 1fr; }
  .branch-card, .branch-card--wide, .branch-card:nth-child(4) { aspect-ratio: 4 / 3; }
  .section__head--row { flex-direction: column; align-items: start; }
  .newsletter__row { flex-direction: column; }
  .newsletter__row button { padding: 15px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bar { flex-direction: column; align-items: start; }
}

/* Reduced motion is handled in one place — see the block at the end of this file. */

/* ==========================================================================
   Page types beyond the homepage
   ========================================================================== */

.section--tight { padding-block: clamp(36px, 4vw, 56px); }
.narrow { max-width: 760px; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(20px, 2.5vw, 32px); }
.page-head--parchment { background: var(--parchment); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.page-head .eyebrow + h1 { margin-top: 10px; }
.page-head__intro { margin-top: 14px; color: var(--muted); max-width: 58ch; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--purple); text-decoration: underline; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap) 20px; }
.img--missing {
  display: grid; place-items: center; padding: 20px; text-align: center;
  color: var(--muted); font-size: .85rem; background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

.shop-group + .shop-group { margin-top: clamp(40px, 5vw, 64px); }
.shop-group__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.shop-group__head h2 { font-size: 1.4rem; font-weight: 500; }
.shop-group__head a { font-size: .88rem; font-weight: 600; color: var(--purple); }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.pdp__media .img { border-radius: var(--radius); }

/* Additional photos (Admin → Products → Additional photos) — a thumbnail
   strip under the main image; clicking one swaps it in (footer.php). */
.pdp__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; list-style: none; padding: 0; }
.pdp__thumb {
  width: 68px; height: 68px; padding: 0; border-radius: var(--radius); overflow: hidden;
  border: 2px solid transparent; background: none; cursor: pointer; flex-shrink: 0;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__thumb:hover { border-color: var(--line); }
.pdp__thumb.is-active { border-color: var(--purple); }

/* Live personalisation preview: the customer's wording laid over the photo,
   positioned by JS (footer.php) inside the product's print area. */
.pdp__mainimg--preview { position: relative; overflow: hidden; border-radius: var(--radius); }
.pdp__preview { position: absolute; z-index: 2; pointer-events: none; }
.pdp__preview [data-preview-text] {
  position: absolute; display: flex; align-items: center; justify-content: center;
  text-align: center; white-space: nowrap; line-height: 1.1;
}
.pdp__preview-logo { position: absolute; display: block; object-fit: contain; }
.pdp__preview [hidden] { display: none; }
.pdp__preview[hidden] { display: none; }
.pdp__previewnote { margin-top: 8px; font-size: .8rem; color: var(--muted); }

/* Font picker: each option written in its own typeface. */
.fontpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.field .fontpick__opt {
  position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; font-weight: 400; min-width: 0;
}
.field .fontpick__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.field .fontpick__opt:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); background: #fcf5fc; }
.field .fontpick__opt:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 2px; }
.fontpick__sample { font-size: 1.35rem; line-height: 1.25; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fontpick__name { font-size: .74rem; color: var(--muted); }
.field__label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field__chosen { margin-left: 8px; font-weight: 400; color: var(--muted); }
.field__chosen:empty { display: none; }
.field__count { margin: 5px 0 0; font-size: .78rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Round colour swatches (an item-colour / text-colour / select whose options are all colours). */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.field .swatch { position: relative; display: block; margin: 0; cursor: pointer; }
.field .swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.swatch__dot {
  display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--swatch, #ccc);
  border: 1px solid rgb(0 0 0 / .18); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35);
  transition: transform var(--dur-fast, .15s) ease, box-shadow var(--dur-fast, .15s) ease;
}
.field .swatch:hover .swatch__dot { transform: scale(1.08); }
.field .swatch:has(input:checked) .swatch__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--purple); transform: scale(1.04); }
.field .swatch:has(input:focus-visible) .swatch__dot { outline: 2px solid var(--purple); outline-offset: 5px; }

/* Option pills (a short list that isn't colours: "1 Name", "2 Names"...). */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.field .pill { position: relative; display: block; margin: 0; font-weight: 500; cursor: pointer; }
.field .pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .9rem; line-height: 1.2; transition: border-color .15s ease, background .15s ease;
}
.field .pill:hover span { border-color: var(--purple); }
.field .pill:has(input:checked) span { border-color: var(--purple); background: #fcf5fc; box-shadow: 0 0 0 1px var(--purple); color: var(--purple); font-weight: 600; }
.field .pill:has(input:focus-visible) span { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---- Gift-package personalisation flow ---------------------------------- */
.flow { margin-bottom: 14px; }
.flow__error { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: #fdecea; color: #b3261e; font-weight: 600; font-size: .9rem; }
.flowopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.field .flowopt { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.field .flowopt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.flowopt__card {
  display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field .flowopt:hover .flowopt__card { border-color: var(--purple); }
.field .flowopt:has(input:checked) .flowopt__card { border-color: var(--purple); background: #fcf5fc; box-shadow: 0 0 0 1px var(--purple); }
.field .flowopt:has(input:focus-visible) .flowopt__card { outline: 2px solid var(--purple); outline-offset: 2px; }
.flowopt__title { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.flowopt__fee { font-size: .8rem; font-weight: 600; color: var(--purple); }
.flowopt__blurb { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.flow__fee { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius); background: #fcf5fc; border: 1px dashed #d9b4d6; font-size: .86rem; font-weight: 600; }
.flow__fee[hidden], .flow [hidden] { display: none; }
.flow__other { margin-top: 10px; }
.flow__other input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: .92rem; background: #fff; }
.swatch__dot--other {
  display: grid; place-items: center; background: #fff; color: var(--purple); font-weight: 700; font-size: 1.1rem; line-height: 1;
  border: 1px dashed var(--purple);
}
.flow .field .swatch--other:has(input:checked) .swatch__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--purple); }

/* The separate sample: colours and fonts only, never on the product photos. */
.flowsample { margin: 6px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.flowsample__title { margin: 0 0 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.flowsample__card {
  display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 140px; padding: 22px 16px;
  border-radius: var(--radius); text-align: center; overflow: hidden; transition: background .25s ease;
}
.flowsample__card.is-unconfirmed { outline: 2px dashed var(--purple); outline-offset: -6px; }
.flowsample__name { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.15; overflow-wrap: anywhere; }
.flowsample__initial { margin: 0; font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1.1; overflow-wrap: anywhere; }
.flow__initial { max-width: 6rem; text-align: center; font-size: 1.25rem; }
.flowsample__quote { margin: 0; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; max-width: 32ch; }
.flowsample__logo { display: block; max-width: 120px; max-height: 80px; object-fit: contain; margin-bottom: 4px; }
.flowsample__note { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
.flowsample [hidden] { display: none; }

/* "Your design": the choices so far in one line, like a receipt for the personalisation. */
.pdp__summary {
  margin: 4px 0 16px; padding: 10px 14px; border-radius: var(--radius); background: #fcf5fc;
  border: 1px dashed #d9b4d6; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; display: flow-root;
}
.pdp__summary[hidden] { display: none; }
.pdp__summary span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); font-weight: 700; }
.pdp__summary b { font-weight: 600; }

/* "On the product" / "Close-up" tabs over the live preview, and the zoom they switch between. */
.pdp__views { display: flex; gap: 8px; margin-bottom: 10px; }
.pdp__view {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: .84rem; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.pdp__view:hover { border-color: var(--purple); }
.pdp__view.is-active { border-color: var(--purple); background: #fcf5fc; color: var(--purple); font-weight: 600; box-shadow: 0 0 0 1px var(--purple); }
.pdp__mainimg--preview > * { transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.pdp__mainimg--preview.is-closeup > * { transform: scale(var(--zoom, 2)); }
@media (prefers-reduced-motion: reduce) { .pdp__mainimg--preview > * { transition: none; } }

/* Placement: where on the item the wording sits — a 3-column map of the positions on offer. */
.placement {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 38px); gap: 6px 8px;
  padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fcfafc;
}
.field .placement__opt { position: relative; display: flex; align-items: center; justify-content: center; margin: 0; font-weight: 500; cursor: pointer; }
.field .placement__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.placement__opt span {
  display: block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .78rem; line-height: 1.2; white-space: nowrap; transition: border-color .15s ease, background .15s ease;
}
.placement__opt:hover span { border-color: var(--purple); }
.placement__opt:has(input:checked) span { border-color: var(--purple); background: #fcf5fc; color: var(--purple); font-weight: 600; box-shadow: 0 0 0 1px var(--purple); }
.placement__opt:has(input:focus-visible) span { outline: 2px solid var(--purple); outline-offset: 2px; }
.placement__opt--tl { grid-area: 1 / 1; } .placement__opt--tc { grid-area: 1 / 2; } .placement__opt--tr { grid-area: 1 / 3; }
.placement__opt--c  { grid-area: 2 / 2; }
.placement__opt--bl { grid-area: 3 / 1; } .placement__opt--bc { grid-area: 3 / 2; } .placement__opt--br { grid-area: 3 / 3; }
@media (max-width: 420px) { .placement__opt span { padding: 5px 8px; font-size: .72rem; } }

.pdp__share {
  float: right; margin-top: -2px; padding: 4px 12px; border: 0; border-radius: 999px; background: #fff;
  font: inherit; font-size: .8rem; font-weight: 600; color: var(--purple); cursor: pointer; box-shadow: inset 0 0 0 1px #d9b4d6;
}
.pdp__share:hover { background: #f5e3f4; }
.fontpick { max-height: 320px; overflow-y: auto; padding: 2px; }

/* Keep the live preview on screen while the customer works down the options (wide screens only). */
@media (min-width: 1001px) {
  .pdp__media--sticky { position: sticky; top: 132px; align-self: start; }
  .pdp__media--sticky .pdp__mainimg { max-width: min(100%, max(400px, calc((100vh - 290px) * .75))); margin-inline: auto; }
  .pdp__media--sticky .pdp__thumbs, .pdp__media--sticky .pdp__previewnote { max-width: min(100%, max(400px, calc((100vh - 290px) * .75))); margin-inline: auto; }
}
.field--error .field__label { color: #b3261e; }

.pdp__info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; margin-top: 8px; }
.pdp__price { font-size: 1.4rem; font-weight: 600; color: var(--plum); margin-top: 14px; }
.pdp__pricenote { margin-top: 6px; font-size: .88rem; color: var(--terracotta); }
.pdp__desc { margin-top: 18px; color: var(--muted); }

.spec { margin-top: 24px; border-top: 1px solid var(--line); }
.spec > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }

.pdp__form { margin-top: 26px; }

/* Personalise it — wording, colour, an uploaded image and notes, asked for before the bag. */
.customise { margin: 0 0 20px; padding: 16px 18px 6px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.customise legend { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding-inline: 6px; }
.customise__opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.customise__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.customise .field { margin-bottom: 14px; }
.customise input[type=file] { width: 100%; font: inherit; font-size: .9rem; }
.customise textarea {
  width: 100%; min-height: 84px; padding: 12px 14px; resize: vertical;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.customise textarea:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
.customise__help { margin: 0 0 12px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.customise--error { border-color: #b3261e; }
.customise--error .customise__help { color: #b3261e; }
@media (max-width: 560px) { .customise__row { grid-template-columns: 1fr; } }

.addons { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px; }
.addons legend { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding-inline: 6px; }
.addon + .addon { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.addon__label { display: flex; gap: 10px; align-items: start; cursor: pointer; }
.addon__label input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--purple); }
.addon__label strong { display: block; font-weight: 600; }
.addon__label span { font-size: .92rem; }
.addon__note { margin-top: 6px; margin-left: 27px; font-size: .82rem; color: var(--muted); }

.pdp__buy { display: flex; gap: 12px; align-items: end; }
.qty label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.qty input { width: 86px; padding: 13px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.pdp__buy .btn { flex: 1; padding-block: 15px; }
.btn--block { display: block; width: 100%; text-align: center; }

.accordion { border-top: 1px solid var(--line); padding: 14px 0; }
.accordion summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.accordion p { margin-top: 10px; color: var(--muted); font-size: .92rem; }

/* ---------- cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cart-line { display: grid; grid-template-columns: 104px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line__media .img { border-radius: var(--radius); width: 104px; }
.cart-line__noimage { display: block; width: 104px; height: 139px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); }
.cart-line h2 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }
.cart-line h2 a { text-decoration: none; }
.cart-line__meta { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.cart-line__note { margin-top: 8px; font-size: .86rem; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.cart-line__note strong { color: var(--muted); font-weight: 600; }
.mini-lines__note { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.cart-line__addons { margin-top: 8px; font-size: .84rem; color: var(--terracotta); display: grid; gap: 3px; }
.cart-line__qty { display: flex; gap: 8px; margin-top: 12px; }
.cart-line__qty input { width: 72px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: .9rem; }
.cart-line__qty button { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: .86rem; color: var(--muted); }
.cart-line__qty button:hover { color: var(--purple); }
.cart-line__total { font-weight: 600; white-space: nowrap; }

.cart__summary, .checkout__summary {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; position: sticky; top: 120px;
}
.cart__summary h2, .checkout__summary h2 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }
.cart__summary dl, .checkout__summary dl { margin: 16px 0 0; }
.cart__summary dl > div, .checkout__summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: .93rem; }
.cart__summary dd, .checkout__summary dd { margin: 0; font-weight: 600; }
.cart__summary .total, .checkout__summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.05rem; }
.discount-line dd, .discount-line dt { color: #1f6b3a; }

.discount-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #f2f8f2; border: 1px solid #cfe6d4; border-radius: var(--radius);
  padding: 12px 16px; font-size: .9rem; color: #1f6b3a;
}
.discount-applied strong { font-weight: 700; }
.discount-applied__remove {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: .85rem; font-weight: 600; color: #1f6b3a; text-decoration: underline; flex: none;
}
.cart__note { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.cart__summary .btn { margin-top: 18px; }
.cart__continue { display: block; text-align: center; margin-top: 14px; font-size: .9rem; color: var(--muted); }

.mini-lines { margin-top: 16px; display: grid; gap: 10px; font-size: .9rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- forms ---------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.field-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 22px; }
.field-group legend { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding-inline: 6px; }
.field { margin-top: 14px; }
.field:first-of-type { margin-top: 6px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; font-size: .95rem; background: #fff;
}
.field textarea { resize: vertical; }
.field__hint { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.field__hint--ok { color: #1f6b3a; font-weight: 600; }
.field__hint--error { color: #b91c1c; font-weight: 600; }
.field--error label { color: #b3261e; }
.field--error input, .field--error select, .field--error textarea { border-color: #b3261e; }
.field__check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.field__optional { font-weight: 400; color: var(--muted); font-size: .85em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--inline { display: flex; gap: 10px; align-items: stretch; }
.field--inline input { flex: 1; }
.field--inline .btn { padding-inline: 22px; white-space: nowrap; }

.choice { display: flex; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin-top: 10px; }
.choice:has(input:checked) { border-color: var(--purple); background: #fdf7fd; }
.choice input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--purple); }
.choice strong { display: block; font-weight: 600; }
.choice span { font-size: .9rem; color: var(--muted); }
.choice strong { color: var(--ink); }

.checkout__disclosure { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }
.form-disclosure { font-size: .85rem; color: var(--muted); margin: 4px 0 20px; }
.stacked-form .field-group { margin-top: 22px; }

/* ---------- misc blocks ---------- */
.notice {
  background: var(--parchment); border-left: 3px solid var(--terracotta);
  padding: 16px 18px; border-radius: var(--radius); margin-top: 18px; font-size: .93rem;
}
.notice--success { background: #f2f8f2; border-left-color: #3f7a46; }
.notice a { font-weight: 600; }

.empty { text-align: center; padding-block: clamp(40px, 6vw, 80px); }
.empty h2, .empty h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; }
.empty p { margin-top: 10px; color: var(--muted); }
.empty .btn { margin-top: 24px; }

.cta-band { text-align: center; max-width: 620px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; }
.cta-band p { margin-top: 10px; color: #5c3f5b; }
.cta-band .btn { margin-top: 22px; }
.cta-band--inline { margin-top: clamp(40px, 5vw, 64px); padding: 36px 24px; background: var(--bg-soft); border-radius: var(--radius); }
.cta-band--inline p { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }
.stack-links { margin-top: 14px; display: grid; gap: 12px; }
.stack-links a { font-weight: 600; color: var(--purple); text-decoration: none; }
.stack-links a:hover { text-decoration: underline; }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.25rem; font-weight: 600; margin-top: 32px; }
.prose p { margin-top: 14px; color: #4a3a49; }
.prose ul { margin-top: 14px; display: grid; gap: 8px; padding-left: 20px; list-style: disc; color: #4a3a49; }
.prose a { color: var(--purple); }
.prose--legal h2 { margin-top: 36px; padding-top: 4px; }
.prose--legal h2:first-child { margin-top: 0; }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pdp, .cart, .checkout, .contact-grid { grid-template-columns: 1fr; }
  .cart__summary, .checkout__summary { position: static; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 78px 1fr; }
  .cart-line__media .img { width: 78px; }
  .cart-line__total { grid-column: 2; }
  .shop-group__head { flex-direction: column; gap: 6px; }
}

/* per-day add-ons need a quantity, not a tick */
.addon__days { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.addon__days label { font-size: .92rem; }
.addon__days strong { display: block; font-weight: 600; }
.addon__daysinput { display: flex; align-items: center; gap: 8px; }
.addon__daysinput input { width: 74px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: .92rem; }
.addon__daysinput span { font-size: .88rem; color: var(--muted); }
.addon__days + .addon__note { margin-left: 0; }

/* ==========================================================================
   Motion

   Everything below is additive polish. The `.js` class is added by the inline
   script in the footer — NOT from markup — so if the script never runs, none of
   the hidden-until-revealed states apply and the page is simply static and fully
   visible. That is the whole safety model: motion can only ever hide something
   in a document where the code that un-hides it is already running.
   ========================================================================== */

:root {
  --ease-out:    cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --dur-fast: .18s;
  --dur:      .32s;
  --dur-slow: .62s;
}

/* ---------- blur-up images ------------------------------------------------ */
.img {
  position: relative; display: block; overflow: hidden;
  background: var(--bg-soft); isolation: isolate;
}
.img--fill { position: absolute; inset: 0; }
.img__el { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* The placeholder. Inset slightly so the blur radius never reveals a hard edge. */
.img::before {
  content: ""; position: absolute; inset: -5%; z-index: 0;
  background-image: var(--lqip, none);
  background-size: cover; background-position: center;
  filter: blur(16px); transform: scale(1.08);
  transition: opacity var(--dur-slow) var(--ease-out);
}

.js .img__el { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.js .img.is-loaded .img__el { opacity: 1; }
.js .img.is-loaded::before { opacity: 0; }

/* ---------- scroll reveal ------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- cross-document page transitions ------------------------------- */
/*
   Real navigations, morphed by the browser. No router, no JS — the pages stay
   ordinary server-rendered documents. Browsers without support just navigate.
*/
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-fade-out .2s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-fade-in  .34s var(--ease-out) both; }

@keyframes vt-fade-out { to   { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-fade-in  { from { opacity: 0; transform: translateY(10px); } }

/* Chrome persists these across the navigation instead of cross-fading them. */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

/* A product thumbnail carries the same name as the hero on its detail page, so
   the browser morphs one into the other. Names are set inline per handle. */
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease-out); }

/* ---------- header on scroll ---------------------------------------------- */
.site-header {
  transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.site-header__inner { transition: padding-block var(--dur) var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 6px 28px rgb(59 12 58 / .09); }
.site-header.is-scrolled .site-header__inner { padding-block: 10px; }
.site-header__logo img { transition: width var(--dur) var(--ease-out); }
.site-header.is-scrolled .site-header__logo img { width: 122px; }

/* ---------- micro-interactions -------------------------------------------- */
.btn { transition: background var(--dur-fast) var(--ease-out),
                   color var(--dur-fast) var(--ease-out),
                   border-color var(--dur-fast) var(--ease-out),
                   transform var(--dur-fast) var(--ease-out),
                   box-shadow var(--dur) var(--ease-out); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(135 14 130 / .28); }
.btn:active { transform: translateY(0) scale(.985); }

.product-card { transition: transform var(--dur) var(--ease-out); }
.product-card:hover { transform: translateY(-4px); }
.product-card h3 a { transition: color var(--dur-fast) var(--ease-out); }

.branch-card { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.branch-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgb(59 12 58 / .22); }
.branch-card__body > * { transition: transform var(--dur) var(--ease-out); }
.branch-card:hover .branch-card__cta { transform: translateX(4px); }

.occasions a { transition: background var(--dur-fast) var(--ease-out),
                           color var(--dur-fast) var(--ease-out),
                           border-color var(--dur-fast) var(--ease-out),
                           transform var(--dur-fast) var(--ease-spring); }
.occasions a:hover { transform: translateY(-3px); }

.icon-btn { transition: background var(--dur-fast) var(--ease-out); }
.icon-btn__count { transition: transform var(--dur) var(--ease-spring); }
.icon-btn__count.is-bumped { animation: badge-bump .5s var(--ease-spring); }
@keyframes badge-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.55); }
  100% { transform: scale(1); }
}

/* ---------- carousel ------------------------------------------------------ */
.carousel__track { scroll-behavior: smooth; }
.carousel__nav button {
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur) var(--ease-out);
}
.carousel__nav button[disabled] { opacity: .3; pointer-events: none; }

/* ---------- accordions ---------------------------------------------------- */
.accordion summary { transition: color var(--dur-fast) var(--ease-out); list-style: none; position: relative; padding-right: 28px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  rotate: 45deg; transition: rotate var(--dur) var(--ease-out);
}
.accordion[open] summary::after { rotate: -135deg; margin-top: -2px; }
.accordion summary:hover { color: var(--purple); }

/* Animate the open/close where the browser can interpolate to auto height. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .accordion::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size var(--dur) var(--ease-out), content-visibility var(--dur) allow-discrete;
  }
  .accordion[open]::details-content { block-size: auto; }
}

/* ---------- forms --------------------------------------------------------- */
.field input, .field select, .field textarea,
.qty input, .addon__daysinput input, .newsletter__row input {
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field :is(input, select, textarea):focus,
.qty input:focus, .addon__daysinput input:focus, .newsletter__row input:focus {
  border-color: var(--purple); box-shadow: 0 0 0 3px rgb(135 14 130 / .13); outline: none;
}
.choice { transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.consent__error[hidden] { display: none; }
.consent__error { animation: shake .4s var(--ease-out); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ---------- mobile nav ---------------------------------------------------- */
@media (max-width: 1000px) {
  .primary-nav {
    display: block; overflow: hidden;
    max-height: 0; opacity: 0;
    transition: max-height var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  }
  .primary-nav.is-open { max-height: 70vh; opacity: 1; overflow-y: auto; }
  .nav-toggle svg { transition: rotate var(--dur) var(--ease-out); }
  .nav-toggle[aria-expanded="true"] svg { rotate: 90deg; }
}

/* ==========================================================================
   Reduced motion — one authoritative block.

   Anyone who has asked their OS for less movement gets no transforms, no
   reveals, no page-transition animation, and images that simply appear. Nothing
   below is optional polish: a vestibular trigger is an accessibility failure.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveals must not depend on a transition that no longer runs. */
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .img__el { opacity: 1 !important; }
  .js .img::before { opacity: 0 !important; }

  .btn:hover, .btn:active,
  .product-card:hover, .branch-card:hover, .occasions a:hover { transform: none !important; }
  .branch-card:hover .img__el, .product-card:hover .product-card__media .img__el { scale: 1 !important; }
  .carousel__track { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Hero slideshow
   ========================================================================== */

.hero-slides { position: relative; overflow: hidden; }

.hero-slides__track { position: absolute; inset: 0; }

.hero-slides__slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .8s var(--ease-out);
  /* Forces its own GPU compositing layer. Without this, a handful of real
     mobile Safari versions have been seen leaving a stacked, absolutely
     positioned, opacity-transitioning element painted at its STARTING
     opacity (invisible) after the very first paint, only repainting
     correctly after some unrelated trigger (a scroll, a resize) — the
     image is really there and really loaded, it just never gets drawn.
     translateZ(0) sidesteps that by keeping this element on its own layer
     from the start, instead of opacity + visibility toggling in place. */
  transform: translateZ(0);
}
.hero-slides__slide.is-current {
  opacity: 1; pointer-events: auto;
}
/* A slow drift on the visible slide gives the hero life without moving anything
   the eye is trying to read. Disabled under reduced motion below. */
.hero-slides__slide .img__el { transition: opacity var(--dur-slow) var(--ease-out), scale 7s linear; }
.hero-slides__slide.is-current .img__el { scale: 1.05; }

.hero-slides__controls {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hero-slides__arrow, .hero-slides__play {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgb(255 255 255 / .86); color: var(--plum);
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.hero-slides__arrow:hover, .hero-slides__play:hover { background: #fff; transform: scale(1.08); }
.hero-slides__arrow svg, .hero-slides__play svg { width: 18px; height: 18px; }

.hero-slides__play .i-play  { display: none; }
.hero-slides.is-paused .hero-slides__play .i-pause { display: none; }
.hero-slides.is-paused .hero-slides__play .i-play  { display: block; }

.hero-slides__dots { display: flex; gap: 7px; align-items: center; }
.hero-slides__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: rgb(255 255 255 / .55);
  transition: background var(--dur-fast) var(--ease-out), width var(--dur) var(--ease-out);
}
.hero-slides__dots button[aria-selected="true"] { background: #fff; width: 26px; border-radius: 5px; }

/* The controls sit on photography, so give every one of them a visible ring
   rather than relying on the default outline against an unknown background. */
.hero-slides :is(button):focus-visible {
  outline: 3px solid #fff; outline-offset: 3px;
  box-shadow: 0 0 0 6px rgb(59 12 58 / .45);
}

@media (max-width: 1000px) {
  /* min-height is deliberately NOT reset here — .hero__media (same element,
     the other selector it's rendered with) is the one authoritative place
     that sets it for mobile now; repeating a conflicting value here is
     exactly the kind of two-rules-fighting-over-one-property setup that
     made the real height-collapse bug hard to see in the first place. */
  .hero-slides { aspect-ratio: 4 / 3; }
  .hero-slides__controls { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides__slide { transition: none !important; }
  .hero-slides__slide.is-current .img__el { scale: 1 !important; }
  .hero-slides__arrow:hover, .hero-slides__play:hover { transform: none !important; }
}

/* ==========================================================================
   Signup popup
   ========================================================================== */

.popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgb(59 12 58 / 0);
  transition: background var(--dur) var(--ease-out);
}
.popup-overlay.is-open { background: rgb(59 12 58 / .55); }
.popup-overlay[hidden] { display: none; }
/*
  This is a position:fixed, inset:0 element, so the moment it stops being
  visually the popup (is-open removed) it must ALSO stop intercepting clicks —
  hiding it for real ([hidden]) happens a beat later, on transitionend or a JS
  failsafe timer, and if either is ever delayed or skipped this is what stops
  an invisible overlay from silently blocking every click to the page under it.
*/
.popup-overlay:not(.is-open) { pointer-events: none; }
.popup-overlay.is-open { pointer-events: auto; }

.popup {
  position: relative; width: 100%; max-width: 420px;
  background: var(--parchment); border-radius: var(--radius);
  padding: 40px 32px 32px; text-align: center;
  box-shadow: 0 24px 60px -12px rgb(59 12 58 / .45);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.popup-overlay.is-open .popup { opacity: 1; transform: none; }

.popup__close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; border: 0; background: rgb(59 12 58 / .08); color: var(--plum);
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.popup__close:hover { background: rgb(59 12 58 / .16); }
.popup__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.popup h2 { font-size: 1.5rem; font-weight: 400; font-family: var(--font-display); }
.popup > p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.popup .newsletter__row { margin-top: 22px; }
.popup .newsletter__row input { border: 1px solid var(--line); }
.popup .consent { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .popup-overlay, .popup { transition: none !important; }
}

/* ==========================================================================
   Order confirmation
   ========================================================================== */

.order-confirm { text-align: center; padding-block: 20px; }
.order-confirm__check {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #f2f8f2; color: #3f7a46; margin-bottom: 18px;
}
.order-confirm__check svg { width: 30px; height: 30px; }
.order-confirm h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; }
.order-confirm__ref { margin-top: 8px; color: var(--muted); }
.order-confirm .notice { text-align: left; margin-top: 24px; }
.order-confirm h2 { margin-top: 32px; font-size: 1.05rem; font-weight: 600; text-align: left; }
.order-confirm .mini-lines { text-align: left; margin-top: 14px; }
.order-confirm dl { text-align: left; margin-top: 4px; }
.order-confirm dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: .93rem; border-bottom: 1px solid var(--line); }
.order-confirm dl > div.total { font-weight: 700; font-size: 1.05rem; border-bottom: 0; padding-top: 12px; }
.order-confirm p { text-align: left; }
.order-confirm .form-disclosure { text-align: left; margin-top: 24px; }
.order-confirm .btn { margin-top: 24px; }

/* ---- design-brief step (Signages/Caps orders only) --------------------- */

.order-brief { text-align: left; margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.order-brief h2 { margin-top: 0; font-size: 1.05rem; font-weight: 600; }
.order-brief > p { color: var(--muted); margin-top: 4px; }
.order-brief .choice { margin-top: 14px; }
/* Only the field matching the checked radio shows — no JS needed, same
   :has() trick already used for .choice:has(input:checked) above. Degrades
   safely: a browser without :has() just shows every field at once. */
.brief-extra { display: none; }
.order-brief__form:has(input[name="path"][value="describe"]:checked) .brief-extra--describe { display: block; }
.order-brief__form:has(input[name="path"][value="upload"]:checked) .brief-extra--upload { display: block; }
.order-brief .btn { margin-top: 18px; }

/* ---------- Build Your Own Box --------------------------------------------- */
.box-builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.box-group { border: 0; padding: 0; margin: 0 0 clamp(28px, 4vw, 40px); min-width: 0; }
.box-group legend { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; padding: 0; margin-bottom: 14px; }
.box-group__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.box-item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.box-item:focus-within { border-color: var(--purple); }
.box-item__media { width: 72px; }
.box-item__body { min-width: 0; display: grid; gap: 2px; }
.box-item__body label { font-weight: 600; overflow-wrap: anywhere; }
.box-item__price { font-size: .9rem; color: var(--muted); }
.box-item__qty input {
  width: 72px; padding: 10px; text-align: center; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.box-item__qty input:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.box-builder__summary {
  position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-soft);
}
.box-builder__summary h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.box-builder__total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.box-builder__total strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.box-builder__summary .field textarea { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; resize: vertical; }
.box-builder__summary .field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.box-builder__summary .btn { margin-top: 16px; }
.box-builder__fine { margin-top: 12px; font-size: .82rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) {
  .box-builder { grid-template-columns: 1fr; }
  .box-builder__summary { position: static; }
}

/* Bulk / group ordering prompts (shop page, gift product pages) */
.bulk-cta { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 40px); background: var(--lavender); border-radius: var(--radius); text-align: center; }
.bulk-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 400; }
.bulk-cta p { margin: 10px auto 0; max-width: 56ch; color: #5c3f5b; }
.bulk-cta .btn { margin-top: 20px; }
.pdp__bulk { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.pdp__bulk a { font-weight: 600; }
.contact-whatsapp { display: inline-flex; margin-top: 4px; }

/* Branch sections (Picture signs, Glitter toppers, ...) */
.section-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.section-tile { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.section-tile .img { border-radius: var(--radius); }
.section-tile__title { font-family: var(--font-display); font-size: 1.25rem; }
.section-tile__count { margin-top: -6px; font-size: .88rem; color: var(--muted); }
.section-tile:hover .section-tile__title, .section-tile:focus-visible .section-tile__title { color: var(--purple); }

.cart-line__upload { display: block; margin-top: 6px; max-width: 120px; max-height: 120px; border-radius: var(--radius); border: 1px solid var(--line); }

/* Any number of branches other than four: an even, responsive grid. */
.branch-grid--even { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
.branch-grid--even .branch-card { aspect-ratio: 4 / 3; }
.branch-grid--even .branch-card:nth-child(4) { grid-column: auto; aspect-ratio: 4 / 3; }

/* Plan Your Event: multi-select needs as tick boxes */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 8px; }
.choice--check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choice--check:has(input:checked) { border-color: var(--purple); background: var(--bg-soft); }
.choice--check input { width: 18px; height: 18px; accent-color: var(--purple); flex: none; }

/* Once Upon a Vine's three offerings — Book Club, Christian Reads, Book
   Subscription Boxes. Deliberately three separate cards, not one generic
   list: each is its own journey with its own CTA(s). */
.vine-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.vine-offer { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.vine-offer__eyebrow { color: var(--terracotta); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vine-offer h2 { font-size: 1.3rem; font-weight: 600; }
.vine-offer p { color: var(--muted); font-size: .92rem; }
.vine-offer__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vine-offer__cats a { font-size: .82rem; font-weight: 600; color: var(--purple); background: var(--bg-soft); border-radius: 999px; padding: 5px 12px; }
.vine-offer__ctas { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.vine-tagline { text-align: center; font-size: 1.1rem; font-style: italic; color: var(--plum); }

/* ---- cookie consent banner (only exists when tracking is switched on) ---- */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px;
  display: flex; justify-content: center; pointer-events: none;
}
.cookiebar[hidden] { display: none; }
.cookiebar__inner {
  pointer-events: auto; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between;
  width: min(100%, 880px); padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgb(42 10 41 / .18);
}
.cookiebar__text { flex: 1 1 360px; min-width: 0; font-size: .88rem; line-height: 1.5; }
.cookiebar__text p { margin: 0; }
.cookiebar__title { font-weight: 700; margin-bottom: 2px !important; }
.cookiebar__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookiebar__actions .btn { padding: 10px 22px; }
.site-footer__linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
