/* ZCARDZ storefront styles
   Layout concept: a white page of "paper" where every product sits as a real
   card you could pick up; big Luckiest Guy headlines, thick ebony lines.
   Core palette: mostly Ice + white space, Candy and Ebony for brand, Lemon for
   sparkle (Orange never shares a design with Lemon, so the core site uses Lemon only).
   .theme-xmas swaps every token for the Christmas palette (Nov to Dec). */

:root {
  --candy: #FA02B7; --ebony: #231F21; --ice: #FFFFFF; --lemon: #FFFCB7; --orange: #FF6A00;
  --red: #E80A0C; --pine: #1F6B3A; --cream: #F5E7D8; --salmon: #F0A892;

  --bg: var(--ice);            /* page */
  --fg: var(--ebony);          /* text */
  --muted: #5B5559;            /* secondary text, ebony tint */
  --ink: var(--ebony);         /* line art + borders */
  --accent: var(--candy);      /* buttons, Zs, key headings */
  --on-accent: #FFFFFF;
  --soft: var(--lemon);        /* sparkle panels */
  --dark: var(--ebony);        /* dark bands */
  --on-dark: #FFFFFF;
  --on-dark-accent: var(--candy);
  --paper: #FFFFFF;            /* card stock */
  --line: var(--ebony);
  --grid: rgba(35, 31, 33, .07);
  /* colour roles for illustrations */
  --ca: var(--candy); --cb: var(--lemon); --cc: #FFFFFF; --cd: var(--ebony);

  --display: "Luckiest Guy", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r: 16px;            /* card radius, matches guide tiles */
  --bw: 3px;            /* brand border width */
  --wrap: 1200px;
  color-scheme: light;
}

.theme-xmas {
  --bg: var(--cream);
  --accent: var(--red);
  --soft: #FFFFFF;
  --dark: var(--pine);
  --on-dark: var(--cream);
  --on-dark-accent: var(--cream); /* salmon on pine is only 3.3:1, so small text stays cream */
  --muted: #4A4A42;
  --grid: rgba(31, 107, 58, .08);
  --ca: var(--red); --cb: var(--pine); --cc: var(--cream); --cd: var(--salmon);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 18px; line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Type scale (from guide 4.2, scaled for screens) ---------- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: .01em; margin: 0; text-wrap: balance; }
.display { font-size: clamp(3.4rem, 10vw, 7rem); }
h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.subhead { font-weight: 900; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.3; margin: 0; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 34ch; margin: 0; }
.eyebrow { font-weight: 900; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); margin: 0; }
.eyebrow::before { content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--accent); margin-right: .55em; vertical-align: -.05em; }
/* small candy text on white/lemon is 3.4 to 3.6:1, so labels are ebony with a candy dot */
.z { color: var(--accent); }
.theme-xmas .eyebrow { color: var(--pine); } /* red on cream is 3.9:1, too low for small caps */
.theme-xmas .band-dark .eyebrow, .theme-xmas .format.best .eyebrow { color: var(--cream); }
.theme-xmas .site-foot h4 { color: var(--salmon); } /* large display text, passes 3:1 */
p { margin: 0; }
.stack { display: grid; gap: 18px; align-content: start; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent); --t: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  background: var(--b); color: var(--t); border: var(--bw) solid var(--b);
  font-weight: 900; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { --b: #FFFFFF; --t: var(--ebony); border-color: var(--ink); }
.btn.dark { --b: var(--dark); --t: var(--on-dark); }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Announcement bar ---------- */
.bar { background: var(--dark); color: var(--on-dark); font-weight: 800; font-size: .95rem; }
.bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; padding-block: 10px; text-align: center; }
.bar a { color: var(--on-dark-accent); font-weight: 900; }
.bar strong { color: var(--on-dark-accent); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: var(--bw) solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo svg { height: 50px; width: auto; aspect-ratio: 222 / 92; display: block; } /* about 120px wide: the guide's smallest on-screen size */
.logo .word { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--fg); letter-spacing: .02em; padding-top: 4px; }
.logo .word span { color: var(--accent); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); box-shadow: inset 0 0 0 2px var(--ink); }
.cart-btn {
  position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; font-weight: 900;
}
.cart-btn:hover svg { transform: rotate(-6deg); }
.cart-btn svg { width: 36px; height: 36px; transition: transform .15s ease; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--bg); background: var(--accent); color: var(--on-accent); display: inline-grid; place-items: center; font-size: .75rem; padding-inline: 5px; font-variant-numeric: tabular-nums; line-height: 1; }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.12) rotate(-4deg); } }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: var(--bw) solid var(--line); flex-direction: column; padding: 12px max(20px, env(safe-area-inset-left, 0px)) 18px; }
  .nav.open { display: flex; }
  .menu-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--paper); cursor: pointer; margin-left: auto; }
  .cart-btn { margin-left: 0; }
  .logo .word { font-size: 1.6rem; }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 9vw, 110px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.section-head .stack { max-width: 640px; }
.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark .eyebrow { color: var(--on-dark-accent); }
.band-soft { background: var(--soft); border-block: var(--bw) solid var(--line); }
.graph { background-color: var(--soft); background-image: linear-gradient(var(--grid) 2px, transparent 2px), linear-gradient(90deg, var(--grid) 2px, transparent 2px); background-size: 36px 36px; }
.rule { border: 0; border-top: var(--bw) solid var(--line); margin: 0; }

/* ---------- Illustrations ---------- */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art .r, .art .l { stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.art .r { fill: #FFFFFF; transition: fill .45s ease; }
.art .l { fill: none; }
.art .dot { fill: var(--ink); }
.art.coloured .r[data-c="a"] { fill: var(--ca); }
.art.coloured .r[data-c="b"] { fill: var(--cb); }
.art.coloured .r[data-c="c"] { fill: var(--cc); }
.art.coloured .r[data-c="d"] { fill: var(--cd); }

/* A greeting card front: paper, line art, outlined headline you colour too */
.cardface {
  position: relative; aspect-ratio: 5 / 7; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 6px;
  display: grid; grid-template-rows: auto 1fr; padding: 9% 10% 10%; gap: 4%; overflow: hidden; max-width: 100%;
}
.cardface::after { /* the fold edge */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,.12), transparent);
}
.cardface .hl {
  font-family: var(--display); text-align: center; line-height: .95; font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  color: #FFFFFF; -webkit-text-stroke: 1.6px var(--ink); paint-order: stroke fill; text-wrap: balance; transition: color .45s ease;
}
.cardface.coloured .hl { color: var(--accent); }
.cardface .art { align-self: center; }
.cardface .brandmark { position: absolute; right: 8px; bottom: 6px; font-family: var(--display); font-size: .7rem; opacity: .55; }

/* ---------- Product grid ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: var(--bw) solid var(--ink); background: var(--paper); border-radius: 999px; padding: 8px 18px; font-weight: 900; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.product { display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.product .shot {
  position: relative; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--soft);
  padding: 26px 30px; cursor: pointer; display: grid; place-items: center; transition: transform .2s ease, box-shadow .2s ease;
}
.theme-xmas .product .shot { background: #FFFFFF; }
.product .shot:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 6px 0 var(--ink); }
.product .shot .cardface { width: 78%; transform: rotate(-2deg); box-shadow: 6px 6px 0 rgba(0,0,0,.08); }
.product .badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: .8rem; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); }
.product .hint { position: absolute; bottom: 10px; right: 12px; font-size: .78rem; font-weight: 900; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; opacity: 0; transition: opacity .2s; }
.product .shot:hover .hint, .product .shot:focus-visible .hint { opacity: 1; }
.product .meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-content: start; }
.product .meta h3 { font-family: var(--body); font-weight: 900; font-size: 1.1rem; line-height: 1.25; letter-spacing: 0; }
.product .type { font-size: .85rem; font-weight: 800; color: var(--muted); grid-column: 1; }
.price { font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.price s { font-weight: 600; color: var(--muted); font-size: .85em; margin-right: 4px; }
.product .btn { grid-column: 1 / -1; margin-top: 8px; }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 640px) {
  .grid, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .product .shot { padding: 16px 18px; }
  .product .meta { grid-template-columns: 1fr; }
  .product .meta h3 { font-size: .98rem; }
  .price { text-align: left; }
  .product .badge { font-size: .7rem; padding: 2px 8px; top: 8px; left: 8px; }
  .cardface .hl { -webkit-text-stroke-width: 1.1px; }
}
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 800; font-size: .95rem; }
.trust span::before { content: "\2713"; color: var(--accent); font-weight: 900; margin-right: 8px; }

/* Stacks of cards for packs and bundles */
.cardstack { position: relative; width: 78%; aspect-ratio: 5 / 7; }
.cardstack .cardface { position: absolute; inset: 0; width: 100% !important; }
.cardstack .cardface:nth-child(1) { transform: rotate(-9deg) translate(-8%, 2%); }
.cardstack .cardface:nth-child(2) { transform: rotate(5deg) translate(8%, 0); }
.cardstack .cardface:nth-child(3) { transform: rotate(-1deg); }
/* Photographed boxed sets: the real cards, two by two in a box */
.photobox { width: 88%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #FFFFFF; border: var(--bw) solid var(--ink); border-radius: 12px; padding: 8px; transform: rotate(-1.5deg); box-shadow: 6px 6px 0 rgba(0,0,0,.08); }
.photobox img { width: 100%; aspect-ratio: 384 / 496; object-fit: cover; border-radius: 6px; display: block; }
.boxlabel { grid-column: 1 / -1; text-align: center; font-weight: 900; font-size: .85rem; color: var(--ebony); }
.thumbimg { width: 100%; aspect-ratio: 384 / 496; object-fit: cover; border: 2px solid var(--ink); border-radius: 6px; display: block; }
.gallery { display: grid; gap: 12px; max-width: 420px; width: 100%; justify-self: center; }
.gallery .main { width: 100%; aspect-ratio: 384 / 496; object-fit: cover; border: var(--bw) solid var(--ink); border-radius: 16px; display: block; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery .thumbs button { padding: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.gallery .thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.gallery .thumbs img { display: block; width: 100%; }

/* A4 printable sheet for downloads */
.sheet { width: 100%; aspect-ratio: 297 / 210; background: #fff; border: var(--bw) solid var(--ink); border-radius: 4px; display: grid; grid-template-columns: 1fr 1fr; position: relative; transform: rotate(-2deg); box-shadow: 6px 6px 0 rgba(0,0,0,.08); }
.sheet::after { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; border-left: 2px dashed var(--ink); opacity: .5; }
.sheet .back { display: grid; place-items: center; font-family: var(--display); font-size: .8rem; color: var(--muted); }
.sheet .front { display: grid; grid-template-rows: auto 1fr; padding: 8% 10%; gap: 2%; }
.sheet .front .hl { font-family: var(--display); text-align: center; font-size: clamp(.7rem, 1.5vw, 1rem); color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; line-height: 1; }
.sheet .pdf { position: absolute; top: -12px; right: -10px; background: var(--dark); color: var(--on-dark); font-weight: 900; font-size: .75rem; padding: 4px 10px; border-radius: 999px; transform: rotate(4deg); }

/* ---------- Colour-in studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.studio .canvas { max-width: 380px; width: 100%; justify-self: center; }
.studio .cardface .art .r { cursor: crosshair; }
.studio .cardface .art .r:hover { stroke-width: 8; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 48px; height: 48px; border-radius: 50%; border: var(--bw) solid var(--ink); cursor: pointer; background: var(--sw); position: relative; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--ink); }
.studio-tools { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .studio { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 28px; background: var(--paper); display: grid; gap: 12px; align-content: start; }
.step .icon { width: 84px; height: 84px; }
.step .n { font-family: var(--display); font-size: 2.4rem; color: var(--accent); line-height: 1; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Brand value tiles (guide 1.1) ---------- */
.values { display: grid; gap: 16px; }
.value { border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 22px 26px; display: grid; gap: 6px; }
.value h3 { font-size: 1.8rem; }
.value.v1 { background: var(--candy); color: #fff; }
.value.v2 { background: var(--ebony); color: var(--lemon); }
.value.v3 { background: var(--lemon); }

/* ---------- Forms ---------- */
.field { display: flex; flex-wrap: wrap; gap: 10px; }
.field input {
  flex: 1 1 240px; min-width: 0; min-height: 54px; padding: 12px 20px; border-radius: 999px; border: var(--bw) solid var(--ink);
  font: inherit; font-weight: 700; background: #fff; color: var(--ebony);
}
.form-note { font-size: .9rem; color: var(--muted); }
.form-msg { font-weight: 900; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: var(--bw) solid var(--line); }
.faq details { border-bottom: var(--bw) solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 900; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 2rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 68ch; }

/* ---------- Footer ---------- */
.site-foot { background: var(--dark); color: var(--on-dark); padding-block: 64px 40px; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-foot h4 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin: 0 0 12px; color: var(--on-dark-accent); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; font-weight: 700; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .logo .word { color: var(--on-dark); }
.site-foot .logo .word span { color: var(--on-dark-accent); }
.site-foot .legal { margin-top: 48px; padding-top: 20px; border-top: 2px solid currentColor; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* ---------- Drawers & dialogs ---------- */
.scrim { position: fixed; inset: 0; background: rgba(35,31,33,.55); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 90; background: var(--bg); border-left: var(--bw) solid var(--ink);
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: grid; grid-template-rows: auto auto 1fr auto;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: var(--bw) solid var(--ink); }
.drawer-head h2 { font-size: 2rem; }
.x { width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--paper); cursor: pointer; font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; }
.ship-meter { padding: 14px 22px; border-bottom: 2px solid var(--ink); font-weight: 800; font-size: .95rem; display: grid; gap: 8px; }
.meter { height: 14px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.meter i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s ease; }
.lines { overflow-y: auto; padding: 8px 22px; display: grid; align-content: start; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 2px dashed rgba(35,31,33,.25); }
.line .thumb .cardface { padding: 8%; border-width: 2px; }
.line .thumb .cardface .hl { display: none; }
.line .thumb .cardface { grid-template-rows: 1fr; }
.line .name { font-weight: 900; line-height: 1.25; }
.line .sub { font-size: .85rem; color: var(--muted); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; margin-top: 6px; }
.qty button { width: 34px; height: 32px; border: 0; background: none; cursor: pointer; font-weight: 900; font-size: 1.1rem; }
.qty span { min-width: 24px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.line .remove { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: .8rem; color: var(--muted); padding: 0; margin-left: 10px; }
.drawer-foot { border-top: var(--bw) solid var(--ink); padding: 18px 22px; display: grid; gap: 12px; background: var(--paper); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.25rem; font-weight: 900; }
.upsell { border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: .92rem; background: var(--soft); }
.empty { text-align: center; padding: 48px 10px; display: grid; gap: 16px; justify-items: center; }
.empty .art { width: 120px; }
.demo-note { font-size: .8rem; color: var(--muted); text-align: center; }

dialog.quick {
  border: var(--bw) solid var(--ink); border-radius: 22px; padding: 0; width: min(980px, calc(100% - 24px)); max-height: calc(100% - 24px);
  background: var(--bg); color: var(--fg); overflow: auto;
}
dialog.quick::backdrop { background: rgba(35,31,33,.6); }
.quick-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 36px; }
.quick-body .canvas { max-width: 360px; justify-self: center; width: 100%; }
.quick .x { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; }
.quick ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
@media (max-width: 760px) { .quick-body { grid-template-columns: 1fr; padding: 22px; } }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); z-index: 100;
  background: var(--ink); color: #fff; font-weight: 900; padding: 14px 22px; border-radius: 999px; transition: transform .3s ease; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================= Two ways to shop ================= */
/* Easter palette from brand guide 6.2 (in store March to April) */
.occ-easter { --ca: #7357D8; --cb: #FFD84D; --cc: #F8F7F2; --cd: #341C84; }
.occ-xmas { --ca: var(--red); --cb: var(--pine); --cc: var(--cream); --cd: var(--salmon); }
.occ-bday { --ca: var(--candy); --cb: var(--lemon); --cc: #FFFFFF; --cd: var(--ebony); }

.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.path { border: var(--bw) solid var(--ink); border-radius: 28px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--fg); background: #FFFFFF; transition: transform .2s ease, box-shadow .2s ease; }
.path:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }
.path .pic { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 24px; border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.path .copy { padding: 26px 28px 30px; display: grid; gap: 12px; align-content: start; }
.path .copy h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.path .go { font-weight: 900; color: var(--fg); display: inline-flex; gap: 8px; align-items: center; }
.path .go::after { content: "\2192"; color: var(--candy); font-size: 1.3em; transition: transform .2s; }
.path:hover .go::after { transform: translateX(4px); }
.path-cards .pic { background: var(--cream); }
.path-cards .pic .fan3 { display: flex; justify-content: center; width: 100%; }
.path-cards .pic img { width: 36%; aspect-ratio: 384 / 496; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 rgba(0,0,0,.12); }
.path-cards .pic img:nth-child(1) { transform: rotate(-8deg) translateX(14%); }
.path-cards .pic img:nth-child(2) { transform: translateY(-4%); position: relative; z-index: 1; }
.path-cards .pic img:nth-child(3) { transform: rotate(8deg) translateX(-14%); }
.path-colour .pic { background-color: var(--lemon); background-image: linear-gradient(var(--grid) 2px, transparent 2px), linear-gradient(90deg, var(--grid) 2px, transparent 2px); background-size: 30px 30px; }
.path-colour .pic .sheet { width: 78%; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

.occasions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.occ { border: var(--bw) solid var(--ink); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ebony); background: #FFFFFF; display: grid; grid-template-rows: auto 1fr; transition: transform .2s ease, box-shadow .2s ease; }
.occ:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 6px 0 var(--ink); }
.occ .pic { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 18%; border-bottom: var(--bw) solid var(--ink); }
.occ .pic { overflow: hidden; }
.occ .pic img { width: 58%; height: auto; aspect-ratio: 800 / 1131; object-fit: cover; border-radius: 6px; border: 2px solid var(--ink); transform: rotate(-3deg); }
.occ.occ-xmas .pic { background: var(--pine); padding: 8%; }
.occ.occ-bday .pic { background: var(--candy); }
.occ.occ-easter .pic { background: #7357D8; }
.occ.occ-more .pic { background: var(--ebony); }
.occ .meta2 { padding: 16px 18px 18px; display: grid; gap: 4px; }
.occ h3 { font-size: 1.6rem; }
.occ .status { font-weight: 900; font-size: .85rem; }
.occ .status.st-live { color: var(--pine); }
.occ .status.st-soon { color: #5B5559; }
@media (max-width: 900px) { .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Coming-soon panel for occasions without cards yet */
.soon { border: var(--bw) dashed var(--ink); border-radius: 22px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; align-items: center; background: #FFFFFF; }
.soon .art { width: 160px; }
@media (max-width: 640px) { .soon { grid-template-columns: 1fr; } .soon .art { width: 110px; } }

/* Single greeting card photo in a product tile */
.photo1 { width: 80%; aspect-ratio: 384 / 496; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); display: block; transform: rotate(-1.5deg); box-shadow: 6px 6px 0 rgba(0,0,0,.08); }

/* "What's inside" a colour-your-own book */
.inside { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.inside .cardface { padding: 8% 8% 10%; border-width: 2px; gap: 2%; }
.inside .cardface .hl { font-size: .5rem; -webkit-text-stroke-width: .6px; }
.inside .cardface::after { width: 3px; }
.inside .art .r, .inside .art .l { stroke-width: 8; }

/* Featured boxed set */
.boxfeature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.boxphotos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.boxphotos img { width: 100%; aspect-ratio: 384 / 496; object-fit: cover; display: block; border: var(--bw) solid var(--pine); border-radius: 14px; background: #fff; }
.boxphotos img:nth-child(1) { transform: rotate(-2deg); } .boxphotos img:nth-child(2) { transform: rotate(1.5deg) translateY(14px); }
.boxphotos img:nth-child(3) { transform: rotate(1deg); } .boxphotos img:nth-child(4) { transform: rotate(-1.5deg) translateY(14px); }
.count-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-weight: 800; }
.count-list b { color: var(--pine); font-variant-numeric: tabular-nums; margin-right: 6px; }
.bigprice { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--pine); }
@media (max-width: 860px) { .boxfeature { grid-template-columns: 1fr; } }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps.four { grid-template-columns: 1fr; } }
.page-hero { padding-block: clamp(40px, 6vw, 80px); border-bottom: var(--bw) solid var(--line); }
.page-hero .wrap { display: grid; gap: 18px; }
.crosssell { border: var(--bw) solid var(--ink); border-radius: 22px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--lemon); }
@media (max-width: 760px) { .crosssell { grid-template-columns: 1fr; } .crosssell .sheet { max-width: 200px; } }

/* Perspective gallery: the box's designs fanned out in 3D */
.pgallery { position: relative; overflow: hidden; outline: none; border-radius: 22px; padding-block: 8px 4px; min-width: 0; }
.pgallery:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.pg-stage { position: relative; height: calc(min(15rem, 52vw) * 1.29 + 24px); perspective: 1400px; transform-style: preserve-3d; }
.pg-card { --cw: min(15rem, 52vw); position: absolute; left: 50%; top: 0; width: var(--cw); margin: 0 0 0 calc(var(--cw) / -2); will-change: transform; cursor: pointer; }
.pg-card img { display: block; width: 100%; aspect-ratio: 384 / 496; object-fit: cover; background: #fff; border: var(--bw) solid var(--pine); border-radius: 12px; box-shadow: 8px 8px 0 rgba(31, 107, 58, .28); }
.pg-card.is-active img { box-shadow: 10px 10px 0 var(--pine); }
.pg-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 10px; }
.pg-caption { text-align: center; display: grid; gap: 2px; min-height: 3em; }
.pg-caption b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--pine); }
.pg-caption span { font-size: .95rem; font-weight: 700; }
.pg-arrow { width: 46px; height: 46px; border-radius: 50%; border: var(--bw) solid var(--ink); background: #FFFFFF; font-weight: 900; font-size: 1.2rem; cursor: pointer; }
.pg-arrow:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .pg-card { transition: none; } }

/* Five designs: grids of five, and the box thumbnail with a large first card */
.grid[data-five] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .grid[data-five] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid[data-five] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }
.photobox.five { grid-template-columns: 1.3fr 1fr 1fr; }
.photobox.five img:first-child { grid-row: span 2; height: 100%; aspect-ratio: auto; }

/* Footer contact line */
.foot-contact { display: grid; gap: 4px; font-weight: 700; }
.foot-contact a { text-decoration: underline; text-underline-offset: 3px; }
.site-foot .legal { align-items: center; }
.drawer-foot .demo-note a { color: inherit; text-decoration: underline; }
.form-note a { color: inherit; text-decoration: underline; }
