/* ============================================================
   Dragon Ink and Thread — cozy cottage / whimsical theme
   Plain CSS, no build step. Palette via custom properties.
   Sage + clay + honey, soft paper background, stitched edges.
   ============================================================ */

:root {
  --paper:      #f6efe0;  /* warm cream paper            */
  --paper-deep: #efe4cd;  /* slightly deeper cream       */
  --teal:       #4a9198;  /* muted cottage teal          */
  --teal-deep:  #2f6b72;
  --clay:       #eab3c6;  /* pale pink accent            */
  --clay-deep:  #b85d80;  /* deep rose (text & buttons)  */
  --honey:      #d7a640;  /* warm honey gold             */
  --honey-deep: #b9862a;
  --rose:       #e7bcae;  /* soft dusty rose             */
  --rose-soft:  #f4ddd3;
  --ink:        #453a30;  /* warm cocoa brown text       */
  --ink-soft:   #766757;
  --white:      #fffdf7;

  --radius:     22px;
  --radius-sm:  14px;
  --shadow:     0 14px 34px rgba(69, 58, 48, 0.12);
  --shadow-sm:  0 6px 18px rgba(69, 58, 48, 0.10);
  --maxw:       1080px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script:  "Great Vibes", "Caveat", "Segoe Script", cursive;
  --font-body:    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  /* Solid warm-cream background across all pages. The pink gingham appears
     only on the hero sections (homepage + shop top); everything else sits on
     this cream. */
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a { color: var(--clay-deep); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

.amp { font-style: italic; color: var(--clay-deep); }

/* Accessibility helpers ------------------------------------ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Headings -------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance; /* tidier heading line breaks — a small premium touch */
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--clay-deep);
  margin: 0 0 0.35rem;
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--clay-deep);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--teal);
}

/* Hover lifts/tints only where the device can truly hover (mouse/trackpad).
   On touch, a :hover applied on the first tap can "stick," so the tap counts
   as a hover and the link only activates on the second tap — the mobile
   double-tap bug. Gating hover behind (hover: hover) removes it on phones. */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background: #9c4a68; }
  .btn-ghost:hover { background: var(--rose-soft); border-color: var(--clay); }
}

/* Disabled buy buttons — used before launch ("Opens August 15") and
   for sold-out items ("Coming soon"). Muted, with no hover lift. */
.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}
.btn:disabled:hover { transform: none; background: var(--clay-deep); }
.card-add.is-soldout:disabled:hover { background: var(--clay-deep); }

/* Stitched divider ----------------------------------------- */
/* A run of thread stitches that dip into the "fabric" at each end:
   the color ramps up from transparent, holds, then ramps back down,
   so every stitch has soft faded tips instead of hard rectangles.
   A faint drop-shadow lifts the thread off the paper. */
.stitch-divider {
  height: 24px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(74, 145, 152, 0) 0,
    rgba(74, 145, 152, 0) 5px,
    rgba(74, 145, 152, 0.35) 8px,
    rgba(74, 145, 152, 0.92) 12px,
    rgba(74, 145, 152, 0.92) 17px,
    rgba(74, 145, 152, 0.35) 21px,
    rgba(74, 145, 152, 0) 24px,
    rgba(74, 145, 152, 0) 29px
  );
  background-size: 29px 4px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.8;
  filter: drop-shadow(0 1px 0.5px rgba(47, 107, 114, 0.18));
}

/* Header / nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--paper-deep);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-sm);
  /* Show just the dragon by zooming into the square logo.
     Tweak background-size / position if the crop needs nudging. */
  background: #fff url("../assets/logo.png") no-repeat 50% 24%;
  background-size: 150%;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-tag {
  font-family: var(--font-script);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
@media (hover: hover) { .site-nav a:hover { border-bottom-color: var(--honey); } }
.site-nav .nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border-bottom: none;
}
@media (hover: hover) { .site-nav .nav-cta:hover { background: var(--teal-deep); } }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.75rem, 7vw, 6rem) 0 clamp(2.25rem, 5vw, 4.25rem);
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Split hero: dragon on the left, headline + Shop button on the right. */
.hero-split {
  width: 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.75rem);
  margin: 0.6rem 0 0.4rem;
}
.hero-art { display: flex; justify-content: center; }
.hero-text { text-align: left; }
.hero-shop-btn {
  margin-top: 1.5rem;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
  padding: 0.42rem 2.1rem 0.55rem;
}
@media (max-width: 720px) {
  .hero-split { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-text { text-align: center; }
}
.hero-eyebrow {
  position: relative;
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--honey-deep);
  margin: 0 0 1.6rem;
  padding: 0.42rem 2.15rem 0.58rem;
  background: rgba(255, 253, 247, 0.94);
  border: 1.5px solid var(--honey);
  border-radius: 999px;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(215, 166, 64, 0.20);
}
/* Standalone transparent dragon — frameless, floating on the gingham. */
.hero-logo-wrap {
  display: inline-block;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.hero-logo {
  display: block;
  width: clamp(210px, 37vw, 400px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(69, 58, 48, 0.20));
}
/* In the split hero the rule sits under the headline, left-aligned. */
.hero-text .hero-rule { width: min(340px, 100%); margin: 1.15rem 0 0; justify-content: flex-start; }
@media (max-width: 720px) {
  .hero-text .hero-rule { margin: 1.15rem auto 0; justify-content: center; }
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0.1rem 0 0;
  text-wrap: balance;
}
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: min(340px, 74%);
  margin: 1.15rem auto 1.2rem;
}
.hero-rule-line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--honey), transparent); }
.hero-rule-dot { font-size: 1.05rem; line-height: 1; color: var(--honey); }
/* Gold rule + basket used as a breaker between the hero and Join the Nest. */
.rule-breaker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: min(440px, 82%);
  margin: clamp(1.6rem, 4vw, 2.6rem) auto clamp(0.4rem, 2vw, 1rem);
}

/* Little hand-drawn basket icon (replaces the old 🪺), inherits the
   surrounding text colour so it reads at any size, in any spot. */
.ico-basket {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.18em;
  margin: 0 0.08em;
}
/* The basket medallion used as the hero ornament */
.hero-basket { display: inline-block; width: clamp(40px, 6.5vw, 54px); height: auto; border-radius: 50%; vertical-align: middle; }
/* Same basket illustration used small & inline (buttons, titles, tags) */
.ico-basket-img {
  display: inline-block;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -0.55em;
  margin: 0 0.1em;
}
.make-tag .ico-basket-img { width: 1.5em; height: 1.5em; vertical-align: -0.4em; }
.hero-tagline {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 0.8rem;
  text-wrap: balance;
}
.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--teal-deep);
  max-width: 540px;
  margin: 0 auto 1.9rem;
  text-wrap: balance;
}
/* Join-the-Nest block, presented as an elegant little card */
.hero-join {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 253, 247, 0.74);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.1rem, 3vw, 1.6rem);
}
.hero-join-title { font-family: var(--font-display); font-size: 1.14rem; color: var(--ink); margin: 0 0 0.9rem; text-align: center; }
.hero-join .nest-form { justify-content: center; }
.hero-join .nest-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}
.hero-shoplink { margin: 1.2rem 0 0; font-family: var(--font-body); font-size: 1rem; }
.hero-shoplink a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; }
.badge {
  display: inline-block;
  background: var(--white);
  color: var(--clay-deep);
  border: 1.5px solid var(--rose);
  border-radius: 999px;
  padding: 0.44rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}
.hero-badges { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin: 1.9rem 0 0; }
/* Badges relocated below the gingham hero onto the wallpaper. */
.post-hero-badges { margin: clamp(1.5rem, 4vw, 2.4rem) auto clamp(0.4rem, 2vw, 0.9rem); }

/* Brand seal — basket ringed with curved text (Handmade in San Antonio ·
   Proudly Veteran-Owned). */
.brand-seal-wrap { text-align: center; margin: clamp(1.6rem, 4vw, 2.6rem) auto clamp(0.6rem, 2vw, 1rem); }
.brand-seal { width: clamp(180px, 42vw, 240px); height: auto; display: inline-block; }
.seal-ring { fill: none; stroke: var(--honey); stroke-width: 1.4; }
.seal-dot { fill: var(--honey-deep); }
.seal-text { font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 2.5px; fill: var(--honey-deep); }
.badge-vet { color: var(--teal-deep); border-color: var(--teal); }

.hero-glow {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 340px;
  background: radial-gradient(circle, rgba(215, 166, 64, 0.18), transparent 70%);
  z-index: 1;
}

/* Floating whimsy doodles ---------------------------------- */
.floaties {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.floaty {
  position: absolute;
  width: clamp(46px, 7vw, 74px);
  height: auto;
  color: var(--teal);
  opacity: 0.4;
  animation: float 11s ease-in-out infinite;
}
.f1 { top: 15%;  left: 8%;   width: clamp(40px, 5.5vw, 60px); animation-delay: 0s;   }
.f2 { top: 60%;  left: 12%;  width: clamp(34px, 4.5vw, 48px); animation-delay: 1.6s; }
.f3 { top: 22%;  right: 10%; animation-delay: 0.8s; }
.f4 { top: 66%;  right: 12%; animation-delay: 2.4s; }
.f5 { top: 44%;  left: 5%;   width: clamp(30px, 4vw, 42px);   animation-delay: 3.1s; }
.f6 { top: 12%;  right: 27%; width: clamp(34px, 4.5vw, 48px); animation-delay: 2.0s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-9px) rotate(1.5deg); }
}

/* Sections -------------------------------------------------- */
/* translucent cream panel so the wallpaper reads through softly behind text */
.section { padding: clamp(3.75rem, 9vw, 6.75rem) 0; background: rgba(246, 239, 224, 0.82); }
/* translucent rose band, same idea */
.section-tint { background: rgba(244, 221, 211, 0.82); }
/* calmer wallpaper behind the shop text specifically */
#products { background: rgba(244, 221, 211, 0.93); }

/* Launch countdown bar ------------------------------------- */
.countdown-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding: 0.6rem 1rem;
  background: var(--teal);
  color: var(--white);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}
.countdown-clock {
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.countdown-cta {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (hover: hover) { .countdown-cta:hover { color: var(--paper-deep); } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.1rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin-top: 0.4rem; text-wrap: balance; }

/* FAQ ------------------------------------------------------- */
.faq-inner { max-width: 760px; }
.faq-item {
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--teal-deep);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .faq-item summary:hover { color: var(--clay-deep); } }
.faq-item summary:focus-visible { outline: 3px solid var(--honey); outline-offset: -3px; }
.faq-item > p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Mission band ---------------------------------------------- */
.mission { padding: clamp(2.2rem, 6vw, 4rem) 0; text-align: center; }
.mission-quote {
  max-width: 840px;
  margin: 0 auto;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.55;
  color: var(--ink);
  position: relative;
}
.mission-quote::before,
.mission-quote::after {
  content: "✦";
  color: var(--clay-deep);
  font-size: 1rem;
  display: block;
  margin: 0.4rem auto;
}

/* Our Story ------------------------------------------------- */
.container.story { max-width: 760px; margin-top: clamp(2rem, 5vw, 3.5rem); }
.story .eyebrow, .story > h2 { text-align: center; }
.story > h2 { margin-bottom: 1.4rem; }
.story-body p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 1.02rem; }
.story-body em { color: var(--ink); font-style: italic; }
/* Maker pull-quote, relocated here from the hero. Scoped under
   .story-body so it beats the `.story-body p` colour rule. */
.story-body .story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.45;
  color: var(--teal-deep);
  text-align: center;
  max-width: 620px;
  margin: 1.8rem auto !important;
}
.story-emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  margin: 1.8rem auto !important;
}
.story-signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  color: var(--teal-deep);
  text-align: center;
  margin-top: 1.6rem !important;
}

/* What we believe (pillars) --------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pillar-icon { font-size: 2.1rem; display: block; margin-bottom: 0.5rem; }
.pillar h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Why handmade callout -------------------------------------- */
.why-handmade {
  max-width: 680px;
  margin: 2.2rem auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
}

/* Closing note ---------------------------------------------- */
/* Sits on an opaque cream panel so the script text keeps strong
   contrast instead of fighting the busy floral wallpaper behind it. */
.closing-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.9rem, 5vw, 2.9rem) clamp(1.3rem, 4vw, 2.6rem);
}
.closing-note p { color: var(--ink); margin: 0 0 1rem; }
.closing-note em { color: var(--ink); font-style: italic; }
.closing-signoff {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--clay-deep);
  margin-top: 1.2rem !important;
}

/* About ----------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Placeholders (swap for real photos) ----------------------- */
/* Stories / Past Makes lookbook ---------------------------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.6rem;
}
.make-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.make-media { position: relative; line-height: 0; }
.make-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
/* Reuse the emoji placeholder, but square it off to fill the card. */
.make-media .placeholder { aspect-ratio: 1 / 1; border-radius: 0; border-width: 0; }
.make-tag {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--clay-deep);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.make-body { padding: 0.85rem 1rem 1rem; text-align: center; }
.make-title { margin: 0; font-size: 1.1rem; }

/* Kind Words / testimonials — real customer quotes only.
   Section stays hidden until the TESTIMONIALS array in js/main.js has
   at least one entry (see the render block there). */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.6rem;
}
.testimonial-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.7rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--rose);
  opacity: 0.7;
}
.testimonial-stars { color: var(--honey); letter-spacing: 0.12em; font-size: 0.92rem; margin: 0.4rem 0 0.2rem; }
.testimonial-quote { margin: 0.6rem 0 1.1rem; color: var(--ink); font-size: 1.02rem; line-height: 1.6; }
.testimonial-attr { display: flex; align-items: baseline; gap: 0.5rem; margin-top: auto; flex-wrap: wrap; }
.testimonial-name { font-family: var(--font-script); font-size: 1.4rem; font-weight: 700; color: var(--clay-deep); }
.testimonial-where { font-size: 0.85rem; color: var(--ink-soft); }

/* Full catalog page (shop.html) ---------------------------- */
.shop-hero .section-head { max-width: 720px; }
.shop-hero-actions { margin-top: 1.15rem; }

/* Pink gingham weave on the hero sections — homepage hero + shop top.
   Placed after .section so it wins over the section background for .shop-hero.
   A soft cream veil + rosy top glow keep text legible over the check. */
.hero, .shop-hero {
  background-color: #fbf5ef;
  background-image:
    radial-gradient(1200px 620px at 50% -6%, rgba(231, 188, 174, 0.34), transparent 60%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.34) 0%, rgba(255, 253, 247, 0.18) 100%),
    url(../assets/gingham-pink.png);
  background-size: auto, auto, 64px 64px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-position: center top, center, center;
}
.shop-hero { position: relative; overflow: hidden; }
.shop-catalog-wrap { padding-top: clamp(1.25rem, 3.5vw, 2.25rem); }
.catalog-fallback { text-align: center; color: var(--ink-soft); }
.catalog-cat { margin-bottom: clamp(2.75rem, 6vw, 4.25rem); }
.catalog-cat:last-child { margin-bottom: 0; }
.catalog-cat-head { text-align: center; max-width: 640px; margin: 0 auto 1.9rem; }
.catalog-cat-head h2 { margin-bottom: 0.15rem; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.7rem);
}
.catalog-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) { .catalog-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.catalog-media { position: relative; line-height: 0; }
.catalog-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.catalog-media .placeholder { aspect-ratio: 4 / 3; border-radius: 0; border-width: 0; }
.catalog-body { padding: 1rem 1.05rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.catalog-name { margin: 0 0 0.12rem; font-size: 1.1rem; }
.catalog-price { margin: 0 0 0.55rem; font-family: var(--font-body); font-weight: 800; color: var(--clay-deep); }
.catalog-blurb { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; flex: 1; }
.catalog-buy { width: 100%; text-align: center; margin-top: auto; }

/* Homepage product teaser — a few makes shown before the full catalog. */
.shop-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 0 auto 2.2rem;
  max-width: 820px;
}
.teaser-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) { .teaser-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 24px rgba(69, 58, 48, 0.14)); } }
.teaser-photo,
.teaser-card .placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.teaser-card .placeholder { border-radius: 0; border-width: 0; }
.teaser-name {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.7rem 0.6rem 0.85rem;
}
@media (max-width: 560px) {
  .shop-teaser-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* Homepage "Shop the collection" call-to-action ------------- */
.shop-cta-panel {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.9rem, 5vw, 2.9rem) clamp(1.2rem, 4vw, 2.3rem);
}
.shop-cta-lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: var(--ink);
  margin: 0 0 1.3rem;
  text-wrap: balance;
}
.shop-cta-btn {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  padding: 0.5rem 2.5rem 0.62rem;
  background: rgba(255, 253, 247, 0.95);
  color: var(--honey-deep);
  border: 1.5px solid var(--honey);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(215, 166, 64, 0.20);
}
@media (hover: hover) { .shop-cta-btn:hover { background: var(--honey); color: var(--white); border-color: var(--honey-deep); } }
.shop-cta-note { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--rose) 0%, var(--paper-deep) 100%);
  border: 2px dashed var(--teal);
  border-radius: var(--radius);
  color: var(--clay-deep);
}
.placeholder span { font-size: 2.8rem; }
.placeholder small { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.placeholder-portrait { aspect-ratio: 4 / 5; box-shadow: var(--shadow); transform: rotate(-1deg); }
.placeholder-product { aspect-ratio: 4 / 3; margin-bottom: 1rem; }
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  display: block;
}
.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* bias the crop toward the upper-middle, where products sit in
     typical photos (keeps less floor/background in frame) */
  object-position: 50% 32%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: block;
  cursor: zoom-in;
}

/* Image lightbox (double-click a product photo) ------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(47, 42, 38, 0.82);
  cursor: zoom-out;
  animation: lb-fade 0.18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(92vw, 900px);
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--white);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.lightbox-close:hover { background: var(--white); }
.lightbox-close:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* Products -------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:nth-child(2) { transform: rotate(-0.5deg); }
.card:nth-child(3) { transform: rotate(0.5deg); }
.card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.3rem; }
.card p { margin: 0 0 0.6rem; color: var(--ink-soft); }
.card p:last-of-type { margin-bottom: 1rem; }
.card-details {
  font-size: 0.82rem !important;
  color: var(--ink-soft);
  line-height: 1.5;
  opacity: 0.85;
}
/* Variant cards: print/style picker + thumbnail gallery */
.card-media { position: relative; }
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 0.2rem;
}
.thumbs[hidden] { display: none; }
.thumb {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--paper-deep);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { transform: translateY(-2px); border-color: var(--rose); }
.thumb.is-active { border-color: var(--teal); }
.thumb:focus-visible { outline: 3px solid var(--honey); outline-offset: 1px; }

.variant-field { margin: 0 0 0.7rem; }
.variant-label {
  display: block;
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--teal-deep);
  margin-bottom: 0.15rem;
}
.variant-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--white);
  border: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f6b72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.variant-select:hover { border-color: var(--teal-deep); }
.variant-select:focus-visible { outline: 3px solid var(--honey); outline-offset: 1px; }

.product-note {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 660px;
  color: var(--ink);
  /* Caveat (legible handwriting) rather than the swirly Great Vibes, and
     larger, so this longer line reads easily while staying cursive. */
  font-family: "Caveat", var(--font-script);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.35;
}

/* Join the Nest signup -------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nest-form {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.nest-form input {
  width: min(320px, 100%);
  padding: 0.75rem 1.1rem;
  border: 2px dashed var(--teal);
  border-radius: 999px;
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.nest-form input:focus-visible { border-style: solid; }
.nest-incentive {
  margin: 0.7rem 0 0;
  max-width: 460px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}
.nest-incentive strong { color: var(--clay-deep); }
.nest-note {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--teal-deep);
  margin: 0.5rem 0 0;
}

/* Hero pull-quote ------------------------------------------- */
.hero-quote {
  max-width: 560px;
  margin: 0.5rem 0 0.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: var(--teal-deep);
}

/* Homepage sign-off lead ------------------------------------ */
.closing-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

/* Coming soon / contact ------------------------------------- */
.coming-inner,
.contact-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.6rem 0 1.4rem;
}
.contact-meta { font-weight: 700; }
.contact-fine { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }

/* Contact form ---------------------------------------------- */
.contact-form {
  max-width: 520px;
  margin: 1.6rem auto 0.4rem;
  text-align: left;
}
.contact-form .field { margin-bottom: 0.9rem; }
.contact-form label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--paper-deep);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { border-color: var(--teal); }
.contact-form .btn-block { margin-top: 0.3rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.ok { color: var(--teal-deep); }
.form-status.err { color: var(--clay-deep); }

/* Footer ---------------------------------------------------- */
.site-footer {
  background: var(--teal-deep);
  color: var(--paper);
  padding: 2.6rem 0;
  border-top: 4px dotted var(--honey);
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}
.footer-copy { margin: 0; color: #e7dcc6; font-size: 0.92rem; }
.footer-links {
  margin: 0.7rem 0;
  font-size: 0.9rem;
  color: #e7dcc6;
}
.footer-links a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}
@media (hover: hover) { .footer-links a:hover { border-bottom-color: var(--paper); } }

/* Policy pages (privacy, shipping) -------------------------- */
.policy-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
/* Solid cream panel so long legal text stays readable over the wallpaper. */
.container.policy {
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.policy h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.3rem; }
.policy h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
  color: var(--teal-deep);
}
.policy p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.75; }
.policy ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.policy li { margin-bottom: 0.55rem; color: var(--ink-soft); line-height: 1.7; }
.policy a { color: var(--clay-deep); }
.policy strong { color: var(--ink); }
.policy-meta { font-weight: 700; color: var(--ink) !important; }
.policy-updated {
  font-size: 0.85rem !important;
  font-style: italic;
  margin-top: 2.4rem !important;
  opacity: 0.8;
}
.header-inner .policy-back { white-space: nowrap; }

/* Scroll reveal (progressive enhancement) ------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------ */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px dashed var(--paper-deep);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 340px; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .site-nav li { padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
  .site-nav a { display: block; padding: 0.7rem 0; }
  .site-nav .nav-cta { text-align: center; margin: 0.4rem clamp(1.1rem, 4vw, 2.5rem); }

  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 320px; margin: 0 auto; }
  .product-grid { grid-template-columns: 1fr; }
  .card:nth-child(2), .card:nth-child(3) { transform: none; }
  .pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   Shop / checkout flow (visual mockup)
   ============================================================ */

/* Header layout with cart button --------------------------- */
.header-right { display: flex; align-items: center; gap: 1rem; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.cart-btn:hover { background: var(--rose-soft); border-color: var(--clay-deep); }
.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--clay-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.basket-icon { width: 17px; height: auto; flex: 0 0 auto; }

/* Product card shopping bits -------------------------------- */
.card { display: flex; flex-direction: column; }
.card-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal-deep);
  margin: 0 0 0.4rem;
}
.card-add { width: 100%; margin-top: auto; }

/* Cart drawer + scrim -------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(69, 58, 48, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  background: var(--paper);
  box-shadow: -16px 0 40px rgba(69, 58, 48, 0.22);
  border-left: 3px dashed var(--teal);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 61;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.drawer-head h3 { margin: 0; }
.drawer-close { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.drawer-lines { overflow-y: auto; flex: 1; }
.cart-line { display: flex; gap: 0.8rem; padding: 0.9rem 0; border-bottom: 1px dashed var(--paper-deep); }
.cart-line-art {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--rose) 0%, var(--paper-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.cart-line .meta { flex: 1; }
.cart-line .name { font-weight: 700; font-size: 0.95rem; }
.cart-line .sub { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.1rem; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 2rem 0; font-family: var(--font-script); font-size: 1.35rem; }

/* qty stepper */
.qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.7rem; margin-top: 0.4rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--paper-deep); border-radius: 999px; overflow: hidden; background: var(--white); flex: 0 0 auto; }
.qty-stepper button { width: 28px; height: 28px; background: none; border: none; font-size: 1rem; color: var(--teal-deep); cursor: pointer; }
.qty-stepper button:hover { background: var(--rose-soft); }
.qty-stepper span { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.line-remove { background: none; border: none; color: var(--ink-soft); font-size: 0.78rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0.25rem 0.15rem; flex: 0 0 auto; }
.line-remove:hover { color: var(--clay-deep); }

.cart-summary { padding-top: 0.8rem; }
.row-between { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink-soft); }
.row-between.total { color: var(--ink); font-weight: 800; font-size: 1.02rem; margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1px dashed var(--paper-deep); }
.btn-block { width: 100%; text-align: center; }

/* Demo notices --------------------------------------------- */
.demo-note {
  background: var(--rose-soft);
  border: 2px dashed var(--clay);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--clay-deep);
  margin: 0 0 1.2rem;
}
.demo-note-sm { font-size: 0.8rem; margin-bottom: 0.8rem; padding: 0.5rem 0.7rem; }

/* Checkout flow container ---------------------------------- */
#shop-flow { padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
.view { display: none; }
.view.is-active { display: block; }
.flow-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 1rem; }
.field-head { font-size: 1.1rem; margin: 0 0 0.7rem; }

.stepper { display: flex; align-items: center; gap: 0.6rem; list-style: none; padding: 0; margin: 0 0 2rem; font-size: 0.82rem; color: var(--ink-soft); flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 0.45rem; }
.stepper .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--paper-deep); }
.stepper .step.done { color: var(--teal-deep); }
.stepper .step.done .dot { background: var(--teal); }
.stepper .step.active { color: var(--ink); font-weight: 800; }
.stepper .step.active .dot { background: var(--clay-deep); }
.stepper .sep { width: 26px; height: 2px; background: var(--paper-deep); border-radius: 2px; }

.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.35rem; font-weight: 600; }
.field input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--paper-deep);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.field input:focus-visible { border-color: var(--teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.co-divider { border: none; border-top: 2px dashed var(--paper-deep); margin: 1.4rem 0; }

.card-mount {
  border: 2px dashed var(--teal);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: rgba(74, 145, 152, 0.08);
}
.card-fields-fake {
  background: var(--white);
  border: 1.5px solid var(--paper-deep);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.lock-note { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.7rem; }

.summary-card {
  background: var(--white);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.pay-fine { text-align: center; font-size: 0.78rem; color: var(--ink-soft); font-style: italic; margin: 0.5rem 0 0; }

/* Confirmation --------------------------------------------- */
.confirm { max-width: 520px; margin: 1.5rem auto; text-align: center; }
.confirm .check {
  width: 68px; height: 68px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
}
.order-id {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--white);
  border: 1.5px dashed var(--teal);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  display: inline-block;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.confirm-fine { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 820px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .cart-btn .cart-label { display: none; } /* keep just the egg + count tight on mobile */
}

/* Respect reduced-motion preferences ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .floaty { animation: none; }
  .drawer, .scrim { transition: none; }
}

/* Shopping cart (js/cart.js) -------------------------------- */
.cart-button {
  position: relative;
  margin-left: 0.6rem;
  background: var(--white);
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  width: 44px; height: 44px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1;
}
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--clay-deep); color: #fff;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-scrim { position: fixed; inset: 0; background: rgba(69, 58, 48, 0.4); z-index: 60; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(390px, 92vw);
  background: var(--white);
  z-index: 61;
  box-shadow: -8px 0 30px rgba(69, 58, 48, 0.22);
  display: flex; flex-direction: column;
}
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--paper-deep);
}
.cart-title { margin: 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.cart-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.4rem 1.2rem; }
.cart-empty { padding: 2.5rem 1.2rem; color: var(--ink-soft); text-align: center; }
.cart-line { display: flex; gap: 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--paper); }
.cart-line-media { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: var(--rose-soft); }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-line-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-name { margin: 0 0 0.15rem; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.cart-line-price { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: 0.92rem; }
.cart-qty { display: flex; align-items: center; gap: 0.4rem; }
.cart-qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--paper-deep); background: var(--white);
  border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1;
}
.cart-qty-n { min-width: 1.5rem; text-align: center; color: var(--ink); }
.cart-remove { margin-left: auto; background: none; border: 0; color: var(--clay-deep); cursor: pointer; font-size: 0.85rem; text-decoration: underline; }
.cart-footer { border-top: 1px solid var(--paper-deep); padding: 1rem 1.2rem 1.2rem; }
.cart-subtotal-row { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.5rem; }
.cart-ship-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 0.8rem; line-height: 1.5; }
.cart-checkout { width: 100%; }
.cart-checkout-note { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin: 0.6rem 0 0; min-height: 1em; }
/* .cart-drawer sets display:flex, which would override the [hidden]
   attribute — this makes hidden win so the drawer actually closes. */
.cart-drawer[hidden], .cart-scrim[hidden] { display: none; }
body.cart-open { overflow: hidden; }
@media (hover: hover) {
  .cart-button:hover { border-color: var(--clay-deep); }
  .cart-qty-btn:hover { background: var(--rose-soft); }
}

/* One-of-a-kind: items already in the basket (max one each). */
.catalog-buy.in-cart { background: var(--white); color: var(--clay-deep); border-color: var(--clay); }
.cart-line-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.3rem; }
.cart-line-oneofakind { font-size: 0.78rem; font-style: italic; color: var(--ink-soft); }
/* Chosen prints on a Build Your Own Bundle line. */
.cart-line-picks { margin: 0 0 0.25rem; font-size: 0.8rem; font-style: italic; color: var(--teal-deep); }
.cart-line-each { font-size: 0.8rem; color: var(--ink-soft); }

/* Quantity stepper — only on items whose maxQty is above 1 (scrunchies). */
.cart-qty { display: inline-flex; align-items: center; gap: 0.15rem; }
.cart-qty-btn {
  width: 26px; height: 26px; line-height: 1; cursor: pointer;
  border: 1px solid var(--paper-deep); border-radius: 8px;
  background: var(--white); color: var(--ink); font-size: 1rem;
}
.cart-qty-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) { .cart-qty-btn:not(:disabled):hover { border-color: var(--teal); color: var(--teal-deep); } }
.cart-qty-n { min-width: 1.6rem; text-align: center; font-weight: 700; font-size: 0.9rem; }

/* Print pickers on a "Build Your Own Bundle" catalog card. */
.byo-picks { display: grid; gap: 0.4rem; margin: 0 0 0.7rem; text-align: left; }
.byo-row { display: flex; align-items: center; gap: 0.5rem; }
.byo-label { flex: 0 0 3.6rem; font-size: 0.78rem; color: var(--ink-soft); }
.byo-select {
  flex: 1; min-width: 0; padding: 0.34rem 0.5rem;
  border: 1px solid var(--paper-deep); border-radius: 8px;
  background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 0.84rem;
}
.byo-select:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* Sold-out (one-of-a-kind) — set soldOut:true on a PRODUCTS entry. */
.catalog-media { position: relative; }
.sold-badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: var(--ink); color: var(--white);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 0.28rem 0.62rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.catalog-item.is-soldout .catalog-photo,
.catalog-item.is-soldout .placeholder-product { opacity: 0.5; }

/* Photo gallery — double-click a catalog photo to view larger + scroll. */
.catalog-media.has-gallery { cursor: zoom-in; }
.gallery-hint {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  background: rgba(255, 253, 247, 0.92); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.24rem 0.55rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.4rem, 2vw, 1.4rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(40, 30, 25, 0.9);
}
.gallery-lightbox[hidden] { display: none; }
body.gallery-open { overflow: hidden; }
.gallery-stage { margin: 0; display: flex; max-width: 100%; max-height: 100%; }
.gallery-img {
  max-width: min(90vw, 620px); max-height: 86vh; width: auto; height: auto;
  border-radius: var(--radius-sm); background: var(--white);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45); object-fit: contain;
}
.gallery-nav {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 999px; border: none;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.gallery-close {
  position: absolute; top: 1rem; right: 1.1rem;
  width: 42px; height: 42px; border-radius: 999px; border: none;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.gallery-counter {
  position: absolute; bottom: 1.15rem; left: 50%; transform: translateX(-50%);
  color: var(--white); background: rgba(0, 0, 0, 0.42);
  padding: 0.24rem 0.8rem; border-radius: 999px; font-size: 0.9rem; letter-spacing: 0.04em;
}
@media (hover: hover) {
  .gallery-nav:hover, .gallery-close:hover { background: #fff; }
}

/* ============================================================
   CUSTOM ORDERS PAGE (custom.html)
   ============================================================ */

/* "What people ask for" tiles */
.custom-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.custom-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 1.4rem 1.3rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--paper-deep);
}
.custom-card-art { font-size: 1.7rem; display: block; margin-bottom: 0.5rem; }
.custom-card h3 { font-family: var(--font-display); font-size: 1.06rem; margin: 0 0 0.4rem; color: var(--ink); }
.custom-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Numbered "how it works" list */
.custom-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; max-width: 720px; margin-inline: auto; }
.custom-step { display: flex; gap: 1rem; align-items: flex-start; }
.custom-step-n {
  flex: 0 0 2.1rem; height: 2.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
}
.custom-step h3 { font-family: var(--font-display); font-size: 1.04rem; margin: 0.2rem 0 0.3rem; color: var(--ink); }
.custom-step p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Happily / not-my-craft columns */
.custom-two-col { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.custom-note {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem; border: 1px solid var(--paper-deep);
}
.custom-note h3 { font-family: var(--font-display); font-size: 1.04rem; margin: 0 0 0.6rem; }
.custom-note ul { margin: 0; padding-left: 1.1rem; }
.custom-note li { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.custom-note-yes { border-left: 3px solid var(--teal); }
.custom-note-yes h3 { color: var(--teal-deep); }
.custom-note-no { border-left: 3px solid var(--rose); }
.custom-note-no h3 { color: var(--clay-deep); }

/* Price + timing block */
.custom-terms {
  margin-top: 1.6rem; max-width: 720px; margin-inline: auto;
  background: var(--rose-soft); border-radius: var(--radius-sm); padding: 1.3rem 1.4rem;
}
.custom-terms h3 { font-family: var(--font-display); font-size: 1.04rem; margin: 0 0 0.6rem; color: var(--ink); }
.custom-terms p { font-size: 0.93rem; color: var(--ink-soft); margin: 0 0 0.6rem; }
.custom-price-list { margin: 0 0 0.7rem; padding-left: 1.1rem; }
.custom-price-list li { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.custom-price-list strong { color: var(--ink); }
.custom-terms-fine { font-size: 0.84rem !important; font-style: italic; margin-bottom: 0 !important; }

/* Pre-Aug-15 gate notice above the request form */
.custom-gate {
  max-width: 560px; margin: 0 auto 1.4rem; text-align: center;
  background: var(--white); border: 1px dashed var(--honey);
  border-radius: var(--radius-sm); padding: 1.2rem 1.3rem;
}
.custom-gate[hidden] { display: none; }
.custom-gate p { font-size: 0.93rem; color: var(--ink-soft); margin: 0 0 0.5rem; }
.custom-gate-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--honey-deep); font-weight: 600; }
.custom-gate-fine { font-size: 0.85rem !important; margin-bottom: 0 !important; }

/* Request form bits the shared .contact-form rules don't cover */
.custom-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.custom-form fieldset:disabled { opacity: 0.55; }
.custom-form select {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid var(--paper-deep); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 0.95rem;
}
.custom-form select:focus-visible { border-color: var(--teal); }
.field-opt { font-weight: 400; color: var(--ink-soft); opacity: 0.8; }
.custom-form-fine { text-align: center; font-size: 0.84rem; color: var(--ink-soft); margin: 0.6rem 0 0; font-style: italic; }
