/* =====================================================================
   Pacific Ping Garden: Pacific coastal theme
   Misty blue-greys, moss, driftwood. Fraunces headings, Inter body.
   ===================================================================== */

:root {
  /* Colours taken from the lotus logo */
  --bg: #f4f7f3;
  --bg-2: #e6f0ec;
  --surface: #ffffff;
  --ink: #1c2e2b;
  --ink-2: #304642;
  --muted: #5b6f6b;
  --line: #d5e2dd;
  --moss: #2f7d5f;      /* leaf green */
  --moss-ink: #f3faf6;
  --tide: #2a8a86;      /* wave teal */
  --driftwood: #8a6fbf; /* lavender petal */
  --mist: #cfe6e0;      /* pale sage-teal */
  --warn: #9a6a16;
  --hot: #a5443a;
  --shadow: 0 1px 2px rgb(29 42 43 / 6%), 0 8px 24px -12px rgb(29 42 43 / 18%);
  --radius: 14px;
  --radius-sm: 9px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1816;
    --bg-2: #13211e;
    --surface: #172825;
    --ink: #e6f0ec;
    --ink-2: #c4d6d0;
    --muted: #92a8a2;
    --line: #253a35;
    --moss: #7fcaa3;
    --moss-ink: #0b1a14;
    --tide: #7cccc6;
    --driftwood: #bba5e3;
    --mist: #213a35;
    --warn: #e0b45e;
    --hot: #ec8f80;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1816;
  --bg-2: #13211e;
  --surface: #172825;
  --ink: #e6f0ec;
  --ink-2: #c4d6d0;
  --muted: #92a8a2;
  --line: #253a35;
  --moss: #7fcaa3;
  --moss-ink: #0b1a14;
  --tide: #7cccc6;
  --driftwood: #bba5e3;
  --mist: #213a35;
  --warn: #e0b45e;
  --hot: #ec8f80;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "SOFT" 60, "opsz" 96;
}
p { margin: 0; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tide);
}
.lede { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18px); max-width: 60ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.italic { font-style: italic; }
.accent { color: var(--moss); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--moss); color: var(--moss-ink); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); }
.btn-tide { background: var(--tide); color: var(--surface); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-head); font-size: 20px; line-height: 1; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--moss); font-weight: 600; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--moss); }
.icon-btn svg { width: 20px; height: 20px; }
.badge-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.badge-count[hidden] { display: none; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .brand-name small { display: none; }
}
.brand-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .brand-name { font-size: 17px; }
}
@media (max-width: 360px) { .brand-name { font-size: 15px; } }

/* ---------- Data notice ---------- */
.data-note {
  font-size: 13px; color: var(--muted); background: var(--bg-2);
  border-bottom: 1px solid var(--line); text-align: center; padding: 8px var(--gutter);
}
.data-note[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero .wrap {
  position: relative; display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1.15fr .85fr; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 112px);
}
.hero h1 { font-size: clamp(38px, 6vw, 72px); margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { justify-self: center; width: min(420px, 100%); aspect-ratio: 1; filter: drop-shadow(0 30px 40px rgb(29 42 43 / 18%)); }
.hero-art svg { width: 100%; height: 100%; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 640px;
}
.facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(300px, 80%); order: -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 10px; }
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(36px, 5.5vw, 64px); margin-top: 12px; max-width: 18ch; }
.page-head .lede { margin-top: 18px; }

/* ---------- Toolbar & pills ---------- */
.toolbar {
  display: grid; gap: 14px; padding: 16px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--tide); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tide) 20%, transparent); }
.search { flex: 1 1 240px; position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-left: 38px; }
.select { width: auto; min-width: 150px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; font-size: 14px; color: var(--ink-2);
}
.pill:hover { border-color: var(--moss); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--moss-ink); font-weight: 600; }
.pill .n { opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }
.result-count { font-size: 14px; color: var(--muted); margin-left: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--moss) 45%, var(--line)); }
.card.is-out { opacity: .72; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; }
.card-media > img, .card-media > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .6s ease; }
.card-media .scene { opacity: 0; }
.card:hover .card-media .scene { opacity: 1; }
.card:hover .card-media > :first-child { transform: scale(1.04); }
.card-media .badge { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.card-title { font-family: var(--font-body); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.005em; }
/* Plant names everywhere use the clean sans font for easy reading */
.detail-info h1, .cart-item h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.015em; }
.cart-item h3 { font-size: 17px; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-link:focus-visible { outline: 2px solid var(--tide); outline-offset: -2px; }
.card-actions { display: flex; gap: 8px; align-items: center; padding: 0 16px 16px; }
.card-actions .btn-primary { flex: 1; }
.card-add { padding: 0 10px; gap: 2px; }
.card-add svg { width: 18px; height: 18px; }
.card-add span { font-weight: 700; }
.card-note { font-size: 13px; color: var(--muted); min-height: 36px; display: flex; align-items: center; }
.price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.ok { color: var(--moss); border-color: color-mix(in srgb, var(--moss) 40%, var(--line)); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.badge.hot { color: var(--hot); border-color: color-mix(in srgb, var(--hot) 50%, var(--line)); }
.badge.hot::before { animation: pulse 1.6s ease-in-out infinite; }
.badge.muted { color: var(--muted); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 55%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
@media (prefers-reduced-motion: reduce) { .badge.hot::before { animation: none; } .card, .card-media > * { transition: none; } }

/* ---------- Specimen list (home) ---------- */
.plant-list { border-top: 1px solid var(--line); }
.plant-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto 128px; gap: 8px 18px; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.plant-row:hover { background: color-mix(in srgb, var(--moss) 6%, transparent); }
.plant-row .nm { font-family: var(--font-body); font-weight: 600; font-size: 16px; min-width: 0; color: inherit; text-decoration: none; }
.plant-row .nm::after { content: ""; position: absolute; inset: 0; } /* whole row opens the plant */
.plant-row .row-buy { position: relative; z-index: 1; width: 128px; }
.plant-row .src { font-size: 13px; color: var(--muted); margin-left: 8px; font-family: var(--font-body); }
.plant-row.is-out .nm { color: var(--muted); }
@media (max-width: 560px) {
  .plant-row { grid-template-columns: minmax(0, 1fr) auto; }
  .plant-row .badge { grid-column: 1; justify-self: start; }
  .plant-row .price { grid-row: 1; grid-column: 2; }
  .plant-row .row-buy { grid-row: 2; grid-column: 2; }
  .plant-row span.row-buy { display: none; }
}
.list-tabs { margin-bottom: 18px; }

/* ---------- Care notes ---------- */
.notes { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note { border-top: 2px solid var(--moss); padding-top: 18px; }
.note .ico { width: 26px; height: 26px; color: var(--moss); }
.note h3 { font-size: 26px; margin: 12px 0 8px; }
.note p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .notes { grid-template-columns: 1fr; } }

.care-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.care-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.care-card.wide { grid-column: 1 / -1; }
.care-card h2 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.care-card h2 svg { width: 24px; height: 24px; color: var(--moss); }
.care-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.care-card li { display: flex; gap: 12px; }
.care-card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--driftwood); margin-top: 9px; }
@media (max-width: 760px) { .care-grid { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-size: 22px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--moss); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 10px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Shipping page ---------- */
.rates { border-top: 1px solid var(--line); }
.rate { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rate h3 { font-size: 28px; }
.rate p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.rate .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.rate.paused { opacity: .55; }
.prose-grid { display: grid; gap: 36px 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
.prose-grid h2 { font-size: 28px; margin-bottom: 12px; }
.prose-grid p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
@media (max-width: 760px) { .prose-grid { grid-template-columns: 1fr; } }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--tide) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tide) 30%, var(--line));
  color: var(--ink-2); font-size: 15px;
}
.notice svg { flex: none; width: 20px; height: 20px; color: var(--tide); margin-top: 2px; }
.notice.warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.notice.warn svg { color: var(--warn); }

/* ---------- Plant detail ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--moss); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: 24px 0 72px; align-items: start; }
.detail-media { display: grid; gap: 12px; position: sticky; top: 92px; }
.detail-media .main { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.detail-media .main img, .detail-media .main svg { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; }
.thumb { width: 72px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-2); }
.thumb[aria-pressed="true"] { border-color: var(--moss); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(34px, 4.6vw, 54px); margin-top: 10px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 15px; }
.detail-price { font-size: 30px; font-weight: 700; margin-top: 22px; font-variant-numeric: tabular-nums; }
.buy-box { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty button:hover:not([disabled]) { background: var(--bg-2); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.buy-row .btn-primary { flex: 1 1 180px; }
.specs { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink-2); }
.detail-desc { margin-top: 24px; color: var(--ink-2); white-space: pre-line; }
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .detail-media { position: static; }
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: 80px; }
.cart-items { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb-art { width: 72px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.cart-item .thumb-art img, .cart-item .thumb-art svg { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-size: 18px; line-height: 1.25; }
.cart-item h3 a { text-decoration: none; }
.cart-item .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-item .controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-item .qty button { width: 34px; height: 34px; }
.cart-item.unavailable { opacity: .6; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px 2px; }
.remove:hover { color: var(--hot); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.panel h2 { font-size: 26px; }
.totals { display: grid; gap: 8px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 19px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.label .opt { font-weight: 400; color: var(--muted); }
.textarea { min-height: 88px; resize: vertical; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--moss); background: color-mix(in srgb, var(--moss) 7%, transparent); }
.choice input { margin-top: 4px; accent-color: var(--moss); }
.choice strong { display: block; }
.choice span { font-size: 13px; color: var(--muted); }
.choice .amt { margin-left: auto; font-weight: 600; white-space: nowrap; }
.empty { text-align: center; padding: 64px 0 96px; }
.empty h2 { font-size: 34px; }
.empty p { color: var(--muted); margin: 12px auto 24px; max-width: 46ch; }
.order-summary { white-space: pre-wrap; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; max-height: 340px; overflow: auto; }
.order-number { font-family: var(--font-head); font-size: 32px; color: var(--moss); }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; z-index: 60;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); transition: opacity .25s ease, translate .25s ease; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; translate: -50% 0; }
@media (max-width: 600px) { .toast { bottom: 84px; } }

/* ---------- Chat button ---------- */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55; display: grid; justify-items: end; gap: 12px; }
.chat-fab {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--moss); color: var(--moss-ink); font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--moss) 65%, transparent), var(--shadow);
  transition: transform .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-panel {
  width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 24px 60px -20px rgb(0 0 0 / 35%);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { font-size: 12px; color: var(--muted); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: none; }
.chat-avatar svg { width: 30px; height: 30px; }
.chat-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.chat-close:hover { background: var(--surface); color: var(--ink); }
.chat-body { padding: 16px; display: grid; gap: 12px; }
.chat-bubble { margin: 0; padding: 10px 14px; background: var(--bg-2); border-radius: 4px 14px 14px 14px; font-size: 14px; color: var(--ink-2); max-width: 90%; }
#chat-form { display: grid; gap: 8px; }
#chat-form .textarea { resize: vertical; min-height: 80px; }
.chat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-err { margin: 0; font-size: 13px; color: var(--hot); }
.chat-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .site-footer { padding-bottom: 90px; } .chat-fab span { display: none; } .chat-fab { width: 54px; padding: 0; justify-content: center; } }
@media print { .chat { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-grid p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 42ch; }
.footer-grid h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.footer-grid a:hover { color: var(--moss); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.theme-toggle { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--moss); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Loading skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--surface), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

body.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------- v2: "Photo coming soon" placeholder (replaces the drawings) ---------- */
.no-photo {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, color-mix(in srgb, var(--bg-2) 70%, var(--surface)) 14px 28px);
  color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-align: center; padding: 12px;
}
.no-photo svg { width: 46%; max-width: 96px; height: auto; opacity: .35; filter: grayscale(.4); }
.card.no-pic .card-link { cursor: default; }
.card.no-pic:hover { transform: none; }
.card.no-pic:hover .card-media > :first-child { transform: none; }
.cart-item .thumb-art { position: relative; }
.cart-item .thumb-art .no-photo span { display: none; }
.cart-item .thumb-art .no-photo svg { width: 60%; }
.detail-media .main { position: relative; }

/* List rows: photo tag (opens the pop-up) or "Photo coming soon" note */
.pic-tag, .nopic-tag {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; vertical-align: 2px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px;
}
.pic-tag { color: var(--tide); background: color-mix(in srgb, var(--tide) 12%, transparent); }
.nopic-tag { color: var(--muted); background: var(--bg-2); font-weight: 500; }
.plant-row:not(.has-pic) .nm::after { display: none; }
.plant-row:not(.has-pic):hover { background: transparent; }
.plant-row.has-pic { cursor: pointer; }

/* ---------- v2: plant pop-up ---------- */
.plant-pop {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line);
  border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 45%); overflow: auto;
}
.plant-pop::backdrop { background: rgb(14 24 22 / 55%); backdrop-filter: blur(3px); }
.plant-pop[open] { animation: pop-in .22s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.pop-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 24px; }
.pop-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
}
.pop-close:hover { background: var(--bg-2); }
.pop-media { display: grid; gap: 12px; align-content: start; }
.pop-media .main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.pop-media .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-info { padding-top: 8px; padding-right: 36px; }
.pop-info h2 { font-family: var(--font-body); font-weight: 600; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.015em; margin: 8px 0 12px; }
.pop-info .detail-price { margin: 14px 0; }
.pop-info .specs { margin-top: 20px; }
html.pop-open { overflow: hidden; }
@media (max-width: 720px) {
  .pop-inner { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .pop-media .main { aspect-ratio: 1; }
  .pop-info { padding-right: 0; }
  .specs div { grid-template-columns: 90px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .plant-pop[open] { animation: none; } }
/* ---------- v2: pop-up photo gallery + buy buttons ---------- */
.pop-media .main { position: relative; touch-action: pan-y; }
.pop-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); font-size: 28px; line-height: 1;
  box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 3px;
}
.pop-nav:hover { background: var(--surface); }
.pop-nav.prev { left: 10px; }
.pop-nav.next { right: 10px; }
.pop-count {
  position: absolute; bottom: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgb(0 0 0 / 55%); color: #fff;
}
.pop-thumbs { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pop-thumbs .thumb { flex: none; width: 64px; }
.pop-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pop-buttons .btn { width: 100%; }
.pop-info .buy-box .btn[disabled] { margin-top: 10px; }
@media (max-width: 400px) { .pop-buttons { grid-template-columns: 1fr; } }
/* ---------- Studio gallery (Drive > Photos > Studio) ---------- */
.studio-gallery { columns: 3 260px; column-gap: 16px; margin-bottom: 40px; }
.studio-gallery .skeleton { break-inside: avoid; margin-bottom: 16px; }
.studio-shot {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2); cursor: zoom-in; break-inside: avoid; box-shadow: var(--shadow);
}
.studio-shot img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.studio-shot:hover img { transform: scale(1.03); }
.studio-shot:focus-visible { outline: 2px solid var(--tide); outline-offset: 2px; }
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgb(8 14 13 / 92%); display: grid; place-items: center; overflow: hidden;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); object-fit: contain; border-radius: 10px; }
.light-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / 14%); color: #fff; font-size: 28px; line-height: 1;
}
.light-close:hover { background: rgb(255 255 255 / 24%); }
.lightbox .pop-count { bottom: 20px; right: 50%; translate: 50% 0; }
/* =====================================================================
   v3 layout: announcement bar, tab navigation, photo banner,
   sidebar + main column, photo tiles, article cards, dark footer.
   (Layout inspired by classic nursery shop sites; Pacific Ping Garden branding.)
   ===================================================================== */
:root {
  --font-head: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --bg: #ffffff;
  --bg-2: #f2f7f4;
  --footer: #3b4643;
  --footer-ink: #e6eeea;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --footer: #0a1210; --footer-ink: #c4d6d0; } }
:root[data-theme="dark"] { --footer: #0a1210; --footer-ink: #c4d6d0; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: 0; }

/* Announcement bar */
.announce {
  display: block; text-align: center; padding: 7px var(--gutter); font-size: 13px; text-decoration: none;
  background: var(--moss); color: var(--moss-ink);
}
.announce strong { font-weight: 700; margin-left: 4px; }
.announce:hover strong { text-decoration: underline; }

/* Header with tab-style navigation */
.site-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { min-height: 84px; align-items: stretch; }
.site-header .brand, .site-header .icon-btn, .site-header .menu-btn { align-self: center; }
.site-header .brand svg { width: 52px; height: 52px; }
.site-header .brand-name { font-size: 26px; font-weight: 600; color: var(--moss); letter-spacing: .01em; }
.site-header .brand-name small { color: var(--muted); letter-spacing: .14em; }
.nav { gap: 0; align-items: stretch; }
.nav a {
  display: flex; align-items: center; border-radius: 0; padding: 0 18px; font-size: 15px; color: var(--ink-2);
  font-family: var(--font-body);
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--moss); color: var(--moss-ink); font-weight: 600; }
@media (max-width: 860px) {
  .site-header .wrap { min-height: 68px; }
  .site-header .brand svg { width: 40px; height: 40px; }
  .site-header .brand-name { font-size: 21px; }
  .nav { background: var(--surface); }
  .nav a { padding: 14px 6px; }
  .nav a[aria-current="page"] { padding-left: 14px; }
}
@media (max-width: 400px) { .site-header .brand-name { font-size: 18px; } .site-header .brand svg { width: 32px; height: 32px; } }

/* Photo banner */
.v3-hero {
  --hero-img: none;
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(90deg, rgb(8 22 18 / 82%) 0%, rgb(8 22 18 / 45%) 55%, rgb(8 22 18 / 10%) 100%),
    var(--hero-img) center / cover no-repeat,
    linear-gradient(120deg, #1f5c48, #2a8a86 60%, #8a6fbf);
}
.v3-hero .wrap { padding-top: clamp(48px, 9vw, 110px); padding-bottom: clamp(48px, 9vw, 110px); }
.v3-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; color: #fff; }
.v3-hero p { font-size: clamp(17px, 2vw, 22px); margin: 10px 0 0; max-width: 34ch; color: rgb(255 255 255 / 92%); }
.v3-hero-btn { margin-top: 28px; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; padding: 0 24px; }

/* Sidebar + main */
.v3-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: 44px; padding-bottom: 72px; align-items: start; }
.v3-side { position: sticky; top: 140px; display: grid; gap: 30px; }
.side-title { font-size: 21px; color: var(--moss); margin-bottom: 12px; }
.side-block .search { display: block; }
.side-block .input { min-height: 40px; font-size: 14px; }
.side-cats, .side-links { list-style: none; margin: 0; padding: 0; }
.side-cats li, .side-links li { border-bottom: 1px solid var(--line); }
.side-cats button, .side-cats a, .side-links a {
  display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 2px 10px 14px; position: relative;
  background: none; border: 0; text-align: left; font-size: 14px; color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.side-cats button::before, .side-cats a::before, .side-links a::before {
  content: "›"; position: absolute; left: 2px; color: var(--muted);
}
.side-cats button:hover, .side-cats a:hover, .side-links a:hover { color: var(--moss); }
.side-cats button[aria-pressed="true"] { color: var(--moss); font-weight: 600; }
.side-cats .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.side-extra p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }

.v3-intro h2, .v3-h { font-size: clamp(28px, 3vw, 36px); color: var(--moss); margin-bottom: 14px; }
.v3-intro p { color: var(--ink-2); max-width: 70ch; margin: 0; }
.v3-section { margin-top: 48px; scroll-margin-top: 140px; }
.v3-section[hidden] { display: none; }

/* Photo tiles (square photo, label box underneath) */
.v3-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 1fr)); gap: 14px; }
.v3-tiles .card { border-radius: 4px; box-shadow: none; }
.v3-tiles .card:hover { transform: none; border-color: var(--moss); }
.v3-tiles .card-media { aspect-ratio: 1; }
.v3-tiles .card-body { text-align: center; padding: 12px 10px 6px; }
.v3-tiles .card-title { font-size: 15px; }
.v3-tiles .card-meta { justify-content: center; font-size: 13px; }
.v3-tiles .card-actions { padding: 6px 10px 12px; justify-content: center; }
.v3-tiles .card-actions .btn { border-radius: 4px; }
.v3-tiles .card-note { justify-content: center; width: 100%; }

/* Plant list in the main column */
.v3-main .plant-list { border-top: 1px solid var(--line); }
.search-note { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.search-note .link { background: none; border: 0; padding: 0; margin-left: 8px; cursor: pointer; font-size: 14px; }

/* Article cards */
.v3-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 22px; }
.v3-article { display: grid; align-content: start; gap: 8px; text-decoration: none; color: inherit; }
.art-band { height: 120px; border-radius: 4px; display: grid; place-items: center; color: #fff; }
.art-band svg { width: 46px; height: 46px; }
.art-band.light { background: linear-gradient(135deg, #e3a541, #f2cf6b); }
.art-band.water { background: linear-gradient(135deg, #2a8a86, #7cccc6); }
.art-band.soil { background: linear-gradient(135deg, #2f7d5f, #8a6fbf); }
.v3-article h3 { font-size: 20px; color: var(--moss); margin-top: 6px; line-height: 1.2; }
.v3-article p { font-size: 14px; color: var(--ink-2); margin: 0; }
.v3-article .more { font-size: 14px; color: var(--moss); font-weight: 600; }
.v3-article:hover h3 { text-decoration: underline; }

/* Dark footer bar */
.site-footer { background: var(--footer); color: var(--footer-ink); border-top: 0; padding: 26px 0 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--footer-ink); text-decoration: none; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .footer-base { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 14%); color: rgb(230 238 234 / 70%); }
.site-footer .theme-toggle { color: var(--footer-ink); }

/* Phones and tablets: sidebar becomes a compact strip above the content */
@media (max-width: 860px) {
  .v3-layout { grid-template-columns: 1fr; padding-top: 24px; gap: 8px; }
  .v3-side { position: static; gap: 16px; }
  .side-extra { display: none; }
  .side-title { font-size: 18px; margin-bottom: 8px; }
  .side-cats { display: flex; flex-wrap: wrap; gap: 8px; }
  .side-cats li { border: 0; }
  .side-cats button, .side-cats a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; width: auto; }
  .side-cats button::before, .side-cats a::before { content: none; }
  .side-cats button[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--moss-ink); }
  .side-cats button[aria-pressed="true"] .n { color: inherit; opacity: .8; }
  .v3-intro { margin-top: 20px; }
}@media (max-width: 560px) {
  .v3-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v3-tiles .card-title { font-size: 14px; }
  .v3-tiles .card-meta { flex-direction: column; align-items: center; gap: 2px; }
  .v3-tiles .card-actions .btn { padding: 0 10px; font-size: 13px; }
}
.v3-lead { color: var(--ink-2); max-width: 70ch; margin: -4px 0 18px; }
.search-note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .search-note em::after { content: ' (above)'; } }

/* Chat box without the floating bubble: opened from the sidebar's 'Chat with us' */
.chat.no-bubble .chat-fab { display: none; }
.chat.no-bubble { gap: 0; }
@media (max-width: 860px) { #side-chat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } #side-chat .side-title, #side-chat p { display: none; } }

/* v3 plant list: name | source | photo | status | price | button, all lined up */
.v3-main .plant-row {
  grid-template-columns: minmax(0, 1fr) 72px 30px 118px 64px 128px;
  grid-template-areas: "nm src pic badge price buy";
  gap: 6px 14px;
}
.v3-main .plant-row .nm { grid-area: nm; }
.v3-main .plant-row .src-col { grid-area: src; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-main .plant-row .pic-col { grid-area: pic; display: grid; place-items: center; color: var(--muted); }
.v3-main .plant-row .pic-col.has { color: var(--tide); }
.v3-main .plant-row .pic-col svg { width: 18px; height: 18px; }
.v3-main .plant-row .badge { grid-area: badge; justify-self: start; }
.v3-main .plant-row .price { grid-area: price; text-align: right; }
.v3-main .plant-row .row-buy { grid-area: buy; }
.v3-main .plant-row:not(.has-pic) { cursor: default; }
@media (max-width: 560px) {
  .v3-main .plant-row {
    grid-template-columns: 58px 22px minmax(0, 1fr) auto;
    grid-template-areas:
      "nm nm nm price"
      "src pic badge buy";
    gap: 8px 10px;
  }
  .v3-main .plant-row .src-col { min-width: 22px; }
  .v3-main .plant-row span.row-buy { display: none; }
  .v3-main .plant-row .row-buy { width: auto; padding: 0 12px; }
}
/* Sources hidden by default: list without the source column, unless "Show plant sources" is ticked */
.v3-main .plant-list:not(.with-src) .plant-row {
  grid-template-columns: minmax(0, 1fr) 30px 118px 64px 128px;
  grid-template-areas: "nm pic badge price buy";
}
@media (max-width: 560px) {
  .v3-main .plant-list:not(.with-src) .plant-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    grid-template-areas:
      "nm nm price"
      "pic badge buy";
  }
  .v3-main .plant-list:not(.with-src) .plant-row .pic-col:empty { display: none; }
  .v3-main .plant-list:not(.with-src) .plant-row .badge { grid-column: 1 / 3; }
  .v3-main .plant-list:not(.with-src) .plant-row.has-pic .badge { grid-area: badge; }
}
.src-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: -4px 0 12px; cursor: pointer; user-select: none; }
.src-toggle input { width: 16px; height: 16px; accent-color: var(--moss); cursor: pointer; }
.pop-add-only { margin-top: 12px; }
/* Studio: for-sale section + named past creations */
.studio-sec { padding-bottom: 48px; }
.studio-sec[hidden] { display: none; }
.studio-note { color: var(--muted); font-size: 15px; margin: -6px 0 18px; max-width: 70ch; }
.price-tag {
  position: absolute; top: 10px; right: 10px; padding: 5px 11px; border-radius: 4px;
  background: var(--moss); color: var(--moss-ink); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
.studio-item { break-inside: avoid; margin: 0 0 16px; }
.studio-item .studio-shot { margin-bottom: 6px; }
.studio-item figcaption { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 2px; }
.light-fig { margin: 0; display: grid; justify-items: center; gap: 10px; }
.light-fig figcaption { color: #fff; font-size: 16px; font-weight: 600; }

/* ===== v3.1: Home / Pinguicula / Carnivores pages + pull-out side panel ===== */
.v3-page { padding-top: 40px; padding-bottom: 72px; }
.home-more { margin-top: 18px !important; }
.list-top h1.v3-h { font-size: clamp(30px, 3.4vw, 40px); }
.list-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.list-tools[hidden] { display: none; }
.search-note .link { margin-left: 2px; }
.genus-head { font-size: 22px; color: var(--moss); margin: 26px 0 6px; padding-top: 4px; }
.genus-head span { font-family: Inter, sans-serif; font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.empty-note { border: 1px dashed var(--line); border-radius: 6px; padding: 28px 22px; color: var(--ink-2); max-width: 60ch; }
.empty-note p { margin: 0; }
.empty-note .link { background: none; border: 0; padding: 0; color: var(--moss); text-decoration: underline; cursor: pointer; font: inherit; }

/* The tab on the left edge that pulls the panel out */
.side-tab {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0;
  background: var(--moss); color: var(--moss-ink); cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / 14%);
  font: 600 13px/1 Inter, sans-serif; letter-spacing: .03em;
}
.side-tab svg { width: 18px; height: 18px; }
.side-tab span { writing-mode: vertical-rl; transform: rotate(180deg); }
.side-tab:hover { padding-left: 11px; }
.panel-open .side-tab { opacity: 0; pointer-events: none; }

.side-backdrop { position: fixed; inset: 0; z-index: 70; background: rgb(10 20 16 / 32%); opacity: 0; transition: opacity .25s; }
.panel-open .side-backdrop { opacity: 1; }
.side-backdrop[hidden], .side-panel[hidden] { display: none; }
.side-panel {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; width: min(320px, 88vw); overflow-y: auto;
  background: var(--bg, #fff); border-right: 1px solid var(--line); box-shadow: 6px 0 30px rgb(0 0 0 / 16%);
  padding: 22px 22px 40px; display: grid; align-content: start; gap: 28px;
  transform: translateX(-100%); transition: transform .25s ease;
}
.panel-open .side-panel { transform: none; }
.side-panel #side-list-tools { display: grid; gap: 28px; }
.side-panel #side-list-tools[hidden] { display: none; }
.side-close { justify-self: end; margin: -6px -8px -18px 0; width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 50%; }
.side-close:hover { background: var(--line); color: var(--ink); }
.side-panel p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.side-panel .side-src { margin: 14px 0 0; display: flex; }
.side-panel .side-care { margin-top: 14px; }
/* Inside the panel the Browse list stays a plain list on every screen size */
.side-panel .side-cats { display: block; }
.side-panel .side-cats li { border-bottom: 1px solid var(--line); }
.side-panel .side-cats button { border: 0; border-radius: 0; padding: 10px 2px 10px 14px; width: 100%; }
.side-panel .side-cats button::before { content: "›"; }
.side-panel .side-cats button[aria-pressed="true"] { background: none; color: var(--moss); }
.side-panel #side-chat { display: block; }
.side-panel #side-chat .side-title, .side-panel #side-chat p { display: block; }
@media (prefers-reduced-motion: reduce) { .side-panel, .side-backdrop { transition: none; } }

/* Phones: a round button bottom-left instead of the edge tab */
@media (max-width: 860px) {
  .v3-page { padding-top: 24px; }
  .side-tab { top: auto; bottom: 18px; left: 14px; transform: none; border: 0; border-radius: 999px; padding: 0 16px; height: 46px; flex-direction: row; }
  .side-tab span { writing-mode: horizontal-tb; transform: none; }
  .side-tab:hover { padding-left: 16px; }
  .site-footer { padding-bottom: 84px; }
}

/* Care notes pop-up */
.care-pop { border: 0; padding: 0; border-radius: 10px; width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--bg, #fff); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / 30%); }
.care-pop::backdrop { background: rgb(10 20 16 / 45%); }
.care-pop-in { padding: 22px 26px 26px; display: grid; gap: 4px; }
.care-pop-in .side-close { margin: -8px -12px -30px 0; }
.care-pop .art-band { height: 90px; }
.care-pop-more { margin: 20px 0 0; }

/* Photo tiles: status badge under the photo, next to the price */
.card-status { align-items: center; flex-wrap: wrap; }
.v3-tiles .card-status { flex-direction: row !important; justify-content: center; gap: 8px; }
.card-status .badge { font-size: 12px; white-space: nowrap; }
@media (max-width: 560px) { .card-status .badge { font-size: 11px; padding-left: 8px; padding-right: 8px; } }

/* ===== Uniform page headings: same top space, font, size and colour on every page ===== */
.v3-page { padding-top: 40px; }
.page-head { padding: 40px 0 28px; }
.list-top { margin-top: 0; }
.page-head h1, .list-top h1.v3-h, .v3-intro h2 {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15;
  color: var(--moss); margin: 0 0 14px; max-width: none; letter-spacing: 0;
}
.page-head .lede, .list-top .v3-lead, .v3-intro > p:not(.home-more) {
  font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; margin: 0;
}
.list-top .v3-lead { margin-bottom: 18px; }
@media (max-width: 860px) { .v3-page { padding-top: 24px; } .page-head { padding-top: 24px; padding-bottom: 20px; } .v3-intro { margin-top: 0; } }

/* About page */
.about { max-width: 70ch; }
.about h2 { font-size: 22px; color: var(--moss); margin: 28px 0 8px; }
.about h2:first-of-type { margin-top: 0; }
.about p { color: var(--ink-2); line-height: 1.7; margin: 0 0 14px; }
.about-photo { float: right; width: min(300px, 42%); margin: 4px 0 18px 28px; }
.about-photo[hidden] { display: none; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; }
.about-cta { clear: both; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
@media (max-width: 560px) { .about-photo { float: none; width: 100%; margin: 0 0 20px; } }

/* Pop-up: whole photo shown (no cropping), soft background around it */
.pop-media .main img { object-fit: contain; background: var(--bg-2); }
.pop-media .main .no-photo { height: 100%; }
/* Descriptions: paragraphs, bullets, "Read more" for long ones */
.detail-desc { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-top: 14px; }
.detail-desc p { margin: 0 0 10px; }
.detail-desc ul { margin: 0 0 10px; padding-left: 20px; }
.detail-desc li { margin: 2px 0; }
.detail-desc.is-clamped { max-height: 9.6em; overflow: hidden; position: relative; }
.detail-desc.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--surface, var(--bg))); }
.desc-more { background: none; border: 0; padding: 0; color: var(--moss); font-weight: 600; cursor: pointer; font-size: 14px; text-decoration: underline; margin: 2px 0 6px; }

/* Pop-up size picker: Baby / Juvenile / Mature */
.size-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 14px 0 4px; }
.size-opt {
  display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); cursor: pointer; font: inherit;
}
.size-opt strong { font-size: 15px; }
.size-opt .size-price { font-weight: 600; color: var(--moss); font-variant-numeric: tabular-nums; }
.size-opt small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.size-opt:hover { border-color: var(--moss); }
.size-opt[aria-checked="true"] { border-color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); background: color-mix(in srgb, var(--moss) 7%, var(--surface)); }
.size-opt[data-sold] { opacity: .55; }
.size-opt[data-sold] .size-price { color: var(--muted); }

/* Room under the footer for Netlify's "Powered by Netlify" badge (bottom-right corner) */
.site-footer { padding-bottom: 76px; }
@media (max-width: 860px) { .site-footer { padding-bottom: 96px; } }
