:root {
  --page-bg: #0A0A0C;
  --surface: #141417;
  --surface2: #1B1B1F;
  --border: #232327;
  --border-soft: #2b2b30;
  --text: #EDEDEF;
  --text-dim: #9A9AA2;
  --text-faint: #68686F;
  --amber1: #FFB020;
  --amber2: #FF6A00;
  --grad: linear-gradient(90deg, var(--amber1), var(--amber2));
  --glow: radial-gradient(90% 100% at 85% 10%, #241608 0%, var(--page-bg) 55%);
  --glow-l: radial-gradient(90% 100% at 15% 0%, #241608 0%, var(--page-bg) 55%);

  /* Legacy variable names kept because a handful of admin/view JS files
     reference them inline via style="...var(--x)..."; only the values
     change here, not the names. */
  --black: #2A2A2E;
  --red: #FF5470;
  --red-hover: #FF3355;
  --gold: #FFB020;
  --gray1: #9A9AA2;
  --gray2: #ABA7A0;
  --gray3: #C9C6BE;
  --gray4: #C7C3BA;

  --footer1: #9A968D;
  --footer2: #B7B3AB;
  --footer3: #6F6B63;

  --pad: 40px;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page-bg); }
body {
  margin: 0;
  background: var(--page-bg);
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  /* `overflow-x: hidden` paired with an unconstrained overflow-y forces the
     *computed* overflow-y to `auto` per spec (any non-visible axis promotes
     a `visible` other axis to `auto`, even written explicitly) — that turns
     body into its own scroll container distinct from the viewport and
     breaks every position:sticky descendant (nav, sidebar filters, the
     product-detail CTA bar), which unstick partway down the page instead
     of tracking the real viewport. `clip` is exempt from that promotion,
     so it blocks horizontal overflow without the side effect.
     (Needs Chrome 90+ / Safari 16+ / Firefox 102+ — fine for this site.) */
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .82; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 100vh;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--border);
}
.nav-lockup { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 44px; display: none; }
span.nav-brand-text {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 30px; align-items: center; font-weight: 500; font-size: 13.5px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { opacity: 1; color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); }
.nav-cta {
  color: #0A0A0C !important;
  background: var(--grad);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); }

/* Admin bar */
.admin-bar {
  background: var(--surface2);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 10px var(--pad);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-bar a, .admin-bar button {
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.admin-bar a:hover, .admin-bar button:hover { border-color: var(--amber1); color: var(--text); }
.admin-bar .admin-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Typography / hero ---------- */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber1); display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow .dot { color: var(--amber1); font-size: 8px; flex-shrink: 0; }
.h1 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 64px; line-height: 1.04; margin: 0; letter-spacing: -.02em; color: var(--text); }
.h1.size-md { font-size: 52px; line-height: 1.08; }
.h1.size-sm { font-size: 46px; line-height: 1.1; }
.h1.size-xs { font-size: 40px; line-height: 1.12; }
.accent { color: var(--amber1); }
.lead { font-size: 16px; line-height: 1.6; color: var(--text-dim); max-width: 560px; margin: 0; }
.lead.wide { max-width: 640px; font-size: 15px; }

.hero { padding: 64px var(--pad) 24px; background: var(--glow); }
.hero-sub-row { padding: 30px var(--pad) 8px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero-image { margin: 34px var(--pad) 0; height: 460px; border-radius: 20px; }
.hero-split { display: flex; align-items: center; gap: 50px; padding-bottom: 56px; }
.hero-left { flex: 1; min-width: 320px; }
.hero-right { flex: 1; min-width: 320px; }
.hero-visual { height: 380px; border-radius: 20px; }
.trust-strip { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { flex: 1; text-align: center; padding: 26px 16px; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }
.page-header { padding: 60px var(--pad) 30px; background: var(--glow-l); }
.page-header-image { margin: 20px var(--pad) 0; height: 280px; border-radius: 20px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary, .btn-outline, .btn-gold, .btn-dark-sm, .btn-white-outline, .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  border-radius: var(--radius-sm);
}
.btn-primary { font-size: 15px; color: #0A0A0C; background: var(--grad); padding: 14px 28px; }
.btn-gold { font-size: 16px; color: #0A0A0C; background: var(--grad); padding: 16px 34px; white-space: nowrap; }
.btn-dark { font-size: 16px; color: #0A0A0C; background: var(--grad); padding: 16px 34px; }
.btn-dark-sm { font-size: 13.5px; color: #0A0A0C; background: var(--grad); padding: 11px 22px; white-space: nowrap; }
.btn-outline { font-size: 15px; color: var(--text); border: 1px solid var(--border-soft); padding: 13px 26px; background: none; }
.btn-white-outline { font-size: 14.5px; color: var(--text); background: none; border: 1px solid var(--border-soft); padding: 12px 24px; }
.btn-outline:hover, .btn-white-outline:hover { border-color: var(--amber1); color: var(--amber1); opacity: 1; }
.link-underline { font-weight: 600; font-size: 15px; color: var(--text); border-bottom: 2px solid var(--amber1); padding-bottom: 2px; }
.link-caps { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber1); font-weight: 600; }

/* ---------- Placeholders ---------- */
.placeholder-box {
  background: linear-gradient(135deg, #241a0e, var(--surface));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-box.small {
  background: linear-gradient(135deg, #1c140a, var(--surface2));
  border: none;
}
.placeholder-box.dark {
  background: linear-gradient(135deg, #1c140a, #101012);
  border: none;
}
.placeholder-caption { font-family: 'JetBrains Mono', monospace; color: var(--text-faint); font-size: 12px; }
.editable-image { position: relative; border-radius: 16px; border: 1px solid var(--border); }
.image-frame { width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: var(--surface); }
.editable-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Grids / cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.section { padding: 56px var(--pad); }
.section.border-top { border-top: 1px solid var(--border); }
.section.bg-tint { background: var(--surface); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; color: var(--text); display: block; transition: border-color .15s; }
.card:hover { border-color: var(--border-soft); }
.card.dark { background: var(--surface2); color: var(--text); border-color: rgba(255, 176, 32, .3); }
.card-thumb { height: 120px; margin-bottom: 18px; border-radius: 12px; border: none; }
.card-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--amber1); font-weight: 600; letter-spacing: .04em; }
.card-num.gold { color: var(--gold); }
.card-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 18px; margin-top: 8px; color: var(--text); }
.card-desc { color: var(--text-dim); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.card-desc.light { color: var(--text-dim); }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat-value { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.02em; color: var(--text); }
.stat-label { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

.section-heading-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.h2 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 28px; margin: 0; letter-spacing: -.01em; color: var(--text); }
.h2.lg { font-size: 34px; line-height: 1.1; }

.cta-band { background: linear-gradient(135deg, #1a1108, var(--page-bg)); border-top: 1px solid var(--border); padding: 56px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-heading { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 34px; color: var(--text); margin: 0 0 8px; letter-spacing: -.02em; }
.cta-heading.sm { font-size: 28px; margin: 0; }
.cta-body { font-size: 15px; color: var(--text-dim); margin: 0; max-width: 520px; }

/* ---------- Timeline / values (About) ---------- */
.timeline-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.page-header-center { text-align: center; }
.page-header-center .h1, .page-header-center .lead { margin-left: auto; margin-right: auto; }

.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.founder-card {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--amber1);
  border-radius: var(--radius);
  max-width: 360px;
}
.founder-photo-lg {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--page-bg), 0 0 0 6px rgba(255, 176, 32, .4);
}
.founder-photo-lg .placeholder-caption { font-size: 11px; padding: 0 12px; text-align: center; word-break: break-word; }
.founder-info { min-width: 0; }
.founder-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); }
.founder-title { font-size: 13px; color: var(--amber1); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

.milestones-track { display: flex; justify-content: space-between; position: relative; }
.milestones-line { position: absolute; top: 9px; left: 0; right: 0; height: 1px; background: var(--border); }
.milestone { flex: 1; text-align: center; position: relative; }
.milestone-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--grad); margin: 0 auto 12px; position: relative; z-index: 1; }
.milestone-year { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--text); font-size: 16px; }
.milestone-desc { font-size: 11.5px; color: var(--text-faint); max-width: 140px; margin: 6px auto 0; line-height: 1.5; }

.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.value-icon { font-size: 26px; margin-bottom: 14px; }
.value-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 18px; color: var(--text); }
.value-desc { color: var(--text-dim); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ---------- Products page ---------- */
.breadcrumb { font-size: 12px; color: var(--text-faint); }
.breadcrumb span { color: var(--text); }
.breadcrumb a:hover { color: var(--amber1); opacity: 1; }

.products-layout { display: flex; gap: 32px; padding: 0 var(--pad) 12px; align-items: flex-start; }
.filters-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.filters-title { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.filters-list { display: flex; flex-direction: column; gap: 2px; }
.filter-tab {
  display: block;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.on { color: var(--text); background: rgba(255, 176, 32, .1); border-left-color: var(--amber1); }
.products-main { flex: 1; min-width: 0; }

.pcard-code { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-faint); margin-top: 12px; }
.pcard-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
.btn-sm-wide { width: 100%; font-size: 12.5px; padding: 9px 14px; }

.psection { padding: 48px var(--pad) 12px; }
.psection.tight { padding-top: 28px; }
.psection-title-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.psection-num { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 14px; color: var(--amber1); }

.pgrid { margin: 0 var(--pad) 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.team-grid > * { flex: 0 1 270px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: relative; transition: border-color .15s; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--border-soft); }
.pcard.dark { background: var(--surface2); color: var(--text); }
.pcard-img { height: 150px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: none; }
.pcard-img.small { height: 110px; }
.pcard-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; margin-top: 14px; color: var(--text); }
.pcard-desc {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard.dark .pcard-desc { color: var(--text-dim); }

.add-tile {
  background: transparent;
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
.add-tile:hover { border-color: var(--amber1); color: var(--amber1); }

.category-delete-btn {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  background: none;
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
}
.category-delete-btn:hover { background: var(--red); color: #0A0A0C; }

.add-category-btn {
  margin: 0 var(--pad) 48px;
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 14px;
}
.add-category-btn:hover { border-color: var(--amber1); color: var(--amber1); }

.request-strip {
  margin: 0 var(--pad) 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.request-strip span { font-size: 14px; color: var(--text-dim); }

/* ---------- Dealer Enquiry form ---------- */
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-top: 1px solid var(--border); }
.form-col { padding: 48px var(--pad); border-right: 1px solid var(--border); }
.contact-col { padding: 48px var(--pad); background: var(--surface); }
.field-group { display: flex; flex-direction: column; gap: 22px; }
.field-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field-input {
  width: 100%;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}
.field-input::placeholder { color: var(--text-faint); }
.field-input:focus { outline: none; border-color: var(--amber1); }
.field-error { color: var(--red); font-size: 14px; font-weight: 500; }
.success-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; background: var(--surface); }
.success-check {
  width: 44px; height: 44px; background: var(--grad); border-radius: 50%; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center; color: #0A0A0C; font-size: 22px; font-weight: 700;
}
.contact-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber1); font-weight: 600; margin-bottom: 18px; }
.contact-rows { display: flex; flex-direction: column; gap: 26px; }
.contact-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.contact-value { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600; color: var(--text); }
.contact-serve { border-top: 1px solid var(--border); padding-top: 22px; }
.contact-serve-body { font-size: 14px; line-height: 1.7; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--footer1); padding: 44px var(--pad); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: 'Sora', sans-serif; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.footer-tagline { margin-top: 10px; font-size: 13.5px; line-height: 1.6; max-width: 340px; color: var(--footer1); }
.footer-col-title { color: var(--text-dim); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-links a { color: var(--footer2); }
.footer-links a:hover { color: var(--amber1); opacity: 1; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--footer2); }
.copyright { background: #08070a; color: var(--footer3); border-top: 1px solid var(--border); padding: 16px var(--pad); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Product detail page ---------- */
.pdetail-layout { display: flex; gap: 44px; padding: 24px var(--pad) 50px; align-items: flex-start; }
.pdetail-gallery { flex: 1; min-width: 0; }
.pdetail-info { flex: 1; min-width: 0; }
.pdetail-gallery .gallery-carousel,
.pdetail-gallery .gallery-empty,
.pdetail-gallery .gallery-grid,
.pdetail-gallery .gallery-toggle-btn { margin-left: 0; margin-right: 0; }
.category-pill { display: inline-block; background: rgba(255, 176, 32, .12); color: var(--amber1); font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 6px; margin-bottom: 14px; }
.pdetail-info .pcard-detail { margin: 16px 0 26px; }

.spec-table-wrap { margin: 6px 0 0 -16px; }
.spec-table { padding: 0; }
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row.editable-row { cursor: pointer; }
.spec-row.editable-row:hover { background: var(--surface2); }
.spec-row-label { color: var(--text-dim); }
.spec-row-right { display: flex; align-items: center; gap: 10px; }
.spec-row-value { color: var(--text); font-weight: 600; }
.spec-row-delete {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  line-height: 1;
}
.spec-row-delete:hover { color: var(--red); }
/* position:fixed rather than sticky — a bottom-anchored sticky element
   only stays stuck while scrolling through content ABOVE it; once the
   user scrolls past its natural document position (which happens well
   before the Related Products section below it finishes scrolling by),
   it detaches and scrolls away for good instead of staying put. Fixed
   keeps it genuinely persistent for the whole page, which is what a
   "sticky CTA bar" pattern is supposed to do. */
.pdetail-sticky-cta {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1280px;
  margin: 0 auto;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px var(--pad) calc(16px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  z-index: 50;
}
.pdetail-sticky-cta .btn-primary { min-width: 300px; text-align: center; }
.pdetail-cta-spacer { height: 96px; }

.pcard-detail {
  max-width: 720px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}
.pcard-detail p { margin: 0 0 16px; }
.pcard-detail p:last-child { margin-bottom: 0; }
.pcard-detail h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin: 24px 0 10px; letter-spacing: -.01em; }
.pcard-detail h3:first-child { margin-top: 0; }
.pcard-detail h4 { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.pcard-detail ul, .pcard-detail ol { margin: 0 0 16px; padding-left: 22px; }
.pcard-detail li { margin-bottom: 6px; }
.pcard-detail blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--amber1); color: var(--text-dim); }
.pcard-detail a { color: var(--amber1); text-decoration: underline; }
.pcard-detail strong, .pcard-detail b { font-weight: 700; color: var(--text); }

/* ---------- HTML editor (admin rich-text field) ---------- */
.html-editor { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.html-editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-wrap: wrap;
}
.html-editor-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.html-editor-btn:hover { background: var(--border); }
.html-editor-area {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding: 14px;
  font-size: 15px;
  line-height: 1.6;
  background: var(--surface);
  color: var(--text);
}
.html-editor-area:focus { outline: none; }
.html-editor-area p { margin: 0 0 12px; }
.html-editor-area h3 { font-size: 19px; margin: 14px 0 8px; }
.html-editor-area ul, .html-editor-area ol { margin: 0 0 12px; padding-left: 22px; }

.gallery-carousel {
  position: relative;
  margin: 0 var(--pad) 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  touch-action: pan-y;
  background: var(--surface);
}
.gallery-carousel-track { display: flex; height: 100%; transition: transform .3s ease; }
.gallery-carousel-slide { flex: 0 0 100%; height: 100%; }
.gallery-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav-btn svg { display: block; }
.gallery-nav-btn:hover { background: rgba(0,0,0,.8); }
.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }
.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
}
.gallery-dot.active { background: var(--amber1); }
.gallery-empty {
  margin: 0 var(--pad) 12px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius);
  color: var(--text-faint);
  font-size: 14px;
}
.gallery-toggle-btn {
  margin: 0 var(--pad) 40px;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
}
.gallery-toggle-btn:hover { border-color: var(--amber1); color: var(--amber1); }

.gallery-grid {
  margin: 0 var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-item { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
}
.gallery-delete-btn:hover { background: var(--red); }
.gallery-add-tile {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 2px dashed var(--border-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 10px;
}
.gallery-add-tile:hover { border-color: var(--amber1); color: var(--amber1); }

/* ---------- Admin inline edit ---------- */
.editable { position: relative; }
.edit-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #0A0A0C;
  border: 2px solid var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
  z-index: 20;
}
.edit-btn:hover { opacity: .88; }
.editable.editing { outline: 2px dashed var(--amber1); outline-offset: 4px; }

.edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.edit-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow: auto;
}
.edit-panel.edit-panel-wide { max-width: 720px; }

.cropper-stage {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  touch-action: none;
  background: #08070a;
  border-radius: 8px;
}
.cropper-image { display: block; user-select: none; -webkit-user-drag: none; }
.cropper-box {
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.6);
  border: 2px solid #fff;
  cursor: move;
  touch-action: none;
}
.cropper-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--amber1);
  border-radius: 50%;
  touch-action: none;
}
.cropper-handle.nw { top: -9px; left: -9px; cursor: nwse-resize; }
.cropper-handle.ne { top: -9px; right: -9px; cursor: nesw-resize; }
.cropper-handle.sw { bottom: -9px; left: -9px; cursor: nesw-resize; }
.cropper-handle.se { bottom: -9px; right: -9px; cursor: nwse-resize; }
.edit-panel h3 { margin: 0 0 18px; font-size: 18px; font-family: 'Sora', sans-serif; color: var(--text); }
.edit-panel textarea, .edit-panel input[type=text] {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 14px;
}
.edit-panel .actions { display: flex; gap: 10px; justify-content: flex-end; }
.edit-panel .error { color: var(--red); font-size: 13px; margin-bottom: 10px; }

/* ---------- Admin pages (login, products manager, enquiries) ---------- */
.admin-page-shell { padding: 56px var(--pad); max-width: 640px; margin: 0 auto; }
.login-card { max-width: 420px; margin: 60px auto; padding: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.login-card h1 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 26px; margin: 0 0 24px; color: var(--text); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text); }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pill { display: inline-block; padding: 2px 10px; font-size: 11px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim); }
.pill.unread { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --pad: 22px; }
  .h1 { font-size: 40px; }
  .h1.size-md { font-size: 36px; }
  .h1.size-sm { font-size: 32px; }
  .h1.size-xs { font-size: 28px; }
  .h2.lg { font-size: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-text-col { order: 1; }
  .story-founder-col { order: 2; }
  .milestones-line { display: none; }
  .milestones-track { flex-direction: column; gap: 0; }
  .milestone { display: flex; align-items: flex-start; gap: 14px; text-align: left; padding: 14px 0; border-top: 1px solid var(--border); }
  .milestone-dot { width: 9px; height: 9px; margin: 6px 0 0; flex-shrink: 0; }
  .milestone-desc { margin: 4px 0 0; max-width: none; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .hero-sub-row { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .hero-image { height: 260px; }
  .hero-split { flex-direction: column; gap: 30px; padding-bottom: 40px; }
  .hero-visual { height: 260px; width: 100%; }
  .trust-strip { flex-wrap: wrap; }
  .trust-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .pdetail-layout { flex-direction: column; gap: 24px; align-items: stretch; }
  .spec-table-wrap { margin-left: -14px; margin-right: -14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-col { border-right: none; border-bottom: 1px solid var(--border); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .h1 { font-size: 32px; }
  .h1.size-md { font-size: 30px; }
  .h1.size-sm { font-size: 28px; }
  .h1.size-xs { font-size: 24px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 22px; border-top: 1px solid var(--border); }
  .nav-right { display: none; }
  .nav-cta-mobile { display: flex; margin: 12px 22px 16px; border-top: none; }
  .nav-toggle { display: flex; }
  .nav { position: sticky; }
  .nav-brand-text { font-size: 18px; }
  .eyebrow { flex-wrap: nowrap; align-items: flex-start; }
  .grid-4 { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .stat-value { font-size: 24px; }
  .products-layout { flex-direction: column; gap: 4px; }
  .filters-sidebar { width: 100%; position: static; max-height: none; overflow-y: visible; }
  .filters-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 190px;
    overflow-y: auto;
    padding: 2px 2px 4px;
  }
  .filter-tab {
    width: auto;
    border-left: none;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 8px 14px;
  }
  .filter-tab.on { border-color: var(--amber1); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .request-strip { flex-direction: column; align-items: flex-start; }
  .admin-bar { padding: 10px 16px; }
  .pdetail-sticky-cta { justify-content: stretch; }
  .pdetail-sticky-cta .btn-primary { flex: 1; min-width: 0; }
}

/* ---------- Layout utilities (keep JS-built markup responsive via var(--pad)) ---------- */
.mx-pad { margin-left: var(--pad); margin-right: var(--pad); }
.mb-sm { margin-bottom: 20px; }
.mb-md { margin-bottom: 44px; }
.mb-lg { margin-bottom: 48px; }
.mt-sm { margin-top: 20px; }
.grid-4.spaced, .grid-3.spaced { margin-left: var(--pad); margin-right: var(--pad); margin-bottom: 48px; }
.pgrid.spaced { margin-left: var(--pad); margin-right: var(--pad); margin-bottom: 44px; }
.section-tight { padding-bottom: 20px; }

/* Ensure any tap target inside interactive rows stays comfortably touchable */
@media (max-width: 640px) {
  .btn-primary, .btn-outline, .btn-gold, .btn-dark, .btn-dark-sm, .btn-white-outline,
  .nav-links a, .edit-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .edit-btn { display: flex; }
}
