/* Signet Agro — main stylesheet
   One file, no framework. Tokens first, then base, layout, components, pages. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Brand palette (from the brief) */
  --forest: #0A140C;
  --forest-2: #15241A;
  --olive: #4B5131;
  --leaf: #63904C;
  --neutral: #E6E5DE;
  --sand: #D1C6B0;
  --terracotta: #B15A2B;

  /* Working tones derived from the palette */
  --paper: #F3F2EC;       /* raised surfaces: cards, fields, order slip */
  --ink: #0A140C;
  --ink-soft: #3A4236;    /* secondary text on light backgrounds (AA on --neutral) */
  --rule: #C9C6B8;
  --on-dark: #E6E5DE;
  --on-dark-soft: #B9BDAE;
  --focus: #B15A2B;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --max: 1240px;
  --radius-sm: 4px;
  --radius: 8px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--neutral);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 650; }
h1 { font-size: var(--step-4); letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--forest); color: var(--on-dark); padding: 0.6rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--forest); color: var(--on-dark); }
.btn-primary:hover { background: var(--olive); }
.btn-light { background: var(--neutral); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(10,20,12,.06); }
.on-dark .btn-outline:hover { background: rgba(230,229,222,.1); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.9375rem; }
.btn[aria-disabled="true"] { opacity: .55; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; font-weight: 600; }

.count-badge {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em;
  border-radius: 999px; background: var(--terracotta); color: #fff; font-size: .78em; font-weight: 800; line-height: 1;
}
.count-badge[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(230,229,222,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--forest); flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1; }
.brand-name span { font-weight: 400; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.primary-nav a { text-decoration: none; font-weight: 600; font-size: .975rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover { border-bottom-color: var(--rule); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--leaf); }
.header-cta { flex: none; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--forest); border-radius: 999px; min-height: 42px; padding: 0 1rem; font-weight: 700; cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .header-cta { display: none; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--neutral); border-bottom: 1px solid var(--rule); margin: 0; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .primary-nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--olive); }
  .primary-nav a[aria-current="page"]::after { content: " (current page)"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Mobile order bar: always reachable on small screens */
.order-bar { display: none; }
@media (max-width: 960px) {
  .order-bar {
    display: flex; gap: .75rem; align-items: center; justify-content: space-between;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: var(--forest); color: var(--on-dark);
    border-top: 1px solid #263428;
  }
  .order-bar-status { font-size: .9rem; line-height: 1.3; margin: 0; min-width: 0; }
  .order-bar .btn { white-space: nowrap; flex: none; }
  .order-bar-status strong { display: block; font-size: 1rem; }
  body { padding-bottom: 76px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--forest); color: var(--on-dark); overflow: hidden; }
.hero-inner { padding-top: clamp(3rem, 2rem + 5vw, 6.5rem); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2.5rem 4rem; align-items: end; }
.hero h1 { max-width: 13ch; margin-bottom: 0; color: var(--neutral); }
.hero-side p { color: var(--on-dark-soft); font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-trust { margin: 1.25rem 0 0; font-size: .95rem; color: var(--on-dark-soft); display: flex; gap: .55rem; align-items: center; }
.hero-trust svg { width: 18px; height: 18px; color: var(--leaf); flex: none; }

/* The produce strip: seven products laid side by side like a market table */
.produce-strip {
  list-style: none; margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end;
}
.produce-strip li:nth-child(odd) { padding-bottom: 28px; }
.produce-strip a { display: block; text-decoration: none; color: var(--on-dark); }
.produce-strip figure { margin: 0; }
.produce-strip img { aspect-ratio: 3 / 5; width: 100%; object-fit: cover; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.produce-strip figcaption { padding: .55rem .1rem .9rem; font-size: .9rem; font-weight: 600; border-bottom: 2px solid transparent; }
.produce-strip a:hover figcaption, .produce-strip a:focus-visible figcaption { border-bottom-color: var(--leaf); }
@media (prefers-reduced-motion: no-preference) {
  .js .produce-strip li { opacity: 0; transform: translateY(24px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .produce-strip li:nth-child(1) { animation-delay: .05s; } .js .produce-strip li:nth-child(2) { animation-delay: .12s; }
  .js .produce-strip li:nth-child(3) { animation-delay: .19s; } .js .produce-strip li:nth-child(4) { animation-delay: .26s; }
  .js .produce-strip li:nth-child(5) { animation-delay: .33s; } .js .produce-strip li:nth-child(6) { animation-delay: .40s; }
  .js .produce-strip li:nth-child(7) { animation-delay: .47s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; }
  .produce-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .produce-strip::-webkit-scrollbar { display: none; }
  .produce-strip li { flex: 0 0 38vw; max-width: 180px; scroll-snap-align: start; }
}

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head h2 { margin-bottom: .3em; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

/* ---------- Category index ---------- */
.categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.category { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.category-media { display: block; }
.category img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.category-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; }
.category h3 { font-size: var(--step-2); margin-bottom: .35em; }
.category h3 a { text-decoration: none; }
.category h3 a:hover { text-decoration: underline; }
.category p { color: var(--ink-soft); }
.category-items { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.category-items a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .9rem;
  border: 1.5px solid var(--forest); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.category-items a:hover { background: var(--forest); color: var(--on-dark); }
@media (max-width: 720px) { .categories { grid-template-columns: 1fr; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(1.25rem, 1rem + 1vw, 2rem); list-style: none; padding: 0; margin: 0; }
.product-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--rule); overflow: hidden; height: 100%; }
.product-card .media { display: block; position: relative; background: var(--sand); }
.product-card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.product-card .body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin-bottom: .3em; font-size: 1.3rem; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }
.product-card .desc { color: var(--ink-soft); font-size: .975rem; margin-bottom: .9rem; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .65rem 0; border-top: 1px solid var(--rule); margin-top: auto; font-size: .95rem; }
.price-line .price { font-weight: 700; }
.price-line .avail { color: var(--ink-soft); font-size: .875rem; }
.cat-tag { position: absolute; left: .75rem; top: .75rem; background: var(--neutral); color: var(--forest); border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; font-weight: 700; }

/* Order controls (shared by cards and product pages) */
.order-form { display: grid; gap: .65rem; }
.field-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .6rem; }
.field { display: grid; gap: .3rem; }
.field label, .field .label { font-size: .85rem; font-weight: 700; }
.field .hint { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }
input[type="text"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .7rem;
  background: #FBFAF6; border: 1.5px solid #A7A491; border-radius: var(--radius-sm);
  font-size: 1rem; line-height: 1.3;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); outline: 3px solid rgba(177,90,43,.45); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9B2C12; }
.error-msg { color: #8E2710; font-size: .85rem; font-weight: 700; }
.error-msg:empty { display: none; }
.added-note { font-size: .875rem; font-weight: 600; color: var(--olive); min-height: 1.3em; margin: 0; display: flex; align-items: center; gap: .4rem; }
.added-note button { font-size: .875rem; }

/* ---------- Ordering steps ---------- */
.how { background: var(--paper); border-block: 1px solid var(--rule); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0 0 2rem; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; gap: .25rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1; color: var(--leaf); grid-row: span 2; }
.steps h3 { margin: 0; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* ---------- The order slip (signature element) ---------- */
.slip {
  position: relative; background: #FBFAF5; color: var(--ink);
  border-radius: 2px; padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(10,20,12,.45);
  --perf: radial-gradient(circle at 8px -2px, transparent 6px, #FBFAF5 6.5px);
}
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: var(--perf) 0 0 / 16px 8px repeat-x; }
.slip-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding-bottom: .9rem; border-bottom: 1.5px dashed #B9B6A5; }
.slip-head h3, .slip-head h2 { font-size: 1.25rem; margin: 0; }
.slip-ref { font-size: .82rem; color: var(--ink-soft); margin: .2rem 0 0; font-variant-numeric: tabular-nums; }
.slip-lines { list-style: none; margin: 0; padding: 0; }
.slip-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #E2E0D5; font-size: .95rem; }
.slip-lines li span:last-child { color: var(--ink-soft); text-align: right; }
.slip-foot { margin: 1rem 0 0; font-size: .9rem; font-weight: 700; }
.stamp { width: 96px; height: 96px; flex: none; color: var(--terracotta); transform: rotate(-12deg); margin: -.4rem -.3rem 0 0; }
.stamp text { font-family: var(--font-body); font-weight: 800; font-size: 9px; fill: currentColor; }
.slip-example-label { position: absolute; top: -2.1rem; left: 0; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; }
.benefits div { border-top: 3px solid var(--forest); padding-top: 1.1rem; }
.benefits dt { font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; line-height: 1.2; margin-bottom: .5rem; letter-spacing: -0.01em; }
.benefits dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 960px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- About band ---------- */
.about-band { background: var(--sand); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.about-grid img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.about-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.about-pair img { aspect-ratio: 4 / 5 !important; }
.about-pair img:last-child { margin-top: 48px; }
.owner-line { font-weight: 700; padding-top: 1rem; border-top: 1px solid rgba(10,20,12,.25); max-width: 52ch; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.1rem 0; font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.1rem; margin: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--forest); color: var(--on-dark); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: end; }
.cta-band h2 { color: var(--neutral); margin-bottom: .4em; }
.cta-band p { color: var(--on-dark-soft); margin: 0; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #060C07; color: var(--on-dark-soft); padding-block: 3.5rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer .brand { color: var(--neutral); }
.site-footer h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: 0; color: var(--neutral); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1E2B21; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.footer-legal p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4rem); max-width: 18ch; }
.page-head .lede { margin-bottom: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1.25rem; color: var(--ink-soft); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--rule); }

/* ---------- Catalogue page ---------- */
.catalogue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.cat-filter a, .cat-filter button {
  display: inline-flex; align-items: center; min-height: 42px; padding: .4rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--forest); background: transparent; text-decoration: none; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.cat-filter [aria-pressed="true"] { background: var(--forest); color: var(--on-dark); }
.cat-section { margin-bottom: 3.5rem; }
.cat-section[hidden] { display: none; }
.cat-section > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
.cat-section h2 { font-size: var(--step-2); margin: 0; }
.cat-section > header p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.summary-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.summary-aside .slip { padding-top: 1.25rem; }
.summary-empty { color: var(--ink-soft); font-size: .95rem; margin: 1rem 0; }
@media (max-width: 1100px) { .catalogue-layout { grid-template-columns: 1fr; } .summary-aside { display: none; } }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.product-detail .gallery img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--sand); }
.product-detail h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.75rem); margin-bottom: .35em; }
.confirm-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.confirm-list li { padding: .3rem .8rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-size: .9rem; font-weight: 600; }
.detail-box { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem; margin-top: 1.5rem; }
.detail-meta { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; margin: 0 0 1.25rem; font-size: .975rem; }
.detail-meta dt { font-weight: 700; }
.detail-meta dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } .product-detail .gallery img { aspect-ratio: 4 / 3.4; } }

/* ---------- Prose pages (About, How to order, Privacy) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose li { margin-bottom: .4em; }
.callout { border-left: 4px solid var(--terracotta); background: var(--paper); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.order-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.order-steps li { counter-increment: s; position: relative; padding: 0 0 1.5rem 3.25rem; }
.order-steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--on-dark); font-weight: 800; font-size: .95rem; }
.order-steps li::after { content: ""; position: absolute; left: 1.1rem; top: 2.3rem; bottom: .2rem; width: 1px; background: var(--rule); }
.order-steps li:last-child::after { display: none; }
.order-steps h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.order-steps p { margin: 0; color: var(--ink-soft); }
.order-steps .milestone::before { background: var(--terracotta); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.contact-list li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; }
.contact-list .label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.contact-list .value { font-size: 1.15rem; font-weight: 700; }
.form-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: grid; gap: 1rem; }
.form-card h2 { font-size: var(--step-2); margin: 0; }

.notice { background: #F6E7DC; border: 1px solid #DDB59B; color: #5B2A10; border-radius: var(--radius); padding: .85rem 1rem; font-size: .95rem; }
.notice p { margin: 0; }
.notice p + p { margin-top: .4rem; }
.preview-banner { background: var(--terracotta); color: #fff; text-align: center; font-size: .875rem; padding: .45rem var(--gutter); font-weight: 600; }

/* ---------- Order drawer ---------- */
.order-dialog {
  margin: 0 0 0 auto; padding: 0; border: 0; height: 100%; max-height: 100dvh; width: min(480px, 100%); max-width: 100%;
  background: var(--neutral); color: var(--ink); overflow: hidden;
}
.order-dialog::backdrop { background: rgba(6,12,7,.55); }
@media (prefers-reduced-motion: no-preference) {
  .order-dialog[open] { animation: slide-in .28s cubic-bezier(.2,.7,.2,1); }
  @keyframes slide-in { from { transform: translateX(40px); opacity: .4; } }
}
.dialog-shell { display: flex; flex-direction: column; height: 100%; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--neutral); }
.dialog-top h2 { font-size: 1.4rem; margin: 0; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: transparent; border: 1.5px solid var(--forest); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.dialog-body { flex: 1; overflow-y: auto; padding: 1.75rem 1.25rem 2rem; overscroll-behavior: contain; }
.dialog-body .slip { margin-bottom: 1.5rem; }
.line-item { padding: 1rem 0; border-bottom: 1px solid #E2E0D5; display: grid; grid-template-columns: 56px 1fr; gap: .4rem .9rem; }
.line-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); grid-row: span 2; }
.line-item .li-head { display: flex; justify-content: space-between; align-items: start; gap: .5rem; }
.line-item h3 { font-size: 1.05rem; margin: 0; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.line-item .li-fields { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .5rem; }
.line-item .li-fields .full { grid-column: 1 / -1; }
.remove-btn { background: none; border: 0; color: #8E2710; font-weight: 700; font-size: .875rem; cursor: pointer; padding: .3rem 0; text-decoration: underline; min-height: 32px; }
.slip-total { display: flex; justify-content: space-between; padding-top: .9rem; font-weight: 800; }
.pricing-note { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.empty-state { text-align: left; padding: .5rem 0 0; }
.empty-state p { color: var(--ink-soft); }
.empty-state .btn { margin-top: .5rem; }
.customer-form { display: grid; gap: 1rem; }
.customer-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.customer-form legend { font-size: .85rem; font-weight: 700; margin-bottom: .4rem; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; }
.radio-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1.5px solid #A7A491; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; background: #FBFAF6; }
.radio-pill input:checked + span { border-color: var(--forest); background: var(--forest); color: var(--on-dark); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.dialog-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.send-note { font-size: .875rem; color: var(--ink-soft); margin: .25rem 0 0; }
.sent-panel { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--leaf); padding: 1rem 1.1rem; border-radius: var(--radius-sm); }
.sent-panel h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.sent-panel p { font-size: .95rem; }
.sent-panel .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.copy-area { width: 100%; min-height: 160px; font-size: .85rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--forest); color: var(--on-dark); padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .95rem; z-index: 60; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.toast[hidden] { display: none; }
@media (min-width: 961px) { .toast { bottom: 32px; } }

@media print {
  .site-header, .order-bar, .site-footer, .hero-actions, .order-form { display: none !important; }
  body { background: #fff; }
}
