/* style.css — the look of every page.
   All 4 HTML pages link to this one file, so a change here updates the whole site.
   Colors and fonts below are pulled from the real Localist Shopify site so
   this prototype matches the brand. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Questrial&display=swap');

:root {
  --color-bg: #f7f0e8;        /* cream page background */
  --color-surface: #fff8f1;   /* card / hero-box background */
  --color-tan: #e8dfc8;       /* alternating section background */
  --color-sage: #dce5e2;      /* announcement bar background */
  --color-teal: #1f3a4a;      /* header + footer */
  --color-teal-light: #2c4f63;
  --color-maroon: #422225;    /* primary button */
  --color-maroon-dark: #301818;
  --color-text: #3b302f;      /* body text */
  --color-muted: #776b64;
  --color-border: #e2d6c3;
  --color-periwinkle: #7c8bc4;  /* dashboard accent (the sidebar used to be filled with it) */
  --color-periwinkle-deep: #4a5896;  /* the same blue, dark enough to read as text on cream (active sidebar link) */
  --color-ink: #24211f;         /* dashboard card borders/dot-grid — near-black, distinct from --color-text's warm brown */
  --radius: 10px;
  --max-width: 1100px;
  --font-heading: 'Archivo', -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Questrial', -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3, h4, .nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Announcement bar ---------- */

.announcement-bar {
  background: var(--color-sage);
  color: var(--color-text);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--color-teal);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-self: center;
}

.nav-brand img {
  height: 28px;
}

.nav-brand .brand-accent {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  color: #f7f0e8;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
}

/* ---------- Nav: dropdowns (Learn More, Account) ---------- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: #f7f0e8;
  opacity: 0.85;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
}

.nav-dropdown-toggle:hover {
  opacity: 1;
}

.nav-caret {
  font-size: 0.6rem;
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  flex-direction: column;
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding: 0.5rem;
  min-width: 180px;
  z-index: 20;
}

.nav-dropdown.open .nav-dropdown-panel {
  display: flex;
}

.nav-dropdown-panel a {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--color-text);
  opacity: 1;
  white-space: nowrap;
}

.nav-dropdown-panel a:hover {
  background: var(--color-bg);
  text-decoration: none;
}

.nav-account-panel {
  right: 0;
  left: auto;
}

.nav-account-name {
  margin: 0.2rem 0.8rem 0.4rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ---------- Nav: search + icons ---------- */

/* Two copies of the same search form live in the markup: one sits in
   .nav-icons (desktop, next to the cart), one sits inside .nav-links
   (so it stacks into the mobile hamburger panel, where there's no room
   for an inline search box next to the icons). Only one is visible at
   a time — see the mobile override below. js/script.js's
   initNavSearch() binds both by class, not id, since ids must stay
   unique on the page. */
.nav-search.nav-search-mobile {
  display: none;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 150px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.nav-search button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  padding: 0;
}

.nav-search button svg,
.nav-icon-link svg {
  width: 20px;
  height: 20px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.nav-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.nav-icon-link:hover {
  opacity: 0.85;
}

.nav-badge[hidden] {
  display: none;
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-maroon);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ---------- Layout helpers ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.container.narrow {
  max-width: 480px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-muted);
  margin-top: 0;
  margin-bottom: 2rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-maroon);
  color: #fff9f3;
}

.btn-primary:hover {
  background: var(--color-maroon-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-maroon);
  color: var(--color-maroon);
}

/* ---------- Hero (homepage) ---------- */

.hero {
  background: linear-gradient(rgba(20, 35, 44, 0.35), rgba(20, 35, 44, 0.35)),
              url("../images/hero-knitting.jpg") center/cover no-repeat;
  padding: 4rem 1.25rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-box {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 3rem;
  max-width: 560px;
}

.hero-box h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-box p {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Mission section ---------- */

.mission {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.mission h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.mission p {
  max-width: 600px;
  margin: 0 auto 1.25rem;
  color: var(--color-muted);
}

.mission .mission-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text);
  margin-top: 2rem;
}

/* ---------- Split cards (For Creators / For Hosts) ---------- */

.split-section {
  background: var(--color-tan);
  padding: 3rem 1.25rem;
}

.split-card {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
}

.split-card:last-child {
  margin-bottom: 0;
}

.split-media {
  background: linear-gradient(135deg, #cfc39f, #a99a72) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.split-media.creators-photo {
  background-image: url("../images/creators-leather.jpg");
}

.split-media.hosts-photo {
  background-image: url("../images/hosts-coffee.jpg");
}

.split-card:nth-child(even) .split-media {
  order: 2;
}

.split-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-body h3 {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.split-body p {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.split-body .btn {
  align-self: flex-start;
}

.host-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  /* Leaflet's internal panes/controls use z-index values up to ~1000,
     which without this would climb above the sticky header (z-index 10)
     once you scroll past it. Giving the map its own stacking context,
     capped below the header's, keeps everything inside it contained. */
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* ---------- Product masonry grid (products.html) ----------
   A Pinterest-style layout: images keep their natural aspect ratio
   instead of a fixed card height, and flow into columns so shorter
   images sit closer together instead of leaving gaps. CSS columns is
   the simplest way to get that — no JS layout code needed. */

.product-masonry {
  columns: 4;
  column-gap: 1.25rem;
}

@media (max-width: 900px) {
  .product-masonry {
    columns: 2;
  }
}

@media (max-width: 520px) {
  .product-masonry {
    columns: 1;
  }
}

.product-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
}

.product-card-image-wrap {
  position: relative;
}

.product-card-image {
  display: block;
  width: 100%;
  height: auto;
}

.product-card-image-placeholder {
  aspect-ratio: 4 / 3;
  background-color: var(--color-tan);
  background-image: linear-gradient(135deg, #cfc39f, #a99a72);
}

.product-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.product-card-overlay h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.3;
}

.product-card-body {
  padding: 0.75rem 1rem 1rem;
}

.product-card-meta {
  margin: 0 0 0.2rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.product-card-price {
  margin: 0;
  font-weight: 600;
}

/* ---------- Card grid (Creators, Products, Hosts listing pages) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Fixed-column variant for the public browsing grids (Products, Creators,
   Hosts): always 4 across on desktop, 2 on mobile, regardless of how many
   cards there are. */
.card-grid-fixed {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 4 / 3;
  background-color: var(--color-tan);
  background-image: linear-gradient(135deg, #cfc39f, #a99a72);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.card-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.card-price {
  font-weight: 700;
  color: var(--color-maroon);
  margin: 0 0 0.75rem;
}

.card-body .btn {
  margin-top: auto;
  text-align: center;
}

/* ---------- Product page ---------- */

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-gallery .card-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  font-size: 4rem;
}

.product-info h1 {
  margin-top: 0;
  font-size: 2rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-maroon);
  margin: 0.5rem 0 1.25rem;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.5rem;
}

.product-meta-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.product-meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.product-meta-list span:first-child {
  color: var(--color-muted);
}

.order-item-note {
  display: block;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

/* ---------- Signup form (homepage) ---------- */

.signup {
  padding: 3.5rem 1.25rem;
}

.signup-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.signup h2 {
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.signup input,
.signup textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.signup textarea {
  min-height: 100px;
  resize: vertical;
  margin-bottom: 1.25rem;
}

/* ---------- Auth forms (creator-login, creator-dashboard) ---------- */

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  border-color: var(--color-maroon);
  color: var(--color-maroon);
}

.auth-form,
.auth-form.narrow {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 480px;
}

/* A plain `hidden` attribute would normally be enough, but the rule
   above sets its own `display`, which (being an author rule, same as
   the browser's built-in `[hidden]` rule) wins on source order alone —
   so a hidden .auth-form was rendering anyway. Needs its own explicit
   override. Found 2026-09-26 testing login.html's Sign Up form. */
.auth-form[hidden] {
  display: none;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.auth-form textarea {
  resize: vertical;
}

.field-label {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: -0.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-bar input,
.filter-bar select {
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.filter-bar input[type="text"],
.filter-bar input[type="search"] {
  flex: 1 1 220px;
}

.filter-bar input[type="number"] {
  width: 6.5rem;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.filter-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.multiselect {
  position: relative;
}

.multiselect-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 180px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.multiselect-toggle::after {
  content: "\25BE";
  color: var(--color-muted);
}

.multiselect-panel {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 20;
  min-width: 220px;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(59, 48, 47, 0.15);
}

.multiselect-panel:not([hidden]) {
  display: flex;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: -0.5rem 0 0;
}

.auth-message {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  color: var(--color-maroon);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.apply-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.apply-links a {
  color: var(--color-maroon);
  text-decoration: underline;
}

.apply-links span {
  color: var(--color-muted);
  margin: 0 0.5rem;
}

.custom-option-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#pickup-locations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------- Status badges (creator dashboard) ---------- */

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  align-self: flex-start;
  margin-top: auto;
}

.status-pending {
  background: var(--color-sage);
  color: #2c4f4a;
}

.status-approved {
  background: #dcefd0;
  color: #2f5a1f;
}

.status-rejected {
  background: #f3d9d6;
  color: #7a2a22;
}

.status-inactive {
  background: #e5e0d8;
  color: #6b6259;
}

.status-commission {
  background: #f3e3c3;
  color: #7a5a1f;
}

.status-paid {
  background: #dcefd0;
  color: #2f5a1f;
}

.status-refunded {
  background: #f3d9d6;
  color: #7a2a22;
}

.status-delivered {
  background: #cfe6f5;
  color: #1f4e66;
}

.status-picked-up {
  background: #e5e0d8;
  color: #4a453d;
}

/* ---------- Orders (My Orders / creator dashboard Recent Sales) ---------- */

.order-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.order-card-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.order-fee-breakdown {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.order-card-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.edit-order-panel:not([hidden]) {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.edit-order-panel select,
.edit-order-panel input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
  margin: 0.4rem 0 1rem;
}

.edit-order-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-fee-breakdown li span:last-child {
  font-weight: 600;
}

/* ---------- Admin page ---------- */

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
}

.review-row-summary {
  flex: 1;
  min-width: 200px;
}

.review-row-summary h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.review-row-summary p {
  margin: 0;
}

.review-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.review-details {
  padding: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.setup-fee-link-box {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 1.1rem;
}

.setup-fee-link-box input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: var(--font-body);
  color: var(--color-muted);
}

.admin-review-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-review-photos .card-media {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  font-size: 1.5rem;
}

/* ---------- Photo gallery (product detail page) ---------- */

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-color: var(--color-tan);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  border-color: var(--color-maroon);
  opacity: 1;
}

/* ---------- Photo manager (edit-product page) ---------- */

.photo-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
}

.photo-manager-item {
  position: relative;
}

.photo-manager-item .card-media {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.photo-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--color-maroon);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* ---------- Placeholder box (dashboard "coming soon" sections) ---------- */

.placeholder-box {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--color-muted);
}

.placeholder-box p {
  margin: 0;
}

/* ---------- Creator public profile page ---------- */

.creator-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.creator-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-tan);
  flex-shrink: 0;
}

.creator-header h1 {
  margin: 0 0 0.25rem;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tan);
  color: var(--color-text);
  flex-shrink: 0;
}

.social-icon:hover {
  background: var(--color-maroon);
  color: var(--color-surface);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon-mask {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ---------- Tags & AI disclosure (product detail page) ---------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.tag-pill {
  background: var(--color-tan);
  color: var(--color-text);
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.ai-disclosure {
  font-size: 0.9rem;
  color: var(--color-muted);
  background: var(--color-sage);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-teal);
  color: #f7f0e8;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  text-align: center;
}

.footer-inner h3 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

.footer-inner .footer-contact {
  opacity: 0.85;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 240, 232, 0.15);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  font-size: 0.85rem;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Cart ---------- */

.cart-creator-group {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.cart-creator-group h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-top: 0;
}

.cart-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius);
  aspect-ratio: unset;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cart-item-controls .cart-qty-input {
  width: 4rem;
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
}

.cart-note-input {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.cart-item-line-total {
  font-weight: 600;
  white-space: nowrap;
}

.cart-subtotal {
  text-align: right;
  font-weight: 600;
  margin-bottom: 0;
}

.cart-checkout-bar {
  text-align: right;
  padding-top: 1rem;
}

.cart-total {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* ---------- Inbox ---------- */

.inbox-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.conversation-list {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}

.conversation-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--color-text);
}

.conversation-item:last-child {
  border-bottom: none;
}

.conversation-item:hover {
  background: var(--color-bg);
}

.conversation-item.active {
  background: var(--color-tan);
}

.conversation-item.unread {
  background: var(--color-sage);
}

.conversation-item-sub {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.conversation-item.unread .conversation-item-sub {
  color: var(--color-maroon);
  font-weight: 600;
}

.message-thread {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 420px;
}

.message-list {
  flex: 1;
  overflow-y: auto;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.message-bubble {
  align-self: flex-start;
  background: var(--color-tan);
  color: var(--color-text);
  padding: 0.6rem 1rem;
  border-radius: 14px;
  max-width: 70%;
}

.message-bubble.mine {
  align-self: flex-end;
  background: var(--color-maroon);
  color: #fff9f3;
}

.message-compose-form {
  display: flex;
  gap: 0.5rem;
}

.message-compose-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ---------- Responsive ---------- */

/* ---------- Delivery calendar + pickup choice ---------- */

.delivery-calendar {
  max-width: 420px;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cal-nav .btn {
  padding: 0.3rem 0.9rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.cal-day {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
}

.cal-day:hover:not(:disabled) {
  border-color: var(--color-maroon);
}

.cal-day:disabled {
  opacity: 0.35;
  cursor: default;
}

.cal-day-blocked {
  background: var(--color-maroon);
  border-color: var(--color-maroon);
  color: var(--color-bg);
}

.cal-day-today {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

.cal-rules {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-width: 480px;
}

.cal-rules li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border);
}

.cal-rules .btn {
  padding: 0.3rem 0.9rem;
}

.ready-estimate {
  margin: 0.75rem 0;
  padding: 0.6rem 0.9rem;
  background: var(--color-sage);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.cart-pickup {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.cart-pickup label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.cart-pickup select {
  width: 100%;
  max-width: 420px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}

.cart-pickup .field-hint {
  margin: 0.4rem 0 0;
}

.cart-pickup-warning {
  color: #7a2a22;
  margin: 0.4rem 0 0;
}

.cart-pickup-warning:empty {
  display: none;
}

@media (max-width: 700px) {
  .inbox-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-teal);
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-dropdown-panel {
    position: static;
    display: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1rem;
    margin-top: 0.5rem;
  }

  .nav-dropdown.open .nav-dropdown-panel {
    display: flex;
  }

  .nav-dropdown-panel a {
    color: #f7f0e8;
  }

  .nav-dropdown-panel a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  /* No room for an inline search box in the compact mobile header row
     (hamburger, logo, cart, account) — swap to the stacked copy inside
     the hamburger panel instead. Compound selectors (not just
     .nav-search-desktop/.nav-search-mobile alone) so these reliably
     beat the base .nav-search{display:flex} rule regardless of source
     order/specificity ties — same class of bug as an earlier
     .nav-badge[hidden] issue. */
  .nav-search.nav-search-desktop {
    display: none;
  }

  .nav-search.nav-search-mobile {
    display: flex;
  }

  .nav-account-dropdown .nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: auto;
    right: 0;
    display: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    background: #fff;
    padding: 0.5rem;
    margin-top: 0;
  }

  .nav-account-dropdown.open .nav-dropdown-panel {
    display: flex;
  }

  .nav-account-dropdown .nav-dropdown-panel a {
    color: var(--color-text);
  }

  .nav-account-dropdown .nav-dropdown-panel a:hover {
    background: var(--color-bg);
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-line-total {
    width: 100%;
    text-align: right;
  }

  .product-layout,
  .signup-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-grid-fixed {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-card {
    grid-template-columns: 1fr;
  }

  .split-card:nth-child(even) .split-media {
    order: 0;
  }

  .hero-box {
    padding: 2rem;
  }

  .hero-box h1 {
    font-size: 2rem;
  }
}

/* ---------- Creator/Host/Admin/Customer "Dashboards" — sidebar shell ---------- */

.dash-layout {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* inbox.html is the one page that puts a plain .container (not
   .dash-main) inside .dash-layout, since it's shared by roles that
   don't have a sidebar yet — this stops the two elements' padding
   from stacking. */
.dash-layout > .container {
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}

/* Dashboard sidebar — restyled 2026-10-08 after Stripe's dashboard menu:
   no filled panel, an icon beside every label, small muted section
   headings, and the current page marked by colour rather than a pill.
   The icons are inline SVGs added by addDashSidebarIcons() in js/script.js,
   keyed on each link's href (an earlier CSS-mask version showed as solid
   squares in some browsers); the section headings are in the page HTML. */
.dash-sidebar {
  flex-shrink: 0;
  width: 220px;
  padding: 0.25rem 1rem 0.25rem 0.25rem;
  border-right: 1px solid var(--color-border);
  position: sticky;
  top: 1.5rem;
}

.dash-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dash-sidebar-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.75rem 1rem;
}

.dash-sidebar-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-periwinkle) center / cover no-repeat;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-sidebar-account-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.dash-sidebar-account-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-sidebar-account-role {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.dash-sidebar-heading {
  margin: 1.35rem 0 0.35rem;
  padding: 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.dash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}

.dash-sidebar-link .dash-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.dash-sidebar-link:hover {
  background: rgba(36, 33, 31, 0.05);
}

.dash-sidebar-link.active {
  color: var(--color-periwinkle-deep);
  font-weight: 700;
}



.dash-main {
  flex: 1;
  min-width: 0;
  background-color: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.dash-main > section + section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px dashed var(--color-border);
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dash-topbar-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-tan);
  flex-shrink: 0;
}

.dash-topbar h1 {
  margin: 0;
  font-size: 1.6rem;
  flex: 1;
  min-width: 150px;
}

/* A pill-style outline link/button, distinct from .btn-outline's more
   rectangular shape — matches the rounded pill buttons in the mockup. */
.dash-pill {
  border: 1.5px solid var(--color-ink);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-ink);
  background: #fff;
  white-space: nowrap;
}

.dash-pill:hover {
  background: var(--color-ink);
  color: #fff;
}

.dash-widgets {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.75rem;
}

.dash-card {
  position: relative;
  grid-column: span 1;
  background: #fff;
  border: 1.5px solid var(--color-ink);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.dash-card:has(.dash-card-more) {
  padding-bottom: 2.5rem;
}

.dash-card-wide {
  grid-column: 1 / -1;
}

.dash-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-family: var(--font-heading);
}

.dash-card-more {
  position: absolute;
  bottom: 0.85rem;
  right: 1.25rem;
  margin: 0;
  color: var(--color-muted);
}

.dash-card-more a {
  color: var(--color-muted);
  font-weight: 600;
}

.dash-card-more a:hover {
  color: var(--color-text);
}

/* Upcoming Deliveries */

.dash-deliveries-row {
  display: grid;
  grid-template-columns: 130px 1fr auto auto;
  gap: 1rem;
  align-items: start;
  padding: 0.5rem 0;
  font-size: 0.92rem;
}

.dash-deliveries-row + .dash-deliveries-row {
  border-top: 1px solid var(--color-border);
}

.dash-deliveries-row .dash-item-lines {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Sales Income */

.dash-income-figure {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

/* Inbox preview */

.dash-inbox-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  align-items: center;
}

.dash-inbox-row.unread {
  background: var(--color-tan);
  font-weight: 700;
}

/* Availability (compact, read-only preview) */

.dash-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.dash-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: 0.8rem;
  text-align: center;
}

.dash-cal-weekday {
  color: var(--color-muted);
  font-size: 0.7rem;
  padding-bottom: 2px;
}

.dash-cal-day {
  padding: 0.35rem 0;
  border-radius: 6px;
}

.dash-cal-day.blocked {
  background: #e5e0d8;
  color: var(--color-muted);
}

/* Best Sellers */

.dash-bestsellers-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}

.dash-bestseller-item {
  flex: 0 0 110px;
  text-align: center;
}

.dash-bestseller-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-tan);
  margin-bottom: 0.4rem;
}

.dash-bestseller-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
}

@media (max-width: 800px) {
  .dash-layout {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    position: static;
    padding: 0 0 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .dash-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .dash-sidebar-heading,
  .dash-sidebar-account {
    display: none;
  }

  .dash-sidebar-link {
    padding: 0.4rem 0.7rem;
    gap: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.88rem;
  }

  .dash-sidebar-link .dash-icon {
    width: 16px;
    height: 16px;
  }

  .dash-widgets {
    grid-template-columns: 1fr;
  }

  .dash-deliveries-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---------- Inventory tab (Creator dashboard) ---------- */

.dash-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.dash-inventory-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-tan);
  overflow: hidden;
}

.dash-inventory-tile.inactive .dash-inventory-photo {
  filter: grayscale(1) opacity(0.5);
}

.dash-inventory-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(48, 24, 24, 0.75);
  opacity: 0;
  transition: opacity 0.15s;
}

.dash-inventory-photo:hover .dash-inventory-overlay {
  opacity: 1;
}

.dash-inventory-overlay button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dash-inventory-overlay button svg {
  width: 17px;
  height: 17px;
}

.dash-inventory-name {
  margin: 0.5rem 0 0.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.dash-inventory-caption {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.dash-inventory-create {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--color-maroon-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.5rem;
  cursor: pointer;
}

.dash-inventory-create:hover {
  background: var(--color-maroon);
}

.dash-inventory-create-locked {
  background: #fff;
  color: var(--color-ink);
  border: 1.5px dashed var(--color-ink);
  font-weight: 600;
}

.dash-inventory-create-locked:hover {
  background: var(--color-bg);
}

/* New-product form, redesigned to match the box-per-field mockup —
   scoped to .dash-form so the site's other forms (login, applications)
   keep their existing warm cream style untouched. */

.dash-form {
  border: 1.5px solid var(--color-ink);
  border-radius: 14px;
  padding: 1.5rem;
}

.dash-form input:not([type="checkbox"]),
.dash-form textarea,
.dash-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

.dash-form textarea {
  resize: vertical;
  min-height: 90px;
}

.dash-form .custom-option-row {
  margin-bottom: 0;
}

.dash-form .custom-option-row input {
  margin-bottom: 0.85rem;
}

.dash-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: start;
}

.dash-form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.dash-form-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}

.dash-options-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--color-ink);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.dash-options-toggle .chevron {
  transition: transform 0.15s;
}

.dash-options-toggle.open .chevron {
  transform: rotate(180deg);
}

.dash-option-block {
  border: 1.5px solid var(--color-ink);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.dash-option-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.dash-add-option-link {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.dash-form-submit-row {
  text-align: center;
  margin-top: 1.5rem;
}

@media (max-width: 500px) {
  .dash-form-row {
    grid-template-columns: 1fr;
  }
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.dash-stats-row .dash-income-figure {
  font-size: 1.9rem;
  margin: 0;
}

.dash-stats-row #stats-popular-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Learn More pages (For Creators / For Hosts) ---------- */

.learn-hero {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.learn-hero .section-subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.learn-intro,
.learn-why,
.learn-faq {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.learn-intro p,
.learn-why p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

.learn-section-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 2rem;
}

.learn-steps {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 1.25rem;
}

.learn-steps li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.learn-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.learn-steps p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.learn-cta {
  text-align: center;
  background: var(--color-tan);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin: 0 0 3rem;
}

.learn-cta h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.learn-cta p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.learn-why-grid {
  display: grid;
  gap: 1.75rem;
}

.learn-why-grid h3 {
  margin-bottom: 0.4rem;
}

.learn-why-grid p {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-muted);
  flex-shrink: 0;
}

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

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---------- Host pickup kiosk (host-kiosk.html) ---------- */

.kiosk-page {
  max-width: 420px;
  text-align: center;
  padding-top: 3rem;
}

/* images/logo.png is white (built for the dark teal header) and would
   be invisible on this page's light background — same reasoning as the
   printable sign in js/kiosk-sign.js. */
.kiosk-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-ink);
  margin: 0 0 1.5rem;
}

.kiosk-box {
  margin-top: 1.5rem;
}

.kiosk-input {
  width: 100%;
  padding: 1.1rem 1.25rem;
  font-size: 1.3rem;
  text-align: center;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius);
  font-family: var(--font-body);
  background: #fff;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.kiosk-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kiosk-btn {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.1rem;
}

.kiosk-message {
  margin-top: 1.25rem;
  font-size: 1rem;
  min-height: 1.5em;
}

.kiosk-message-success {
  color: #2f5a1f;
  font-weight: 600;
}

.kiosk-message-error {
  color: #7a2a22;
  font-weight: 600;
}

/* ---------- Host dashboard: pickup kiosk QR code ---------- */

.kiosk-qr-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.kiosk-qr-box canvas {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* ---------- Footer legal links (privacy-policy.html / help-center.html) ---------- */

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ---------- Legal pages (privacy-policy.html) ---------- */

.legal-page {
  max-width: 720px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 2.25rem;
}

.legal-page p {
  line-height: 1.65;
}

.legal-list {
  line-height: 1.65;
  padding-left: 1.25rem;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

/* ---------- Report a Delivery (host-dashboard.html / host-pickup-kiosk.html) ---------- */

.report-delivery-form {
  display: flex;
  gap: 0.75rem;
}

.report-delivery-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.report-delivery-form button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-ink);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.report-delivery-form button:hover {
  background: var(--color-maroon);
}

/* ---------- Report an Issue (host-kiosk.html / host-pickup-kiosk.html) ---------- */

.report-issue-box textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-ink);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 0.75rem;
}

/* ---------- Admin dashboard (admin.html) ---------- */

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-topbar h1 {
  margin: 0;
}

.admin-topbar-business {
  font-weight: 700;
  color: var(--color-muted);
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-stat-card {
  background: #fff;
  border: 1.5px solid var(--color-ink);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.admin-stat-card h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-weight: 600;
}

.admin-stat-figure {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
}

.admin-stat-card-small .admin-stat-figure {
  font-size: 1.6rem;
}

.admin-popular-card {
  text-align: left;
}

.admin-popular-card h2 {
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: normal;
  color: var(--color-text);
}

.admin-popular-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-popular-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.admin-popular-card li:last-child {
  border-bottom: none;
}

/* ---------- Admin: search-based product picker (admin-site-settings.html) ---------- */

#featured-product-search {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.admin-product-search-results {
  margin-top: 1rem;
}

.admin-product-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-product-search-result .card-media {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
}

/* Option dropdowns on the product page (Scent, Size, ...) and the chosen
   options shown under an item in the cart — added 2026-10-06. */
.product-option-pickers {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.product-option-picker {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-option-picker .field-label {
  margin: 0;
}

.product-option-picker select {
  width: 100%;
  max-width: 340px;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}

.cart-item-options {
  font-weight: 600;
}


/* ---------------------------------------------------------------------
   Creator Guidebook (creator-guide.html) — styled to Abby's design: big
   serif title, uppercase part headings with a blue bar, a two-column
   setup checklist, a big pull-quote and a boxed "Ideas" list.
   Added 2026-10-08.
   --------------------------------------------------------------------- */
.guide-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.guide-page {
  max-width: 760px;
  color: var(--color-maroon);
  font-family: 'Roboto', var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.guide-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  color: var(--color-maroon);
}

.guide-page h1.guide-part {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.7rem;
  margin: 2.75rem 0 1.1rem;
}

.guide-page h1.guide-part::after {
  content: "";
  display: block;
  width: 190px;
  height: 6px;
  margin-top: 0.4rem;
  background: #7389c4;
}

.guide-page h2 {
  font-family: 'Roboto', var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin: 2rem 0 0.6rem;
  scroll-margin-top: 1rem;
}

/* A thin line between sections: above every section heading that comes
   after the first part heading (the welcome intro has none). */
.guide-page h1.guide-part ~ h2 {
  border-top: 1px solid rgba(66, 34, 37, 0.22);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}

.guide-page h3 {
  font-family: 'Roboto', var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin: 1.4rem 0 0.4rem;
}

.guide-page p,
.guide-page li {
  color: var(--color-maroon);
}

.guide-page p {
  margin: 0 0 0.85rem;
}

.guide-page ul,
.guide-page ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.guide-page li {
  margin-bottom: 0.35rem;
}

.guide-page a {
  color: #4a5896;
  text-decoration: underline;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--color-maroon);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.guide-figure {
  margin: 1rem 0;
}

.guide-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.guide-rule {
  border: 0;
  border-top: 3px solid var(--color-ink);
  width: 55%;
  margin: 2rem 0;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1.25rem;
}

.guide-page table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}

.guide-page th,
.guide-page td {
  border: 1px solid var(--color-border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.guide-page th {
  background: var(--color-tan);
  font-weight: 700;
}

.guide-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
  margin: 0.5rem 0 1.25rem;
}

.guide-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.guide-check input[type=checkbox] {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0.1rem 0 0;
  accent-color: #3a9d4b;
  cursor: pointer;
}

.guide-check a {
  color: var(--color-maroon);
  text-decoration: none;
}

.guide-check a strong {
  display: block;
  font-size: 1rem;
}

.guide-check span {
  display: block;
  font-size: 0.88rem;
}

.guide-quote {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.75rem 0;
}

.guide-quote p {
  margin: 0;
  max-width: 24ch;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  text-align: center;
}

.guide-quote-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 0.8;
}

.guide-ideas {
  position: relative;
  border: 1.5px solid var(--color-maroon);
  padding: 1rem 1.25rem 0.5rem 1.25rem;
  margin: 2.25rem 0 1.5rem;
}

.guide-ideas-icon {
  position: absolute;
  top: -22px;
  left: 14px;
  width: 40px;
  height: 40px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-ideas-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  background-color: var(--color-maroon);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018h6M10%2021h4%22%2F%3E%3Cpath%20d%3D%22M12%203a6%206%200%200%200-3.5%2010.9c.6.5%201%201.2%201%202.1h5c0-.9.4-1.6%201-2.1A6%206%200%200%200%2012%203z%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018h6M10%2021h4%22%2F%3E%3Cpath%20d%3D%22M12%203a6%206%200%200%200-3.5%2010.9c.6.5%201%201.2%201%202.1h5c0-.9.4-1.6%201-2.1A6%206%200%200%200%2012%203z%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.guide-ideas p {
  margin: 0.25rem 0 0.5rem 2.6rem;
}

/* A one-sentence tip: a small lightbulb beside the text. */
.guide-tip {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.guide-tip-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  background-color: var(--color-maroon);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018h6M10%2021h4%22%2F%3E%3Cpath%20d%3D%22M12%203a6%206%200%200%200-3.5%2010.9c.6.5%201%201.2%201%202.1h5c0-.9.4-1.6%201-2.1A6%206%200%200%200%2012%203z%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018h6M10%2021h4%22%2F%3E%3Cpath%20d%3D%22M12%203a6%206%200%200%200-3.5%2010.9c.6.5%201%201.2%201%202.1h5c0-.9.4-1.6%201-2.1A6%206%200%200%200%2012%203z%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

@media (max-width: 640px) {
  .guide-checklist {
    grid-template-columns: 1fr;
  }

  .guide-quote p {
    font-size: 1.1rem;
  }
}

@media print {
  .site-header,
  .announcement-bar,
  .site-footer,
  .dash-sidebar,
  .guide-toolbar {
    display: none !important;
  }

  .dash-layout,
  .dash-main {
    display: block;
    padding: 0;
  }

  .guide-page {
    max-width: none;
  }

  .guide-page h2,
  .guide-page h3 {
    break-after: avoid;
  }

  .guide-table-wrap,
  .guide-ideas,
  .guide-quote {
    break-inside: avoid;
  }
}


/* "Creator/Host application pending" banner at the top of a customer's pages
   (renderApplicationBanner in js/script.js). */
.app-status-banner {
  background: var(--color-sage);
  border-left: 5px solid var(--color-teal);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin: 0 0 1.5rem;
  color: var(--color-ink);
}
.app-status-banner p { margin: 0.25rem 0; }
.app-status-banner a { text-decoration: underline; }


/* Consent line under the homepage "Get Updates!" comment box. */
.signup-consent {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0.25rem 0 0.75rem;
}
