/* ==========================================================================
   lacepetal — a soft, hand-written boutique
   paper, petals, a little ribbon of ink. nothing is sharp on purpose.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Caveat:wght@400;500;600;700&family=Caveat+Brush&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap");

:root {
  /* paper + ink — warm, soft, slightly yellowing like an old envelope */
  --paper:        #f6efe2;   /* base — old-paper cream */
  --paper-warm:   #efe5d2;   /* a little darker for backgrounds */
  --paper-deep:   #e7d9bf;   /* accent paper */
  --card:         #fbf6ea;   /* card / panel — lighter than paper so it floats */
  --card-edge:    #eadfbe;   /* the soft border between card and paper */

  /* inks — claret is the "ink", not black. slate is for body type. */
  --ink:          #5a2a36;   /* deep claret — your true "ink" */
  --ink-2:        #7a3a48;   /* a slightly lighter claret */
  --slate:        #5a4a3e;   /* warm slate for body text */
  --slate-soft:   #8a7565;   /* warm taupe for meta */
  --mushroom:     #b39e85;   /* dividers, hairlines, hints */

  /* the palette proper — dusty, gentle, nothing screams */
  --rose:         #d99ba2;   /* dusty rose */
  --rose-deep:    #b97482;   /* darker dusty rose */
  --blush:        #f0c9c4;   /* blush wash */
  --sage:         #a8b89a;   /* dusty sage */
  --sage-deep:    #7a8a6a;   /* deeper sage */
  --mauve:        #c5a4b5;   /* dusty mauve */
  --butter:       #ecd9a8;   /* warm butter yellow */
  --terracotta:   #c9876a;   /* faded terracotta */
  --clay:         #b56a52;   /* a deeper terracotta for hover */

  /* shapes — rounded but not bubblegum. organics, not pills. */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-blob: 60% 40% 55% 45% / 50% 60% 40% 50%;  /* a wobbly petal-ish blob */

  /* type */
  --display: "Cormorant Garamond", "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --script:  "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  --script-2:"Caveat Brush", "Caveat", cursive;
  --mono:    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- reset, but gentle ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--slate);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 400;
  background-color: var(--paper);
  background-image:
    /* a very faint paper texture — two layers of tiny dots, no harsh pattern */
    radial-gradient(rgba(122, 75, 60, 0.045) 1px, transparent 1.4px),
    radial-gradient(rgba(122, 75, 60, 0.035) 1px, transparent 1.4px);
  background-size: 5px 5px, 9px 9px;
  background-position: 0 0, 3px 4px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
em, .em { font-style: italic; color: var(--clay); font-family: var(--display); }

.script  { font-family: var(--script); font-weight: 500; color: var(--clay); }
.script-2{ font-family: var(--script-2); color: var(--clay); }

.kicker {
  font-family: var(--script);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--rose-deep);
  margin: 0 0 4px;
  line-height: 1;
  display: inline-block;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.lede { color: var(--slate-soft); font-size: 1.02rem; margin: 10px 0 0; max-width: 44ch; font-style: italic; font-family: var(--display); }
.muted { color: var(--slate-soft); font-weight: 400; }
.tiny  { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--slate-soft); text-transform: lowercase; }

/* the little hand-drawn divider — a wavy line with a heart or flower */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
  color: var(--rose-deep);
  font-family: var(--script);
  font-size: 1.6rem;
  max-width: 320px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mushroom), transparent);
}
.divider svg { flex: none; }

/* selection */
::selection { background: var(--blush); color: var(--ink); }

/* focus — soft, never neon */
:focus-visible {
  outline: 2px dashed var(--clay);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ==========================================================================
   header — slim, cream, with a tiny petal mark and a soft ribbon bag-button
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(246, 239, 226, 0.86);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--card-edge);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark .petal-mark { flex: none; display: block; }
.wordmark .wm-text { font-style: italic; font-weight: 500; }
.wordmark .wm-text::after { content: "✿"; margin-left: 6px; color: var(--rose-deep); font-style: normal; font-size: 0.6em; }

.site-nav { display: flex; align-items: center; gap: 10px; }
.nav-link {
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}
.nav-link:hover { background: var(--blush); color: var(--ink); }

/* bag button — a small paper tag, with a tiny petal bullet on the left */
.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--card-edge);
  padding: 8px 18px 8px 14px;
  font-family: var(--display);
  font-size: 1.02rem;
  font-style: italic;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(122, 75, 60, 0.06);
  transition: transform 0.18s ease, background 0.18s, box-shadow 0.18s;
  position: relative;
}
.bag-btn::before {
  content: "♡";
  color: var(--clay);
  font-style: normal;
  font-size: 0.95rem;
  margin-right: 2px;
}
.bag-btn:hover {
  background: var(--blush);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(184, 116, 130, 0.22);
}
.bag-count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--script);
  font-size: 0.78rem;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  font-style: normal;
  font-weight: 600;
}
.bag-count.show { display: inline-block; }

/* ==========================================================================
   buttons — three flavours: ink (primary), cream (ghost), tiny paper (link)
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 13px 28px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 0 rgba(90, 42, 54, 0.18), 0 6px 14px -8px rgba(90, 42, 54, 0.35);
}
.btn:hover {
  background: var(--clay);
  border-color: var(--clay);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(181, 106, 82, 0.45);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

.btn-ghost {
  display: inline-block;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--card-edge);
  padding: 11px 24px;
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.btn-ghost:hover { background: var(--blush); border-color: var(--rose); transform: translateY(-1px); }

.btn-link {
  display: inline-block;
  font-family: var(--script);
  font-size: 1.25rem;
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px dashed var(--rose);
  padding-bottom: 1px;
  line-height: 1.2;
}
.btn-link:hover { color: var(--ink); border-bottom-style: solid; border-color: var(--ink); }

/* ==========================================================================
   hero — quiet, two-column on desktop, scrolls to a single column
   ========================================================================== */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { position: relative; padding-right: 4px; }
.hero h1 { margin-top: 4px; }
.hero h1 em { color: var(--clay); }
.hero-sub {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 44ch;
  margin: 22px 0 30px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
}
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.hero-fig {
  position: relative;
  margin: 0;
  /* a polaroid-ish frame, but soft */
  background: var(--card);
  padding: 14px 14px 56px;
  border-radius: var(--r-md);
  box-shadow:
    0 1px 0 rgba(122, 75, 60, 0.08),
    0 12px 30px -10px rgba(122, 75, 60, 0.18);
  transform: rotate(1.2deg);
  transition: transform 0.4s ease;
}
.hero-fig:hover { transform: rotate(0.4deg) translateY(-2px); }
.hero-fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.hero-fig .hero-caption {
  position: absolute;
  bottom: 14px;
  left: 14px; right: 14px;
  text-align: center;
  font-family: var(--script);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}
/* a tiny pressed-flower seal in the corner of the photo */
.hero-fig::after {
  content: "";
  position: absolute;
  top: -10px; right: -10px;
  width: 42px; height: 42px;
  background: var(--blush);
  border: 1px solid var(--rose);
  border-radius: var(--r-blob);
  box-shadow: 0 4px 10px rgba(184, 116, 130, 0.25);
  background-image: radial-gradient(circle at 35% 35%, var(--rose) 0 4px, transparent 5px),
                    radial-gradient(circle at 65% 60%, var(--rose) 0 3px, transparent 4px),
                    radial-gradient(circle at 50% 50%, var(--butter) 0 5px, transparent 6px);
  transform: rotate(15deg);
}

.hero-tag {
  position: absolute;
  left: -22px; bottom: 28px;
  background: var(--butter);
  color: var(--ink);
  border: 1px solid var(--terracotta);
  padding: 8px 18px;
  font-family: var(--script);
  font-size: 1.15rem;
  border-radius: 4px;
  box-shadow: 0 6px 14px -4px rgba(122, 75, 60, 0.25);
  transform: rotate(-4deg);
  z-index: 2;
}

/* ==========================================================================
   ticker — a soft scallop ribbon across the page
   ========================================================================== */
.ticker {
  position: relative;
  margin: 24px 0 0;
  background: var(--blush);
  border-top: 1px solid var(--rose);
  border-bottom: 1px solid var(--rose);
  overflow: hidden;
  /* little scalloped top + bottom using a mask image (no SVG) */
  -webkit-mask-image: radial-gradient(circle at 8px 100%, transparent 8px, #000 9px),
                      radial-gradient(circle at 8px 0%,   transparent 8px, #000 9px);
          mask-image: radial-gradient(circle at 8px 100%, transparent 8px, #000 9px),
                      radial-gradient(circle at 8px 0%,   transparent 8px, #000 9px);
  -webkit-mask-size: 16px 16px;
          mask-size: 16px 16px;
  -webkit-mask-position: 0 0, 0 100%;
          mask-position: 0 0, 0 100%;
  -webkit-mask-repeat: repeat-x;
          mask-repeat: repeat-x;
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span {
  padding: 12px 0;
  font-family: var(--script);
  font-size: 1.25rem;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.ticker-track span .star { color: var(--clay); margin: 0 8px; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   sections — generous padding, soft centered heads
   ========================================================================== */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.section-head h2 { font-weight: 500; }
.section-head h2 em { font-style: italic; color: var(--clay); }
.section-head .btn-link { white-space: nowrap; }
.section-head a:not(.btn-link) {
  font-family: var(--script);
  font-size: 1.25rem;
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px dashed var(--rose);
  padding-bottom: 1px;
  line-height: 1.2;
}
.section-head a:not(.btn-link):hover { color: var(--ink); border-color: var(--ink); }

.about { padding-top: 24px; padding-bottom: 96px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about p {
  color: var(--slate);
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.7;
  font-family: var(--display);
  font-size: 1.12rem;
  font-style: italic;
}
.about p + p { margin-top: 14px; }
.about h2 { margin: 6px 0 18px; }

/* the four values — a little stack of pressed cards, not a striped table */
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.values li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  padding: 18px 22px;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.5;
  box-shadow: 0 1px 0 rgba(122, 75, 60, 0.05);
}
.values li:nth-child(2) { transform: rotate(-0.6deg); }
.values li:nth-child(3) { transform: rotate(0.4deg); }
.values li:nth-child(4) { transform: rotate(-0.3deg); }
.values strong {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  border: 1px solid var(--rose);
  flex: none;
}

/* ==========================================================================
   product grid — like polaroids pinned to a board
   ========================================================================== */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 30px 26px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  padding: 12px 12px 16px;
  box-shadow:
    0 1px 0 rgba(122, 75, 60, 0.06),
    0 8px 22px -10px rgba(122, 75, 60, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}
.card:nth-child(3n)   { transform: rotate(-0.6deg); }
.card:nth-child(3n+1) { transform: rotate(0.5deg); }
.card:nth-child(3n+2) { transform: rotate(-0.3deg); }
.card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 1px 0 rgba(122, 75, 60, 0.08),
    0 18px 36px -14px rgba(122, 75, 60, 0.32);
}
.card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: var(--r-sm);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: saturate(0.96) brightness(1.01);
}
.card:hover .card-img img { transform: scale(1.04); }
.card.sold .card-img img { filter: grayscale(0.6) brightness(1.04) saturate(0.6); opacity: 0.85; }
.card.sold .card-name, .card.sold .price { text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 1px; }

.ribbon {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--script);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.01em;
  padding: 4px 12px 5px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(90, 42, 54, 0.25);
}

.card-body { padding: 14px 6px 4px; }
.card-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0;
}
.card-meta {
  font-family: var(--script);
  font-size: 1.05rem;
  color: var(--slate-soft);
  margin: 4px 0 12px;
  line-height: 1.2;
}
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.sold-label {
  font-family: var(--script);
  font-size: 1.05rem;
  color: var(--clay);
  font-style: italic;
}
.add-btn {
  background: var(--blush);
  color: var(--ink);
  border: 1px solid var(--rose);
  padding: 7px 16px;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.98rem;
  border-radius: 999px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.add-btn:hover {
  background: var(--rose);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(184, 116, 130, 0.35);
}

.photo-count {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(246, 239, 226, 0.92);
  color: var(--ink);
  font-family: var(--script);
  font-size: 0.95rem;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-edge);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

/* ==========================================================================
   store page
   ========================================================================== */
.store { max-width: 1180px; margin: 0 auto; padding: 56px 28px 96px; }
.store-head { align-items: end; margin-bottom: 22px; }
.store-head h1 { font-style: italic; }
.store-head h1 em { color: var(--clay); }
.store-head .kicker { margin-bottom: 6px; }

.pills {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.pill {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--slate);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.pill:hover { background: var(--blush); color: var(--ink); border-color: var(--rose); transform: translateY(-1px); }
.pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.empty {
  text-align: center;
  padding: 90px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--slate-soft);
}
.empty::before { content: "❀"; display: block; font-size: 2rem; color: var(--rose); margin-bottom: 12px; }

/* ==========================================================================
   cart drawer — a soft envelope that slides in
   ========================================================================== */
.scrim {
  position: fixed; inset: 0;
  background: rgba(90, 74, 62, 0.32);
  z-index: 50;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--card-edge);
  z-index: 60;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.34s cubic-bezier(.22,.8,.22,1);
  box-shadow: -12px 0 30px -10px rgba(122, 75, 60, 0.18);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--card-edge);
  border-radius: var(--r-lg) 0 0 0;
}
.drawer-head h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ink);
}
.drawer-head h3::before { content: "♡ "; color: var(--clay); }
.drawer-close {
  background: transparent;
  border: 1px solid var(--card-edge);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  padding: 0;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.drawer-close:hover { background: var(--blush); color: var(--ink); transform: rotate(90deg); }

.drawer-body { flex: 1; overflow-y: auto; padding: 6px 26px 14px; }
.cart-empty {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--slate-soft);
  text-align: center;
  padding: 60px 0 30px;
  line-height: 1.4;
}
.cart-empty::before { content: "❀"; display: block; font-size: 2rem; color: var(--rose); margin-bottom: 10px; }

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--card-edge);
}
.cart-line:last-child { border-bottom: none; }
.cart-line img {
  width: 72px; height: 90px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--card-edge);
}
.cl-name { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; margin: 0; color: var(--ink); }
.cl-meta { font-family: var(--script); font-size: 1rem; color: var(--slate-soft); margin: 3px 0 0; }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.remove {
  background: transparent;
  border: 1px solid var(--card-edge);
  color: var(--slate-soft);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
  width: 28px; height: 28px;
  border-radius: 50%;
  padding: 0;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.remove:hover { background: var(--blush); color: var(--ink); border-color: var(--rose); }

.drawer-foot {
  border-top: 1px solid var(--card-edge);
  padding: 20px 26px 24px;
  background: var(--card);
  border-radius: 0 0 0 var(--r-lg);
}
.subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 6px;
}
.subtotal span:last-child {
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
}
.cart-note {
  font-family: var(--script);
  font-size: 1rem;
  color: var(--slate-soft);
  margin: 0 0 18px;
  line-height: 1.4;
}
.checkout-btn { width: 100%; }
.stripe-note {
  text-align: center;
  font-family: var(--script);
  font-size: 0.95rem;
  color: var(--slate-soft);
  margin: 12px 0 0;
}

/* ==========================================================================
   thanks page
   ========================================================================== */
.thanks {
  max-width: 620px;
  margin: 0 auto;
  padding: 110px 28px 90px;
  text-align: center;
}
.thanks .thanks-mark { margin: 0 auto 18px; display: block; }
.thanks h1 { font-style: italic; margin-bottom: 18px; }
.thanks p { color: var(--slate); font-size: 1.05rem; font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.5; }
.thanks .btn { margin-top: 32px; }
.demo-note {
  margin-top: 36px;
  background: var(--butter);
  border: 1px solid var(--terracotta);
  border-radius: var(--r-md);
  padding: 14px 20px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.6;
  text-align: left;
  color: var(--ink);
}
.demo-note strong { color: var(--clay); font-style: normal; font-family: var(--display); font-weight: 600; }

/* ==========================================================================
   admin — soft, calm, never threatening
   ========================================================================== */
.admin-wrap { max-width: 1140px; margin: 0 auto; padding: 40px 28px 90px; }
.admin-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--card-edge);
}
.admin-top h1 { font-style: italic; font-weight: 500; }
.admin-top h1 em { color: var(--clay); }
.admin-actions { display: flex; gap: 16px; align-items: center; }
.admin-actions a {
  font-family: var(--script);
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--clay);
  border-bottom: 1px dashed var(--rose);
  padding-bottom: 1px;
}
.admin-actions a:hover { color: var(--ink); border-color: var(--ink); }
.admin-actions button {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--card-edge);
  padding: 7px 16px;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.98rem;
  border-radius: 999px;
  transition: background 0.18s;
}
.admin-actions button:hover { background: var(--blush); }

.demo-banner {
  background: var(--butter);
  border: 1px solid var(--terracotta);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 22px;
  line-height: 1.5;
}
.demo-banner::before { content: "✿ "; color: var(--terracotta); }

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(122, 75, 60, 0.05), 0 6px 20px -10px rgba(122, 75, 60, 0.18);
}
.panel h2 {
  font-size: 1.55rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--ink);
}
.panel h2::before { content: "❀  "; color: var(--rose); font-style: normal; }

.panel label {
  display: block;
  font-family: var(--script);
  font-size: 1.15rem;
  color: var(--clay);
  margin-bottom: 14px;
}
.panel label > .label-text { display: inline-block; transform: rotate(-0.8deg); }
.panel input[type="text"],
.panel input[type="number"],
.panel input[type="password"],
.panel select,
.panel textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--paper);
  border: 1px solid var(--card-edge);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.panel input:focus,
.panel select:focus,
.panel textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(217, 155, 162, 0.25);
}
.panel textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: var(--clay); }
.check { display: flex !important; align-items: center; gap: 10px; margin-bottom: 18px !important; font-size: 1rem !important; }
.check input {
  width: 18px; height: 18px;
  margin: 0;
  accent-color: var(--clay);
}
.photo-pick { display: flex; align-items: center; gap: 14px; margin-top: 7px; }
.photo-preview { width: 76px; height: 94px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--card-edge); }
.file-label {
  padding: 10px 18px !important;
  cursor: pointer;
  display: inline-block;
}
.file-label:hover { background: var(--blush) !important; }
.form-actions { display: flex; gap: 12px; margin-top: 10px; }
.form-actions .btn { flex: 1; }
.form-msg {
  font-family: var(--script);
  font-size: 1.05rem;
  color: var(--clay);
  margin: 16px 0 0;
  min-height: 1.2em;
  line-height: 1.3;
}

/* admin table — cards, not rows */
.table-wrap { overflow-x: auto; }
.listings {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  font-size: 0.95rem;
}
.listings th {
  text-align: left;
  font-family: var(--script);
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-soft);
  padding: 4px 12px 6px;
  text-transform: lowercase;
}
.listings td {
  padding: 10px 12px;
  background: var(--paper);
  border-top: 1px solid var(--card-edge);
  border-bottom: 1px solid var(--card-edge);
  vertical-align: middle;
}
.listings td:first-child { border-left: 1px solid var(--card-edge); border-top-left-radius: var(--r-md); border-bottom-left-radius: var(--r-md); }
.listings td:last-child  { border-right: 1px solid var(--card-edge); border-top-right-radius: var(--r-md); border-bottom-right-radius: var(--r-md); }
.listings tr:hover td { background: var(--blush); }

.thumb-cell img {
  width: 48px; height: 60px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--card-edge);
}
.name-cell strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.2;
}
.name-cell span {
  font-family: var(--script);
  font-size: 0.95rem;
  color: var(--slate-soft);
}
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 12px;
  font-family: var(--script);
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1px solid;
}
.status-pill.live { background: var(--sage); color: var(--paper); border-color: var(--sage-deep); }
.status-pill.sold { background: var(--paper-warm); color: var(--slate-soft); border-color: var(--mushroom); text-decoration: line-through; }
.star { color: var(--clay); font-size: 1.05rem; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions button {
  background: var(--card);
  border: 1px solid var(--card-edge);
  padding: 5px 12px;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.row-actions button:hover { background: var(--blush); border-color: var(--rose); }
.row-actions button.danger:hover { background: var(--blush); color: var(--clay); border-color: var(--terracotta); }

/* ==========================================================================
   gate (admin login) — a little love letter envelope
   ========================================================================== */
.gate {
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}
.gate-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -16px rgba(122, 75, 60, 0.3);
  padding: 50px 44px 44px;
  width: min(420px, 100%);
  text-align: center;
  transform: rotate(-0.6deg);
}
.gate-card::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 90px; height: 26px;
  background: rgba(236, 217, 168, 0.85);
  border: 1px solid rgba(201, 135, 106, 0.4);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(122, 75, 60, 0.12);
}
.gate-card .gate-mark { display: block; margin: 0 auto 12px; }
.gate-card h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  text-transform: none;
  margin: 8px 0 4px;
  color: var(--ink);
}
.gate-card .muted {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--slate-soft);
}
.gate-card input {
  width: 100%;
  margin: 22px 0 16px;
  background: var(--paper);
  border: 1px solid var(--card-edge);
  padding: 13px;
  font-family: var(--sans);
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.18em;
  color: var(--ink);
  border-radius: var(--r-sm);
}
.gate-card input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217, 155, 162, 0.25); }
.gate-card .btn { width: 100%; }

/* ==========================================================================
   footer — soft pink wash, gentle signature
   ========================================================================== */
.site-footer {
  margin-top: 60px;
  background: var(--blush);
  border-top: 1px solid var(--rose);
  padding: 56px 28px 44px;
  text-align: center;
  color: var(--ink);
}
.footer-mark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 14px;
  color: var(--ink);
}
.footer-mark::after { content: " ✿"; color: var(--clay); font-style: normal; font-size: 0.5em; }
.site-footer p { margin: 6px 0; font-family: var(--display); font-size: 1rem; font-style: italic; color: var(--ink-2); }
.site-footer .tiny {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate-soft);
  margin-top: 18px;
  font-style: normal;
  text-transform: lowercase;
}

/* ==========================================================================
   item modal — full piece view, the prettiest screen in the app
   ========================================================================== */
.item-scrim {
  position: fixed; inset: 0;
  background: rgba(90, 74, 62, 0.36);
  z-index: 70;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.item-modal {
  position: fixed; inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  pointer-events: none;
}
.item-modal > * { pointer-events: auto; }
.item-grid {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(90, 42, 54, 0.32);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(960px, 100%);
  max-height: min(88vh, 780px);
  overflow-y: auto;
}
.item-close {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--card-edge);
  width: 38px; height: 38px;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  border-radius: 50%;
  padding: 0;
  transition: background 0.18s, transform 0.18s;
}
.item-close:hover { background: var(--blush); transform: rotate(90deg); }

.item-gallery { padding: 26px 0 26px 26px; }
.item-main {
  position: relative;
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 4 / 5;
  box-shadow: 0 6px 18px -8px rgba(122, 75, 60, 0.2);
}
.item-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(246, 239, 226, 0.92);
  border: 1px solid var(--card-edge);
  width: 40px; height: 40px;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  z-index: 1;
  padding: 0;
  border-radius: 50%;
  transition: background 0.18s, color 0.18s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gal-arrow:hover { background: var(--blush); color: var(--ink); }
.gal-arrow.prev { left: 12px; }
.gal-arrow.next { right: 12px; }
.gal-count {
  position: absolute;
  bottom: 12px; right: 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--script);
  font-size: 1rem;
  padding: 2px 12px;
  border-radius: 999px;
}
.gal-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gal-thumb {
  width: 56px; height: 70px;
  padding: 0;
  border: 1px solid var(--card-edge);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--paper-deep);
  opacity: 0.55;
  transition: opacity 0.18s, border-color 0.18s, transform 0.18s;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.active { border-color: var(--clay); opacity: 1; transform: translateY(-2px); }
.gal-thumb:hover { opacity: 1; }

.item-info {
  padding: 38px 34px 34px 34px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--card-edge);
}
.item-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-style: italic; font-weight: 500; margin-bottom: 6px; }
.item-meta { font-family: var(--script); font-size: 1.15rem; color: var(--slate-soft); margin: 0 0 14px; }
.item-info .kicker { transform: none; color: var(--clay); font-size: 1.15rem; margin-bottom: 8px; }
.item-price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.item-blurb { display: none; }
.item-details {
  border-top: 1px dashed var(--card-edge);
  margin-bottom: 22px;
  padding-top: 18px;
  display: grid;
  gap: 10px;
}
.det-row {
  display: flex; gap: 12px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.5;
}
.det-ic { flex: none; color: var(--clay); font-size: 0.7rem; padding-top: 7px; }
.det-label {
  flex: none;
  width: 108px;
  color: var(--ink);
  font-family: var(--script);
  font-weight: 500;
  font-size: 1.05rem;
}
#itemAdd { align-self: flex-start; }
.sold-pill-big {
  align-self: flex-start;
  background: var(--paper-warm);
  color: var(--slate-soft);
  border: 1px solid var(--mushroom);
  padding: 11px 22px;
  font-family: var(--script);
  font-size: 1.2rem;
  border-radius: 999px;
  text-decoration: line-through;
  text-decoration-color: var(--rose);
}
.item-offer {
  margin: 14px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--slate);
}
.item-offer strong { color: var(--clay); font-style: normal; font-family: var(--display); font-weight: 600; }
.item-note {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--script);
  font-size: 1rem;
  color: var(--slate-soft);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .item-grid { grid-template-columns: 1fr; max-height: 92vh; }
  .item-gallery { padding: 20px 16px 0; }
  .item-info { padding: 22px 18px 24px; border-left: none; border-top: 1px solid var(--card-edge); }
  .item-note { padding-top: 18px; }
}

/* ==========================================================================
   admin: photos chip + crop
   ========================================================================== */
.photos-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 10px;
}
.photos-empty {
  font-family: var(--script);
  font-size: 1.05rem;
  color: var(--slate-soft);
}
.photo-chip {
  position: relative;
  display: block;
  width: 78px; height: 96px;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  border-radius: var(--r-sm);
  background: var(--paper-deep);
  box-shadow: 0 1px 0 rgba(122, 75, 60, 0.06);
}
.photo-chip img { width: 100%; height: 100%; object-fit: cover; }
.photo-chip.cover { border-color: var(--clay); border-width: 2px; box-shadow: 0 0 0 2px rgba(201, 135, 106, 0.18), 0 4px 10px -4px rgba(201, 135, 106, 0.4); }
.chip-badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--clay);
  color: var(--paper);
  font-family: var(--script);
  font-size: 0.85rem;
  text-align: center;
  padding: 1px 0 2px;
}
.chip-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; gap: 4px;
  background: rgba(246, 239, 226, 0.95);
  padding: 4px 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.photo-chip:hover .chip-actions, .photo-chip:focus-within .chip-actions { opacity: 1; }
.chip-actions button {
  background: var(--card);
  border: 1px solid var(--card-edge);
  width: 24px; height: 24px;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--ink);
  padding: 0;
  border-radius: 50%;
}
.chip-actions button:hover { background: var(--blush); color: var(--ink); border-color: var(--rose); }
.photos-add { display: flex; align-items: center; margin-top: 14px; }
.photos-hint { display: block; margin-top: 10px; color: var(--slate-soft); font-family: var(--display); font-style: italic; font-size: 0.95rem; }

/* crop modal */
.crop-scrim {
  position: fixed; inset: 0;
  background: rgba(90, 74, 62, 0.45);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.crop-modal {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -16px rgba(90, 42, 54, 0.32);
  padding: 28px;
  width: min(440px, 100%);
  text-align: center;
}
.crop-modal h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--ink);
}
.crop-modal h3::before { content: "✿ "; color: var(--rose); }
.crop-canvas-wrap { display: flex; justify-content: center; }
#cropCanvas {
  width: min(100%, 340px);
  border: 1px solid var(--card-edge);
  background: var(--paper-deep);
  border-radius: var(--r-sm);
  touch-action: none;
  cursor: grab;
}
#cropCanvas:active { cursor: grabbing; }
#cropZoom { width: 100%; margin: 16px 0 6px; accent-color: var(--clay); }
.crop-hint { margin: 0 0 18px; font-family: var(--script); font-size: 1.05rem; color: var(--slate-soft); }
.crop-actions { display: flex; gap: 12px; }
.crop-actions .btn { flex: 1; }
.crop-actions .btn-ghost { flex: 1; text-align: center; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-fig { order: -1; max-width: 460px; margin: 0 auto; transform: rotate(0.4deg); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .wordmark { font-size: 1.4rem; }
  .nav-link { padding: 6px 8px; font-size: 0.95rem; }
  .bag-btn { padding: 6px 14px 6px 12px; font-size: 0.95rem; }
  .section, .store { padding-left: 18px; padding-right: 18px; }
  .hero { padding-left: 18px; padding-right: 18px; padding-top: 36px; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 16px; }
  .card-body { padding: 12px 4px 2px; }
  .card-name { font-size: 1.1rem; }
  .pill { padding: 8px 14px; font-size: 0.95rem; }
  .field-row { grid-template-columns: 1fr; }
  .admin-top { flex-direction: column; align-items: flex-start; }
  .admin-actions { width: 100%; }
  .gate-card { padding: 40px 26px 32px; }
  .gate-card h1 { font-size: 1.7rem; }
  .drawer { width: 100vw; border-radius: 0; }
  .drawer-head, .drawer-foot { border-radius: 0; }
  .item-modal { padding: 12px; }
  .listings { font-size: 0.9rem; }
  .listings th, .listings td { padding: 8px 8px; }
  .name-cell strong { font-size: 0.95rem; }
  .row-actions button { padding: 4px 9px; font-size: 0.85rem; }
  .panel { padding: 22px 18px; }
  .panel h2 { font-size: 1.35rem; }
  /* on small screens, straighten cards a touch so the grid stays calm */
  .card:nth-child(3n),
  .card:nth-child(3n+1),
  .card:nth-child(3n+2) { transform: none; }
  .values li:nth-child(n) { transform: none; }
  .gate-card { transform: none; }
  .hero-fig { transform: rotate(0deg) !important; }
}

@media (max-width: 380px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
}
