/* ============================================================
   The Tent Guy — design system + components
   Rugged outdoor / earthy (light). WhatsApp-forward.
   ============================================================ */

:root {
  /* palette */
  --canvas:      #F4F1EA;
  --canvas-2:    #EBE5D8;
  --sand:        #D8C9AE;
  --sand-deep:   #C9B893;
  --olive:       #3E4636;
  --olive-2:     #4E5844;
  --ink:         #25241F;
  --ink-soft:    #55524A;
  --accent:      #C25A2B;
  --accent-dark: #A5461D;
  --sold:        #8A4B3B;
  --hold:        #A9791B;
  --line:        rgba(37, 36, 31, 0.14);
  --line-strong: rgba(37, 36, 31, 0.28);
  --white:       #FCFBF7;
  --paper:       #F7F5EE;   /* light text/label sitting on a dark fill (hero, cta band) */
  --wa:          #25D366;   /* WhatsApp */
  --wa-dark:     #1FB457;

  /* type */
  --font-head: "Barlow Condensed", "Oswald", system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* metrics */
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 3px;
  --header-h: 68px;
  --bottom-nav-h: 64px;
  --shadow: 0 1px 2px rgba(37,36,31,.06), 0 8px 24px rgba(37,36,31,.08);
}

/* ---------- base ---------- */
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.muted { color: var(--ink-soft); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3rem); }
.section + .section { border-top: 1px solid var(--line); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8em 1.6em;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: transform .08s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--olive); border-color: var(--olive); }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--line { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #06331A; }
.btn--wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #06331A; }
.btn--sm { font-size: 0.85rem; padding: 0.55em 1.1em; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- header (permanently dark, per the approved design) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0e0e0e;
  border-bottom: 1px solid #1c1c17;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--canvas);
}
.wordmark__name b { color: var(--accent); font-weight: 700; }
.wordmark__tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 4px;
}

/* uploaded site logo (dashboard) */
.wordmark__logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  font-weight: 500;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  color: #f2eee4;
}
.nav a:hover { border-color: var(--sand-deep); }
.nav a[aria-current="page"] { border-color: var(--accent); }

/* Categories dropdown (header nav) */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd__btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 1rem; font-weight: 500; padding: 0.25rem 0;
  color: #f2eee4; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.nav-dd__btn:hover, .nav-dd.is-open .nav-dd__btn { border-color: var(--sand-deep); }
.nav-dd__btn::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
.nav-dd.is-open .nav-dd__btn::after { transform: rotate(-135deg); margin-top: 4px; }
.nav-dd__menu {
  display: none;
  position: absolute; top: 100%; left: -1rem; z-index: 50;
  min-width: 14rem; max-height: 70vh; overflow-y: auto;
  margin-top: 0.5rem; padding: 0.4rem 0;
  background: #141414; border: 1px solid #2a2a2a; box-shadow: var(--shadow);
}
.nav-dd.is-open .nav-dd__menu { display: block; }
@media (hover: hover) and (min-width: 761px) {
  .nav-dd:hover .nav-dd__menu, .nav-dd:focus-within .nav-dd__menu { display: block; }
  .nav-dd:hover .nav-dd__btn::after { transform: rotate(-135deg); margin-top: 4px; }
  /* invisible bridge over the gap so the menu stays open while the mouse moves down to it */
  .nav-dd::after { content: ""; position: absolute; left: -1rem; right: -1rem; top: 100%; height: 0.75rem; }
}
.nav .nav-dd__menu a {
  display: block; padding: 0.55rem 1rem; border-bottom: 0;
  font-size: 0.9rem; white-space: nowrap;
}
.nav .nav-dd__menu a:hover { background: #222; color: var(--accent); }
.nav .nav-dd__menu li:last-child a { border-top: 1px solid #2a2a2a; margin-top: 0.3rem; }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: #f2eee4; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  /* photo (assets/img/hero.webp) over the olive gradient fallback */
  background:
    url("/assets/img/hero.webp") center / cover no-repeat,
    linear-gradient(115deg, var(--olive), var(--olive-2) 55%, #333a2b);
  color: var(--paper);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  padding-block: clamp(6rem, 22vw, 14rem);
  max-width: 46rem;
}
.hero .eyebrow, .hero h1, .hero p, .hero__accent {
  text-shadow: 0 1px 12px rgba(15, 17, 11, 0.5);
}
.hero h1 { color: var(--paper); }
.hero p { margin-top: 1.25rem; font-size: 1.15rem; color: color-mix(in srgb, var(--paper) 85%, transparent); }
.hero .btn-row { margin-top: 2rem; }
.hero .eyebrow { color: var(--sand); }
.hero__accent {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.75rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- image placeholder ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--sand) 0 14px, var(--sand-deep) 14px 28px);
  display: grid;
  place-items: center;
  color: var(--olive);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.ph::before {
  content: attr(data-label);
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  padding: 0.35em 0.8em;
  border-radius: var(--radius);
}

/* ---------- product cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__media { position: relative; }
.card__media .ph { aspect-ratio: 4 / 3; border: none; border-bottom: 1px solid var(--line); }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card__title { font-size: 1.1rem; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 0.5rem; }
.card__price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.card__loc { font-size: 0.85rem; color: var(--ink-soft); }

.chip {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25em 0.7em;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink-soft);
  width: fit-content;
}

.badge-row { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.4rem; }
.badge {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: var(--radius);
  background: var(--olive);
  color: var(--canvas);
}
.badge--sold { background: var(--sold); }
.badge--new  { background: var(--wa); color: #06331A; }

/* ---------- sold treatment ---------- */
.card--sold .card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--canvas) 55%, transparent);
}
.card--sold .card__title { color: var(--ink-soft); }
.card--sold .card__price { color: var(--ink-soft); text-decoration: line-through; }
.card--sold:hover { transform: none; box-shadow: var(--shadow); }
.card__ribbon {
  position: absolute;
  top: 16px;
  right: -40px;
  z-index: 2;
  transform: rotate(45deg);
  background: var(--sold);
  color: var(--canvas);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35em 3.2rem;
  box-shadow: 0 2px 8px rgba(37, 36, 31, 0.3);
}
.card__ribbon--hold { background: var(--hold); }
.card__ribbon--available { background: var(--olive); }
.card__cond { font-size: 0.85rem; color: var(--ink-soft); }
.sold-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: color-mix(in srgb, var(--sold) 12%, var(--canvas));
  border: 1px solid var(--sold);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sold);
}
.sold-banner--hold {
  background: color-mix(in srgb, var(--hold) 12%, var(--canvas));
  border-color: var(--hold);
  color: var(--hold);
}
.product__price.is-sold { color: var(--ink-soft); text-decoration: line-through; }
.gallery__main-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__main-wrap > .ph { width: 100%; height: 100%; border: none; }
.gallery--sold .gallery__main-wrap::after {
  content: "Sold";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  color: var(--canvas);
  background: color-mix(in srgb, var(--sold) 32%, transparent);
  text-shadow: 0 2px 14px rgba(37, 36, 31, 0.45);
}
.gallery--hold .gallery__main-wrap::after {
  content: "On Hold";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  color: var(--canvas);
  background: color-mix(in srgb, var(--hold) 34%, transparent);
  text-shadow: 0 2px 14px rgba(37, 36, 31, 0.45);
}

/* ---------- catalogue: search, category pills, filter/sort toolbar ---------- */
.cat-search { position: relative; margin-bottom: 1.25rem; max-width: 28rem; }
.cat-search__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.cat-search input {
  width: 100%;
  padding: 0.8em 1em 0.8em 2.75rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.cat-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

.cat-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.cat-pill {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.cat-pill:hover { border-color: var(--ink); }
.cat-pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }

.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.dd-select { position: relative; display: inline-flex; align-items: center; }
.dd-select__icon { position: absolute; left: 0.9rem; width: 16px; height: 16px; color: var(--ink-soft); pointer-events: none; }
.dd-select__chevron { position: absolute; right: 0.85rem; width: 12px; height: 12px; color: var(--ink-soft); pointer-events: none; }
.dd-select select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65em 2.3rem 0.65em 2.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.dd-select select:focus { outline: none; border-color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field select, .field input, .field textarea {
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  padding: 0.6em 0.8em;
  border-radius: var(--radius);
  min-width: 12rem;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}
.field textarea { min-height: 8rem; resize: vertical; }
.controls__count { margin-left: auto; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- feature blocks ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature h3 { margin-bottom: 0.4rem; }
.feat-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ---------- section heading row ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-head a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { margin: 0.75rem auto 1.75rem; max-width: 34rem; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.cta-band .btn-row { justify-content: center; }

/* ---------- category tiles (homepage "what are you looking for") ---------- */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.cat-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background: var(--canvas-2);
}
.cat-tile img, .cat-tile .ph { width: 100%; height: 100%; object-fit: cover; display: block; border: none; }
.cat-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,.85) 0%, rgba(14,14,14,.15) 55%, transparent 80%);
  transition: background-color .15s ease;
}
.cat-tile:hover::after { background: linear-gradient(to top, rgba(14,14,14,.92) 0%, rgba(14,14,14,.25) 55%, transparent 80%); }
.cat-tile__label {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.75rem; z-index: 1;
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  font-weight: 600;
}
.cat-tile__count {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sand);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ---------- recently sold strip ---------- */
.sold-strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.sold-strip .card { min-width: 210px; max-width: 210px; scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- reviews link-out (Google) ---------- */
.reviews-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.reviews-box__icon { width: 30px; height: 30px; flex: 0 0 auto; }
.reviews-box p { margin: 0; max-width: 26rem; }
.reviews-box .btn { margin-left: auto; }

/* ---------- buying steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  text-align: center;
}
.step__num {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.step h3 { margin-bottom: 0.35rem; }

/* ---------- split CTA (buying / selling) ---------- */
.cta-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.cta-split__panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.cta-split__panel h3 { color: var(--paper); margin-bottom: 0.5rem; font-size: 1.4rem; text-transform: uppercase; }
.cta-split__panel p { color: color-mix(in srgb, var(--paper) 82%, transparent); margin-bottom: 1.25rem; }
.cta-split__panel--accent { background: var(--accent); }

/* ---------- product detail ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding-block: 1.25rem; }
.breadcrumb a:hover { color: var(--accent-dark); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
.gallery__main { aspect-ratio: 4 / 3; }
.gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs .ph {
  aspect-ratio: 1; width: 78px; flex: 0 0 auto; cursor: pointer;
  font-size: 0.6rem; letter-spacing: 0.08em;
}
.gallery__thumbs .ph[aria-selected="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }

.product__info > * + * { margin-top: 1rem; }
.product__desc > * + * { margin-top: 0.85rem; }
.product__desc ul.prose-list { margin: 0; padding-left: 1.25rem; }
.product__desc ul.prose-list li { margin: 0.25rem 0; }
.product__price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.status-line { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; }
.status-line--hold { color: var(--hold); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--olive); }
.dot--sold { background: var(--sold); }
.dot--hold { background: var(--hold); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 0.6em 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 600; color: var(--ink-soft); font-family: var(--font-body); }

.included-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.included-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.included-list li::before { content: "✔"; color: var(--wa-dark); flex: 0 0 auto; font-size: 0.9em; }

/* product page sections: plain + always visible on desktop, collapsible on mobile (js/product.js) */
.acc-head {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.acc-head:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.notice {
  border: 1px dashed var(--line-strong);
  background: var(--canvas-2);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.empty-state {
  text-align: center;
  padding-block: clamp(3rem, 10vw, 6rem);
}
.empty-state p { margin: 0.75rem auto 1.5rem; max-width: 30rem; color: var(--ink-soft); }

/* ---------- prose ---------- */
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }

/* ---------- info cards (How It Works / Sell Your Gear policy pages) ---------- */
.info-cards { display: flex; flex-direction: column; gap: 1.25rem; max-width: 46rem; }
.info-card {
  background: var(--white);
  border-left: 4px solid var(--olive);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.info-card h2 { font-size: 1.1rem; margin-bottom: 0.6rem; text-transform: uppercase; }
.info-card p, .info-card ul { color: var(--ink-soft); }
.info-card p + p { margin-top: 0.6rem; }
.info-card ul { padding-left: 1.2rem; margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.deposit-table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }
.deposit-table th, .deposit-table td { text-align: left; padding: 0.45em 0.6em 0.45em 0; border-bottom: 1px solid var(--line); }
.deposit-table th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--ink-soft); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 40rem; }
.form-grid .field { min-width: 0; }
.form-grid .field select, .form-grid .field input, .form-grid .field textarea { min-width: 0; width: 100%; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* ---------- page hero (inner page header) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--olive), var(--olive-2) 55%, #333a2b);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(3rem, 9vw, 5.5rem);
}
.page-hero .eyebrow { color: var(--sand); }
.page-hero h1 { color: var(--paper); margin-top: 0.5rem; }

/* ---------- contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 5rem);
  align-items: start;
}
.contact-intro h2,
.contact-form-col h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 1rem; }
.contact-intro > p { max-width: 34rem; }
.contact-intro .btn--wa { margin-top: 1.5rem; }

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-details dt {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.contact-details dd { margin: 0; }
.contact-details dd a { border-bottom: 1px solid var(--line-strong); }
.contact-details dd a:hover { border-color: var(--accent); color: var(--accent-dark); }

.field__req { color: #C62828; font-weight: 700; }

.field__opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.contact-form-col form { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-form-col .field input,
.contact-form-col .field textarea {
  width: 100%;
  background: var(--white);
  padding: 0.75em 0.9em;
}
.contact-form-col .field label { color: var(--ink); }
.contact-form-col .field textarea { min-height: 8rem; }
.contact-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.contact-note {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

.info-list { display: flex; flex-direction: column; gap: 0.75rem; }
.info-list dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--ink-soft); }
.info-list dd { margin: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--olive);
  color: color-mix(in srgb, var(--canvas) 88%, transparent);
  flex-shrink: 0;
  padding-block: 3rem 2rem;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 { color: var(--canvas); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; margin-bottom: 0.9rem; }
.site-footer a:hover { color: var(--sand); }
.site-footer .wordmark__name { color: var(--canvas); font-size: 1.3rem; }
.site-footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer li { display: flex; align-items: center; gap: 0.55rem; }
.site-footer li svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--sand); }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: var(--canvas);
}
.social-row a:hover { border-color: var(--sand); background: rgba(255,255,255,.1); }
.social-row svg { width: 17px; height: 17px; }
.site-footer__bar {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}
/* camouflaged dashboard link — reads as plain footer text */
.site-footer__bar .cloak {
  color: inherit;
  text-decoration: none;
  cursor: text;
}
.site-footer__bar .cloak:hover,
.site-footer__bar .cloak:focus { color: inherit; text-decoration: none; }

/* ---------- floating WhatsApp + bottom nav ---------- */
.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #06331A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,36,31,.28);
}
.wa-fab:hover { background: var(--wa-dark); }
.wa-fab svg { width: 28px; height: 28px; }

.bottom-nav {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 55;
  height: var(--bottom-nav-h);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(37,36,31,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav ul { display: flex; height: 100%; }
.bottom-nav li { flex: 1; }
.bottom-nav a, .bottom-nav button {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
  color: var(--ink-soft);
}
.bottom-nav a[aria-current="page"] { color: var(--accent-dark); }
.bottom-nav svg { width: 21px; height: 21px; }
.bottom-nav .bn-wa span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--wa);
  color: #06331A;
  border: 3px solid var(--white);
}
.bottom-nav .bn-wa svg { width: 24px; height: 24px; }
.bottom-nav .bn-wa small { color: var(--wa-dark); }

/* ---------- utilities ---------- */
.stack-lg > * + * { margin-top: 1.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Dashboard (dashboard.html) — shares tokens, plainer chrome
   ============================================================ */
.dash-body { background: var(--canvas-2); }

.dash-bar {
  background: var(--ink);
  color: var(--canvas);
  position: sticky;
  top: 0;
  z-index: 50;
}
.dash-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  flex-wrap: wrap;
}
.dash-bar__brand {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 1.2rem;
}
.dash-bar__brand b { color: var(--accent); }
.dash-bar__brand span { color: var(--sand); font-weight: 500; }
.dash-bar nav { display: flex; align-items: center; gap: 1.25rem; }
.dash-bar nav a { font-size: 0.9rem; border-bottom: 1px solid transparent; }
.dash-bar nav a:hover { border-color: var(--sand-deep); }

/* login gate */
.gate {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.gate__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  width: 100%;
  max-width: 26rem;
  box-shadow: var(--shadow);
}
.gate__card h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.gate__card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.25rem; }
.gate__card .field { margin-bottom: 1rem; }
.gate__card .field input { width: 100%; }
.gate__error { color: var(--sold); font-size: 0.9rem; min-height: 1.2em; }

/* dashboard stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}
.stat__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.dash-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dash-toolbar h2 { font-size: 1.4rem; }
.dash-search {
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  padding: 0.55em 0.8em;
  border-radius: var(--radius);
  width: 15rem;
  max-width: 100%;
  font-family: var(--font-body);
}
.dash-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* categories manager */
.cat-manager {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin: 1.5rem 0;
}
.cat-manager > summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}
.cat-manager__body { padding: 0 1rem 1rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--canvas-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.35rem 0.3rem 0.3rem;
  font-size: 0.85rem;
}
.cat-chip__photo {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--white);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.cat-chip__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-chip__photo svg { width: 13px; height: 13px; color: var(--ink-soft); }
.cat-chip__photo-x {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
}
.cat-chip__x {
  border: none;
  background: var(--line);
  color: var(--ink);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  font-size: 0.9rem;
}
.cat-chip__x:hover { background: var(--sold); color: var(--white); }
.cat-add { display: flex; gap: 0.5rem; max-width: 22rem; }
.cat-add input { flex: 1; }

.logo-preview {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #0e0e0e;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}
.logo-preview img { height: 44px; width: auto; display: block; }
.logo-preview .dash-note { color: #cbc4b4; margin: 0; }

.hero-preview {
  width: 100%;
  max-width: 32rem;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas-2);
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* listings table */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.dash-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.dash-table th, .dash-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.dash-table th {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-table .actions { text-align: right; white-space: nowrap; }
.dash-table .drag-col { width: 2rem; padding-left: 1.25rem; padding-right: 0; }
.dash-table .drag-handle { width: 2rem; padding-left: 1.25rem; padding-right: 0; color: var(--ink-soft); font-size: 1.1rem; }
.dash-table tr[draggable="true"] .drag-handle { cursor: grab; }
.dash-table tr[draggable="true"]:hover { background: var(--canvas-2); }
.dash-table tr.dragging { opacity: 0.4; background: var(--canvas-2); }
.pill {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
}
.pill--available { background: color-mix(in srgb, var(--olive) 15%, var(--white)); border-color: var(--olive); color: var(--olive); }
.pill--hold { background: color-mix(in srgb, var(--hold) 14%, var(--white)); border-color: var(--hold); color: var(--hold); }
.pill--sold { background: color-mix(in srgb, var(--sold) 12%, var(--white)); border-color: var(--sold); color: var(--sold); }
.pill--pending { background: color-mix(in srgb, var(--accent) 14%, var(--white)); border-color: var(--accent); color: var(--accent); }
.pill--accepted { background: color-mix(in srgb, var(--olive) 15%, var(--white)); border-color: var(--olive); color: var(--olive); }
.pill--rejected { background: color-mix(in srgb, var(--sold) 12%, var(--white)); border-color: var(--sold); color: var(--sold); }

/* gear submissions ("sell your gear to us" review queue) */
.sub-panel { margin-bottom: 2rem; }
.sub-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sub-panel__head h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
.sub-thumbs { display: flex; gap: 0.3rem; flex-wrap: wrap; max-width: 140px; }
.sub-thumbs img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.sub-thumbs a:hover img { border-color: var(--accent); }

/* sell-your-gear.html submission form */
.sell-form-wrap .field input,
.sell-form-wrap .field select,
.sell-form-wrap .field textarea { width: 100%; }

.link-btn {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3em 0.5em;
  border-bottom: 2px solid transparent;
}
.link-btn:hover { border-color: var(--accent); }
.link-btn--danger { color: var(--sold); }

/* editor dialog */
.editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(37, 36, 31, 0.55);
  display: none;
  z-index: 100;
  padding: var(--gutter);
  overflow-y: auto;
}
.editor-backdrop[data-open="true"] { display: grid; place-items: start center; }
.editor {
  background: var(--canvas);
  border-radius: var(--radius);
  width: 100%;
  max-width: 44rem;
  margin-block: 3vh 6vh;
  box-shadow: var(--shadow);
}
.editor__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.editor__head h2 { font-size: 1.3rem; }
.editor__body { padding: 1.5rem; }
.editor__body .field { margin-bottom: 1.1rem; }
.editor__body .field input,
.editor__body .field select,
.editor__body .field textarea { width: 100%; }
.editor__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.editor__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
}
.repeater__row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.repeater__row input { flex: 1; }
.repeater__row button { flex: 0 0 auto; }
.mini-btn {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.4em 0.7em;
  font-size: 0.85rem;
  background: var(--white);
  color: var(--ink);
}
.mini-btn:hover { border-color: var(--ink); }

.dash-flash {
  background: color-mix(in srgb, var(--olive) 14%, var(--canvas));
  border: 1px solid var(--olive);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.dash-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: var(--bottom-nav-h); }
  .bottom-nav { display: block; }
  .wa-fab { bottom: calc(var(--bottom-nav-h) + 1rem); }

  .site-header__inner { gap: 0.75rem; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #141414;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    border-bottom: 1px solid #000;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .22s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid #2a2a2a; color: #f2eee4; }
  .nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
  .nav-dd { flex-wrap: wrap; border-bottom: 1px solid #2a2a2a; }
  .nav-dd__btn { width: 100%; justify-content: space-between; padding-block: 0.85rem; border-bottom: 0; }
  .nav-dd__menu { position: static; flex-basis: 100%; min-width: 0; max-height: none; margin: 0 0 0.5rem; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav .nav-dd__menu a { padding: 0.6rem 0 0.6rem 1rem; white-space: normal; color: #cfc9bb; }
  .nav .nav-dd__menu li:last-child a { margin-top: 0; }
  .wordmark__tag { display: none; }
  .wordmark__logo { height: 38px; }

  .acc-head { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .acc-head::after { content: "+"; color: var(--accent); font-weight: 700; font-family: var(--font-body); }
  .acc-head.is-open::after { content: "\2212"; }
  .acc-body { display: none; }
  .acc-body.is-open { display: block; margin-top: 0.75rem; }

  /* homepage "Current stock": swipe left/right like the Recently sold strip */
  #featured-grid {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  #featured-grid .card { min-width: 210px; max-width: 210px; scroll-snap-align: start; flex: 0 0 auto; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .card__body { padding: 0.75rem 0.85rem 0.9rem; gap: 0.3rem; }
  .card__title { font-size: 0.95rem; }
  .card__price { font-size: 1.1rem; }

  /* product page gallery: a fixed 4:3 box letterboxes any photo that isn't
     4:3, wasting prime above-the-fold space with a plain colour bar. On
     mobile, let the real photo set its own height instead (the no-photo
     placeholder keeps its 4:3 box since there's nothing to letterbox). */
  .gallery__main-wrap:has(img.gallery__main) { aspect-ratio: auto; }
  img.gallery__main { width: 100%; }

  .product { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .section-head { align-items: flex-start; }
  .editor__row { grid-template-columns: 1fr; }
  .feature { border-right: none; }
}

/* ============================================================
   Real product photos (D1 / R2 backend)
   ============================================================ */

/* card cover image — same box as the .ph placeholder it replaces */
.card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--canvas-2);
}

/* product page gallery — show the whole photo, no cropping */
img.gallery__main {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease;
}
.gallery__nav:hover { background: color-mix(in srgb, var(--ink) 80%, transparent); }
.gallery__nav--prev { left: 0.6rem; }
.gallery__nav--next { right: 0.6rem; }
.gallery__count {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.15em 0.65em;
  border-radius: 999px;
  font-family: var(--font-body);
  letter-spacing: 0;
}
.gallery__thumb {
  width: 78px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas-2);
  cursor: pointer;
  overflow: hidden;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb.is-active { outline: 2px solid var(--accent); outline-offset: 1px; }

/* dashboard editor — photo grid */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.img-tile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.img-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.img-tile figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem;
}
.img-tile figcaption .dash-note { margin-left: auto; }

