/* ═══════════════════════════════════════════════════════════════════
   "Stitched" concept page — craft-paper funky direction.
   Vars use --ck- (concept) prefix; --nd-* is reserved for the quote
   module theme, which cms-loader sets on <html> from the CMS.
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ck-linen:        #F4EDE2;
  --ck-linen-deep:   #EAE0CE;
  --ck-gold:         #E9B939;
  --ck-gold-deep:    #D9A72A;
  --ck-emerald:      #128A5A;
  --ck-emerald-deep: #0C6B45;
  --ck-oxblood:      #8E2F46;
  --ck-oxblood-deep: #6E2136;
  --ck-ink:          #22201C;
  --ck-paper:        #FFFDF8;
  --ck-thread:       #8E2F46;
  --ck-receipt:      #10231A;   /* checkout summary panel */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ck-linen);
  color: var(--ck-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Sticker display type ─────────────────────────────────────────── */
.ck-display {
  font-family: 'Titan One', system-ui, sans-serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.14em var(--ck-paper);
  paint-order: stroke fill;
  text-shadow: 0.045em 0.07em 0 rgba(34, 32, 28, 0.18);
}

/* ── Bands & seams ────────────────────────────────────────────────── */
.ck-band { position: relative; }
.ck-band--linen   { background: var(--ck-linen); }
.ck-band--gold    { background: var(--ck-gold); }
.ck-band--oxblood { background: var(--ck-oxblood); color: var(--ck-paper); }
.ck-band--ink     { background: var(--ck-ink); color: var(--ck-paper); }

.ck-seam {
  display: block;
  width: 100%;
  height: clamp(48px, 7vw, 96px);
  margin-bottom: -1px;   /* kill subpixel gaps */
}
.ck-seam svg { display: block; width: 100%; height: 100%; }

/* ── Nav ──────────────────────────────────────────────────────────── */
.ck-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  z-index: 40;
}

.ck-label-badge {
  display: inline-block;
  background: var(--ck-ink);
  border-radius: 12px;
  padding: 10px 16px 8px;
  box-shadow: 0 4px 0 rgba(34, 32, 28, 0.2);
  position: relative;
}
.ck-label-badge::after {           /* woven-label stitch border */
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px dashed rgba(255, 253, 248, 0.55);
  border-radius: 8px;
  pointer-events: none;
}
/* The stamp is ~1.9:1, so it needs more width than the old mark to keep the
   wordmark legible; the extra inset clears the dashed stitch border. */
.ck-label-badge img { display: block; width: 124px; height: auto; padding: 2px 4px; }

.ck-btn {
  display: inline-block;
  font-family: 'Titan One', system-ui, sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ck-paper);
  background: var(--ck-emerald);
  text-decoration: none;
  padding: 14px 26px 12px;
  border-radius: 999px;
  border: 4px solid var(--ck-paper);
  box-shadow: 0 6px 0 rgba(34, 32, 28, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.ck-btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 9px 0 rgba(34,32,28,0.25); }
.ck-btn:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(34,32,28,0.25); }
.ck-btn:focus-visible { outline: 3px solid var(--ck-ink); outline-offset: 3px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.ck-hero {
  padding: clamp(120px, 16vw, 190px) 20px clamp(60px, 9vw, 120px);
  text-align: center;
  position: relative;
  overflow: visible;
}

.ck-hero-eyebrow {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--ck-oxblood);
  margin-bottom: 14px;
}

.ck-hero .ck-hero-title {
  font-size: clamp(3.2rem, 12vw, 9.5rem);
  color: var(--ck-emerald);
}
.ck-hero .ck-hero-title .ck-line2 { display: block; color: var(--ck-oxblood); font-size: 0.62em; }

.ck-hero p {
  max-width: 520px;
  margin: 26px auto 34px;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: #5A5348;
}

/* ── Floating stickers (parallax) ─────────────────────────────────── */
.ck-float {
  position: absolute;
  width: clamp(56px, 8vw, 120px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(34, 32, 28, 0.22));
  will-change: transform;
  z-index: 5;
}

/* ── Generic section layout ───────────────────────────────────────── */
.ck-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) 24px;
  position: relative;
  z-index: 10;
}

.ck-h2 {
  font-size: clamp(2rem, 5.5vw, 4rem);
  text-align: center;
  margin-bottom: 18px;
}
.ck-band--gold .ck-h2 { color: var(--ck-oxblood); }
.ck-band--linen .ck-h2 { color: var(--ck-emerald); }

.ck-body {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}
.ck-band--gold .ck-body { color: #6E5410; }
.ck-band--linen .ck-body { color: #5A5348; }

/* ── Polaroids ────────────────────────────────────────────────────── */
.ck-polaroids {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  margin-top: clamp(36px, 6vw, 64px);
  flex-wrap: wrap;
}

.ck-polaroid {
  background: var(--ck-paper);
  padding: 12px 12px 40px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(34, 32, 28, 0.25);
  transform: rotate(var(--tilt, -3deg));
  transition: transform 220ms ease;
  position: relative;
  width: clamp(180px, 24vw, 280px);
}
.ck-polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 3; }
.ck-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}
.ck-polaroid figcaption {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #5A5348;
}
.ck-polaroid::before {               /* tape */
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 84px; height: 26px;
  transform: translateX(-50%) rotate(var(--tape-tilt, 2deg));
  background: rgba(233, 185, 57, 0.75);
  border-radius: 2px;
}

/* ── Stats band ───────────────────────────────────────────────────── */
.ck-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 7vw, 96px);
  flex-wrap: wrap;
  text-align: center;
}
.ck-stat-number {
  font-family: 'Titan One', system-ui, sans-serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--ck-gold);
  -webkit-text-stroke: 0.1em var(--ck-paper);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.08em 0 rgba(0, 0, 0, 0.25);
  line-height: 1;
}
.ck-stat-label {
  margin-top: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.75);
}

/* ── Marquee ──────────────────────────────────────────────────────── */
.ck-marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 3px dashed rgba(255, 253, 248, 0.35);
  border-bottom: 3px dashed rgba(255, 253, 248, 0.35);
}
.ck-marquee-track {
  display: flex;
  gap: 2.2em;
  width: max-content;
  animation: ck-marquee 26s linear infinite;
  font-family: 'Titan One', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  color: var(--ck-paper);
  white-space: nowrap;
}
.ck-marquee-track span em { font-style: normal; color: var(--ck-gold); }
@keyframes ck-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Checkout popup ───────────────────────────────────────────────── */
.ck-checkout {
  position: relative;
  background: var(--ck-paper);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.4);
  width: min(1020px, 100%);
  height: min(88vh, 780px);
  display: flex;
  overflow: hidden;
}

.ck-checkout-main {
  flex: 1;
  min-width: 0;
  padding: clamp(22px, 3.5vw, 40px);
  overflow-y: auto;
}
.ck-checkout-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--ck-emerald); }
.ck-checkout-sub { font-size: 0.9rem; color: #8A8272; margin: 6px 0 22px; }

.ck-co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 14px;
}
.ck-co-field { margin-bottom: 14px; }
.ck-co-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6B6355;
  margin-bottom: 5px;
}
.ck-co-label .ck-req { color: var(--ck-oxblood); }
.ck-co-grid input,
.ck-co-field textarea,
.ck-co-field select,
#ck-co-questions select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid rgba(34,32,28,0.25);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ck-ink);
  background: white;
}
.ck-co-grid input:focus,
.ck-co-field textarea:focus,
#ck-co-questions select:focus {
  outline: none;
  border-color: var(--ck-emerald);
  box-shadow: 0 0 0 3px rgba(18,138,90,0.2);
}
.ck-co-invalid { border-color: var(--ck-oxblood) !important; }
.ck-co-field textarea { resize: none; }

.ck-co-filebtn {
  padding: 10px 16px;
  border: 2px dashed rgba(34,32,28,0.3);
  border-radius: 10px;
  background: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ck-emerald);
  cursor: pointer;
}
.ck-co-filebtn:hover { border-color: var(--ck-emerald); background: rgba(18,138,90,0.06); }
.ck-co-filelist { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.ck-co-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ck-ink);
  background: rgba(34,32,28,0.05);
  border-radius: 8px;
  padding: 6px 10px;
}
.ck-co-file button { border: none; background: none; color: var(--ck-oxblood); cursor: pointer; font-weight: 700; margin-left: auto; }
.ck-co-hint { font-size: 0.72rem; color: #A39B8A; margin-top: 6px; }
.ck-co-error { color: var(--ck-oxblood); font-size: 0.85rem; font-weight: 600; margin: 10px 0 0; }
.ck-co-confirm { margin-top: 18px; width: 100%; text-align: center; cursor: pointer; }
.ck-co-confirm:disabled { opacity: 0.55; pointer-events: none; }

/* Right: order summary "receipt" */
.ck-checkout-summary {
  width: 320px;
  flex-shrink: 0;
  background: var(--ck-receipt);
  color: #EFF6F1;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  border-left: 4px dashed var(--ck-gold);
}
.ck-checkout-summary h4 {
  font-family: 'Titan One', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ck-gold);
  margin-bottom: 14px;
}
.ck-co-items { flex: 1; overflow-y: auto; }
.ck-co-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.ck-co-item img {
  width: 44px; height: 52px;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.ck-co-item-info { flex: 1; min-width: 0; }
.ck-co-item-name { font-size: 0.8rem; font-weight: 700; line-height: 1.25; }
.ck-co-item-meta { font-size: 0.7rem; color: rgba(239,246,241,0.65); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.ck-co-item-qty { font-weight: 800; color: var(--ck-gold); font-size: 0.85rem; }
.ck-co-total {
  padding-top: 14px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  border-top: 2px dashed rgba(255,255,255,0.2);
  margin-top: 10px;
}
.ck-co-total b { color: var(--ck-gold); font-size: 1rem; }
.ck-co-editcart {
  margin-top: 12px;
  border: none;
  background: none;
  color: rgba(239,246,241,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}
.ck-co-editcart:hover { color: #fff; }

/* Success state fills the whole popup */
.ck-checkout-success {
  position: absolute;
  inset: 0;
  background: var(--ck-paper);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  gap: 14px;
}
.ck-checkout-success[hidden] { display: none; }
.ck-co-ref {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ck-ink);
  background: var(--ck-linen-deep);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
}
.ck-co-ref[hidden] { display: none; }

/* The quote landed but an artwork file didn't — warn, don't celebrate silently. */
.ck-co-warn {
  max-width: 42ch;
  padding: 11px 15px;
  border: 2px solid var(--ck-gold-deep);
  border-radius: 10px;
  background: rgba(233, 185, 57, 0.14);
  color: var(--ck-ink);
  font-size: 0.84rem;
  line-height: 1.45;
}
.ck-co-warn[hidden] { display: none; }

.ck-co-success-icon {
  width: 74px; height: 74px;
  border-radius: 999px;
  background: var(--ck-emerald);
  color: #fff;
  font-size: 2rem;
  line-height: 74px;
  border: 5px solid var(--ck-paper);
  box-shadow: 0 0 0 3px var(--ck-emerald);
}
.ck-checkout-success h3 { color: var(--ck-emerald); font-size: 1.6rem; }
.ck-checkout-success p { max-width: 400px; color: #6B6355; font-size: 0.95rem; }

@media (max-width: 860px) {
  /* dvh excludes mobile browser chrome, which vh does not — without it the
     Confirm button can sit behind the address bar. The vh line is the fallback. */
  .ck-checkout { flex-direction: column-reverse; height: 92vh; overflow-y: auto; }
  .ck-checkout { height: 92dvh; }
  .ck-checkout-summary {
    width: 100%;
    border-left: none;
    border-bottom: 4px dashed var(--ck-gold);
    max-height: 34vh;
    padding: 18px 20px 14px;
  }
  .ck-co-grid { grid-template-columns: 1fr; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.ck-footer {
  padding: 34px 20px 42px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.55);
  border-top: 3px dashed rgba(255, 253, 248, 0.25);
}

.ck-footer-credit {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 253, 248, 0.3);
}

.ck-footer-credit:hover {
  color: rgba(255, 253, 248, 0.9);
  text-decoration-color: currentColor;
}

/* ── Sewing overlay (spool + stitch trail) ────────────────────────── */
.ck-sew-zone { position: relative; }
#garments { overflow: hidden; }
.ck-thread-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  overflow: visible;
}

/* ── Cart button ──────────────────────────────────────────────────── */
/* Pinned, so the cart stays reachable from the product grid where items are
   actually added. `right` mirrors .ck-nav's horizontal padding; `top` reproduces
   what `align-items: center` gave it while in flow — 18px of nav padding plus
   half the height it differs from the taller logo badge beside it. That badge
   height follows the logo width, so `top` is re-stated at the 640px breakpoint
   where the logo shrinks. Deliberately no z-index: .ck-nav is a stacking context
   at 40, which already puts this above the page and below the modal backdrop (90). */
.ck-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: fixed;
  top: 32px;
  right: clamp(16px, 4vw, 48px);
  cursor: pointer;
}
.ck-cart-count {
  position: absolute;
  top: -12px; right: -12px;
  min-width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--ck-oxblood);
  border: 3px solid var(--ck-paper);
  color: var(--ck-paper);
  font-size: 0.78rem;
  line-height: 20px;
  text-align: center;
  padding: 0 4px;
}
.ck-cart-count.ck-bump { animation: ck-bump 350ms ease; }
@keyframes ck-bump { 40% { transform: scale(1.45) rotate(8deg); } }

/* ── Category tabs ────────────────────────────────────────────────── */
.ck-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(26px, 3.5vw, 38px);
}
.ck-cat-tabs[hidden] { display: none; }

.ck-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 2px solid var(--ck-ink);
  border-radius: 999px;
  background: var(--ck-paper);
  color: var(--ck-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(34, 32, 28, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease,
              background-color 160ms ease, color 160ms ease;
}
.ck-cat-tab:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(34, 32, 28, 0.14); }
.ck-cat-tab:focus-visible { outline: 3px solid var(--ck-emerald); outline-offset: 3px; }
.ck-cat-tab[aria-selected="true"] {
  background: var(--ck-ink);
  color: var(--ck-paper);
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(34, 32, 28, 0.14);
}

.ck-cat-count {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--ck-linen-deep);
  color: var(--ck-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
}
.ck-cat-tab[aria-selected="true"] .ck-cat-count { background: var(--ck-gold); }

.ck-cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 46px 10px;
  color: var(--ck-ink);
  opacity: 0.62;
  font-style: italic;
}

/* ── Product grid ─────────────────────────────────────────────────── */
.ck-section--wide { max-width: 1180px; }

.ck-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(14px, 2.5vw, 26px);
  margin-top: clamp(24px, 3.5vw, 40px);
}

.ck-product-card {
  background: var(--ck-paper);
  border: none;
  border-radius: 14px;
  padding: 10px 10px 14px;
  box-shadow: 0 6px 0 rgba(34, 32, 28, 0.12);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.ck-product-card:hover,
.ck-product-card:focus-visible {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 11px 0 rgba(34, 32, 28, 0.12);
}
.ck-product-card:focus-visible { outline: 3px solid var(--ck-emerald); outline-offset: 3px; }
.ck-product-card img {
  width: 100%;
  aspect-ratio: 886 / 1024;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  background: #EFE9DC;
}
.ck-product-card .ck-prod-name {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ck-ink);
  line-height: 1.3;
}
.ck-product-card .ck-prod-brand {
  display: block;
  font-size: 0.76rem;
  color: #8A8272;
  margin-top: 2px;
}
.ck-product-card .ck-prod-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Titan One', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ck-emerald);
}

/* ── Modal shell (picker + cart share the backdrop) ───────────────── */
.ck-modal-backdrop[hidden] { display: none; }
.ck-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 12, 0.55);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ck-modal-backdrop--right { justify-content: flex-end; padding: 0; }

.ck-picker {
  position: relative;
  background: var(--ck-paper);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  width: min(760px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  overflow: hidden;
}
.ck-picker-media {
  width: 42%;
  background: #EFE9DC;
  flex-shrink: 0;
}
.ck-picker-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-picker-body {
  flex: 1;
  min-width: 0;
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.ck-picker-name { font-size: 1.15rem; font-weight: 800; color: var(--ck-ink); line-height: 1.25; padding-right: 30px; }
.ck-picker-brand { font-size: 0.8rem; color: #8A8272; margin-top: -10px; }
.ck-picker-field .qq-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B6355;
  margin-bottom: 8px;
}
.ck-optional { font-weight: 500; text-transform: none; letter-spacing: 0; color: #9A9184; }

/* Decoration: method (single choice) and positions (multi) share one chip. */
.ck-deco-methods,
.ck-deco-positions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ck-deco-chip {
  padding: 8px 14px;
  border: 2px solid rgba(34, 32, 28, 0.22);
  border-radius: 999px;
  background: var(--ck-paper);
  color: var(--ck-ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.ck-deco-chip:hover { border-color: var(--ck-ink); }
.ck-deco-chip:focus-visible { outline: 3px solid var(--ck-emerald); outline-offset: 2px; }
.ck-deco-chip[aria-checked="true"] {
  background: var(--ck-emerald);
  border-color: var(--ck-emerald);
  color: var(--ck-paper);
}

.ck-deco-note {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(34, 32, 28, 0.18);
  border-radius: 10px;
  background: var(--ck-paper);
  color: var(--ck-ink);
  font: inherit;
  font-size: 0.88rem;
}
.ck-deco-note:focus-visible { outline: none; border-color: var(--ck-emerald); }

/* Cart / checkout sub-line describing the decoration. */
.ck-deco-line {
  display: block;
  font-size: 0.76rem;
  color: #6B6355;
  margin-top: 2px;
}
.ck-deco-line em { font-style: italic; opacity: 0.85; }

.ck-picker-footer {
  margin-top: auto;
  /* The decoration block makes the body taller than the modal, so pin the
     total + Add to cart to the bottom instead of letting them scroll away.
     bottom:-20px cancels .ck-picker-body's bottom padding. */
  position: sticky;
  bottom: -20px;
  z-index: 1;
  background: var(--ck-paper);
  padding-top: 14px;
  padding-bottom: 20px;
  border-top: 2px dashed rgba(34,32,28,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ck-picker-total { font-size: 0.9rem; color: var(--ck-ink); }
.ck-picker-total b { color: var(--ck-emerald); }
.ck-btn--sm { padding: 11px 20px 9px; font-size: 0.85rem; box-shadow: 0 4px 0 rgba(34,32,28,0.25); }
.ck-btn--sm:disabled { opacity: 0.45; pointer-events: none; }

.ck-picker-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(34,32,28,0.2);
  background: var(--ck-paper);
  color: var(--ck-ink);
  font-size: 0.9rem;
  cursor: pointer;
}
.ck-picker-close:hover { background: var(--ck-linen-deep); }

/* Picker uses the quote module's swatch/size styles — give them a light
   context (they normally live on the dark form card). */
.ck-picker .qq-swatch-grid { --qq-border-solid: rgba(34,32,28,0.25); }
.ck-picker .qq-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.ck-picker .qq-size-cell label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6B6355;
  margin-bottom: 4px;
  text-align: center;
}
.ck-picker .qq-size-qty {
  width: 100%;
  padding: 8px 6px;
  text-align: center;
  border: 1.5px solid rgba(34,32,28,0.25);
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  color: var(--ck-ink);
}
.ck-picker .qq-size-qty:focus { outline: none; border-color: var(--ck-emerald); box-shadow: 0 0 0 3px rgba(18,138,90,0.2); }

/* ── Cart drawer ──────────────────────────────────────────────────── */
.ck-cart {
  position: relative;
  background: var(--ck-paper);
  width: min(400px, 92vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(0,0,0,0.3);
  border-left: 4px dashed var(--ck-gold);
}
.ck-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 2px dashed rgba(34,32,28,0.15);
}
.ck-cart-head h3 { font-size: 1.3rem; color: var(--ck-emerald); }
.ck-cart-head .ck-picker-close { position: static; }
.ck-cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.ck-cart-empty { text-align: center; color: #8A8272; font-size: 0.9rem; padding: 30px 10px; }
.ck-cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(34,32,28,0.12);
}
.ck-cart-item img {
  width: 54px; height: 62px;
  object-fit: cover;
  border-radius: 8px;
  background: #EFE9DC;
  flex-shrink: 0;
}
.ck-cart-item-info { flex: 1; min-width: 0; }
.ck-cart-item-name { font-size: 0.86rem; font-weight: 700; color: var(--ck-ink); line-height: 1.25; }
.ck-cart-item-meta { font-size: 0.75rem; color: #8A8272; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.ck-cart-dot {
  width: 13px; height: 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(34,32,28,0.3);
  background: linear-gradient(135deg, var(--sw1, #ccc) 50%, var(--sw2, var(--sw1, #ccc)) 50%);
  flex-shrink: 0;
}
.ck-cart-qty { font-weight: 800; color: var(--ck-emerald); font-size: 0.9rem; }
.ck-cart-remove {
  border: none; background: none;
  color: var(--ck-oxblood);
  font-size: 0.75rem; font-weight: 700;
  cursor: pointer;
  padding: 4px;
}
.ck-cart-foot {
  padding: 16px 20px 20px;
  border-top: 2px dashed rgba(34,32,28,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ck-cart-total { font-size: 0.9rem; color: var(--ck-ink); }
.ck-cart-total b { color: var(--ck-emerald); }

@media (max-width: 640px) {
  .ck-picker { flex-direction: column; overflow-y: auto; max-height: 92vh; }
  .ck-picker { max-height: 92dvh; }
  .ck-picker-media { width: 100%; height: 230px; }
  .ck-picker-media img { height: 230px; }
}

/* ── Motion preferences ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ck-marquee-track { animation: none; }
  .ck-float { will-change: auto; }
  .ck-cat-tab, .ck-cat-tab:hover { transition: none; transform: none; }
}

@media (max-width: 400px) {
  /* A 200px floor plus gaps overflows the narrowest phones. */
  .ck-product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 640px) {
  .ck-label-badge img { width: 72px; }
  .ck-cart-btn { top: 19px; }   /* the shorter logo makes a shorter badge */
  .ck-polaroids { gap: 22px; }
  .ck-stats { gap: 24px; }
}
