/* Makert brand stylesheet — served statically (no Vite build, CI-safe).
   Tokens + fonts are the canonical brand values from CLAUDE.md / design/. */

:root {
  --ink: #2A1E18;
  --paper: #FAF3E9;
  --cream: #FFFBF4;
  --jam: #B5374A;
  --jam-deep: #8E2A39;
  --honey: #E6A532;
  --sage: #6B7F58;
  --hairline: #E4D8C6;
  --muted: #7A6A5B;
  --display: 'Bricolage Grotesque', ui-serif, Georgia, serif;
  --body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --accent: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--jam); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }

/* ============================ Auth (guest) ============================ */

body.auth {
  background: var(--paper);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-card {
  width: 100%;
  max-width: 408px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 40px 80px -50px rgba(42, 30, 24, .55);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 22px;
}

.auth-card h1 { font-size: 25px; }

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 22px;
  line-height: 1.5;
}
.auth-sub b { color: var(--ink); }

.field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #4A3A2E;
}

.input {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 11px;
  padding: 11px 13px;
}
.input:focus {
  outline: none;
  border-color: var(--jam);
  box-shadow: 0 0 0 3px rgba(181, 55, 74, .15);
}

.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
  background: var(--jam);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
}
.btn:hover { background: var(--jam-deep); text-decoration: none; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 20px;
  font-size: 13.5px;
}

.remember { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; font-weight: 500; }

.auth-foot { margin-top: 20px; font-size: 13.5px; color: var(--muted); text-align: center; }

.error { color: var(--jam-deep); font-size: 13px; margin-top: 7px; font-weight: 600; }

.status-banner {
  background: rgba(107, 127, 88, .14);
  color: #3E4A33;
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ============================ Dashboard ============================ */

.dash { display: flex; min-height: 100vh; background: var(--paper); }

.side {
  width: 248px;
  flex: none;
  background: var(--ink);
  color: #E9DECB;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--cream);
  letter-spacing: -.02em;
}

.nav { display: flex; flex-direction: column; gap: 3px; font-size: 14px; font-weight: 600; }

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #C9B9A6;
}
.nav-item.active { background: var(--jam); color: var(--cream); }
.nav-item.muted { color: #8C7B69; cursor: default; }
.nav-item span.lbl { display: inline-flex; align-items: center; gap: 9px; }

.badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--jam);
}

.side-foot {
  margin-top: auto;
  padding: 14px 12px 0;
  border-top: 1px solid rgba(255, 251, 244, .12);
}
.side-status { font-size: 12px; color: #9FB389; font-weight: 700; }
.side-link { display: block; font-size: 12.5px; color: #C9B9A6; margin-top: 12px; }
.side-link:hover { color: var(--cream); }

.side-user {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 251, 244, .12);
  font-size: 12.5px;
}
.side-user .who { color: #E9DECB; font-weight: 600; }
.side-user .eml { color: #8C7B69; margin-top: 2px; word-break: break-all; }
.btn-logout {
  margin-top: 10px;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  color: #C9B9A6;
  background: transparent;
  border: 1px solid rgba(255, 251, 244, .18);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.btn-logout:hover { color: var(--cream); border-color: rgba(255, 251, 244, .4); }

.main { flex: 1; padding: 26px 30px; min-width: 0; }

.main-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.main-head h1 { font-size: 28px; }
.subtitle { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-card {
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
}
.stat-card .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.stat-card .v { font-size: 17px; font-weight: 800; margin-top: 2px; }
.stat-card .v.jam { color: var(--jam-deep); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.tab {
  background: #fff;
  border: 1.5px solid var(--hairline);
  padding: 8px 15px;
  border-radius: 999px;
  color: #4A3A2E;
}
.tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.orders-card { background: #fff; border: 1.5px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.orders-head {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1.2fr 1.6fr;
  gap: 16px;
  padding: 12px 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #A8987F;
  border-bottom: 1.5px solid var(--hairline);
}
.orders-head span:last-child { text-align: right; }

.empty { padding: 54px 24px; text-align: center; }
.empty .emoji { font-size: 30px; }
.empty .title { font-family: var(--display); font-weight: 800; font-size: 18px; margin: 12px 0 6px; }
.empty .body { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 42ch; margin: 0 auto; }

.note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* nav-item as a real link (Products/Orders are navigable from M3). */
a.nav-item { text-decoration: none; }
a.nav-item:hover { background: rgba(255, 251, 244, .08); text-decoration: none; }
a.nav-item.active:hover { background: var(--jam); }

/* Flash banner (reuses the sage status tone). */
.flash {
  background: rgba(107, 127, 88, .14);
  color: #3E4A33;
  border: 1px solid rgba(107, 127, 88, .3);
  border-radius: 11px;
  padding: 11px 15px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* A non-full-width button for inline use in toolbars/forms. */
.btn-inline { width: auto; padding: 11px 20px; font-size: 14px; }

.head-actions { display: flex; align-items: center; gap: 14px; }

/* ============================ Catalog (M3) ============================ */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.prod-card {
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prod-card.is-soldout { opacity: .82; }
.prod-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb-empty { font-size: 34px; opacity: .5; }
.prod-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.prod-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.prod-name:hover { color: var(--jam); text-decoration: none; }
.prod-price { font-family: var(--accent); font-size: 26px; font-weight: 700; color: var(--jam-deep); line-height: .7; }
.prod-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.prod-stock { color: var(--muted); }

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.pill-batch { color: #6E5326; background: rgba(230, 165, 60, .2); }
.pill-standing { color: #3E4A33; background: rgba(107, 127, 88, .18); }

.soldout-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--jam-deep);
  background: rgba(142, 42, 57, .1);
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
}

.prod-actions { display: flex; gap: 14px; align-items: center; margin-top: auto; padding-top: 4px; }
.link-action {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  color: var(--jam);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.link-action:hover { color: var(--jam-deep); text-decoration: underline; }
.link-action.danger { color: var(--muted); }
.link-action.danger:hover { color: var(--jam-deep); }

/* ---- Product form ---- */
.prod-form { max-width: 720px; }
.form-card {
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 22px 8px;
  margin-bottom: 18px;
}
.form-card .field:last-child { margin-bottom: 16px; }
.input-narrow { max-width: 240px; }
textarea.input { resize: vertical; font-family: var(--body); }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.label-opt { color: var(--muted); font-weight: 500; }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  margin: 0;
}
.mode-card:has(input:checked) { border-color: var(--jam); box-shadow: 0 0 0 3px rgba(181, 55, 74, .12); }
.mode-card input { margin-right: 6px; }
.mode-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.mode-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
}
.chip-x {
  border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: 15px; line-height: 1; padding: 0 2px;
}
.chip-x:hover { color: var(--jam-deep); }
.chip-add { display: flex; gap: 9px; align-items: center; }

.btn-ghost {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--jam); color: var(--jam-deep); }

.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.photo-thumb { position: relative; width: 110px; height: 88px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--hairline); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(42, 30, 24, .72); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
}
.photo-del:hover { background: var(--jam-deep); }
.hidden-form { display: none; }

.form-actions { display: flex; align-items: center; gap: 16px; margin: 4px 0 30px; }

/* ---- Variants ---- */
.variant-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.variant-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.variant-row .input { flex: 1; min-width: 140px; }
.variant-row .input-narrow { flex: none; }
.variant-add { padding-top: 12px; border-top: 1px dashed var(--hairline); }

/* ---- Danger zone ---- */
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 22px; flex-wrap: wrap; }
.dz-title { font-weight: 700; font-size: 14px; color: var(--jam-deep); }
.btn-danger {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--jam-deep);
  background: #fff;
  border: 1.5px solid var(--jam-deep);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-danger:hover { background: var(--jam-deep); color: #fff; }

/* ============================ Responsive ============================ */

@media (max-width: 760px) {
  .mode-cards { grid-template-columns: 1fr; }
  .dash { flex-direction: column; }
  .side { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; }
  .side-brand { padding: 0; margin-right: auto; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 6px; width: 100%; order: 3; }
  .nav-item { padding: 8px 11px; }
  .side-foot, .side-user { margin-top: 0; border: none; padding: 0; }
  .side-user { width: 100%; display: flex; align-items: center; gap: 12px; }
  .btn-logout { margin-top: 0; margin-left: auto; }
  .main-head { flex-direction: column; }
}

/* ============================ Profile editor (M4) ============================ */

.link-row { display: flex; gap: 10px; margin-bottom: 10px; }
.link-row .input-narrow { flex: 0 0 200px; }
select.input { appearance: none; background-image: none; cursor: pointer; }

/* ============================ Storefront (M4) ============================ */

.sf-body { background: var(--paper); margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.sf-awning svg { display: block; width: 100%; height: 30px; }

.sf { width: 100%; max-width: 1040px; margin: 0 auto; padding: 26px 20px 48px; flex: 1; }

/* hero / identity */
.sf-hero { margin-bottom: 30px; }
.sf-logo {
  width: 84px; height: 84px; border-radius: 20px; overflow: hidden;
  border: 1.5px solid var(--hairline); background: var(--cream);
  display: grid; place-items: center; margin-bottom: 16px;
}
.sf-logo img { width: 100%; height: 100%; object-fit: cover; }
.sf-logo-empty { font-size: 38px; }
.sf-name {
  font-family: var(--display); font-weight: 800; font-size: 30px;
  letter-spacing: -.025em; line-height: 1.04; margin: 0; color: var(--ink);
}
.sf-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.sf-about { font-size: 15px; line-height: 1.6; color: #4A3A2E; margin: 16px 0 0; max-width: 60ch; }
.sf-pay {
  background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 14px;
  padding: 13px 16px; margin-top: 18px;
}
.sf-pay-label { font-size: 12px; color: var(--muted); }
.sf-pay-note { font-size: 14px; font-weight: 700; margin-top: 3px; color: var(--ink); }
.sf-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.sf-link { font-size: 13.5px; font-weight: 600; color: var(--jam-deep); }
.sf-link:hover { color: var(--jam); }

/* product sections */
.sf-section { margin-bottom: 34px; }
.sf-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sf-section-head h2 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0; color: var(--ink); }
.sf-section-note { font-size: 12.5px; color: var(--muted); }
.sf-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.sf-card {
  background: #fff; border: 1.5px solid var(--hairline); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 16px 34px -26px rgba(42, 30, 24, .4);
}
.sf-card.is-soldout { opacity: .62; }
.sf-card-photo { aspect-ratio: 16 / 10; background: var(--paper); display: grid; place-items: center; }
.sf-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.sf-card-photo-empty { font-size: 38px; opacity: .55; }
.sf-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sf-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sf-card-name { font-family: var(--body); font-weight: 700; font-size: 16px; margin: 0; color: var(--ink); }
.sf-price { font-family: var(--accent); font-weight: 700; font-size: 28px; color: var(--jam); line-height: .7; transform: rotate(-4deg); }
.sf-card.is-soldout .sf-price { color: var(--muted); }
.sf-card-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.sf-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sf-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sf-tag-pre { color: #3E4A33; background: rgba(107, 127, 88, .14); }
.sf-tag-out { color: var(--jam-deep); background: rgba(142, 42, 57, .1); }
.sf-stock { font-size: 12.5px; color: var(--muted); }
.sf-options { font-size: 12.5px; color: var(--muted); }
.sf-options-label { font-weight: 700; color: var(--ink); }
.sf-options-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sf-options-price { color: var(--ink); font-weight: 600; }
.sf-allergens { font-size: 12px; color: var(--muted); font-style: italic; }

.sf-empty {
  background: var(--cream); border: 1.5px dashed var(--hairline); border-radius: 16px;
  padding: 44px 24px; text-align: center; color: var(--muted);
}
.sf-empty-emoji { font-size: 36px; }
.sf-empty-title { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); margin: 10px 0 6px; }
.sf-empty p { margin: 0; }

.sf-foot { text-align: center; padding: 22px 20px 30px; }
.sf-foot a { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.sf-foot a:hover { color: var(--jam); }

/* desktop: identity becomes a left rail beside the catalog; cards go two-up */
@media (min-width: 880px) {
  .sf { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; padding-top: 36px; }
  .sf-hero { margin-bottom: 0; position: sticky; top: 28px; }
  .sf-name { font-size: 32px; }
  .sf-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   M5 — batches (admin) + availability states (storefront)
   ============================================================================ */

/* status pills shared by the batch hub + rounds table */
.pill-open { color: #3E4A33; background: rgba(107, 127, 88, .18); }
.pill-closed { color: var(--muted); background: rgba(122, 106, 91, .14); }
.pill-out { color: var(--jam-deep); background: rgba(142, 42, 57, .1); }

/* batches hub: one card per batch product */
.batch-hub { display: flex; flex-direction: column; gap: 12px; }
.batch-hub-card {
  background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
}
.batch-hub-name { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); }
.batch-hub-name:hover { color: var(--jam); }
.batch-hub-state { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.batch-hub-detail { font-size: 12.5px; color: var(--muted); }
.batch-hub-actions { display: flex; gap: 14px; align-items: center; }
.batch-hub-count { font-size: 12.5px; color: var(--muted); }

/* rounds table */
.batch-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.batch-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; padding: 0 14px 10px; border-bottom: 1.5px solid var(--hairline);
}
.batch-table td { padding: 13px 14px; border-bottom: 1px solid var(--hairline); color: var(--ink); }
.batch-table tr:last-child td { border-bottom: none; }
.batch-table tr.is-dim td { color: var(--muted); }
.batch-row-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.batch-row-actions form { display: inline; }
.link-action.danger { color: var(--jam-deep); }

/* round create/edit form */
.form-card-head { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); }
.batch-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.batch-form-note { grid-column: 1 / -1; }
@media (max-width: 640px) { .batch-form-grid { grid-template-columns: 1fr; } }

/* storefront availability states */
.sf-tag-closed { color: var(--muted); background: rgba(122, 106, 91, .12); }
.sf-stock-batch { color: var(--sage); font-weight: 600; }

/* ============================================================================
   M6 — buyer flow: add-to-cart, cart, checkout, confirmation, account
   ============================================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.status-error { background: rgba(142, 42, 57, .1); color: var(--jam-deep); border-color: rgba(142, 42, 57, .25); }
.pill-pending { color: #6E5326; background: rgba(230, 165, 60, .22); }
.field-opt { color: var(--muted); font-weight: 500; font-size: 12.5px; }

/* add-to-cart form on a storefront card */
.sf-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.sf-add-variant { flex: 1 1 140px; min-width: 120px; }
.sf-add-qty { width: 64px; flex: none; text-align: center; }
.sf-add-btn { width: auto; flex: none; padding: 10px 18px; font-size: 14px; }

/* cart fab on the storefront + the shop top bar on buyer pages */
.sf-cart-fab {
  position: fixed; top: 40px; right: 18px; z-index: 20;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--cream); font-weight: 700; font-size: 13.5px;
  padding: 9px 15px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(42, 30, 24, .7);
}
.sf-cart-fab:hover { background: var(--jam-deep); color: #fff; }

.shop-bar {
  max-width: 1040px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px 0;
}
.shop-bar-name { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); }
.shop-bar-name:hover { color: var(--jam); }
.shop-bar-nav { display: flex; align-items: center; gap: 18px; }
.shop-bar-nav a { font-size: 14px; font-weight: 600; color: var(--muted); }
.shop-bar-nav a:hover { color: var(--jam-deep); }
.shop-bar-cart { display: inline-flex; align-items: center; gap: 6px; color: var(--ink) !important; }
.shop-bar-badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--jam); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 999px;
}

.shop-main { display: block; }
.shop-page { max-width: 640px; margin: 0 auto; }
.shop-h1 { font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -.02em; color: var(--ink); margin: 8px 0 18px; }

/* cart */
.cart-list { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--hairline); border-radius: 16px; overflow: hidden; background: #fff; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center;
  padding: 15px 18px; border-bottom: 1px solid var(--hairline);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-name { font-weight: 700; color: var(--ink); }
.cart-line-variant { font-size: 13px; color: var(--muted); }
.cart-line-unit { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.input-qty { width: 60px; text-align: center; padding: 8px; margin: 0; }
.cart-line-sum { font-weight: 700; color: var(--ink); min-width: 64px; text-align: right; }
.cart-foot { margin-top: 18px; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 16px; padding: 18px 20px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--ink); }
.cart-total-amount { font-family: var(--accent); font-size: 30px; color: var(--jam); transform: rotate(-3deg); }
.cart-pay-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 16px; }
.cart-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }

/* checkout */
.checkout-summary, .confirm-block { background: #fff; border: 1.5px solid var(--hairline); border-radius: 16px; padding: 16px 20px; margin-bottom: 20px; }
.checkout-h2 { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); margin: 0 0 12px; }
.checkout-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checkout-items li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink); }
.checkout-item-variant { color: var(--muted); }
.checkout-total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-weight: 700; color: var(--ink); }
.checkout-form { margin-top: 0; }
.checkout-as { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.radio-row { display: flex; gap: 20px; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); cursor: pointer; }
.checkout-pay-hint { font-size: 13px; line-height: 1.55; color: #4A3A2E; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 12px; padding: 12px 14px; margin: 6px 0 20px; }

/* account-from-checkout reveal (CSS-only, no JS) */
.save-toggle { position: absolute; opacity: 0; width: 0; height: 0; }
.save-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 4px 0; }
.save-label::before {
  content: ""; width: 18px; height: 18px; border: 1.5px solid var(--muted); border-radius: 5px; background: #fff; display: inline-block;
}
.save-toggle:checked + .save-label::before { background: var(--jam); border-color: var(--jam); }
.save-toggle:focus-visible + .save-label::before { outline: 2px solid var(--honey); outline-offset: 2px; }
.save-reveal { display: none; margin-top: 12px; padding-left: 26px; }
.save-toggle:checked ~ .save-reveal { display: block; }

/* confirmation */
.confirm-head { text-align: center; margin-bottom: 24px; }
.confirm-check {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 999px;
  display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--sage);
}
.confirm-lead { color: var(--muted); margin: 0 0 10px; }
.confirm-meta { font-size: 13px; color: var(--muted); }
.confirm-pay { background: var(--cream); border: 1.5px solid var(--honey); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.confirm-pay-label { font-weight: 700; color: var(--ink); }
.confirm-pay-note { font-size: 14.5px; line-height: 1.55; color: #4A3A2E; margin: 6px 0 10px; white-space: pre-line; }
.confirm-pay-amount { font-size: 14px; color: var(--ink); }
.confirm-fulfil { color: var(--ink); line-height: 1.5; margin: 0 0 8px; }
.confirm-contact { font-size: 13px; color: var(--muted); margin: 0; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 4px; }

/* account */
.account-narrow { max-width: 420px; }
.account-sub { color: var(--muted); margin: -8px 0 18px; }
.account-foot { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.55; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px; padding: 14px 18px;
}
.order-row:hover { border-color: var(--jam); }
.order-row-id { font-weight: 700; color: var(--ink); }
.order-row-items { font-size: 13px; color: var(--muted); margin-top: 2px; }
.order-row-right { display: flex; align-items: center; gap: 14px; }
.order-row-total { font-weight: 700; color: var(--ink); }

@media (max-width: 560px) {
  .cart-line { grid-template-columns: 1fr auto; row-gap: 8px; }
  .cart-line-sum { grid-column: 2; }
  .sf-cart-fab { top: 38px; right: 12px; }
}

/* ============================ Order desk (M7) ============================ */

.muted { color: var(--muted); }

.flash-error {
  background: rgba(181, 55, 74, .1);
  color: var(--jam-deep);
  border-color: rgba(181, 55, 74, .3);
}

/* Order list rows — same grid as the .orders-head header. */
.order-line {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1.2fr 1.6fr;
  gap: 16px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid #F0E6D4;
}
.order-line:last-child { border-bottom: none; }
.order-customer-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.order-customer-name:hover { color: var(--jam); text-decoration: none; }
.order-customer-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.order-cell-items { font-size: 13.5px; }
.order-cell-collection { font-size: 13px; }
.order-collection-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.order-cell-action { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Pill-shaped action buttons (match the dashboard design). */
.btn-pill {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-pill-go { background: var(--sage); color: #fff; }
.btn-pill-go:hover { background: #5a6c4a; }
.btn-pill-dark { background: var(--ink); color: var(--cream); }
.btn-pill-dark:hover { background: #1f150f; }
.btn-pill-decline { background: #fff; color: var(--jam-deep); border-color: var(--hairline); }
.btn-pill-decline:hover { border-color: var(--jam); }

/* Status pills (the lifecycle axis). pending is defined above with the storefront pills. */
.pill-confirmed { color: #3E4A33; background: rgba(107, 127, 88, .18); }
.pill-fulfilled { color: var(--cream); background: var(--ink); }
.pill-cancelled { color: var(--jam-deep); background: rgba(142, 42, 57, .12); }

/* Order detail. */
.order-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 900px;
}
.order-detail-block {
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px;
}
.order-detail-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #A8987F;
  margin-bottom: 10px;
}
.order-detail-name { font-weight: 700; font-size: 15px; }
.order-detail-line { font-size: 13.5px; margin-top: 4px; }
.order-detail-tag { font-size: 12.5px; color: var(--sage); font-weight: 600; margin-top: 6px; }
.order-detail-items { list-style: none; padding: 0; margin: 0; }
.order-detail-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--hairline);
}
.order-detail-price { font-weight: 700; }
.order-detail-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  margin-top: 10px;
}
.order-progress { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.progress-step {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--hairline);
  color: var(--muted);
}
.progress-step.is-done { background: var(--sage); color: #fff; border-color: var(--sage); }
.progress-step.is-cancelled { background: rgba(142, 42, 57, .12); color: var(--jam-deep); border-color: transparent; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Run sheet. */
.runsheet-batch {
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.runsheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.runsheet-product { font-family: var(--display); font-weight: 800; font-size: 18px; }
.runsheet-date { font-size: 13px; color: var(--muted); margin-top: 3px; }
.runsheet-totals { display: flex; gap: 12px; }
.runsheet-buyers { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1.5px solid var(--hairline); }
.runsheet-buyers li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  padding: 6px 0;
}
.runsheet-buyers li a { font-weight: 700; color: var(--ink); }
.runsheet-buyers li a:hover { color: var(--jam); }
.runsheet-qty { margin-left: auto; font-weight: 700; color: var(--jam-deep); }
.runsheet-empty { font-size: 13px; color: var(--muted); margin-top: 12px; }

@media (max-width: 720px) {
  .order-line { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .order-cell-action { justify-content: flex-start; }
  .orders-head { display: none; }
}

/* ============================================================================
   M7b — payments: status pills, settings page, checkout + confirmation methods
   ============================================================================ */

/* Payment status pills (the payment axis — orthogonal to the lifecycle pills). */
.pill-pay-awaiting_payment { color: #6E5326; background: rgba(230, 165, 60, .22); }
.pill-pay-paid { color: #3E4A33; background: rgba(107, 127, 88, .2); }
.pill-pay-not_required { color: var(--muted); background: rgba(122, 106, 91, .14); }

/* Payment settings page (admin). */
.section-h { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; margin: 26px 0 12px; color: var(--ink); }
.card-h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; margin: 0 0 14px; color: var(--ink); }
.radio-block { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; line-height: 1.45; }
.radio-block input { margin-top: 4px; }
.field-hint.warn { color: var(--jam-deep); }

.pay-method { position: relative; }
.pay-method-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 14px; align-items: end; }
.field-narrow { max-width: 90px; }
.input-mini { width: 70px; }
.pay-method-qr { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.qr-thumb { width: 96px; height: 96px; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; background: #fff; }
.qr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.pay-method-delete { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.inline-form { display: inline; }

/* Checkout — required payment method selection. */
.checkout-pay-required { color: var(--muted); margin: -4px 0 14px; }
.pay-options { display: grid; gap: 12px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; background: var(--cream); }
.pay-option:has(input:checked) { border-color: var(--jam); box-shadow: 0 0 0 1px var(--jam); }
.pay-option-body { display: flex; flex-direction: column; gap: 4px; }
.pay-option-name { font-weight: 600; color: var(--ink); }
.pay-option-handle { font-size: 14px; color: var(--muted); }
.pay-option-qr { width: 120px; height: 120px; object-fit: contain; margin-top: 6px; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; }
.pay-attest { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 8px; line-height: 1.4; }
.pay-attest input { margin-top: 3px; }

/* Confirmation — payment methods + QRs. */
.confirm-pay-instructions { margin: 8px 0; color: var(--ink); }
.confirm-pay-methods { display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 0; }
.confirm-pay-method { padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: #fff; min-width: 140px; }
.confirm-pay-method.is-chosen { border-color: var(--jam); box-shadow: 0 0 0 1px var(--jam); }
.confirm-pay-method-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.confirm-pay-method-name { font-weight: 600; color: var(--ink); }
.confirm-pay-method-handle { font-size: 13px; color: var(--muted); }
.confirm-pay-method-qr { width: 140px; height: 140px; object-fit: contain; }

@media (max-width: 720px) {
  .pay-method-grid { grid-template-columns: 1fr; }
}

/* ============================ Central parent site (M9a) ============================ */
/* The makert.co landing, directory and find-your-shop pages. Brand tokens from :root. */

.ct-body { background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.6; }
.ct-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.ct-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 18px; flex-wrap: wrap; }
.ct-brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.03em; color: var(--ink); }
.ct-brand:hover { text-decoration: none; }
.ct-brand svg { width: 34px; height: 34px; display: block; }
.ct-nav-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.ct-nav-links a { color: var(--ink); }
.ct-nav-cta { background: var(--ink); color: var(--cream) !important; padding: 11px 18px; border-radius: 999px; }
.ct-nav-cta:hover { text-decoration: none; transform: translateY(-1px); }

.ct-foot-wrap { padding: 46px 0; border-top: 1.5px solid var(--hairline); margin-top: 30px; }
.ct-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.ct-foot-links { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.ct-foot-links a { color: var(--ink); }
.ct-tagline { font-family: var(--accent); color: var(--jam); font-size: 20px; }
.ct-foot small { color: var(--muted); }

/* ---- landing ---- */
.lp-eyebrow { display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.lp-eyebrow-jam { color: var(--jam); }
.lp-eyebrow-honey { color: var(--honey); }
.lp-eyebrow-sage { color: var(--sage); }

.lp-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding: 36px 0 70px; }
.lp-h1 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; font-size: clamp(40px, 6vw, 64px); }
.lp-h1 em { font-style: normal; color: var(--jam); white-space: nowrap; }
.lp-lead { font-size: 19px; color: var(--muted); max-width: 32ch; margin: 22px 0 30px; }
.lp-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lp-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--body); font-weight: 700; font-size: 16px; border: none; cursor: pointer; border-radius: 999px; padding: 15px 26px; transition: transform .15s ease; }
.lp-btn:hover { text-decoration: none; transform: translateY(-2px); }
.lp-btn-primary { background: var(--jam); color: var(--cream); box-shadow: 0 10px 22px -12px var(--jam); }
.lp-btn-text { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--honey); padding: 2px 0; }
.lp-btn-text:hover { text-decoration: none; }
.lp-hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.lp-shopframe { position: relative; }
.lp-shop { position: relative; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(42,30,24,.35); padding: 0 0 22px; overflow: hidden; max-width: 380px; margin-left: auto; }
.lp-awn { display: block; width: 100%; height: 40px; }
.lp-shop-head { padding: 20px 22px 4px; }
.lp-shop-nm { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.lp-shop-url { font-size: 13px; color: var(--muted); font-weight: 500; }
.lp-prod { display: flex; gap: 14px; align-items: center; margin: 18px 22px 0; padding: 14px; border: 1.5px solid var(--hairline); border-radius: 14px; background: #fff; }
.lp-thumb { width: 54px; height: 54px; border-radius: 10px; flex: none; background: radial-gradient(circle at 35% 30%, #F0C46B, #D98C2B); display: grid; place-items: center; font-size: 28px; }
.lp-pmeta { flex: 1; min-width: 0; }
.lp-pname { font-weight: 700; font-size: 15px; }
.lp-ppill { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--sage); background: rgba(107,127,88,.12); padding: 3px 9px; border-radius: 999px; }
.lp-price { font-family: var(--accent); font-size: 30px; color: var(--jam); line-height: .8; transform: rotate(-6deg); }
.lp-order { margin: 16px 22px 0; width: calc(100% - 44px); justify-content: center; background: var(--ink); color: var(--cream); }
.lp-sticker { position: absolute; top: -16px; left: -20px; background: var(--honey); color: var(--ink); font-family: var(--accent); font-size: 21px; font-weight: 700; padding: 8px 16px; border-radius: 14px; transform: rotate(-7deg); box-shadow: 0 18px 40px -24px rgba(42,30,24,.35); z-index: 3; }

.lp-section { padding: 64px 0; }
.lp-sec-head { max-width: 60ch; margin-bottom: 40px; }
.lp-sec-head h2 { font-size: clamp(28px, 4vw, 40px); }
.lp-sec-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.lp-center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-center p { margin-left: auto; margin-right: auto; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 1.5px solid var(--hairline); padding-top: 38px; }
.lp-num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--honey); letter-spacing: .06em; }
.lp-step h3 { font-size: 20px; margin: 12px 0 8px; }
.lp-step p { color: var(--muted); font-size: 16px; }

.lp-included { background: var(--ink); color: var(--cream); padding: 64px 0; }
.lp-included .lp-sec-head h2 { color: var(--cream); }
.lp-included .lp-sec-head p { color: #C9B9A6; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-card { background: rgba(255,251,244,.05); border: 1px solid rgba(255,251,244,.14); border-radius: 16px; padding: 24px; }
.lp-card .lp-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(230,165,60,.16); font-size: 22px; }
.lp-card h3 { font-size: 18px; color: var(--cream); margin-bottom: 6px; }
.lp-card p { font-size: 15px; color: #C9B9A6; line-height: 1.55; }
.lp-card a { color: var(--honey); }

.lp-price-card { max-width: 560px; margin: 0 auto; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 22px; box-shadow: 0 18px 40px -24px rgba(42,30,24,.35); padding: 42px; text-align: center; position: relative; }
.lp-big { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.02em; }
.lp-big span { color: var(--jam); }
.lp-price-sub { color: var(--muted); margin: 14px auto 26px; max-width: 42ch; }
.lp-free { font-family: var(--accent); color: var(--sage); font-size: 22px; display: block; margin-top: 18px; }
.lp-pricetag { position: absolute; top: -18px; right: -14px; background: var(--jam); color: var(--cream); font-family: var(--accent); font-size: 20px; font-weight: 700; padding: 8px 16px; border-radius: 14px; transform: rotate(6deg); box-shadow: 0 18px 40px -24px rgba(42,30,24,.35); }

.lp-dir { text-align: center; }
.lp-dir-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.lp-dir-chip { background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 14px; padding: 12px 18px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.lp-dir-chip:hover { text-decoration: none; border-color: var(--jam); transform: translateY(-1px); }
.lp-dir-glyph { font-size: 22px; }
.lp-dir-nm { font-weight: 700; font-size: 15px; }
.lp-dir-loc { font-size: 13px; color: var(--muted); }
.lp-dir-more { margin-top: 26px; font-weight: 600; }

.lp-signup { background: linear-gradient(180deg, var(--paper), #F3E7D4); padding: 64px 0; }
.lp-cta-card { max-width: 620px; margin: 0 auto; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 22px; box-shadow: 0 18px 40px -24px rgba(42,30,24,.35); padding: 40px; text-align: center; }
.lp-cta-card h2 { font-size: clamp(26px, 4vw, 34px); }
.lp-cta-sub { color: var(--muted); margin: 12px auto 24px; max-width: 44ch; }

/* ---- directory page ---- */
.dir-page { padding-top: 16px; padding-bottom: 30px; }
.dir-head { max-width: 60ch; margin-bottom: 26px; }
.dir-head h1 { font-size: clamp(30px, 4.5vw, 44px); }
.dir-head p { color: var(--muted); margin-top: 10px; }
.dir-filters { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 18px; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 16px; margin-bottom: 28px; }
.dir-filter { display: flex; flex-direction: column; gap: 6px; }
.dir-filter select { font-family: var(--body); font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--hairline); border-radius: 11px; padding: 10px 13px; min-width: 220px; }
.dir-clear { font-weight: 600; font-size: 14px; align-self: center; }
.dir-empty { color: var(--muted); padding: 40px 0; }
.dir-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dir-card a { display: flex; gap: 14px; align-items: center; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 16px; padding: 18px; color: var(--ink); height: 100%; }
.dir-card a:hover { text-decoration: none; border-color: var(--jam); transform: translateY(-2px); transition: transform .15s ease, border-color .15s ease; }
.dir-logo { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.dir-logo img { width: 64px; height: 64px; object-fit: cover; }
.dir-glyph { font-size: 34px; }
.dir-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dir-name { font-family: var(--display); font-weight: 800; font-size: 18px; }
.dir-cat { font-size: 13px; color: var(--sage); font-weight: 600; }
.dir-loc { font-size: 13px; color: var(--muted); }
.dir-link { font-size: 13px; font-weight: 700; color: var(--jam); margin-top: 4px; }
.dir-foot-cta { margin-top: 30px; text-align: center; color: var(--muted); }
.dir-foot-cta a { font-weight: 700; }

/* ---- find your shop ---- */
.find-page { display: grid; place-items: center; padding: 50px 24px 30px; }
.find-card { width: 100%; max-width: 460px; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 18px; padding: 34px 32px 30px; box-shadow: 0 40px 80px -50px rgba(42,30,24,.55); text-align: center; }
.find-card h1 { font-size: 27px; }
.find-card form { text-align: left; margin-top: 18px; }
.find-sub { color: var(--muted); font-size: 15px; margin: 8px 0 4px; line-height: 1.5; }
.find-error { background: rgba(181,55,74,.1); border: 1.5px solid var(--jam); color: var(--jam-deep); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 16px 0 4px; text-align: left; }
.find-foot { margin-top: 18px; font-size: 14px; color: var(--muted); }
.find-card .btn { margin-top: 6px; }

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 40px; padding: 20px 0 44px; }
  .lp-lead { max-width: none; }
  .lp-shop { margin: 0 auto; }
  .lp-steps { grid-template-columns: 1fr; gap: 26px; }
  .lp-cards { grid-template-columns: 1fr; }
  .dir-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 * M9-provision Part 1 — intake form + operator console
 * ------------------------------------------------------------------ */

/* Intake form (central /apply) */
.apply-page { padding-top: 40px; padding-bottom: 72px; max-width: 760px; }
.apply-intro h1 { font-size: 34px; margin: 0 0 10px; }
.apply-intro p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 28px; }
.apply-done { background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 18px; padding: 40px 36px; text-align: center; }
.apply-done h1 { font-size: 30px; margin: 0 0 12px; }
.apply-done p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.apply-errors { background: #fbeaec; border: 1.5px solid var(--jam); color: var(--jam-deep); border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; }
.apply-errors ul { margin: 8px 0 0; padding-left: 20px; }
.apply-section { border: 1.5px solid var(--hairline); border-radius: 16px; padding: 22px 24px 8px; margin: 0 0 22px; background: var(--cream); }
.apply-section legend { font-family: var(--display); font-weight: 700; font-size: 18px; padding: 0 8px; color: var(--ink); }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apply-hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.apply-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.apply-submit { margin-top: 8px; }
.req { color: var(--jam); }

/* Operator console */
.op-body { background: var(--paper); min-height: 100vh; }
.op-top { background: var(--ink); color: var(--cream); }
.op-top-inner { max-width: 1080px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.op-brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-family: var(--display); font-weight: 700; font-size: 19px; }
.op-brand:hover { text-decoration: none; }
.op-brand span { color: var(--honey); }
.op-nav { display: flex; align-items: center; gap: 18px; }
.op-nav a { color: var(--cream); opacity: .85; font-weight: 600; }
.op-nav a:hover { opacity: 1; text-decoration: none; }
.op-logout { background: none; border: 1px solid rgba(255,251,244,.3); color: var(--cream); border-radius: 8px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.op-logout:hover { border-color: rgba(255,251,244,.6); }
.op-wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.op-heading { font-size: 30px; margin: 0 0 20px; }
.op-flash { background: #eef3e8; border: 1.5px solid var(--sage); color: #46583a; border-radius: 12px; padding: 12px 18px; margin-bottom: 22px; }
.op-empty { color: var(--muted); font-size: 16px; }
.op-link { font-weight: 600; }
.op-muted { color: var(--muted); font-size: 13px; }

.op-table { width: 100%; border-collapse: collapse; background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.op-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 16px; border-bottom: 1.5px solid var(--hairline); }
.op-table td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.op-table tr:last-child td { border-bottom: none; }
.op-table td .op-muted { display: block; }

.op-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--hairline); background: #fff; }
.op-pill-new { background: #fbeaec; color: var(--jam-deep); border-color: #eccdd2; }
.op-pill-reviewing { background: #fdf2dc; color: #946a16; border-color: #efd9a8; }
.op-pill-agreed { background: #eef3e8; color: #46583a; border-color: #cfe0c0; }
.op-pill-provisioned { background: #e7eef5; color: #3a566e; border-color: #c2d4e3; }
.op-pill-declined { background: #efeae6; color: var(--muted); }

.op-detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.op-back { font-size: 14px; font-weight: 600; color: var(--muted); }
.op-detail-head .op-heading { margin: 8px 0 10px; }
.op-card { background: var(--cream); border: 1.5px solid var(--hairline); border-radius: 16px; padding: 22px 26px; margin-bottom: 18px; }
.op-card h2 { font-family: var(--display); font-size: 18px; margin: 0 0 14px; }
.op-prose { white-space: pre-line; line-height: 1.6; margin: 0; }
.op-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.op-dl dt { color: var(--muted); font-size: 14px; }
.op-dl dd { margin: 0; }
.op-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.op-asset { margin: 0; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: #fff; }
.op-asset img { display: block; width: 100%; height: 180px; object-fit: cover; background: var(--paper); }
.op-asset figcaption { padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.op-asset-kind { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-right: 6px; }

@media (max-width: 640px) {
  .apply-grid, .apply-photo { grid-template-columns: 1fr; }
  .op-detail-head { flex-direction: column; align-items: stretch; }
  .op-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .op-dl dd { margin-bottom: 8px; }
}

/* ============================================================================
   M9-provision Part 2 — operator provisioning form + maker catalog import
   ========================================================================== */

/* Operator: detail-head actions + provisioning form + success/error flashes */
.op-head-actions { display: flex; gap: 10px; align-items: center; }
.op-flash-error { background: #fbeceb; border: 1.5px solid var(--jam); color: var(--jam-deep); border-radius: 12px; padding: 12px 18px; margin-bottom: 22px; }
.op-card-success { border-color: var(--sage); background: #f4f8ef; }
.op-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--ink); color: var(--cream); padding: 3px 8px; border-radius: 6px; font-size: 14px; }

.op-form { max-width: 640px; }
.op-field { display: block; margin-bottom: 16px; }
.op-field:last-child { margin-bottom: 0; }
.op-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.op-field input[type="text"], .op-field input[type="email"], .op-field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--hairline); border-radius: 10px;
  background: var(--cream); color: var(--ink); font: inherit;
}
.op-field input:focus, .op-field select:focus { outline: none; border-color: var(--honey); }
.op-subdomain { display: flex; align-items: stretch; }
.op-subdomain input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.op-subdomain-suffix { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--hairline); border-left: 0; border-radius: 0 10px 10px 0; background: var(--paper); color: var(--muted); font-size: 14px; }
.op-hint { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.op-error { display: block; color: var(--jam); font-size: 13px; margin-top: 5px; }
.op-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }

/* Maker dashboard: products header actions + import page */
.main-head-actions { display: flex; gap: 10px; align-items: center; }
.import-form { max-width: 680px; }
.import-or { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.import-result { margin-bottom: 18px; }
.import-result h2 { font-family: var(--display); font-size: 18px; margin: 0 0 12px; }
.import-ok { color: #46583a; }
.import-skip { color: var(--muted); }
.import-err { color: var(--jam-deep); }
.import-list { margin: 4px 0 14px 18px; font-size: 14px; color: var(--ink); }
.import-help h2 { font-family: var(--display); font-size: 18px; margin: 0 0 12px; }
.import-help p { margin: 0 0 12px; line-height: 1.5; }
.import-help code { background: var(--paper); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.import-sample { background: var(--ink); color: var(--cream); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.import-note { color: var(--muted); font-size: 13px; }
