/* Florist Supply Store — product-first PDP
   Palette: deep green field, cream ground, ochre accent, ink text.
   Paper-tone neutrals (brown/red-brown/pink/beige) are PRODUCT colours only. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-600italic.woff2") format("woff2");
}

:root {
  --green: #16352a;
  --green-deep: #0f2921;
  --cream: #f5efe5;
  --cream-bg: #faf7f2;
  --ochre: #a8845c;
  /* Ochre fails WCAG AA (~3:1) as small text on cream, and as cream-on-ochre.
     Dedicated accessible variants — used for TEXT, not borders/rings/backgrounds. */
  --ochre-text: #7a5c39; /* ochre text on cream/cream-bg — 5.3–5.7:1 */
  --ochre-on-green: #d2b68e; /* ochre text on the green field — 6.9:1 */
  --ink: #211d19;
  --ink-soft: #514a42;
  --line: rgba(33, 29, 25, 0.14);
  --line-on-green: rgba(245, 239, 229, 0.22);

  --brown-dark: #4a3728;
  --brown-red: #7a3b2e;
  --pink: #e8b4b8;
  --beige: #e6d9c3;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Eyebrow / small caps label */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-text);
  margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 52px;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 22px; font-size: 0.86rem; min-height: 44px; }

/* Logo — plain type, one size, one weight */
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo.on-cream { color: var(--ink); }
.logo.on-green { color: var(--cream); }

/* Announcement bar */
.announce-bar {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 10px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header .wrap .logo { grid-column: 2; justify-self: center; }
.site-header .wrap .btn,
.site-header .wrap .bag-toggle { grid-column: 3; justify-self: end; }

/* Bag icon toggle (header) */
.bag-toggle {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

.bag-toggle .bag-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--green);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Sections & rhythm */
section.block { padding: 72px 0; }
@media (min-width: 900px) {
  section.block { padding: 112px 0; }
}

.on-cream { background: var(--cream-bg); color: var(--ink); }
.on-green { background: var(--green); color: var(--cream); }

section.block h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--ink-soft);
  margin: 0 0 40px;
  max-width: 640px;
  font-size: 1.05rem;
}

.on-green .section-lead { color: rgba(245, 239, 229, 0.78); }

/* Product hero (first screen PDP) */
.product-hero { padding: 32px 0 56px; }

@media (min-width: 900px) {
  .product-hero { padding: 40px 0 64px; }
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
}

.product-media { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 900px) {
  .product-media { flex-direction: row; }
}

.main-image {
  flex: 1 1 auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  max-height: 70vh;
}

.main-image img { width: 100%; height: 100%; object-fit: cover; }

/* 6 slots: group shot + five colours */
.thumb-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

@media (min-width: 420px) {
  .thumb-rail { gap: 8px; }
}

@media (min-width: 900px) {
  .thumb-rail {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    width: 76px;
    flex-shrink: 0;
  }
}

.thumb-slot {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  background: none;
}

.thumb-slot img { width: 100%; height: 100%; object-fit: cover; }

.thumb-slot.active { border-color: var(--ochre); box-shadow: 0 0 0 1px var(--ochre); }

/* Buy panel */
.buy-panel { display: flex; flex-direction: column; }

.product-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.product-subhead {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 16px;
}

.price-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.product-tagline {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-size: 1rem;
}

/* Clearly-marked "needs a real value" placeholder — never ships silently */
.confirm {
  background: rgba(214, 158, 46, 0.22);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.92em;
  /* Long placeholders (e.g. the water-test one) must wrap — nowrap here
     pushed the specs line past the viewport on narrow phones. */
  overflow-wrap: anywhere;
}

/* Benefit icon row: 2x3 on mobile, 1x6 on desktop */
.benefit-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  margin: 20px 0 28px;
}

@media (min-width: 900px) {
  .benefit-icons { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: var(--ink);
}

.benefit-item svg { flex-shrink: 0; }

.benefit-item span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

.option-block { margin-bottom: 20px; }

.option-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.colour-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.colour-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.colour-pill.active { border-color: var(--ochre); box-shadow: 0 0 0 1px var(--ochre); }

/* Out-of-stock colours stay visible and selectable (so the full range is
   discoverable and the back-soon note can be shown), but read as unavailable
   and cannot be added to the bag. */
.colour-pill.out-of-stock {
  color: var(--ink-soft);
  background: var(--cream-bg);
  border-style: dashed;
}

.colour-pill.out-of-stock .colour-pill-chip {
  opacity: 0.45;
}

.colour-pill.out-of-stock.active {
  border-style: solid;
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 1px var(--ink-soft);
}

.pill-oos-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 8px;
  margin-left: 2px;
}

.back-soon {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.back-soon a { color: var(--green); font-weight: 600; }
.back-soon[hidden] { display: none; }

.colour-pill-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* Bundle & Save — vertical selectable rows, radio behaviour */
.bundle-select {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.bundle-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-bg);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
}

.bundle-row.flagged { margin-top: 12px; }

.bundle-row.active {
  background: var(--cream);
  border-color: var(--ochre);
  box-shadow: 0 0 0 1px var(--ochre);
}

.bundle-flag {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--ochre);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Quieter framing for the 1-roll row — a nudge, not a promo badge */
.bundle-flag.quiet {
  background: var(--cream-bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.bundle-row-count {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
}

.bundle-row.active .bundle-row-count {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.bundle-row-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bundle-row-label { font-weight: 700; font-size: 0.94rem; }
.bundle-row-perroll { font-size: 0.78rem; color: var(--ink-soft); }

.bundle-row-prices {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.bundle-price-line { display: flex; align-items: baseline; gap: 6px; }

.bundle-was {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: line-through;
}

.bundle-now {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.bundle-save {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ochre-text);
}

/* Custom quantity row (below the bundle selector) */
/* Secondary to the bundle selector: one quiet line, not another set of
   prominent controls competing for attention. */
.custom-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.custom-qty-label { font-size: 0.8rem; color: var(--ink-soft); }
.custom-qty-tier { font-size: 0.8rem; color: var(--ochre-text); font-weight: 600; }

.custom-qty-row .stepper {
  transform: scale(0.88);
  transform-origin: left center;
}

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

.stepper button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}

.stepper button:hover { background: var(--line); }

.stepper input {
  width: 44px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 1rem;
  font-family: var(--sans);
}


.add-colour-btn {
  display: inline-block;
  margin-top: 4px;
  background: none;
  border: none;
  padding: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.info-banner {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.stock-dot.out { background: #a35a45; }

.product-cta-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

.product-error {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.product-error button { margin-top: 14px; }

.product-loading { color: var(--ink-soft); font-size: 0.95rem; }

/* Bag summary (inline, desktop + mobile below fold) */
.bag-summary {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.bag-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 4px 0;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 6px 0;
  color: var(--ink-soft);
  margin-top: 8px;
}

.order-summary-row strong { color: var(--ink); font-weight: 700; }

.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  margin: 8px 0 16px;
  border-top: 1px solid var(--line);
}

.order-summary-total .amount {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Buy panel ends at the Add to Bag button — trust/payment block removed. */
.buy-panel > .btn-block:last-child { margin-bottom: 4px; }

/* Bag drawer */
.bag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 15, 0.86);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 150;
}

.bag-overlay.open { opacity: 1; pointer-events: auto; }

.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background: var(--cream-bg);
  z-index: 151;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(33, 29, 25, 0.16);
}

.bag-drawer.open { transform: translateX(0); }

@media (max-width: 480px) {
  .bag-drawer { width: 100%; }
}

.bag-drawer-header {
  flex-shrink: 0;
  background: var(--green);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}

.bag-drawer-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.bag-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}

.bag-drawer-empty {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 32px 0;
  text-align: center;
}

.bag-drawer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.bag-drawer-line-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}

.bag-drawer-line-name {
  flex: 1 1 auto;
  min-width: 80px;
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bag-drawer-remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.3rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.bag-drawer-remove:hover { color: var(--ink); }

.bag-drawer-summary { margin-top: 8px; padding-top: 16px; }

.bag-drawer-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 6px 0;
  color: var(--ink-soft);
}

.bag-drawer-row strong { color: var(--ink); font-weight: 700; }

.btn-nudge {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px dashed var(--ochre);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ochre-text);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.btn-nudge:hover { background: rgba(168, 132, 92, 0.08); }

.bag-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin: 10px 0 4px;
  border-top: 1px solid var(--line);
}

.bag-drawer-total .amount {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.amount-group { display: flex; align-items: baseline; gap: 8px; }

.amount-was {
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--ink-soft);
}

.bag-drawer-savings {
  margin: 0 0 16px;
  text-align: right;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ochre-text);
}

.bag-drawer-reorder {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

body.bag-drawer-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .bag-overlay, .bag-drawer { transition: none; }
}

/* Description & FAQ — pulled closer to the product section */
#details { padding-top: 32px; }
@media (min-width: 900px) {
  #details { padding-top: 48px; }
}

/* FAQ / details */
.faq-list { border-top: 1px solid var(--line); }

.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-weight: 700;
  color: var(--ochre);
  font-size: 1.3rem;
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list p { margin: 14px 0 0; color: var(--ink-soft); max-width: 640px; }

/* Footer */
.site-footer { padding: 64px 0 40px; }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-on-green);
}

@media (min-width: 700px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--cream); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--ochre-on-green); }

.footer-meta {
  color: rgba(245, 239, 229, 0.65);
  font-size: 0.86rem;
  margin-top: 24px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 18px 24px;
  display: none;
  border-top: 1px solid var(--line-on-green);
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p { margin: 0; font-size: 0.88rem; max-width: 640px; color: rgba(245, 239, 229, 0.85); }
.cookie-inner a { color: var(--ochre); }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-actions button {
  border-radius: var(--radius);
  border: 1px solid var(--line-on-green);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  min-height: 44px;
  background: transparent;
  color: var(--cream);
}

.cookie-accept { background: var(--ochre) !important; border-color: var(--ochre) !important; color: var(--ink) !important; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Sticky mobile add-to-bag bar — appears once the real Add to Bag button
   scrolls out of view, hidden again while the bag drawer is open. */
.sticky-add-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--cream-bg);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-add-bar.visible { transform: translateY(0); }

/* Never stack two fixed bottom bars — the cookie banner wins while it's up. */
body.has-cookie-banner .sticky-add-bar { transform: translateY(100%) !important; }

@media (min-width: 900px) {
  .sticky-add-bar { display: none !important; }
}

body.bag-drawer-open .sticky-add-bar { transform: translateY(100%) !important; }

@media (prefers-reduced-motion: reduce) {
  .sticky-add-bar { transition: none; }
}

.sticky-add-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-add-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.82rem;
}

.sticky-add-info strong {
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-add-info span { color: var(--ink-soft); }

/* Legal pages */
.legal-content { max-width: 720px; margin: 0 auto; padding: 80px 0 96px; }
.legal-content h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-top: 0;
}
.legal-content h2 { font-family: var(--serif); font-weight: 600; margin-top: 40px; font-size: 1.3rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content a { color: var(--green); }

/* About — short, text-only page. Narrower measure, a lead paragraph and a
   closing CTA so it reads as a composed page rather than three stray lines. */
.about-content { max-width: 620px; }

.about-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--ochre);
  margin: 20px 0 32px;
}

.legal-content.about-content p {
  margin: 0 0 22px;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Must outrank the rule above, hence the doubled class. */
.legal-content.about-content p.about-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
}

/* .legal-content a sets green link colour — that would paint the primary
   button's label green-on-green, so restore the button's own colour here. */
.legal-content .about-cta {
  margin-top: 18px;
  color: var(--cream);
  text-decoration: none;
}

.legal-content .about-cta:hover { color: var(--cream); }
