﻿/* ==========================================================================
   Shizuka Riku Crafting: stylesheet
   Single brand theme (cream + mocha), light only.

   1.  Tokens
   2.  Base
   3.  Shared components (buttons, prices, chips, quantity, hints)
   4.  Catalog header
   5.  Navigation
   6.  Home page
   7.  Catalog grid
   8.  Price list pages
   9.  FAQ
   10. Match & Win game
   11. Footer
   12. Floating buttons and toast
   13. Cart drawer
   14. Variant picker
   15. Lightbox
   16. Motion
   17. Responsive: tablet (860px), phone (560px), small phone (360px)
   18. Reduced motion
   19. Seasonal themes (Christmas)
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --bg: #f6f0e8;
  --tile: #efe5d9;
  --mocha: #5b3f32;
  --peach: #c98d74;
  --ink: #3f2f27;
  --muted: #8c7568;
  --line: #dccbb9;
  --cream: #f6f0e8;
  --wa: #3f8f5a;
  --error: #b4533c;
  --serif: 'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --sans: Jost,'Helvetica Neue',Arial,sans-serif;
  --ease: cubic-bezier(.22,.8,.24,1);
  color-scheme: light;
}

/* 2. Base --------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 4px;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* text for QRIS payment on / off (main.js sets body.pay-on) */
body:not(.pay-on) [data-pay-on],
body.pay-on [data-pay-off] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

h1,
h2,
.amt,
.off,
.deal-t {
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px,7vw,72px);
  color: var(--mocha);
  line-height: .95;
  margin: 0;
  letter-spacing: -.01em;
}

h1 em,
h2 em,
h3 em,
.deal-t em,
.perk-t em {
  font-style: italic;
  font-weight: 600;
}

.logo {
  width: 170px;
  height: auto;
  display: block;
}

/* 3. Shared components -------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--peach);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.n {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--peach);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.t {
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}

.go {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}

.fine {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 6px 0 0;
}

.free {
  margin-top: 10px;
  background: var(--peach);
  color: #fff;
  border-radius: 30px;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--peach);
  color: var(--cream);
  padding: 11px 20px;
  border-radius: 40px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
}

.btn:hover {
  background: var(--peach);
  color: var(--mocha);
}

.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 14px;
  background: var(--mocha);
  color: var(--cream);
  border: 0;
  border-radius: 40px;
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.add:hover {
  background: var(--ink);
}

.add svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.add svg.fill {
  fill: currentColor;
  stroke: none;
}

.x {
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--mocha);
  font-size: 26px;
  line-height: 1;
}

.x:hover {
  background: var(--tile);
}

/* prices */
.price {
  text-align: right;
}

.amt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  color: var(--mocha);
  line-height: 1;
  white-space: nowrap;
}

.unit {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 6px;
}

.lbl {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--peach);
  font-weight: 500;
  white-space: nowrap;
}

.tl .amt {
  font-size: 40px;
}

/* dash list */
.lst {
  list-style: none;
  margin: 20px 0 22px;
  padding: 0;
}

.lst li {
  font-size: 16px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.lst li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 11px;
  height: 1px;
  background: var(--peach);
}

/* perk banner (keycaps switch, home game link) */
.perk {
  margin-top: 32px;
  border: 1.5px dashed var(--line);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 44px;
}

.perk svg {
  width: 56px;
  height: 56px;
  flex: none;
  stroke: var(--peach);
  fill: none;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.perk-t {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--mocha);
  line-height: 1.1;
}

.perk p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* chips and quantity stepper (cart and picker) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12.5px;
}

.chip[aria-pressed="true"] {
  background: var(--mocha);
  border-color: var(--mocha);
  color: var(--cream);
}

.chip:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 40px;
}

.qty button {
  border: 0;
  background: none;
  width: 36px;
  height: 34px;
  font-size: 18px;
  color: var(--mocha);
}

.qty input {
  width: 44px;
  border: 0;
  background: none;
  text-align: center;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* discount hints */
.deal-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--peach);
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--mocha);
  line-height: 1.4;
  margin-top: 14px;
}

.deal-hint svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--peach);
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.deal-hint.ok {
  border-style: solid;
  background: var(--tile);
}

.deal-hint.sm {
  margin-top: 0;
  padding: 8px 10px;
  font-size: 12.5px;
}

.saved {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  background: var(--mocha);
  color: var(--cream);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 14.5px;
}

.saved svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--peach);
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.saved b {
  font-weight: 500;
  color: #f0c3ae;
}

.pk-tot s,
.lp s {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
}

/* 4. Catalog header ----------------------------------------------------- */
header .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px 22px;
  border-bottom: 1px solid var(--line);
}

.ttl {
  text-align: right;
}

/* 5. Navigation --------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top,0px);
  z-index: 25;
  background: var(--bg);
}

.nav {
  position: sticky;
  top: env(safe-area-inset-top,0px);
  z-index: 22;
  background: rgba(246,240,232,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
}

.nav .mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--mocha);
  white-space: nowrap;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  flex: none;
}

.nav .mini img {
  height: 38px;
  width: auto;
  display: block;
}

.nav.stuck .mini {
  opacity: 1;
  pointer-events: auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  scrollbar-width: none;
  margin-left: auto;
  min-width: 0;
}

.links::-webkit-scrollbar {
  display: none;
}

.links a {
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}

.links a:hover {
  color: var(--mocha);
}

.links a.on {
  background: var(--mocha);
  color: var(--cream);
}

/* "Custom Product" dropdown: the label links to the catalog, the arrow opens the list.
   Mouse hover or tap/click opens it; nav.js sets .open */
.dd {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 30px;
  transition: background .2s;
}

.dd.on {
  background: var(--mocha);
}

.links .dd-link {
  padding-right: 2px;
  border-radius: 30px 0 0 30px;
}

.links .dd-link.on {
  background: none;
  color: inherit;
}

.dd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  align-self: stretch;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px 12px 8px 6px;
  border-radius: 0 30px 30px 0;
  color: var(--muted);
  transition: color .2s;
}

.dd-btn:hover,
.dd.open .dd-btn {
  color: var(--mocha);
}

.links .dd.on .dd-link,
.links .dd.on .dd-btn {
  color: var(--cream);
}

.dd-btn:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

.dd-btn svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .2s;
}

.dd.open .dd-btn svg {
  transform: rotate(180deg);
}

.dd-menu {
  position: absolute;
  top: calc(100% + 11px);
  left: 0;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(63,47,39,.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s,transform .15s,visibility 0s .15s;
  z-index: 23;
}

.dd-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.dd.open .dd-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .15s,transform .15s,visibility 0s;
}

.links .dd-menu a {
  border-radius: 10px;
  padding: 11px 14px;
}

/* menu: the categories first; a category opens its products (accordion) */
.dd-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mocha);
  text-align: left;
  cursor: pointer;
}

.dd-group:hover,
.dd-group[aria-expanded="true"] {
  background: var(--tile);
}

.dd-group:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: -2px;
}

.dd-group svg {
  flex: none;
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .2s;
}

.dd-group[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dd-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 6px 10px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.dd-items[hidden] {
  display: none;
}

.links .dd-menu a.dd-all {
  font-size: 12.5px;
  color: var(--peach);
}

/* "See all" links to the catalog: never shown as the current page */
.links .dd-menu a.dd-all.on {
  background: none;
  color: var(--peach);
}

.links .dd-menu a:hover {
  background: var(--tile);
}

.links .dd-menu a.on {
  background: var(--mocha);
  color: var(--cream);
}

/* previous / next links at the bottom of each page */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pager a,
.back {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.pager a:hover,
.back:hover {
  color: var(--mocha);
}

/* 6. Home page ---------------------------------------------------------- */
.home {
  padding-block: 28px 72px;
}

/* hero: warm gradient panel, text left, floating polaroid collage right */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  align-items: center;
  gap: 40px;
  padding: 52px 56px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 88% 12%,rgba(201,141,116,.34),transparent 42%),radial-gradient(circle at 6% 96%,rgba(201,141,116,.22),transparent 38%),radial-gradient(circle at 55% 55%,rgba(255,255,255,.5),transparent 55%),var(--tile);
}

.hero-t {
  position: relative;
  z-index: 1;
}

.hero .logo {
  width: 120px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(48px,6.4vw,78px);
}

.hero .lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 440px;
  margin: 18px 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn {
  align-self: center;
  background: var(--mocha);
  border-color: var(--mocha);
  color: var(--cream);
}

.hero .btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.hero .btn.ghost {
  background: rgba(255,255,255,.55);
  color: var(--mocha);
  cursor: pointer;
}

.hero .btn.ghost:hover {
  background: #fff;
  border-color: var(--mocha);
}

/* polaroid collage */
.collage {
  position: relative;
  height: 440px;
}

.pc {
  position: absolute;
  width: 56%;
  background: #fff;
  padding: 10px 10px 40px;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(63,47,39,.18),0 2px 6px rgba(63,47,39,.08);
  transform: rotate(var(--r));
  animation: bob 6s ease-in-out infinite;
  animation-delay: var(--d);
}

.pc img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.pc span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--mocha);
}

.pc b {
  position: absolute;
  top: -14px;
  right: -12px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--peach);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  transform: rotate(12deg);
  box-shadow: 0 6px 14px rgba(201,141,116,.45);
}

.pc b small {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pc b,
.perks b,
.mq span {
  font-variant-numeric: lining-nums;
}

.p1 {
  --r: -7deg;
  --d: 0s;
  left: 0;
  top: 10%;
  z-index: 1;
}

.p1 b {
  right: auto;
  left: -12px;
  transform: rotate(-12deg);
}

.p2 {
  --r: 6deg;
  --d: -2s;
  right: 0;
  top: 0;
  z-index: 2;
}

.p3 {
  --r: -2deg;
  --d: -4s;
  left: 24%;
  bottom: 0;
  z-index: 3;
}

.spark {
  position: absolute;
  width: 26px;
  height: 26px;
  fill: var(--peach);
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark.s1 {
  left: -4%;
  top: 58%;
}

.spark.s2 {
  right: 6%;
  bottom: 16%;
  width: 18px;
  height: 18px;
  animation-delay: -1s;
}

.spark.s3 {
  left: 46%;
  top: -2%;
  width: 20px;
  height: 20px;
  animation-delay: -1.8s;
}

/* perks row */
.perks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.45);
}

.perks svg {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 10px;
  border-radius: 50%;
  background: var(--tile);
  stroke: var(--peach);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.perks b {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--mocha);
  line-height: 1.1;
}

.perks small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* moving product strip */
.shelf {
  padding-top: 56px;
}

.shelf h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px,4.4vw,48px);
  color: var(--mocha);
  line-height: 1.05;
  margin: 0;
}

.shelf-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.shelf-h .go {
  margin-left: 0;
}

.marq {
  margin-top: 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}

.marq-in {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marq 48s linear infinite;
  padding-block: 10px 14px;
}

.marq:hover .marq-in {
  animation-play-state: paused;
}

.mq {
  display: block;
  width: 190px;
  flex: none;
  background: #fff;
  padding: 8px 8px 12px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(63,47,39,.1);
  transition: transform .25s;
}

.mq:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.mq:nth-child(even) {
  transform: rotate(1.5deg);
}

.mq:hover {
  transform: rotate(0) translateY(-4px);
}

.mq img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.mq span {
  display: block;
  margin-top: 9px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mocha);
  font-weight: 500;
}

/* how to order */
.how {
  padding-block: 48px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
}

.steps li {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.steps .ic {
  position: absolute;
  top: 14px;
  right: 0;
  width: 44px;
  height: 44px;
  stroke: var(--peach);
  fill: none;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.steps h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  color: var(--mocha);
  line-height: 1.1;
  margin: 8px 0 0;
  padding-right: 52px;
}

.steps p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* catalog card for custom 3D printing: the printer drawing instead of a photo */
.card-custom {
  cursor: pointer;
}

.card.card-custom .ph {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 15%,rgba(201,141,116,.45),transparent 45%),
    radial-gradient(circle,rgba(246,240,232,.07) 1px,transparent 1.6px) 0 0 / 16px 16px,
    var(--mocha);
}

.card-custom .printer-art {
  width: 72%;
  transition: transform .5s ease;
}

.card-custom:hover .printer-art {
  transform: scale(1.04);
}

.theme-christmas .card.card-custom .ph {
  background:
    radial-gradient(circle at 80% 15%,rgba(217,180,106,.25),transparent 45%),
    var(--bar-snow) 0 0 / 60px 40px,
    var(--season-dark);
}

/* Wig Styling card: a styled wig on a stand, the hair sways a little */
.card-wig .wig-art {
  width: 68%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.28));
  transition: transform .5s ease;
}

.card-wig:hover .wig-art {
  transform: scale(1.04);
}

.wig-art .stand path {
  fill: none;
  stroke: rgba(246,240,232,.55);
  stroke-width: 4;
  stroke-linecap: round;
}

.wig-art .neck,
.wig-art .face {
  fill: rgba(246,240,232,.85);
}

.wig-art .hair {
  transform-origin: 110px 40px;
  animation: wig-sway 5s ease-in-out infinite;
}

.wig-art .back {
  fill: var(--peach);
}

.wig-art .bangs {
  fill: #b87a62;
}

.wig-art .strand {
  fill: none;
  stroke: rgba(91,63,50,.35);
  stroke-width: 2;
  stroke-linecap: round;
}

.wig-art .comb rect,
.wig-art .comb path {
  fill: var(--cream);
  stroke: var(--cream);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.wig-art .comb {
  transform-origin: 177px 50px;
  animation: wig-comb 5s ease-in-out infinite;
}

.wig-art .sparks path {
  fill: var(--peach);
  animation: twinkle 2.8s ease-in-out infinite;
}

.wig-art .sparks path:nth-child(2) {
  animation-delay: -1.2s;
}

@keyframes wig-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.6deg); }
}

@keyframes wig-comb {
  0%, 100% { transform: translate(0, 0) rotate(-12deg); }
  50% { transform: translate(-6px, 8px) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wig-art .hair,
  .wig-art .comb,
  .wig-art .sparks path {
    animation: none;
  }
}

/* "Any custom 3D printing" panel: text, idea chips and a printer drawing a heart */
.custom {
  grid-column: span 2;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  align-items: center;
  gap: 32px;
  padding: 48px 54px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 88% 18%,rgba(201,141,116,.45),transparent 42%),
    radial-gradient(circle at 8% 110%,rgba(0,0,0,.28),transparent 45%),
    radial-gradient(circle,rgba(246,240,232,.07) 1px,transparent 1.6px) 0 0 / 18px 18px,
    var(--mocha);
  box-shadow: 0 24px 50px -30px rgba(40,28,22,.7);
}

.custom-t {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.custom .eyebrow {
  color: var(--peach);
}

.custom h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px,4.6vw,54px);
  line-height: 1;
  margin: 12px 0 0;
}

.custom h2 em {
  display: block;
  color: var(--peach);
}

.custom p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246,240,232,.78);
  margin: 16px 0 0;
  max-width: 420px;
}

/* idea chips, a little tilted like stickers */
.ideas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  max-width: 460px;
}

.ideas li {
  padding: 6px 13px;
  border: 1px solid rgba(246,240,232,.28);
  border-radius: 20px;
  background: rgba(246,240,232,.07);
  font-size: 13px;
  color: rgba(246,240,232,.9);
  transform: rotate(-1.5deg);
}

.ideas li:nth-child(even) {
  transform: rotate(1.5deg);
}

.ideas li:nth-child(3n) {
  border-color: rgba(201,141,116,.6);
  color: #f3c9b5;
}

.custom-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
}

.custom .btn {
  background: var(--peach);
  border-color: var(--peach);
  color: #fff;
  font-weight: 600;
}

.custom .btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--mocha);
}

.custom-cta span {
  font-size: 13px;
  color: rgba(246,240,232,.6);
}

/* printer illustration */
.printer-art {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.28));
}

.printer-art .frame path {
  fill: none;
  stroke: rgba(246,240,232,.55);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.printer-art .frame .feet {
  stroke-width: 5;
}

.printer-art .bed {
  fill: rgba(246,240,232,.22);
}

.printer-art .spool circle {
  fill: none;
  stroke: var(--peach);
  stroke-width: 3;
}

.printer-art .obj {
  fill: var(--peach);
}

.printer-art .rail {
  fill: none;
  stroke: rgba(246,240,232,.4);
  stroke-width: 3;
  stroke-linecap: round;
}

.printer-art .head {
  fill: var(--cream);
}

.printer-art .nozzle {
  fill: #cbbcae;
}

.printer-art .tip {
  fill: #ffb38a;
  filter: drop-shadow(0 0 4px #ff9a66);
}

.printer-art .sparks path {
  fill: var(--peach);
  animation: twinkle 2.8s ease-in-out infinite;
}

.printer-art .sparks path:nth-child(2) {
  animation-delay: -1.2s;
}

/* game link */
.play {
  margin-top: 32px;
  color: inherit;
}

.play .go {
  margin-left: auto;
  width: auto;
}

.play:hover .go {
  color: var(--mocha);
}

/* 7. Catalog grid ------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 36px 32px;
  padding-block: 36px 72px;
}

.card {
  display: block;
  min-width: 0;
}

.card .ph {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--tile);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .5s ease;
}

.card:hover img {
  transform: scale(1.03);
}

.card:hover .go {
  color: var(--mocha);
}

.cap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px 11px;
  border-bottom: 1px solid var(--line);
}

/* 8. Price list pages --------------------------------------------------- */
.pl {
  border-top: 1px solid var(--line);
  padding-block: 64px 72px;
  scroll-margin-top: 16px;
}

.pl.view {
  border-top: 0;
}

/* form and game pages: the same room above the title as the price lists */
#custom,
#wig,
#game {
  padding-block: 64px 72px;
}

.pl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pl-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px,6vw,64px);
  color: var(--mocha);
  line-height: .95;
  letter-spacing: normal;
  margin: 0;
}

.note {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 2px 0;
}

.note b {
  color: var(--mocha);
  font-weight: 500;
}

.solo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--mocha);
  line-height: 1.3;
}

.solo svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--peach);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* dark deal banner (maket) */
.deal {
  margin-top: 32px;
  background: var(--mocha);
  color: var(--cream);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 44px;
  flex-wrap: wrap;
}

.deal .k {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--peach);
  font-weight: 500;
}

.deal-t {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  margin-top: 8px;
}

.off {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 72px;
  color: var(--peach);
  line-height: 1;
  text-align: right;
}

.off small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(246,240,232,.7);
  font-weight: 500;
  margin-top: 4px;
}

.mkt-p {
  margin: 8px 0 0;
  color: rgba(246,240,232,.72);
  font-size: 15px;
}

.cs {
  font-style: italic;
  font-weight: 500;
}

/* discount coupon: light ticket with a dashed edge and a tear-off stub on the right */
.deal.soft,
.deal.soft * {
  text-align: left;
}

.deal.soft {
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  background: var(--tile);
  color: var(--ink);
  border: 1.5px dashed var(--peach);
  border-radius: 12px;
  padding: 0 0 0 26px;
  gap: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
}

.deal.soft>div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 24px 22px 0;
  display: flex;
  align-items: center;
}

.deal.soft .deal-t {
  color: var(--mocha);
  font-size: 22px;
  margin: 0;
}

.deal.soft .off {
  flex: none;
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 20px 26px;
  border-left: 1.5px dashed var(--peach);
  color: var(--mocha);
  font-size: 34px;
  white-space: nowrap;
}

.deal.soft .off small {
  display: inline;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
  color: var(--muted);
}

.deal.soft .off::before,
.deal.soft .off::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px dashed var(--peach);
  left: -11.75px;
}

.deal.soft .off::before {
  top: -12.5px;
  clip-path: inset(50% 0 0 0);
}

.deal.soft .off::after {
  bottom: -12.5px;
  clip-path: inset(0 0 50% 0);
}

/* product rows: photo, details, price */
/* product cards (keychain, magnetic): photo, name, details, prices, button.
   Cards in a row share one height so the buttons line up. */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 28px;
  margin-top: 32px;
}

.pcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.45);
}

.pcard-ph {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tile);
}

.pcard-ph img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pbadge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(246,240,232,.92);
  color: var(--mocha);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
}

/* "Free design" on every keychain and magnet card photo */
.free-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 20px;
  background: var(--mocha);
  color: var(--cream);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(40,28,22,.28);
  pointer-events: none;
}

.free-badge svg {
  width: 12px;
  height: 12px;
  fill: var(--peach);
}

/* feature photos (miniature, standing figure) carry the badge too */
.feat-ph {
  position: relative;
  min-width: 0;
}

.theme-christmas .free-badge {
  background: var(--season-dark);
}

.theme-christmas .free-badge svg {
  fill: var(--season-gold);
}

.pcard-b {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 8px 6px;
}

.pcard h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  color: var(--mocha);
  line-height: 1.05;
  margin: 0;
}

.pcard .lst {
  margin: 14px 0 22px;
}

.pcard .lst li {
  font-size: 15px;
  margin-bottom: 4px;
}

.pcard-buy {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.vars {
  display: grid;
  gap: 10px;
  margin: 0;
}

.vars div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.vars dd {
  margin: 0;
  font-size: 30px;
}

.pcard .unit {
  margin: 6px 0 0;
  text-align: right;
}

.pcard .fine {
  margin-top: 10px;
}

.pcard .add {
  width: 100%;
  margin-top: 16px;
}

/* design choice on Flat cards (Classic / Pixel / Custom).
   The chosen design is marked on the photo; set by cart.js as .pcard[data-design]. */
.style-pick {
  margin-bottom: 16px;
}

.style-pick .lbl {
  display: block;
  margin-bottom: 8px;
}

.style-pick .chip {
  flex: 1 1 0;
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}

.style-pick .chip:hover {
  border-color: var(--mocha);
}

.style-msg {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #a23a32;
}

.pcard.need-style .style-pick .chips {
  animation: style-shake .45s ease;
}

.pcard.need-style .style-pick .chip {
  border-color: #a23a32;
}

@keyframes style-shake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-6px);
  }
  40%, 80% {
    transform: translateX(6px);
  }
}

/* photo marks: everything else dims, the chosen design gets a frame and its name */
.style-mark {
  position: absolute;
  z-index: 1;
  border: 2px dashed rgba(255,255,255,.95);
  border-radius: 18px;
  box-shadow: 0 0 0 200vmax rgba(35,24,18,.45);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.style-mark span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--mocha);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(35,24,18,.25);
}

.style-custom {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: rgba(35,24,18,.5);
  box-shadow: none;
}

.style-custom span {
  position: static;
  transform: none;
  max-width: 78%;
  padding: 10px 18px;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

.pcard[data-design="Text Classic"] .style-mark[data-for="Text Classic"],
.pcard[data-design="Text Pixel"] .style-mark[data-for="Text Pixel"],
.pcard[data-design="Custom"] .style-mark[data-for="Custom"] {
  opacity: 1;
}

/* text to print (Classic / Pixel) and the Custom hint */
.style-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.style-text {
  margin-top: 14px;
}

.style-text input,
.itext input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf4;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.style-text input:focus,
.itext input:focus {
  border-color: var(--mocha);
  outline: none;
}

.style-text input[aria-invalid="true"],
.itext input[aria-invalid="true"] {
  border-color: var(--error);
}

.style-text[hidden] {
  display: none;
}

/* cart line: text to print */
.itext {
  display: block;
  margin-top: 10px;
}

.itext span {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.itext input {
  margin-top: 5px;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 14px;
}

.pk-dsg q {
  font-style: italic;
}

/* picker: base and font color swatches with a small preview of the text */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sw {
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.sw:hover {
  transform: scale(1.08);
}

/* see-through color: checkerboard */
.sw.clear {
  background: repeating-conic-gradient(#d9d2ca 0 25%,#fff 0 50%) 0 0 / 10px 10px;
}

.sw[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px var(--bg), 0 0 0 4px var(--mocha);
}

.sw:disabled {
  opacity: .25;
  cursor: not-allowed;
  transform: none;
}

.pk .grp>span b {
  color: var(--mocha);
  font-weight: 600;
  letter-spacing: .06em;
}

/* lettering fonts for the text previews (licences in src/fonts) */
@font-face {
  font-family: "Luckiest Guy";
  src: url("../fonts/luckiest-guy.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pixelify Sans";
  font-weight: 700;
  src: url("../fonts/pixelify-sans-bold.woff2") format("woff2");
  font-display: swap;
}

.pk-preview {
  display: grid;
  gap: 8px;
}

.pk-prev {
  display: flex;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--tile);
}

.pk-prev .lettering {
  display: block;
  width: 100%;
  max-width: 340px;
  max-height: 150px;
  filter: drop-shadow(0 4px 6px rgba(40,28,22,.18));
}

.pk-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
}

.pk-err {
  margin: -6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
}

@media (max-width: 560px) {
  .swatches {
    gap: 4px;
  }
  .sw {
    width: 27px;
    height: 27px;
  }
}

/* cart line: chosen colors */
.icolors {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* picker: the design chosen on the card */
.pk-dsg {
  margin: 0;
  font-weight: 500;
  color: var(--mocha);
}

/* feature block: big photo + details (keycaps, miniature, standing figure) */
.feat {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 56px;
  align-items: center;
  padding-block: 40px 16px;
}

.feat img {
  width: 100%;
  aspect-ratio: 1;
  max-width: 100%;
  object-fit: contain;
  border-radius: 3px;
  background: var(--tile);
  display: block;
}

.feat-c {
  min-width: 0;
}

.feat-c h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px,4.4vw,50px);
  color: var(--mocha);
  line-height: 1.05;
  margin: 0;
}

.tl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.tl:last-of-type {
  border-bottom: 1px solid var(--line);
}

.tl small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.tl .lbl {
  font-size: 12px;
  letter-spacing: .22em;
}

.feat-f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.feat-f .add {
  margin-top: 10px;
}

/* price table (miniature, standing figure) */
.ptab {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 0;
  font-variant-numeric: lining-nums;
}

.ptab th,
.ptab td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

.ptab thead th {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding-top: 0;
}

.ptab th[scope="row"],
.ptab thead th:first-child {
  text-align: left;
}

.ptab th[scope="row"] small {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

.ptab td {
  padding-left: 18px;
}

/* miniature: design service box */
.dsg {
  margin-top: 36px;
  border: 1.5px dashed var(--line);
  border-radius: 3px;
  background: #f9f4ee;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: 36px 44px;
}

.dsg h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px,4.2vw,46px);
  color: var(--mocha);
  line-height: 1;
  margin: 0;
}

.dsg .lst {
  margin: 16px 0 0;
}

.dsg .price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* standing figure: size guide */
.std-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.sizes {
  display: flex;
  align-items: flex-end;
  gap: 44px;
  margin-top: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.sz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sz svg {
  stroke: var(--peach);
  fill: var(--tile);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.sz svg * {
  vector-effect: non-scaling-stroke;
}

.s12 svg {
  width: 40px;
  height: 90px;
}

.s20 svg {
  width: 66px;
  height: 150px;
}

.sz b {
  font-variant-numeric: lining-nums;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  color: var(--mocha);
  line-height: 1;
  margin-top: 6px;
}

.sz span {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.std-tab {
  margin-top: 40px;
}

.std-tab td {
  width: 22%;
}

.std-f {
  border-top: 0;
  margin-top: 4px;
}

/* trophy + accessories: big photo, info and price */
.hero-img {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 3px;
  background: var(--tile);
  display: block;
}

.info {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px 40px;
  align-items: center;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px,4.4vw,50px);
  color: var(--mocha);
  line-height: 1.05;
  margin: 0;
}

.info .lst {
  margin: 18px 0 0;
}

.info .price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.cs-big {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px,4.4vw,52px);
  color: var(--peach);
  line-height: 1;
  white-space: nowrap;
}

/* page actions */
.ask {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.ask .btn {
  color: var(--mocha);
  border-color: var(--mocha);
}

.ask .btn:hover {
  background: var(--mocha);
  color: var(--cream);
}

/* 9. FAQ ---------------------------------------------------------------- */
#faq {
  padding-block: 56px 80px;
  border-top: 0;
}

.faq-g {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.6fr);
  gap: 48px;
  align-items: start;
}

.faq-g h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px,6vw,64px);
  color: var(--mocha);
  line-height: .95;
  letter-spacing: normal;
  margin: 0;
}

.faq-g .lead {
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 320px;
}

/* FAQ search */
.faq-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.faq-search svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.faq-search input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255,255,255,.6);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.faq-search input:focus {
  border-color: var(--mocha);
  background: #fff;
  outline: none;
}

.faq-search input::-webkit-search-cancel-button {
  display: none;
}

.faq-clear {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.faq-clear:hover {
  background: rgba(91,63,50,.08);
}

.faq-count {
  min-height: 18px;
  margin: 0 0 8px 18px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Catalog search: above the cards, full width */
.cat-find,
.cat-empty {
  grid-column: 1 / -1;
}

.cat-find {
  margin-bottom: -16px;
}

.cat-find .faq-search {
  max-width: 560px;
}

.cat-groups {
  margin: 14px 0 2px;
}

.cat-hit {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--peach);
}

.cat-hit[hidden],
#catalog .card[hidden] {
  display: none;
}

.cat-empty .btn {
  display: inline-block;
}

.cat-ask {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--mocha);
}

.faq-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
}

.faq-empty p {
  margin: 0 0 12px;
}

.faq-empty .btn {
  display: inline-flex;
  background: var(--mocha);
  border-color: var(--mocha);
  color: var(--cream);
}

.qa[hidden] {
  display: none;
}

.qa mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(201,141,116,.3);
  color: inherit;
}

.qa {
  border-top: 1px solid var(--line);
}

.qa:last-child {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--mocha);
  line-height: 1.2;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
  color: var(--peach);
  transition: transform .2s;
  flex: none;
}

.qa[open] summary::after {
  transform: rotate(45deg);
}

.qa summary:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

.qa p {
  margin: 0 0 20px;
  color: var(--ink);
  max-width: 60ch;
}

/* 10. Match & Win game -------------------------------------------------- */
.g-wrap {
  max-width: 560px;
  margin: 28px auto 0;
}

.g-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.g-bar b {
  color: var(--mocha);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  margin-left: 4px;
}

.g-reset {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 7px 14px;
  font: inherit;
  letter-spacing: .2em;
  color: var(--mocha);
  cursor: pointer;
}

.g-reset:hover {
  border-color: var(--mocha);
}

.g-board {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  perspective: 900px;
}

.g-card {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease);
}

.g-card.up,
.g-card.ok {
  transform: rotateY(180deg);
}

.g-card.ok {
  cursor: default;
}

.g-card:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}

.g-card .g-face,
.g-card .g-back {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.g-card .g-back {
  background: var(--mocha);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 4px var(--mocha),inset 0 0 0 5px rgba(246,240,232,.25);
}

.g-card .g-back svg {
  width: 34%;
  height: 34%;
  stroke: var(--peach);
  fill: none;
  stroke-width: 1.4;
}

.g-card .g-face {
  display: grid;
  transform: rotateY(180deg);
  background: var(--tile);
}

.g-card .g-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-card.ok .g-face {
  box-shadow: 0 0 0 3px var(--peach);
}

.g-res {
  max-width: 560px;
  margin: 22px auto 0;
  padding: 24px;
  border-radius: 6px;
  background: var(--mocha);
  color: var(--cream);
  text-align: center;
}

.g-res h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 6px;
}

.g-res p {
  margin: 0 0 14px;
  color: rgba(246,240,232,.8);
}

.g-res .btn {
  align-self: center;
  margin: 0 4px 6px;
}

.g-res .btn.alt {
  border-color: rgba(246,240,232,.4);
}

.g-code {
  display: inline-block;
  font-size: 22px;
  letter-spacing: .18em;
  font-weight: 600;
  border: 1.5px dashed var(--peach);
  border-radius: 6px;
  padding: 10px 18px;
  margin: 4px 0 16px;
  color: var(--cream);
}

/* voucher ticket (game result): tear-off coupon with the code and expiry */
.vt-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(246,240,232,.12);
  color: var(--peach);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.vticket {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  margin: 14px auto 16px;
  max-width: 440px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--mocha);
  text-align: left;
  background: none;
  /* the shadow follows the cut-out notches (box-shadow would not) */
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
}

/* the two half-circle notches where the ticket tears: cut out of both halves */
.vt-left,
.vt-right {
  -webkit-mask: var(--notch-a) top / 100% 51% no-repeat, var(--notch-b) bottom / 100% 51% no-repeat;
  mask: var(--notch-a) top / 100% 51% no-repeat, var(--notch-b) bottom / 100% 51% no-repeat;
}

.vt-left {
  --notch-a: radial-gradient(circle at 100% 0, #0000 11px, #000 11.5px);
  --notch-b: radial-gradient(circle at 100% 100%, #0000 11px, #000 11.5px);
}

.vt-right {
  --notch-a: radial-gradient(circle at 0 0, #0000 11px, #000 11.5px);
  --notch-b: radial-gradient(circle at 0 100%, #0000 11px, #000 11.5px);
  border-radius: 0 14px 14px 0;
  background: var(--cream);
}

.vt-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border-right: 2px dashed rgba(91,63,50,.25);
  border-radius: 14px 0 0 14px;
  background:
    repeating-linear-gradient(-45deg,rgba(255,255,255,.08) 0 8px,transparent 8px 16px),
    var(--peach);
  color: #fff;
}

.vt-left b {
  display: block;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums;
  margin: 2px 0 4px;
}

.vt-left b small {
  font-size: 28px;
}

.vt-off {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.vt-left .vt-k {
  color: rgba(255,255,255,.8);
  margin-bottom: 4px;
}

.vt-k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.vt-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px 18px 24px;
  min-width: 0;
}

.vt-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px dashed var(--peach);
  border-radius: 10px;
  background: #fff;
  color: var(--mocha);
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.vt-code span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vt-code:hover {
  background: #fff7ef;
  border-style: solid;
}

.vt-code svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--peach);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.vt-exp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.vt-exp svg,
.vt-note svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.g-res .vt-note {
  font-size: 13.5px;
}

.vt-note svg {
  display: inline-block;
  margin-right: 6px;
  vertical-align: -2px;
}

/* a little pop when the voucher is just won */
.vticket.won {
  animation: vt-pop .6s var(--ease) both;
}

@keyframes vt-pop {
  from {
    opacity: 0;
    transform: scale(.85) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.theme-christmas .vt-left {
  background:
    repeating-linear-gradient(-45deg,rgba(255,255,255,.12) 0 8px,transparent 8px 16px),
    var(--season-red);
}

.theme-christmas .vt-badge {
  color: var(--season-gold);
}

@media (max-width: 560px) {
  .vticket {
    grid-template-columns: 96px minmax(0,1fr);
  }
  .vt-left b {
    font-size: 42px;
  }
  .vt-right {
    padding: 14px 12px 14px 18px;
  }
  .vt-code {
    font-size: 15px;
    letter-spacing: .06em;
    padding: 9px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vticket.won {
    animation: none;
  }
}

/* bulk deal coupons on the price lists: same ticket as the game voucher */
.vticket.deal-tk {
  margin: 22px auto 0;
  max-width: 460px;
  filter: drop-shadow(0 0 .6px rgba(91,63,50,.55)) drop-shadow(0 2px 3px rgba(63,47,39,.12));
}

.deal-tk .vt-right {
  background: #fffaf4;
}

.deal-tk .vt-left {
  padding: 16px 10px;
}

.deal-tk .vt-left b {
  font-size: 52px;
}

.deal-tk .vt-off {
  font-size: 11.5px;
}

.deal-tk .dt-t {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.15;
  color: var(--mocha);
}

.deal-tk .dt-t em {
  color: var(--peach);
}

.deal-tk .vt-exp svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--peach);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-christmas .deal-tk .dt-t em {
  color: var(--season-red);
}

@media (max-width: 560px) {
  .deal-tk .vt-left b {
    font-size: 40px;
  }
  .deal-tk .dt-t {
    font-size: 20px;
  }
}

.g-fine {
  max-width: 560px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* reference photo box (pop-up, cart line, Any Custom form) */
.ph-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ph-item,
.ph-add {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
}

.ph-item {
  display: grid;
  place-items: center;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* the photo fills the square, centered; the placeholder icon steps aside */
.ph-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ph-item img ~ svg {
  display: none;
}

.ph-item > svg,
.ph-add svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.ph-item.busy span {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--line);
  border-top-color: var(--mocha);
  border-radius: 50%;
  animation: ph-spin .8s linear infinite;
}

@keyframes ph-spin {
  to {
    transform: rotate(360deg);
  }
}

.ph-rm {
  position: absolute;
  z-index: 1;   /* above the photo */
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(40,28,22,.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.ph-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  border: 1.5px dashed var(--peach);
  color: var(--mocha);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  /* it is a <label>: don't take the uppercase, spaced look of form labels */
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  background: rgba(255,255,255,.5);
}

/* inside a form field (.f label and .req-form .f label are more specific) */
.f label.ph-add,
.req-form .f label.ph-add {
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mocha);
}

.ph-add:hover {
  background: #fff;
}

.ph-add:focus-within {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

.ph-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ph-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.ph-note.err {
  color: var(--error);
}

/* Robot check (Cloudflare Turnstile). The widget must stay rendered (not
   display:none) for the unseen check to run; it takes no room until
   Cloudflare asks for a tap, then the box and its text appear. */
.human-check {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1000;
  transform: translateX(-50%);
  text-align: center;
}

.human-check p {
  display: none;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink);
}

.human-check.show {
  padding: 12px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 0 12px 32px rgba(63, 47, 39, .22);
}

.human-check.show p {
  display: block;
}

.iph > span {
  display: block;
  margin: 4px 0 6px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .ph-item.busy span {
    animation-duration: 2.4s;
  }
}

/* Any Custom request form */
.req {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  align-items: start;
  gap: 36px;
  margin-top: 32px;
}

.req-form fieldset {
  margin: 0 0 18px;
  padding: 20px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.45);
  display: grid;
  gap: 18px;
  min-width: 0;
}

.req-form legend {
  padding: 0 8px;
  margin-left: -8px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--mocha);
}

.req-form .f label,
.req-form .lbl-f {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.req-form .f small {
  letter-spacing: .04em;
  text-transform: none;
}

.req-form .f input,
.req-form .f textarea {
  border-radius: 10px;
  padding: 11px 13px;
}

.req-form #req-size-own {
  margin-top: 4px;
}

.req-form .size-pick.bad .chip,
.req-form #wig-cond.bad .chip,
.req-form #wig-purpose.bad .chip,
.req-form #wig-source.bad .chip,
.req-form #wig-styling.bad .chip,
.req-form #wig-look.bad .chip {
  border-color: var(--error);
  box-shadow: inset 0 0 0 .5px var(--error);
}

.req-form #req-size-own[hidden] {
  display: none;
}

.req-form textarea {
  resize: vertical;
  min-height: 110px;
}

.req-form .chips {
  gap: 7px;
  align-items: flex-start;
  align-content: flex-start;
}

.req-form .chip {
  padding: 8px 14px;
  font-size: 13.5px;
  cursor: pointer;
}

.req-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px 20px;
}

.req-grid .wide {
  grid-column: 1 / -1;
}

/* Any Custom: color swatches under Single color / Multicolor */
.req-sw {
  margin-top: 12px;
}

.req-hint {
  margin: 6px 0 10px;
  font-size: 12px;
  color: var(--muted);
}

#req-paint {
  margin-top: 10px;
}

#req-color-kind[hidden],
#req-paint[hidden] {
  display: none;
}

.req-sw[hidden] {
  display: none;
}

.req-sw-l {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.req-sw-l b {
  color: var(--mocha);
  font-weight: 500;
}

.req-wide {
  grid-column: 1 / -1;
}

.req-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}

.req-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--mocha);
}

.req-check small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.req-go {
  width: 100%;
  margin-top: 4px;
}

.req-fine {
  margin: 10px 0 0;
  font-size: 12.5px;
  text-align: center;
  color: var(--muted);
}

/* Wig Styling form in 3 steps (js/wig.js) */
.wsteps {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

/* [1] —— [2] —— [3]: each later step starts with a line that stretches */
.wsteps li {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
}

.wsteps li:first-child {
  flex: 0 0 auto;
}

.wsteps li + li::before {
  content: "";
  flex: 1 1 auto;
  min-width: 14px;
  height: 1px;
  background: var(--line);
}

.wsteps button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 30px;
  background: none;
  font: inherit;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.wsteps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  background: #fffaf4;
}

.wsteps button[aria-current="step"] {
  color: var(--mocha);
}

.wsteps button[aria-current="step"] b {
  border-color: var(--mocha);
  background: var(--mocha);
  color: var(--cream);
}

/* a finished step shows a tick instead of its number */
.wsteps button.done b {
  font-size: 0;
  border-color: var(--peach);
  color: var(--peach);
}

.wsteps button.done b::after {
  content: "✓";
  font-size: 13px;
}

.wsteps button:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

.opt-express {
  margin-top: 10px;
}

.date-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* it sits inside a form field: undo the field's label and input looks */
.req-form .f label.opt-express {
  display: flex;
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.req-form .f .opt-express input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.opt-express b {
  color: var(--season-red,var(--peach));
  font-weight: 500;
}

#wig-tone-note {
  margin-top: 10px;
}

#wig-tone-note[hidden],
.wstep[hidden] {
  display: none;
}

.step-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.step-next {
  margin-left: auto;
  min-height: 44px;
  padding: 10px 26px;
  border: 0;
  border-radius: 40px;
  background: var(--mocha);
  color: var(--cream);
  font: inherit;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

.step-next:hover {
  background: #4a3228;
}

.step-back {
  min-height: 44px;
  padding: 10px 6px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.step-back:hover {
  color: var(--mocha);
}

.step-next:focus-visible,
.step-back:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

/* last step: Back, then the send button and its fine print across */
.step-last .req-go {
  flex: 1 1 260px;
  width: auto;
  margin-top: 0;
}

.step-last .req-fine {
  flex: 1 1 100%;
}

@media (max-width: 520px) {
  .wsteps span {
    display: none;   /* numbers only on a narrow phone; the step title is the fieldset's legend */
  }

  .wsteps button[aria-current="step"] span {
    display: inline;
  }
}

.req-side {
  position: sticky;
  top: 90px;
  padding: 26px 24px;
  border-radius: 18px;
  color: var(--cream);
  background:
    radial-gradient(circle at 85% 10%,rgba(201,141,116,.45),transparent 45%),
    radial-gradient(circle,rgba(246,240,232,.07) 1px,transparent 1.6px) 0 0 / 16px 16px,
    var(--mocha);
}

.req-side .eyebrow {
  color: var(--peach);
}

.req-side ol {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.req-side li {
  display: flex;
  gap: 14px;
}

.req-side li b {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(246,240,232,.12);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--peach);
}

.req-side h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
}

.req-side p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(246,240,232,.72);
}

.theme-christmas .req-side {
  background: var(--bar-snow) 0 0 / 60px 40px, var(--season-dark);
}

.theme-christmas .req-side .eyebrow,
.theme-christmas .req-side li b {
  color: var(--season-gold);
}

@media (max-width: 860px) {
  .req {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .req-side {
    position: static;
    order: -1;
  }
  .req-side ol {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
  }
  .req-side li {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .req-form fieldset {
    padding: 16px 16px 20px;
  }
  .req-grid {
    grid-template-columns: 1fr;
  }
  .req-side ol {
    grid-template-columns: 1fr;
  }
  .req-side li {
    flex-direction: row;
  }
}

/* 11. Footer ------------------------------------------------------------ */
footer {
  background: var(--mocha);
  color: var(--cream);
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 34px calc(34px + env(safe-area-inset-bottom,0px));
  flex-wrap: wrap;
}

.c {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px 44px;
  font-size: 15px;
  letter-spacing: .02em;
}

.c a,
.c span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.c a:hover {
  color: var(--peach);
}

.c svg {
  width: 18px;
  height: 18px;
  fill: var(--peach);
  flex: none;
}

/* 12. Floating buttons and toast ---------------------------------------- */
.fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right,0px));
  bottom: calc(20px + env(safe-area-inset-bottom,0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: #fff;
  padding: 13px 20px 13px 16px;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(63,47,39,.25);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
}

.fab:hover {
  transform: translateY(-2px);
}

.fab svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.cartbtn {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right,0px));
  bottom: calc(84px + env(safe-area-inset-bottom,0px));
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--mocha);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(63,47,39,.25);
}

.cartbtn:hover {
  transform: translateY(-2px);
}

.cartbtn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--peach);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}

.totop {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right,0px));
  bottom: calc(148px + env(safe-area-inset-bottom,0px));
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--mocha);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.totop.show {
  opacity: 1;
  pointer-events: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom,0px));
  transform: translate(-50%,20px);
  opacity: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  padding: 11px 20px;
  border-radius: 40px;
  font-size: 14px;
  transition: opacity .25s,transform .25s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

body.cart-open .toast {
  bottom: auto;
  top: calc(84px + env(safe-area-inset-top,0px));
}

/* 13. Cart drawer ------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(63,47,39,.4);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px,100%);
  background: var(--bg);
  z-index: 31;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  transition: transform .3s ease,visibility 0s .3s;
}

body.cart-open {
  overflow: hidden;
}

body.cart-open .scrim {
  opacity: 1;
  pointer-events: auto;
}

body.cart-open .drawer {
  transform: none;
  visibility: visible;
  transition: transform .3s ease;
  box-shadow: -12px 0 40px rgba(63,47,39,.18);
}

.dh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top,0px)) calc(24px + env(safe-area-inset-right,0px)) 16px 24px;
  border-bottom: 1px solid var(--line);
}

.dh h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  color: var(--mocha);
  margin: 0;
  line-height: 1;
}

.db {
  flex: 1;
  overflow-y: auto;
  padding: 8px calc(24px + env(safe-area-inset-right,0px)) 24px 24px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 8px;
}

.empty p {
  margin: 0 0 20px;
}

.empty .btn {
  color: var(--mocha);
  border-color: var(--mocha);
}

/* "sent your order?" prompt */
.sent {
  background: var(--tile);
  border-radius: 3px;
  padding: 14px 16px;
  margin: 14px 0 4px;
  font-size: 14px;
}

.sent b {
  display: block;
  color: var(--mocha);
  font-weight: 500;
  margin-bottom: 8px;
}

.sent .chips {
  gap: 8px;
}

/* cart items */
.item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.ih {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.icat {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--peach);
  font-weight: 500;
  margin-bottom: 4px;
}

.iname {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--mocha);
  line-height: 1.05;
  font-weight: 500;
}

.rm {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -4px -6px 0 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.rm svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.rm:hover {
  background: rgba(91,63,50,.08);
}

/* one-line summary of the choices, with an Edit toggle */
.isum {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.isum > span {
  min-width: 0;
}

.iedit-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: none;
  color: var(--mocha);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

.iedit-btn svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .2s;
}

.item.open .iedit-btn {
  background: var(--mocha);
  border-color: var(--mocha);
  color: var(--cream);
}

.item.open .iedit-btn svg {
  transform: rotate(180deg);
}

.iedit {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: fadeIn .2s ease both;
}

.iedit .itext {
  margin-top: 2px;
}

.irow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lp {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--ink);
}

.lp small {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--peach);
}

/* totals */
.sum {
  margin-top: 22px;
  display: grid;
  gap: 6px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sum span:last-child {
  white-space: nowrap;
}

.sum .disc {
  color: var(--peach);
}

.sum .tot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--mocha);
}

.sum .tot span:first-child {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
}

.sum .tot span:last-child {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.vch {
  display: flex;
  justify-content: space-between;
  color: var(--peach);
}

.vch-ad {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}

.vch-ad a {
  color: var(--mocha);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 0;
}

/* customer details form */
.cf {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cf h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mocha);
  font-weight: 500;
}

.f {
  display: grid;
  gap: 5px;
}

.f label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.f input,
.f textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf4;
  border-radius: 3px;
  padding: 9px 11px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}

.f input[aria-invalid="true"],
.f textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.err {
  font-size: 12.5px;
  color: var(--error);
  margin: 0;
}

.ref {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--tile);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 4px;
}

.ref svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--peach);
  fill: none;
  stroke-width: 1.6;
  margin-top: 2px;
}

/* payment (QRIS) */
.pay {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pay h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mocha);
  font-weight: 500;
}

.pay .chip {
  padding: 8px 14px;
  font-size: 14px;
  text-align: left;
}

.pay .chip small {
  display: block;
  font-size: 12px;
  opacity: .8;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.pay .small {
  margin: 0;
}

.pay-amt {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--mocha);
  color: var(--cream);
}

.pay-amt span {
  flex-basis: 100%;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246,240,232,.75);
}

.pay-amt b {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.pay-copy {
  margin-left: auto;
  border: 1px solid var(--peach);
  background: none;
  color: var(--cream);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pay-copy:hover {
  background: var(--peach);
  color: var(--mocha);
}

.qris {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.qris img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}

.qris .btn {
  align-self: center;
  color: var(--mocha);
  border-color: var(--mocha);
}

.qris .btn:hover {
  background: var(--mocha);
  color: var(--cream);
}

.pay-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.pay-steps li + li {
  margin-top: 4px;
}

.pay-rest {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--peach);
  border-radius: 3px;
  font-size: 14px;
  color: var(--mocha);
}

.pay-rest b {
  font-weight: 500;
}

/* checkout */
.df {
  padding: 16px calc(24px + env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.co-hint {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.co {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--wa);
  color: #fff;
  border-radius: 40px;
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
}

.co svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.co[aria-disabled="true"] {
  opacity: 1;
  background: var(--line);
  color: var(--muted);
  pointer-events: none;
  cursor: not-allowed;
}

.co[aria-disabled="true"] svg {
  fill: var(--muted);
}

/* 14. Variant picker ---------------------------------------------------- */
.pk-scrim {
  position: fixed;
  inset: 0;
  background: rgba(63,47,39,.45);
  z-index: 35;
}

.pk {
  position: fixed;
  z-index: 36;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(440px,calc(100% - 32px));
  max-height: calc(100% - 48px);
  overflow-y: auto;
  background: var(--bg);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(40,28,22,.3);
  padding: 26px 26px 22px;
  display: grid;
  gap: 18px;
}

.pk-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pk-h h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  color: var(--mocha);
  line-height: 1;
  margin: 0;
}

.pk-h .x {
  margin: -8px -10px 0 0;
}

.pk .grp {
  display: grid;
  gap: 8px;
}

.pk .grp>span {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pk .chip {
  padding: 8px 14px;
  font-size: 14px;
}

.pk .chip small {
  display: block;
  font-size: 11.5px;
  opacity: .75;
  margin-top: 1px;
}

.pk .deal-hint {
  margin-top: -6px;
}

.pk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pk-tot {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pk-tot b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--mocha);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.pk-tot small {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--peach);
}

.pk-go {
  width: 100%;
  border: 0;
  background: var(--mocha);
  color: var(--cream);
  border-radius: 40px;
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}

.pk-go:hover {
  background: var(--ink);
}

/* 15. Lightbox ---------------------------------------------------------- */
.zoom {
  cursor: zoom-in;
  transition: transform .4s var(--ease),box-shadow .3s;
}

.zoom:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(63,47,39,.15);
}

.zoom:focus {
  outline: none;
}

.zoom:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(40,28,22,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  cursor: zoom-out;
}

.lb img {
  max-width: min(92vw,900px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.lb .x {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top,0px));
  right: calc(14px + env(safe-area-inset-right,0px));
  color: var(--cream);
}

.lb .x:hover {
  background: rgba(255,255,255,.1);
}

/* 16. Motion ------------------------------------------------------------ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translate(-50%,-46%) scale(.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%,-50%);
  }
}

@keyframes sheetOut {
  from {
    opacity: 1;
    transform: translate(-50%,-50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%,-46%) scale(.97);
  }
}

@keyframes upIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

@keyframes upOut {
  from {
    transform: none;
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bob {
  0%, 100% {
    transform: rotate(var(--r)) translateY(0);
  }
  50% {
    transform: rotate(var(--r)) translateY(-10px);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: .35;
    transform: scale(.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes marq {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

/* page enter: nav.js adds .enter and sets --i on cards, rows and questions */
.view.enter>*,
.view.enter .card,
.view.enter .pcard,
.view.enter .qa {
  animation: fadeUp .6s var(--ease) both;
}

.view.enter .card,
.view.enter .pcard,
.view.enter .qa {
  animation-delay: calc(var(--i,0) * 60ms + 80ms);
}

header.enter .wrap>* {
  animation: fadeUp .7s var(--ease) both;
}

header.enter .ttl {
  animation-delay: .1s;
}

.qa p {
  animation: fadeUp .35s var(--ease) both;
}

/* overlays */
.pk-scrim:not([hidden]) {
  animation: fadeIn .25s ease both;
}

.pk:not([hidden]) {
  animation: sheetIn .32s var(--ease) both;
}

.pk.out {
  animation: sheetOut .2s ease both;
}

.pk-scrim.out {
  animation: fadeOut .2s ease both;
}

.lb {
  animation: fadeIn .25s ease both;
}

.lb img {
  animation: zoomIn .35s var(--ease) both;
}

.lb.out {
  animation: fadeOut .18s ease both;
}

.drawer .item {
  animation: fadeIn .25s ease both;
}

.badge.bump {
  animation: bump .45s var(--ease);
}

/* button feedback */
.add,
.pk-go,
.co,
.btn,
.chip,
.qty button,
.links a,
.cartbtn,
.fab {
  transition: background .2s,color .2s,border-color .2s,transform .15s,box-shadow .2s;
}

.add:active,
.pk-go:active,
.co:active,
.chip:active,
.cartbtn:active,
.fab:active,
.qty button:active {
  transform: scale(.96);
}

.deal-hint,
.saved {
  transition: background .25s,border-color .25s;
}

/* 17. Responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  /* home */
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 32px 48px;
    gap: 28px;
  }
  .collage {
    height: 400px;
    max-width: 460px;
    width: 100%;
    justify-self: center;
  }
  .perks {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  /* catalog */
  .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 28px 20px;
  }
  .custom {
    grid-column: span 2;
    grid-template-columns: minmax(0,1fr) 200px;
    gap: 20px;
    padding: 40px 32px;
  }
  /* price lists */
  .price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .feat {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feat img,
  .feat-ph {
    max-width: 520px;
  }
  .dsg {
    padding: 28px 28px;
  }
  .deal {
    flex-direction: column;
    align-items: stretch;
  }
  .deal .off,
  .deal .off small {
    text-align: right;
  }
  /* faq */
  .faq-g {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  /* catalog header */
  header .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding-block: 28px 20px;
  }
  .ttl {
    text-align: center;
  }
  .logo {
    width: 140px;
  }
  /* navigation */
  .nav .wrap {
    gap: 10px;
  }
  .nav .mini span {
    display: none;
  }
  .nav .mini img {
    height: 32px;
  }
  body[data-page="catalog"] .nav .mini,
  body[data-page="home"] .nav .mini {
    display: none;
  }
  .links {
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .links a {
    padding: 8px 9px;
    font-size: 11px;
    letter-spacing: .08em;
  }
  .links .dd-link {
    padding-right: 2px;
  }
  .dd {
    position: static;
  }
  .dd-btn {
    padding: 8px 10px 8px 5px;
  }
  .dd-menu {
    left: 0;
    right: 0;
    top: 100%;
    min-width: 0;
    border-radius: 0 0 14px 14px;
    border-width: 0 0 1px;
    padding: 8px max(12px,env(safe-area-inset-left,0px)) 12px;
  }
  .dd-menu::before {
    display: none;
  }
  .links .dd-menu a {
    padding: 13px 14px;
    font-size: 12px;
    letter-spacing: .12em;
  }
  .pager a {
    font-size: 11px;
    letter-spacing: .12em;
  }
  /* home */
  .home {
    padding-top: 16px;
  }
  .hero {
    padding: 32px 22px 36px;
    border-radius: 20px;
    text-align: center;
  }
  .hero .logo {
    width: 100px;
    margin: 0 auto 14px;
    display: block;
  }
  .hero .lead {
    font-size: 16px;
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .collage {
    height: 300px;
  }
  .pc {
    padding: 7px 7px 30px;
  }
  .pc span {
    font-size: 14px;
    bottom: 6px;
  }
  .pc b {
    width: 54px;
    height: 54px;
    font-size: 18px;
    top: -10px;
    right: -8px;
  }
  .perks {
    gap: 10px;
  }
  .perks li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .perks svg {
    width: 38px;
    height: 38px;
    padding: 8px;
  }
  .perks b {
    font-size: 18px;
  }
  .shelf {
    padding-top: 44px;
  }
  .mq {
    width: 150px;
  }
  .how {
    padding-block: 36px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .steps h3 {
    font-size: 26px;
  }
  .play {
    flex-wrap: wrap;
  }
  .play .go {
    margin-left: 0;
  }
  .perk {
    padding: 20px;
    gap: 16px;
  }
  .perk svg {
    width: 40px;
    height: 40px;
  }
  .perk-t {
    font-size: 24px;
  }
  /* catalog */
  .grid {
    gap: 24px 14px;
    padding-block: 24px 52px;
  }
  .t {
    font-size: 12px;
    letter-spacing: .1em;
  }
  .cap {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .go {
    margin-left: 0;
    width: 100%;
    font-size: 10px;
  }
  .custom {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 24px 32px;
    border-radius: 20px;
  }
  .printer-art {
    order: -1;
    width: 190px;
    justify-self: center;
  }
  /* price lists */
  .pl,
  #custom,
  #wig,
  #game {
    padding-block: 48px 56px;
  }
  .pgrid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .pcard {
    padding: 10px;
  }
  .pcard-b {
    padding: 16px 6px 4px;
  }
  .pcard h2 {
    font-size: 32px;
  }
  .vars dd {
    font-size: 28px;
  }
  .pl-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .solo {
    font-size: 18px;
    margin-top: 28px;
  }
  .deal {
    padding: 24px;
    gap: 14px;
  }
  .deal-t {
    font-size: 26px;
  }
  .off {
    font-size: 48px;
    text-align: left;
  }
  .deal .off {
    text-align: right;
  }
  .cs {
    font-size: 40px;
  }
  .deal.soft {
    padding-left: 18px;
    gap: 0;
  }
  .deal.soft>div:first-child {
    padding: 20px 14px 20px 0;
  }
  .deal.soft .deal-t {
    font-size: 18px;
  }
  .deal.soft .off {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 18px 16px;
    font-size: 30px;
  }
  .deal.soft .off small {
    font-size: 13px;
    text-align: center;
  }
  .fine {
    font-size: 12.5px;
  }
  .price {
    grid-column: 1 / -1;
    margin-top: 2px;
    align-self: stretch;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
  }
  .unit {
    margin-top: 4px;
  }
  .amt,
  .tl .amt {
    font-size: 32px;
  }
  .add {
    min-height: 44px;
    padding: 12px 22px;
    font-size: 11.5px;
    margin-top: 12px;
  }
  .feat {
    padding-block: 28px 8px;
  }
  .feat-f .add {
    margin-top: 12px;
  }
  .tl {
    padding-block: 14px;
  }
  .tl small {
    font-size: 13px;
  }
  .dsg {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 14px;
  }
  .dsg .price {
    border-top: 1px dashed var(--line);
    padding-top: 14px;
  }
  .ptab td {
    padding-left: 10px;
  }
  .sizes {
    gap: 32px;
  }
  .s12 svg {
    width: 30px;
    height: 68px;
  }
  .s20 svg {
    width: 50px;
    height: 113px;
  }
  .std-tab {
    margin-top: 28px;
  }
  .std-tab td {
    width: auto;
    padding-left: 16px;
  }
  .std-tab .amt {
    font-size: 28px;
  }
  .info {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }
  .info .price {
    border-top: 1px dashed var(--line);
    padding-top: 14px;
  }
  .hero-img {
    margin-top: 24px;
  }
  /* faq */
  #faq {
    padding-block: 48px 64px;
  }
  .qa summary {
    font-size: 21px;
  }
  /* game */
  .g-board {
    gap: 7px;
  }
  .g-bar {
    gap: 14px;
    font-size: 11px;
  }
  .g-res {
    padding: 20px 16px;
  }
  .g-code {
    font-size: 18px;
  }
  /* footer and floating buttons */
  .c {
    grid-template-columns: 1fr;
  }
  footer .wrap {
    padding-block: 34px calc(96px + env(safe-area-inset-bottom,0px));
  }
  .fab {
    padding: 12px 18px 12px 14px;
    font-size: 13px;
  }
  .totop {
    width: 40px;
    height: 40px;
    right: calc(26px + env(safe-area-inset-right,0px));
  }
  /* cart and picker */
  .chip {
    min-height: 38px;
  }
  .qty button {
    width: 40px;
    height: 40px;
  }
  .pk {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    max-height: 88%;
    border-radius: 14px 14px 0 0;
    padding: 22px max(20px,env(safe-area-inset-right,0px)) calc(18px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));
  }
  .pk .chip {
    min-height: 44px;
  }
  .pk:not([hidden]) {
    animation: upIn .34s var(--ease) both;
  }
  .pk.out {
    animation: upOut .22s ease both;
  }
}

@media (max-width: 360px) {
  .nav .mini {
    display: none;
  }
  .links a {
    padding: 8px 7px;
    letter-spacing: .05em;
  }
  .links .dd-link {
    padding-right: 2px;
  }
  .amt,
  .tl .amt {
    font-size: 28px;
  }
}

/* 18. Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card img,
  .drawer,
  .scrim,
  .toast,
  .dd-menu,
  .dd-btn svg,
  .g-card {
    transition: none;
  }
  .card:hover img {
    transform: none;
  }
  .pc,
  .spark,
  .marq-in {
    animation: none;
  }
  .marq {
    overflow-x: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

/* 19. Seasonal themes ---------------------------------------------------
   Hidden unless a season is active: season.js puts .season-on and
   .theme-<name> on <html> (settings: SR.SEASON in config.js). */
.season-bar,
.season-deco {
  display: none;
}

/* inline text, so it wraps like one sentence on small screens */
.season-on .season-bar {
  display: block;
  padding: calc(9px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 9px max(16px,env(safe-area-inset-left,0px));
  background: var(--season-dark,var(--mocha));
  color: var(--cream);
  font-size: 13.5px;
  letter-spacing: .02em;
  line-height: 1.4;
  text-align: center;
}

.season-bar svg {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  vertical-align: -1px;
  fill: var(--season-gold,var(--peach));
}

.season-bar a {
  margin-left: 10px;
  color: var(--season-gold,var(--peach));
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* cart: promo line and "add more" hint */
.sum .promo-line {
  color: var(--season-red,var(--peach));
}

.deal-hint.promo {
  border-color: var(--season-red,var(--peach));
}

.deal-hint.promo svg {
  stroke: var(--season-red,var(--peach));
}

/* During the season the gift ideas take this spot: "Order from just 1 pc"
   and the bulk deal tickets step aside (the deals still apply in the cart). */
.season-on .solo,
.season-on .deal-tk {
  display: none;
}

/* Seasonal promo on one product's page (SR.SEASON.productPromo) */
.xpromo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--season-red,var(--mocha));
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.xpromo span:first-child {
  font-size: 18px;
}

/* the old price struck, the promo price after it */
.amt.cut s {
  font-size: .62em;
  font-weight: 400;
  color: var(--muted);
  text-decoration-thickness: 1.5px;
}

.amt.cut b {
  font-weight: inherit;
  color: var(--season-red,var(--mocha));
}

/* home: "−25K" on a product picture */
.mq {
  position: relative;
}

.mq-off {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--season-red,var(--mocha));
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

.theme-christmas .season-tag.product-tag {
  margin-top: 10px;
  text-decoration: none;
  color: inherit;
}

/* Seasonal gift ideas under the page title (js/ideas.js) */
.xideas {
  position: relative;
  margin: 18px 0 6px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0,rgba(217,180,106,.22),transparent 40%),
    #fffaf4;
  box-shadow: 0 8px 22px rgba(63,47,39,.07);
}

.xi-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--season-red,var(--peach));
}

.xi-tree {
  font-size: 16px;
  letter-spacing: 0;
}

.xi-x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.xi-x:hover {
  background: rgba(91,63,50,.08);
}

.xi-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px 14px;
}

.xi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}

.xi:hover {
  background: var(--tile);
}

.xi:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 1px;
}

.xi-ic {
  flex: none;
  font-size: 20px;
}

.xi-t b {
  font-weight: 500;
  color: var(--season-dark,var(--mocha));
}

.xi-go {
  flex: none;
  margin-left: auto;
  color: var(--peach);
  transition: transform .15s;
}

.xi:hover .xi-go {
  transform: translateX(3px);
}

@media (max-width: 700px) {
  .xi-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .xi {
    font-size: 13.5px;
    padding: 7px 6px;
  }
}

/* the product an idea points to */
.xi-flash {
  animation: xi-flash 2.1s ease-out;
}

@keyframes xi-flash {
  0%, 30% { box-shadow: 0 0 0 3px var(--season-gold,var(--peach)), 0 10px 30px rgba(217,180,106,.45); }
  100% { box-shadow: 0 0 0 3px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .xi-flash {
    animation-duration: .01s;
    outline: 3px solid var(--season-gold,var(--peach));
  }
}

/* Christmas: deep green, berry red and gold on the usual cream and mocha */
.theme-christmas {
  --season-dark: #2f4a37;
  --season-red: #a23a32;
  --season-gold: #d9b46a;
}

.theme-christmas .hero {
  background: radial-gradient(circle at 88% 12%,rgba(162,58,50,.2),transparent 42%),radial-gradient(circle at 6% 96%,rgba(47,74,55,.2),transparent 40%),radial-gradient(circle at 55% 55%,rgba(255,255,255,.5),transparent 55%),var(--tile);
}

/* soft falling snow over the hero */
.theme-christmas .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle,rgba(255,255,255,.9) 1.6px,transparent 2.4px),radial-gradient(circle,rgba(255,255,255,.75) 1.1px,transparent 1.9px),radial-gradient(circle,rgba(255,255,255,.65) 2.2px,transparent 3.2px),radial-gradient(circle,rgba(255,255,255,.8) 1.3px,transparent 2px);
  background-size: 137px 131px, 89px 97px, 211px 173px, 157px 223px;
  background-position: 0 0, 41px 63px, 97px 17px, 23px 151px;
  animation: snow 18s linear infinite;
}

@keyframes snow {
  to {
    background-position: 0 131px, 41px 257px, 97px 363px, 23px 374px;
  }
}

/* pine sprig with ornaments in the hero corner */
.theme-christmas .season-deco.sprig {
  display: block;
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 2;
  width: 170px;
  height: auto;
  transform: rotate(-4deg);
  pointer-events: none;
}

.sprig .needles {
  fill: none;
  stroke: var(--season-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.sprig .strings {
  fill: none;
  stroke: var(--season-gold);
  stroke-width: 1;
}

.sprig .orn-red {
  fill: var(--season-red);
}

.sprig .orn-gold {
  fill: var(--season-gold);
}

.theme-christmas .pc b {
  background: var(--season-red);
  box-shadow: 0 6px 14px rgba(162,58,50,.4);
}

.theme-christmas .spark {
  fill: var(--season-gold);
}

@media (max-width: 560px) {
  .season-on .season-bar {
    font-size: 12.5px;
  }
  .theme-christmas .season-deco.sprig {
    width: 110px;
    top: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-christmas .hero::after {
    animation: none;
  }
}

/* Christmas, part 2: string lights, falling snowflakes, Santa hat,
   "Gift idea" ribbons, candy-cane stripes and festive accent colours */
.theme-christmas .hero {
  padding-top: 76px;
}

.theme-christmas .eyebrow,
.theme-christmas .n {
  color: var(--season-red);
}

.theme-christmas .links a.on,
.theme-christmas .dd.on {
  background: var(--season-dark);
}

/* string lights along the top of the hero */
.theme-christmas .season-deco.lights {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}

.lights svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lights path {
  fill: none;
  stroke: var(--season-dark);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: .75;
}

.lights i {
  position: absolute;
  width: 9px;
  height: 13px;
  margin-left: -4.5px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: var(--bulb);
  box-shadow: 0 0 10px 2px var(--bulb-glow);
  animation: bulb 2.4s ease-in-out infinite;
}

.lights i::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 2px;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  background: #5c5145;
}

/* the wire is child 1, so bulbs start at child 2 */
.lights i:nth-child(4n+2) {
  --bulb: #c0392b;
  --bulb-glow: rgba(192,57,43,.55);
}

.lights i:nth-child(4n+3) {
  --bulb: #e3b54f;
  --bulb-glow: rgba(227,181,79,.6);
  animation-delay: -.6s;
}

.lights i:nth-child(4n+4) {
  --bulb: #3f7d52;
  --bulb-glow: rgba(63,125,82,.55);
  animation-delay: -1.2s;
}

.lights i:nth-child(4n+5) {
  --bulb: #f4efe6;
  --bulb-glow: rgba(255,248,230,.85);
  animation-delay: -1.8s;
}

@keyframes bulb {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .45;
  }
}

/* falling snowflakes */
.theme-christmas .season-deco.flakes {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flakes svg {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: calc(var(--s) + 3px);
  height: calc(var(--s) + 3px);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px rgba(91,63,50,.55)) drop-shadow(0 1px 3px rgba(91,63,50,.25));
  animation: flake var(--d) linear infinite;
  animation-delay: var(--delay);
}

.flakes svg:nth-child(1) { --x: 6%; --y: 22%; --s: 14px; --d: 16s; --delay: -2s; }
.flakes svg:nth-child(2) { --x: 14%; --y: 70%; --s: 10px; --d: 13s; --delay: -9s; }
.flakes svg:nth-child(3) { --x: 22%; --y: 40%; --s: 18px; --d: 19s; --delay: -5s; }
.flakes svg:nth-child(4) { --x: 31%; --y: 12%; --s: 12px; --d: 15s; --delay: -12s; }
.flakes svg:nth-child(5) { --x: 38%; --y: 82%; --s: 15px; --d: 17s; --delay: -3s; }
.flakes svg:nth-child(6) { --x: 47%; --y: 30%; --s: 10px; --d: 12s; --delay: -7s; }
.flakes svg:nth-child(7) { --x: 55%; --y: 58%; --s: 16px; --d: 18s; --delay: -14s; }
.flakes svg:nth-child(8) { --x: 62%; --y: 18%; --s: 11px; --d: 14s; --delay: -1s; }
.flakes svg:nth-child(9) { --x: 70%; --y: 76%; --s: 13px; --d: 16s; --delay: -10s; }
.flakes svg:nth-child(10) { --x: 78%; --y: 36%; --s: 17px; --d: 20s; --delay: -6s; }
.flakes svg:nth-child(11) { --x: 85%; --y: 64%; --s: 10px; --d: 13s; --delay: -11s; }
.flakes svg:nth-child(12) { --x: 91%; --y: 14%; --s: 14px; --d: 15s; --delay: -4s; }
.flakes svg:nth-child(13) { --x: 96%; --y: 48%; --s: 12px; --d: 17s; --delay: -8s; }
.flakes svg:nth-child(14) { --x: 3%; --y: 88%; --s: 11px; --d: 14s; --delay: -13s; }

@keyframes flake {
  from {
    transform: translate(0,-560px) rotate(0deg);
  }
  50% {
    transform: translate(16px,0) rotate(90deg);
  }
  to {
    transform: translate(0,560px) rotate(180deg);
  }
}

/* Santa hat on the hero logo */
.theme-christmas .season-deco.hat {
  display: block;
  position: absolute;
  top: -22px;
  left: 34px;
  z-index: 2;
  width: 58px;
  height: auto;
  transform: rotate(-14deg);
  pointer-events: none;
}

.hat .hat-red {
  fill: var(--season-red);
}

.hat .hat-fur {
  fill: #fbf7f1;
  stroke: #e3d7c8;
  stroke-width: 1;
}

/* "Gift idea" ribbon on product photos */
.theme-christmas .card .ph,
.theme-christmas .pcard-ph {
  position: relative;
}

.theme-christmas .card .ph::after,
.theme-christmas .pcard-ph::after {
  content: "Gift idea";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--season-red);
  color: #fff;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(162,58,50,.3);
  pointer-events: none;
}

/* candy-cane stripes under the promo bar and above the footer */
.theme-christmas .season-bar {
  position: relative;
  z-index: 23;
}

.theme-christmas .season-bar::after,
.theme-christmas footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(-45deg,var(--season-red) 0 8px,#fbf7f1 8px 16px);
}

.theme-christmas .season-bar::after {
  bottom: -5px;
}

.theme-christmas footer {
  position: relative;
}

.theme-christmas footer::before {
  top: 0;
}

@media (max-width: 560px) {
  .theme-christmas .hero {
    padding-top: 56px;
  }
  .theme-christmas .season-deco.hat {
    left: calc(50% - 34px);
    width: 50px;
    top: -20px;
  }
  /* fewer bulbs (one per swag) and no sprig on small screens */
  .lights i:nth-child(3n+2),
  .lights i:nth-child(3n+4) {
    display: none;
  }
  .theme-christmas .season-deco.sprig {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lights i {
    animation: none;
  }
  /* still flakes could sit on top of the text, so leave just the soft snow dots */
  .theme-christmas .season-deco.flakes {
    display: none;
  }
}

/* Christmas, part 3: dressed-up cards and banners.
   Holly, bows, snow caps and baubles are small SVGs kept in custom properties. */
.theme-christmas {
  --holly: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cg fill='%232f4a37'%3E%3Cpath d='M32 22C26 14 18 9 3 10c3 3 2 6 5 7-1 3 2 4 4 4 0 3 4 3 6 3 2 3 7 2 14-2z'/%3E%3Cpath d='M32 22c6-8 14-13 29-12-3 3-2 6-5 7 1 3-2 4-4 4 0 3-4 3-6 3-2 3-7 2-14-2z' fill='%233f7d52'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f4efe6' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M30 21C22 15 14 12 7 12M34 21c8-6 16-9 23-9'/%3E%3C/g%3E%3Cg fill='%23a23a32'%3E%3Ccircle cx='27' cy='24' r='4.6'/%3E%3Ccircle cx='37' cy='24' r='4.6'/%3E%3Ccircle cx='32' cy='30' r='4.6'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.75'%3E%3Ccircle cx='25.6' cy='22.6' r='1.2'/%3E%3Ccircle cx='35.6' cy='22.6' r='1.2'/%3E%3Ccircle cx='30.6' cy='28.6' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  --holly-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M32 22C26 14 18 9 3 10c3 3 2 6 5 7-1 3 2 4 4 4 0 3 4 3 6 3 2 3 7 2 14-2z' fill='%236fa77b'/%3E%3Cpath d='M32 22c6-8 14-13 29-12-3 3-2 6-5 7 1 3-2 4-4 4 0 3-4 3-6 3-2 3-7 2-14-2z' fill='%2389bd93'/%3E%3Cg fill='%23d8473b'%3E%3Ccircle cx='27' cy='24' r='4.6'/%3E%3Ccircle cx='37' cy='24' r='4.6'/%3E%3Ccircle cx='32' cy='30' r='4.6'/%3E%3C/g%3E%3C/svg%3E");
  --bow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 46'%3E%3Cg fill='%23a23a32' stroke='%237e2a24' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M28 21l-10 21 6-3 3 5 4-22zM32 21l10 21-6-3-3 5-4-22z'/%3E%3Cpath d='M30 18C20 3 3 4 5 14c2 10 17 8 25 4zM30 18c10-15 27-14 25-4-2 10-17 8-25 4z'/%3E%3C/g%3E%3Cpath d='M12 12c4-3 10-1 15 5M48 12c-4-3-10-1-15 5' fill='none' stroke='%23fff' stroke-opacity='.35' stroke-width='1.4' stroke-linecap='round'/%3E%3Crect x='25.5' y='13' width='9' height='10' rx='3.5' fill='%238a2f28'/%3E%3C/svg%3E");
  --snowcap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 17' preserveAspectRatio='none'%3E%3Cpath d='M0 10C0 4 6 2 12 4c6-4 16-3 22 0 8-4 18-3 24 0 8-3 18-4 24 0 8-3 18-1 18 6 0 2-4 2-6 1-2 4-6 4-7 0-17 1-27 0-35 1-2 5-7 5-8 0-14 0-24-1-30 0-1 3-5 3-6-1-4 1-8 1-8-1z' fill='%23fff'/%3E%3C/svg%3E");
  --baubles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 110'%3E%3Cg stroke='%23b89a5e' stroke-width='1'%3E%3Cpath d='M20 0v38M52 0v64M82 0v28'/%3E%3C/g%3E%3Cg fill='%237a6e60'%3E%3Crect x='17' y='36' width='6' height='5' rx='1'/%3E%3Crect x='48.5' y='62' width='7' height='5' rx='1'/%3E%3Crect x='79.5' y='26' width='5' height='4' rx='1'/%3E%3C/g%3E%3Ccircle cx='20' cy='51' r='11' fill='%23a23a32'/%3E%3Ccircle cx='52' cy='79' r='13' fill='%23d9b46a'/%3E%3Ccircle cx='82' cy='38' r='9' fill='%232f4a37'/%3E%3Cpath d='M39.5 77h25M40 82h24' stroke='%23fff' stroke-opacity='.45' stroke-width='1.6'/%3E%3Cg fill='%23fff' fill-opacity='.6'%3E%3Ccircle cx='16' cy='47' r='2.6'/%3E%3Ccircle cx='47' cy='74' r='3'/%3E%3Ccircle cx='79' cy='35' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --bar-snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40'%3E%3Cg fill='%23fff' fill-opacity='.3'%3E%3Ccircle cx='6' cy='8' r='1.2'/%3E%3Ccircle cx='38' cy='5' r='.9'/%3E%3Ccircle cx='24' cy='30' r='1.4'/%3E%3Ccircle cx='52' cy='26' r='1'/%3E%3C/g%3E%3Cpath d='M46 11l1 3 3 1-3 1-1 3-1-3-3-1 3-1z' fill='%23d9b46a' fill-opacity='.75'/%3E%3C/svg%3E");
}

/* promo bar: drifting snow and stars, holly at both ends */
.theme-christmas .season-bar {
  background: var(--holly-light) left 22px center / 46px auto no-repeat, var(--holly-light) right 22px center / 46px auto no-repeat, var(--bar-snow) 0 0 / 60px 40px, var(--season-dark);
  padding-top: calc(11px + env(safe-area-inset-top,0px));
  padding-bottom: 11px;
  font-weight: 500;
  animation: bar-snow 6s linear infinite;
}

@keyframes bar-snow {
  to {
    background-position: left 22px center, right 22px center, 0 40px, 0 0;
  }
}

@keyframes bar-snow-sm {
  to {
    background-position: 0 40px, 0 0;
  }
}

/* product cards: snow on the top edge and a holly sprig on the corner */
.theme-christmas .pcard {
  position: relative;
  border-color: rgba(217,180,106,.65);
  background: linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,.45) 40%);
  box-shadow: 0 10px 26px -18px rgba(47,74,55,.45);
}

.theme-christmas .pcard::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 10px;
  right: 10px;
  height: 19px;
  background: var(--snowcap) 0 0 / 110px 19px repeat-x;
  filter: drop-shadow(0 1px 0 rgba(91,63,50,.18)) drop-shadow(0 3px 3px rgba(91,63,50,.22));
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);
  mask-image: linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);
  pointer-events: none;
  z-index: 2;
}

.theme-christmas .pcard::after {
  content: "";
  position: absolute;
  top: -20px;
  left: -16px;
  width: 64px;
  height: 40px;
  background: var(--holly) center / contain no-repeat;
  transform: rotate(-20deg);
  pointer-events: none;
  z-index: 3;
}

/* catalog cards and feature photos: a gift bow on the corner,
   holly before the caption */
.theme-christmas .card .ph::before,
.theme-christmas .feat::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 40px;
  background: var(--bow) center / contain no-repeat;
  filter: drop-shadow(0 3px 4px rgba(91,63,50,.25));
  pointer-events: none;
  z-index: 1;
}

.theme-christmas .card .ph::before {
  top: 8px;
  left: 8px;
  width: 66px;
  height: 51px;
}

.theme-christmas .card .ph::after {
  z-index: 1;
}

.theme-christmas .feat {
  position: relative;
}

.theme-christmas .feat::before {
  top: 50px;
  left: 10px;
  width: 64px;
  height: 50px;
}

.theme-christmas .card .cap::before {
  content: "";
  flex: none;
  align-self: center;
  width: 30px;
  height: 19px;
  margin-right: -4px;
  background: var(--holly) center / contain no-repeat;
}

.theme-christmas .card .cap {
  border-bottom-color: rgba(162,58,50,.35);
}

/* discount coupons: red dashed ticket with holly */
.theme-christmas .deal.soft {
  position: relative;
  background: linear-gradient(135deg,rgba(162,58,50,.06),transparent 45%),var(--tile);
}

.theme-christmas .deal.soft,
.theme-christmas .deal.soft .off,
.theme-christmas .deal.soft .off::before,
.theme-christmas .deal.soft .off::after {
  border-color: var(--season-red);
}

.theme-christmas .deal.soft .off {
  color: var(--season-red);
}

.theme-christmas .deal.soft::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -12px;
  width: 52px;
  height: 33px;
  background: var(--holly) center / contain no-repeat;
  transform: rotate(-16deg);
  pointer-events: none;
}

/* page title banners: baubles hanging on the right */
.theme-christmas .pl-head {
  position: relative;
  border-bottom-color: rgba(162,58,50,.35);
}

.theme-christmas .pl-head::after {
  content: "";
  position: absolute;
  top: -64px;
  right: 6px;
  width: 100px;
  height: 110px;
  background: var(--baubles) center / contain no-repeat;
  transform-origin: 50% 0;
  animation: sway 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sway {
  0%, 100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

@media (max-width: 760px) {
  .theme-christmas .season-bar {
    background: var(--bar-snow) 0 0 / 60px 40px, var(--season-dark);
    animation-name: bar-snow-sm;
  }
}

@media (max-width: 560px) {
  .theme-christmas .pcard::after {
    left: -8px;
    top: -18px;
    width: 54px;
    height: 34px;
  }
  .theme-christmas .deal.soft::before {
    left: -6px;
  }
  .theme-christmas .pl-head::after {
    top: -56px;
    right: 0;
    width: 70px;
    height: 77px;
  }
  .theme-christmas .feat::before {
    width: 52px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-christmas .season-bar,
  .theme-christmas .pl-head::after {
    animation: none;
  }
}

/* Christmas, part 4: mix up the card decorations so they feel hand-placed.
   Each card picks one ornament in turn (holly, bauble, candy cane, star, bow),
   with its own spot, tilt, snow drift and a slow sway. */
.theme-christmas {
  --candy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 60'%3E%3Cpath d='M11 56V18a8 8 0 0 1 16 0v4' fill='none' stroke='%23fbf7f1' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M11 56V18a8 8 0 0 1 16 0v4' fill='none' stroke='%23a23a32' stroke-width='7' stroke-dasharray='4.5 5'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 3l4.9 10.6 11.6 1.3-8.6 7.9 2.4 11.4L20 28.4 9.7 34.2l2.4-11.4-8.6-7.9 11.6-1.3z' fill='%23d9b46a' stroke='%23b08a45' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M20 8l3 6.6 6.8.8' fill='none' stroke='%23fff' stroke-opacity='.55' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --bauble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 60'%3E%3Cpath d='M15 0v30' stroke='%23b89a5e' stroke-width='1'/%3E%3Crect x='11' y='28' width='8' height='5' rx='1' fill='%237a6e60'/%3E%3Ccircle cx='15' cy='45' r='12' fill='%23a23a32'/%3E%3Cpath d='M3.6 42h22.8M3.6 47.5h22.8' stroke='%23d9b46a' stroke-width='1.6'/%3E%3Ccircle cx='10.5' cy='40' r='2.6' fill='%23fff' fill-opacity='.6'/%3E%3C/svg%3E");
  --flake-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b8f76' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9.5 3.8 12 6l2.5-2.2M9.5 20.2 12 18l2.5 2.2'/%3E%3C/svg%3E");
}

@keyframes deco-sway {
  0%, 100% {
    transform: rotate(calc(var(--r,0deg) - var(--sw,3deg)));
  }
  50% {
    transform: rotate(calc(var(--r,0deg) + var(--sw,3deg)));
  }
}

/* product cards: ornament */
.theme-christmas .pcard::after {
  transform: rotate(var(--r));
  animation: deco-sway var(--dur,6s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
}

.theme-christmas .pcard:nth-child(4n+1)::after {
  --r: -20deg;
  --sw: 2deg;
  --dur: 7s;
}

.theme-christmas .pcard:nth-child(4n+2)::after {
  top: -6px;
  left: 40%;
  width: 32px;
  height: 64px;
  background-image: var(--bauble);
  transform-origin: 50% 0;
  --r: 0deg;
  --sw: 6deg;
  --dur: 4.6s;
  --delay: -1.3s;
}

.theme-christmas .pcard:nth-child(4n+3)::after {
  top: -28px;
  left: auto;
  right: -12px;
  width: 30px;
  height: 60px;
  background-image: var(--candy);
  transform-origin: 50% 100%;
  --r: 16deg;
  --sw: 3deg;
  --dur: 6.5s;
  --delay: -2.4s;
}

.theme-christmas .pcard:nth-child(4n+4)::after {
  top: -22px;
  left: 62%;
  width: 46px;
  height: 46px;
  background-image: var(--star);
  --r: -12deg;
  --sw: 8deg;
  --dur: 5.2s;
  --delay: -.8s;
}

/* product cards: uneven snow drifts */
.theme-christmas .pcard:nth-child(4n+2)::before {
  right: 46%;
  height: 17px;
  background-position: -37px 0;
}

.theme-christmas .pcard:nth-child(4n+3)::before {
  left: 28%;
  height: 21px;
  top: -9px;
  background-position: -61px 0;
  background-size: 124px 21px;
}

.theme-christmas .pcard:nth-child(4n+4)::before {
  right: 24%;
  background-position: -18px 0;
  background-size: 96px 18px;
}

/* product photos: the "Gift idea" tag leans a little, differently per card */
.theme-christmas .pcard:nth-child(odd) .pcard-ph::after {
  transform: rotate(3deg);
}

.theme-christmas .pcard:nth-child(even) .pcard-ph::after {
  transform: rotate(-2deg);
}

/* catalog cards: bow, holly, hanging bauble, star in turn */
.theme-christmas .card .ph::before {
  transform: rotate(var(--r));
  animation: deco-sway var(--dur,6s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
  --r: -8deg;
  --sw: 3deg;
}

.theme-christmas .card:nth-child(4n+2) .ph::before {
  top: 4px;
  left: 4px;
  width: 72px;
  height: 45px;
  background-image: var(--holly);
  --r: -16deg;
  --sw: 2deg;
  --dur: 7.5s;
  --delay: -2s;
}

.theme-christmas .card:nth-child(4n+3) .ph::before {
  top: 0;
  left: 30px;
  width: 38px;
  height: 76px;
  background-image: var(--bauble);
  transform-origin: 50% 0;
  --r: 0deg;
  --sw: 7deg;
  --dur: 4.4s;
  --delay: -1s;
}

.theme-christmas .card:nth-child(4n+4) .ph::before {
  top: 12px;
  left: 14px;
  width: 46px;
  height: 46px;
  background-image: var(--star);
  --r: 12deg;
  --sw: 9deg;
  --dur: 5.4s;
  --delay: -3s;
}

.theme-christmas .card:nth-child(odd) .ph::after {
  transform: rotate(4deg);
}

.theme-christmas .card:nth-child(even) .ph::after {
  transform: rotate(-3deg);
}

/* catalog captions: holly, star, snowflake in turn */
.theme-christmas .card:nth-child(3n+2) .cap::before {
  width: 20px;
  height: 20px;
  margin-right: 0;
  background-image: var(--star);
  transform: rotate(-10deg);
}

.theme-christmas .card:nth-child(3n+3) .cap::before {
  width: 20px;
  height: 20px;
  margin-right: 0;
  background-image: var(--flake-green);
}

/* feature photos: a different ornament on each page */
.theme-christmas .feat::before {
  transform: rotate(var(--r));
  animation: deco-sway var(--dur,6s) ease-in-out infinite;
  --r: -8deg;
}

.theme-christmas #miniature .feat::before {
  top: 42px;
  left: 6px;
  width: 80px;
  height: 50px;
  background-image: var(--holly);
  --r: -18deg;
  --sw: 2deg;
  --dur: 7s;
}

.theme-christmas #standing .feat::before {
  top: 40px;
  left: 34px;
  width: 34px;
  height: 68px;
  background-image: var(--bauble);
  transform-origin: 50% 0;
  --r: 0deg;
  --sw: 6deg;
  --dur: 4.6s;
}

/* coupons: holly, candy cane, star by page */
.theme-christmas #magnetic .deal.soft::before {
  top: -26px;
  left: -6px;
  width: 24px;
  height: 48px;
  background-image: var(--candy);
  transform: rotate(-22deg);
}

.theme-christmas #keycaps .deal.soft::before {
  top: -16px;
  left: -14px;
  width: 36px;
  height: 36px;
  background-image: var(--star);
  transform: rotate(-14deg);
}

@media (max-width: 560px) {
  /* one card per row: keep the bauble clear of the "Gift idea" tag */
  .theme-christmas .pcard:nth-child(4n+3)::after {
    right: 4px;
    width: 26px;
    height: 52px;
  }
  .theme-christmas .pcard:nth-child(4n+4)::after {
    width: 40px;
    height: 40px;
  }
  .theme-christmas #miniature .feat::before {
    width: 64px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-christmas .pcard::after,
  .theme-christmas .card .ph::before,
  .theme-christmas .feat::before {
    animation: none;
  }
}

/* Christmas, part 5: "Add to cart" buttons in berry red with faint candy
   stripes (they slide on hover), a drip of snow on top and a holly or star
   on the corner. */
.theme-christmas .add {
  position: relative;
  color: #fff;
  background-color: var(--season-red);
  background-image: repeating-linear-gradient(-45deg,rgba(255,255,255,.09) 0 10px,transparent 10px 20px);
  background-size: 28.28px 28.28px;
  box-shadow: 0 8px 16px -10px rgba(162,58,50,.8), inset 0 -2px 0 rgba(0,0,0,.12);
}

.theme-christmas .add:hover {
  background-color: #8c2f28;
  animation: add-stripes 1.2s linear infinite;
}

@keyframes add-stripes {
  to {
    background-position: 28.28px 0;
  }
}

.theme-christmas .add::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18%;
  width: 42%;
  max-width: 180px;
  height: 15px;
  background: var(--snowcap) 0 0 / 64px 15px repeat-x;
  filter: drop-shadow(0 1px 1px rgba(91,63,50,.25));
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 10px,#000 calc(100% - 10px),transparent);
  mask-image: linear-gradient(90deg,transparent,#000 10px,#000 calc(100% - 10px),transparent);
  pointer-events: none;
}

.theme-christmas .add::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -12px;
  width: 50px;
  height: 31px;
  background: var(--holly) center / contain no-repeat;
  transform: rotate(-18deg);
  pointer-events: none;
}

/* vary them a little from card to card */
.theme-christmas .pcard:nth-child(even) .add::before {
  left: auto;
  right: 14%;
  width: 34%;
  background-position: -23px 0;
}

.theme-christmas .pcard:nth-child(even) .add::after,
.theme-christmas .feat-f .add::after {
  left: auto;
  right: -10px;
  top: -14px;
  width: 30px;
  height: 30px;
  background-image: var(--star);
  transform: rotate(14deg);
}

.theme-christmas .feat-f .add::before {
  left: 12%;
  width: 48%;
}

@media (prefers-reduced-motion: reduce) {
  .theme-christmas .add:hover {
    animation: none;
  }
}

/* Christmas, part 6: Match & Win. Card backs become wrapped gifts (red, green
   or cream paper with ribbon and bow), matched pairs get a gold star, the
   board sits in a snowy frame and the result panel is pine green with snow. */
.theme-christmas {
  --bow-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 46'%3E%3Cg fill='%23d9b46a' stroke='%23a8823e' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M28 21l-10 21 6-3 3 5 4-22zM32 21l10 21-6-3-3 5-4-22z'/%3E%3Cpath d='M30 18C20 3 3 4 5 14c2 10 17 8 25 4zM30 18c10-15 27-14 25-4-2 10-17 8-25 4z'/%3E%3C/g%3E%3Cpath d='M12 12c4-3 10-1 15 5M48 12c-4-3-10-1-15 5' fill='none' stroke='%23fff' stroke-opacity='.45' stroke-width='1.4' stroke-linecap='round'/%3E%3Crect x='25.5' y='13' width='9' height='10' rx='3.5' fill='%23b8924a'/%3E%3C/svg%3E");
}

/* the game page has no top padding, so the title baubles hang lower */
.theme-christmas #game .pl-head::after {
  top: -6px;
  height: 92px;
  background-position: center bottom;
}

/* board frame */
.theme-christmas .g-wrap {
  position: relative;
  padding: 22px 18px 18px;
  border: 1px solid rgba(217,180,106,.65);
  border-radius: 18px;
  background: linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,.35));
  box-shadow: 0 14px 30px -22px rgba(47,74,55,.55);
}

.theme-christmas .g-wrap::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 14px;
  right: 30%;
  height: 20px;
  background: var(--snowcap) 0 0 / 110px 20px repeat-x;
  filter: drop-shadow(0 1px 0 rgba(91,63,50,.18)) drop-shadow(0 3px 3px rgba(91,63,50,.22));
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);
  mask-image: linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);
  pointer-events: none;
}

.theme-christmas .g-wrap::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -14px;
  width: 66px;
  height: 41px;
  background: var(--holly) center / contain no-repeat;
  transform: rotate(18deg);
  pointer-events: none;
}

.theme-christmas .g-bar b {
  color: var(--season-red);
}

.theme-christmas .g-reset {
  border-color: rgba(162,58,50,.4);
  color: var(--season-red);
}

.theme-christmas .g-reset:hover {
  border-color: var(--season-red);
}

/* card backs: wrapped gifts */
.theme-christmas .g-card .g-back {
  --paper: var(--season-red);
  --ribbon: var(--season-gold);
  --dots: rgba(255,255,255,.16);
  --bow-img: var(--bow-gold);
  background:
    linear-gradient(90deg,transparent calc(50% - 6px),var(--ribbon) calc(50% - 6px),var(--ribbon) calc(50% + 6px),transparent calc(50% + 6px)),
    linear-gradient(0deg,transparent calc(50% - 6px),var(--ribbon) calc(50% - 6px),var(--ribbon) calc(50% + 6px),transparent calc(50% + 6px)),
    radial-gradient(circle,var(--dots) 1.8px,transparent 2.4px) 0 0 / 14px 14px,
    var(--paper);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -10px 18px -12px rgba(0,0,0,.35);
}

.theme-christmas .g-card:nth-child(3n+2) .g-back {
  --paper: var(--season-dark);
  --ribbon: var(--season-red);
  --dots: rgba(217,180,106,.35);
  --bow-img: var(--bow);
}

.theme-christmas .g-card:nth-child(3n+3) .g-back {
  --paper: #f4efe6;
  --ribbon: #3f7d52;
  --bow-img: var(--bow);
  background:
    linear-gradient(90deg,transparent calc(50% - 6px),var(--ribbon) calc(50% - 6px),var(--ribbon) calc(50% + 6px),transparent calc(50% + 6px)),
    linear-gradient(0deg,transparent calc(50% - 6px),var(--ribbon) calc(50% - 6px),var(--ribbon) calc(50% + 6px),transparent calc(50% + 6px)),
    repeating-linear-gradient(-45deg,rgba(162,58,50,.22) 0 4px,transparent 4px 13px),
    var(--paper);
}

.theme-christmas .g-card .g-back svg {
  display: none;
}

.theme-christmas .g-card .g-back::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52%;
  height: 40%;
  transform: translate(-50%,-62%);
  background: var(--bow-img) center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

/* a little shake on hover, like guessing what is inside */
.theme-christmas .g-card:not(.up):not(.ok):hover .g-back {
  animation: gift-shake .5s ease-in-out;
}

@keyframes gift-shake {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}

/* matched pairs: gold frame and a star */
.theme-christmas .g-card.ok .g-face {
  box-shadow: 0 0 0 3px var(--season-gold), 0 0 14px 2px rgba(217,180,106,.55);
}

.theme-christmas .g-card .g-face::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: var(--star) center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
  opacity: 0;
  transform: scale(.3) rotate(-40deg);
  transition: opacity .3s ease .25s, transform .45s var(--ease) .25s;
}

.theme-christmas .g-card.ok .g-face::after {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* result panel: pine green with falling snow and a candy-cane edge */
.theme-christmas .g-res {
  position: relative;
  overflow: hidden;
  padding-top: 30px;
  background: var(--bar-snow) 0 0 / 60px 40px, var(--season-dark);
  border-radius: 14px;
  animation: res-snow 6s linear infinite;
}

@keyframes res-snow {
  to {
    background-position: 0 40px, 0 0;
  }
}

.theme-christmas .g-res::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg,var(--season-red) 0 8px,#fbf7f1 8px 16px);
}

.theme-christmas .g-res h3 {
  color: #fff;
}

.theme-christmas .g-code {
  border-color: var(--season-gold);
  background: rgba(255,255,255,.06);
}

.theme-christmas .g-res .btn {
  border-color: var(--season-gold);
}

@media (max-width: 560px) {
  .theme-christmas .g-wrap {
    padding: 18px 10px 10px;
    margin-inline: -4px;
  }
  .theme-christmas .g-wrap::after {
    right: -6px;
    width: 52px;
    height: 32px;
  }
  .theme-christmas .g-card .g-face::after {
    width: 18px;
    height: 18px;
    top: 3px;
    right: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-christmas .g-card:not(.up):not(.ok):hover .g-back,
  .theme-christmas .g-res {
    animation: none;
  }
  .theme-christmas .g-card .g-face::after {
    transition: none;
  }
}

/* Christmas, part 7: the rest of the home page.
   Hero buttons, promo gift tag, polaroids, perks, product strip,
   how-to-order steps, the custom 3D panel and the game banner. */

/* hero buttons: berry red with candy stripes, ghost in pine green */
.theme-christmas .hero .btn {
  background-color: var(--season-red);
  background-image: repeating-linear-gradient(-45deg,rgba(255,255,255,.09) 0 10px,transparent 10px 20px);
  border-color: var(--season-red);
  color: #fff;
  box-shadow: 0 10px 18px -10px rgba(162,58,50,.8);
}

.theme-christmas .hero .btn:hover {
  background-color: #8c2f28;
  border-color: #8c2f28;
}

.theme-christmas .hero .btn.ghost {
  background: rgba(255,255,255,.7);
  border-color: var(--season-dark);
  color: var(--season-dark);
  box-shadow: none;
}

.theme-christmas .hero .btn.ghost:hover {
  background: var(--season-dark);
  color: #fff;
}

/* promo gift tag under the hero buttons (added by main.js) */
.season-tag {
  display: none;
}

.theme-christmas .season-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 9px 16px 9px 30px;
  border: 1.5px dashed var(--season-red);
  border-radius: 6px 22px 22px 6px;
  background: #fffaf3;
  color: var(--season-red);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 8px 18px -12px rgba(162,58,50,.6);
  transform: rotate(-1.2deg);
}

/* the tag's string hole */
.theme-christmas .season-tag::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--tile);
  box-shadow: inset 0 0 0 1.5px var(--season-gold);
}

.season-tag svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.season-tag b {
  font-weight: 600;
}

/* polaroids: snow on top, a bow on each, a red caption */
.theme-christmas .pc::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 6px;
  right: 6px;
  height: 16px;
  background: var(--snowcap) 0 0 / 90px 16px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(91,63,50,.2));
  pointer-events: none;
}

.theme-christmas .pc::after {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 56px;
  height: 43px;
  margin-left: -28px;
  background: var(--bow) center / contain no-repeat;
  filter: drop-shadow(0 3px 3px rgba(91,63,50,.3));
  pointer-events: none;
}

.theme-christmas .p2::after {
  background-image: var(--bow-gold);
  left: 38%;
}

.theme-christmas .p3::after {
  background-image: var(--holly);
  width: 64px;
  height: 40px;
  margin-left: -32px;
  top: -20px;
  left: 30%;
  transform: rotate(-10deg);
}

.theme-christmas .pc span {
  color: var(--season-red);
}

/* perks: red and green ornament icons, gold edges */
.theme-christmas .perks li {
  position: relative;
  border-color: rgba(217,180,106,.6);
  background: linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,.4));
}

.theme-christmas .perks svg {
  stroke: #fff;
  background: var(--season-red);
  box-shadow: 0 6px 12px -6px rgba(162,58,50,.7), inset 0 -3px 0 rgba(0,0,0,.12);
}

.theme-christmas .perks li:nth-child(even) svg {
  background: var(--season-dark);
  box-shadow: 0 6px 12px -6px rgba(47,74,55,.7), inset 0 -3px 0 rgba(0,0,0,.15);
}

/* a little gold cap on top of each icon, like a bauble */
.theme-christmas .perks li::before {
  content: "";
  position: absolute;
  left: 34px;
  top: calc(50% - 27px);
  width: 10px;
  height: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--season-gold);
}

.theme-christmas .perks b {
  color: var(--season-dark);
}

/* product strip: bows and holly on the cards, festive labels */
.theme-christmas .marq-in {
  padding-top: 26px;
}

.theme-christmas .mq {
  position: relative;
  box-shadow: 0 8px 20px rgba(63,47,39,.1), inset 0 0 0 1px rgba(217,180,106,.45);
}

.theme-christmas .mq::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 46px;
  height: 35px;
  margin-left: -23px;
  background: var(--bow) center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(91,63,50,.25));
}

.theme-christmas .mq:nth-child(even)::after {
  width: 54px;
  height: 34px;
  margin-left: -27px;
  top: -16px;
  background-image: var(--holly);
}

.theme-christmas .mq:nth-child(3n)::after {
  background-image: var(--bow-gold);
}

.theme-christmas .mq span {
  color: var(--season-red);
}

.theme-christmas .mq:nth-child(even) span {
  color: var(--season-dark);
}

/* how to order: candy-cane rule with an ornament on each step */
.theme-christmas .steps li {
  border-top: 0;
  padding-top: 22px;
}

.theme-christmas .steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(-45deg,var(--season-red) 0 7px,#fbf7f1 7px 14px);
  box-shadow: 0 0 0 1px rgba(162,58,50,.15);
}

.theme-christmas .steps li::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 52px;
  width: 20px;
  height: 40px;
  background: var(--bauble) center top / contain no-repeat;
  transform-origin: 50% 0;
  animation: deco-sway 4.8s ease-in-out infinite;
  --sw: 7deg;
}

.theme-christmas .steps li:nth-child(2)::after {
  background-image: var(--star);
  width: 26px;
  height: 26px;
  top: -11px;
  transform-origin: 50% 50%;
  animation-duration: 6s;
  --sw: 10deg;
}

.theme-christmas .steps li:nth-child(3)::after {
  animation-delay: -2s;
}

.theme-christmas .steps .ic {
  top: 20px;
  stroke: var(--season-dark);
}

.theme-christmas .steps h3 em {
  color: var(--season-red);
}

/* custom 3D panel: pine green with snow, a red heart on the printer */
.theme-christmas .custom {
  background: var(--bar-snow) 0 0 / 60px 40px, radial-gradient(circle at 88% 18%,rgba(217,180,106,.25),transparent 42%), var(--season-dark);
  animation: res-snow 7s linear infinite;
}

.theme-christmas .custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg,var(--season-red) 0 8px,#fbf7f1 8px 16px);
}

.theme-christmas .custom .eyebrow,
.theme-christmas .custom h2 em {
  color: var(--season-gold);
}

.theme-christmas .custom .btn {
  background: var(--season-red);
  border-color: var(--season-red);
}

.theme-christmas .custom .btn:hover {
  background: var(--season-gold);
  border-color: var(--season-gold);
  color: var(--season-dark);
}

.theme-christmas .ideas li:nth-child(3n) {
  border-color: rgba(217,180,106,.6);
  color: var(--season-gold);
}

.theme-christmas .printer-art .obj {
  fill: var(--season-red);
}

.theme-christmas .printer-art .spool circle,
.theme-christmas .printer-art .sparks path {
  fill: none;
  stroke: var(--season-gold);
}

.theme-christmas .printer-art .sparks path {
  fill: var(--season-gold);
  stroke: none;
}

/* game banner: a red dashed coupon with holly and a star */
.theme-christmas .perk.play {
  position: relative;
  border-color: var(--season-red);
  border-radius: 14px;
  background: linear-gradient(135deg,rgba(162,58,50,.07),transparent 50%),rgba(255,255,255,.4);
}

.theme-christmas .perk.play::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -14px;
  width: 60px;
  height: 38px;
  background: var(--holly) center / contain no-repeat;
  transform: rotate(-16deg);
}

.theme-christmas .perk.play::after {
  content: "";
  position: absolute;
  top: -15px;
  right: 28px;
  width: 30px;
  height: 30px;
  background: var(--star) center / contain no-repeat;
  transform: rotate(14deg);
}

.theme-christmas .perk.play svg {
  stroke: var(--season-red);
}

.theme-christmas .perk.play .perk-t em,
.theme-christmas .perk.play .go {
  color: var(--season-red);
}


@media (max-width: 560px) {
  .theme-christmas .season-tag {
    font-size: 12.5px;
    text-align: left;
  }
  .theme-christmas .pc::after {
    width: 44px;
    height: 34px;
    margin-left: -22px;
    top: -17px;
  }
  .theme-christmas .p3::after {
    width: 50px;
    height: 31px;
    margin-left: -25px;
  }
  .theme-christmas .perks li::before {
    left: 28px;
    top: 9px;
  }
  .theme-christmas .steps li::after {
    right: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcard.need-style .style-pick .chips {
    animation: none;
  }
  .style-mark {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-christmas .steps li::after,
  .theme-christmas .custom {
    animation: none;
  }
}
