/* ──────────────────────────────────────────────────────────────────────────
   OBJEKT — Editorial catalogue stylesheet
   Cream / Ink / Sand / Paper palettes are set as CSS vars from app.jsx
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --surface: #f6f7f3;
  --ink: #0a0a0a;
  --muted: #6b6b66;
  --accent: oklch(0.68 0.20 130);
  --line: rgba(10, 10, 10, 0.10);

  --font-display-serif: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display-sans: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --display-font: var(--font-display-sans);
  --sans: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius: 2px;
  --radius-lg: 4px;

  --container: 1440px;
  --gutter: 32px;
}

html[lang="th"] {
  --font-display-serif: "Prompt", Tahoma, sans-serif;
  --font-display-sans: "Prompt", Tahoma, sans-serif;
  --font-display-mono: "Prompt", Tahoma, sans-serif;
  --sans: "Prompt", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="th"] body {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}
html[lang="th"] .mono,
html[lang="th"] .eyebrow,
html[lang="th"] .contact-strip,
html[lang="th"] .contact-strip__links a,
html[lang="th"] .contact-strip .muted,
html[lang="th"] .primary-nav button,
html[lang="th"] .search-field input,
html[lang="th"] .mode-toggle,
html[lang="th"] .lang-toggle,
html[lang="th"] .product-table__head,
html[lang="th"] .product-row__cta,
html[lang="th"] .spec-key,
html[lang="th"] .field > span,
html[lang="th"] .admin__nav-label,
html[lang="th"] .kpi__label,
html[lang="th"] .kpi__delta {
  font-family: var(--sans);
  letter-spacing: 0.02em;
  text-transform: none;
}
html[lang="th"] .eyebrow,
html[lang="th"] .product-table__head,
html[lang="th"] .spec-key,
html[lang="th"] .field > span,
html[lang="th"] .admin__nav-label {
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
}
html[lang="th"] .contact-strip {
  font-size: 14px;
  letter-spacing: 0.01em;
}
html[lang="th"] .primary-nav button {
  font-size: 15.5px;
  font-weight: 600;
}
html[lang="th"] .search-field input,
html[lang="th"] .mode-toggle,
html[lang="th"] .lang-toggle {
  font-size: 14.5px;
}
html[lang="th"] .hero__title,
html[lang="th"] .card__name,
html[lang="th"] .product-row__name,
html[lang="th"] .admin-page__head h1,
html[lang="th"] .form-card h3,
html[lang="th"] .admin-card__head h3,
html[lang="th"] .contact-block h2,
html[lang="th"] .modal__detail h2 {
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}
html[lang="th"] .hero__title {
  font-size: clamp(52px, 6vw, 84px);
}
html[lang="th"] .hero__lede {
  font-size: 18px;
  line-height: 1.65;
}
html[lang="th"] .card__summary,
html[lang="th"] .tab-body p,
html[lang="th"] .bullets li {
  font-size: 15px;
  line-height: 1.68;
}
html[lang="th"] .product-row__sub {
  font-size: 14px;
  line-height: 1.65;
}
html[lang="th"] .site-header__row,
html[lang="th"] .contact-strip__inner {
  letter-spacing: 0;
}
html[lang="th"] .chip { font-size: 14px; }
html[lang="th"] .checkbox,
html[lang="th"] .price-range { font-size: 14px; }
html[lang="th"] .sort-select { font-size: 14px; }
html[lang="th"] .count { font-size: 12px; letter-spacing: 0.04em; }
html[lang="th"] .site-footer ul li { font-size: 14.5px; }
html[lang="th"] .site-footer h5 { font-size: 12px; }
html[lang="th"] .product-row__name { font-size: 18px; }
html[lang="th"] .modal__desc { font-size: 15.5px; }
html[lang="th"] .admin__nav button,
html[lang="th"] .admin__user-name,
html[lang="th"] .admin__user-role,
html[lang="th"] .admin-page__count,
html[lang="th"] .admin-table,
html[lang="th"] .ghost-btn,
html[lang="th"] .primary-btn,
html[lang="th"] .admin-toolbar select,
html[lang="th"] .admin-search input,
html[lang="th"] .field input,
html[lang="th"] .field textarea,
html[lang="th"] .field select,
html[lang="th"] .hero__art-meta,
html[lang="th"] .contact-card,
html[lang="th"] .download-btn,
html[lang="th"] .modal__detail,
html[lang="th"] .site-footer,
html[lang="th"] .admin__mobilebar button {
  font-size: 15px;
}
html[lang="th"] .contact-block h2,
html[lang="th"] .admin-page__head h1,
html[lang="th"] .form-card h3,
html[lang="th"] .admin-card__head h3,
html[lang="th"] .modal__detail h2 {
  font-size: clamp(28px, 3vw, 40px);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; letter-spacing: inherit; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Top contact strip ──────────────────────────────────────────────────── */
.contact-strip {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.contact-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-strip__tag { opacity: 0.7; }
.contact-strip__links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.contact-strip__links a {
  color: var(--bg);
  text-decoration: none;
  transition: color .15s;
}
.contact-strip__links a:hover { color: var(--accent); }
.contact-strip__sep { opacity: 0.4; }
.contact-strip .muted { color: color-mix(in srgb, var(--bg) 55%, transparent); }

/* ─── Site header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display-font);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand__mark {
  display: inline-flex; align-items: center;
  color: var(--ink);
}
.brand__mark svg { display: block; }
.brand__name { font-weight: 500; font-style: normal; }
.brand__name i {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.primary-nav { display: flex; gap: 26px; justify-content: center; }
.primary-nav button {
  font-size: 14px;
  padding: 6px 0;
  position: relative;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.primary-nav button.muted { color: var(--muted); }
.primary-nav button.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
}
.primary-nav button:hover { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.search-field {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  min-width: 240px;
  transition: border-color .15s;
}
.search-field:focus-within { border-color: var(--ink); }
.search-field input {
  background: none; border: 0; outline: 0; flex: 1;
  font-size: 13px;
}
.search-field input::placeholder { color: var(--muted); }
.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mode-toggle {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--ink); color: var(--bg);
  transition: background .15s, color .15s;
}
.mode-toggle:hover { background: var(--accent); border-color: var(--accent); }
.mode-toggle.is-admin { background: var(--surface); color: var(--ink); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  width: 100%;
  position: relative;
  margin-bottom: 32px;
}
.hero__stage {
  position: relative;
  min-height: clamp(560px, 72vh, 840px);
  overflow: hidden;
  background: var(--ink);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide-image,
.hero__slide-fallback,
.hero__slide-fallback .swatch {
  width: 100%;
  height: 100%;
}
.hero__slide-image {
  object-fit: cover;
  display: block;
}
.hero__slide-fallback .swatch {
  border: 0;
  border-radius: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 10, 0.72) 0%, rgba(7, 10, 10, 0.56) 34%, rgba(7, 10, 10, 0.20) 58%, rgba(7, 10, 10, 0.10) 100%),
    linear-gradient(180deg, rgba(7, 10, 10, 0.24) 0%, rgba(7, 10, 10, 0.45) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  min-height: clamp(560px, 72vh, 840px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__copy {
  max-width: min(720px, 58vw);
}
.hero__copy .eyebrow {
  margin-bottom: 18px;
  color: rgba(255,255,255,0.76);
}
.hero__title {
  font-family: var(--display-font);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
  color: #fff;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lede {
  max-width: 620px;
  font-size: 17.5px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 30px;
  text-wrap: pretty;
}
.hero__cta { display: flex; gap: 20px; align-items: center; }
.hero__cta > button:first-child {
  padding: 14px 22px;
  background: var(--bg); color: var(--ink);
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: background .15s;
}
.hero__cta > button:first-child:hover { background: var(--accent); color: var(--bg); }
.link-cta {
  font-size: 13.5px;
  color: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 4px;
  transition: border-color .15s, color .15s;
}
.link-cta:hover { color: var(--accent); border-color: var(--accent); }
.hero__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hero__art-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero__dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  padding: 0;
}
.hero__dots button.is-active {
  background: var(--bg);
  border-color: var(--bg);
}

/* ─── Swatches (placeholder imagery) ─────────────────────────────────────── */
.swatch {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.swatch-label {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.45);
  background: rgba(255,255,255,0.65);
  padding: 3px 6px;
  border-radius: 2px;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Category nav ───────────────────────────────────────────────────────── */
.category-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 67px; z-index: 20;
}
[data-show-catnav="0"] .category-nav { display: none; }
.category-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; gap: 8px;
  overflow-x: auto;
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip sup {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  vertical-align: super;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.is-active sup { color: color-mix(in srgb, var(--bg) 65%, transparent); }

/* ─── Filter bar ─────────────────────────────────────────────────────────── */
.filter-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 12px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.filter-bar__left, .filter-bar__right {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.count {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.checkbox input { width: 14px; height: 14px; accent-color: var(--ink); }
.price-range {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.price-range input[type="range"] {
  width: 140px; accent-color: var(--ink);
}
.price-range .value {
  font-family: var(--mono); font-size: 12px;
  min-width: 50px;
}
.density-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.density-toggle button {
  padding: 7px 12px;
  color: var(--muted);
}
.density-toggle button.is-active { background: var(--ink); color: var(--bg); }
.sort-select {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.sort-select span { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.sort-select select {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

/* ─── Product grid ───────────────────────────────────────────────────────── */
.product-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter) 80px;
  display: grid;
  gap: 40px 28px;
}
.product-grid--comfortable { grid-template-columns: repeat(4, 1fr); }
.product-grid--dense       { grid-template-columns: repeat(6, 1fr); gap: 32px 20px; }
@media (max-width: 1100px) {
  .product-grid--comfortable { grid-template-columns: repeat(3, 1fr); }
  .product-grid--dense       { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .product-grid--comfortable, .product-grid--dense { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Product card ───────────────────────────────────────────────────────── */
.card {
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.card__media {
  position: relative;
  padding: 0;
  background: none;
  display: block;
  cursor: pointer;
}
.card__media .swatch { transition: transform .5s ease, filter .3s; }
.card:hover .card__media .swatch { transform: scale(1.015); }
.card__flag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px;
  background: var(--bg); color: var(--ink);
  border-radius: 999px;
}
.card__flag--out { background: var(--ink); color: var(--bg); }
.card__wish {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.card__wish.is-on { opacity: 1; color: var(--accent); }
.card:hover .card__wish { opacity: 1; }
.card__quickview {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%) translateY(8px);
  padding: 9px 18px;
  background: var(--bg);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.card:hover .card__quickview { opacity: 1; transform: translateX(-50%) translateY(0); }
.card__meta {
  display: flex; flex-direction: column; gap: 4px;
}
.card__title-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.card__title-row h3 {
  font-family: var(--display-font);
  font-size: 19px;
  line-height: 1.1;
  font-weight: 400;
}
.card__price {
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}
.card__material {
  font-size: 12.5px;
  color: var(--muted);
  line-clamp: 1;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__add {
  margin-top: 6px;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-self: flex-start;
  transition: background .15s, color .15s, border-color .15s;
}
.card__add:hover:not(:disabled) {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.card__add:disabled { opacity: 0.5; cursor: not-allowed; }

[data-card-style="minimal"] .card__add { display: none; }
[data-card-style="minimal"] .card__flag { background: transparent; padding: 0; }
[data-card-style="minimal"] .card__title-row h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; }

/* ─── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--gutter);
  text-align: center;
}
.empty-state__mark { font-size: 48px; color: var(--accent); margin-bottom: 16px; }
.empty-state button {
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
}

/* ─── Modal (product detail) ─────────────────────────────────────────────── */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(14,13,10,0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  animation: scrim-in .2s ease;
}
@keyframes scrim-in { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--bg);
  max-width: 1100px; width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  animation: modal-in .25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
}
@keyframes modal-in { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 18px; line-height: 1;
}
.modal__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: auto;
}
.modal__gallery { padding: 32px; background: var(--surface); border-right: 1px solid var(--line); }
.modal__thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 8px;
}
.modal__thumbs .swatch { cursor: pointer; }
.modal__detail { padding: 40px 40px 32px; overflow-y: auto; }
.modal__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.modal__title {
  font-family: var(--display-font);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 12px;
}
.modal__price {
  font-family: var(--mono);
  font-size: 16px;
  margin-bottom: 20px;
}
.modal__desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.modal__tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.modal__tabs button {
  padding: 12px 0;
  margin-right: 24px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
}
.modal__tabs button.is-active {
  color: var(--ink);
}
.modal__tabs button.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--ink);
}
.spec-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0;
}
.spec-list div { display: flex; flex-direction: column; gap: 4px; }
.spec-list dt {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.spec-list dd { margin: 0; font-size: 14px; }
.tab-body { font-size: 14px; color: var(--muted); line-height: 1.6; }
.modal__cta {
  display: flex; gap: 12px; margin-top: 32px;
}
.modal__cta .primary {
  flex: 1;
  padding: 14px 20px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13.5px; letter-spacing: 0.02em;
  transition: background .15s;
}
.modal__cta .primary:hover:not(:disabled) { background: var(--accent); }
.modal__cta .primary:disabled { opacity: 0.5; cursor: not-allowed; }
.modal__cta .ghost {
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.modal__related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.modal__related h4 {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 14px;
}
.modal__related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rel-card { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.rel-name { font-size: 13px; }
.rel-price { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ─── Cart drawer ────────────────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(14,13,10,0.35);
  opacity: 0;
  transition: opacity .25s;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 90vw;
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  padding: 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-family: var(--display-font); font-size: 24px; }
.drawer__close {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 18px;
}
.drawer__empty {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}
.drawer__empty-mark { font-size: 48px; color: var(--accent); margin-bottom: 16px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line .swatch { aspect-ratio: 1 / 1; }
.cart-line__body { display: flex; flex-direction: column; gap: 6px; }
.cart-line__top { display: flex; justify-content: space-between; }
.cart-line__name { font-size: 14px; }
.cart-line__remove { color: var(--muted); font-size: 18px; line-height: 1; }
.cart-line__sub { font-size: 12px; }
.cart-line__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.cart-line__price { font-family: var(--mono); font-size: 13px; }
.qty {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden;
}
.qty button { padding: 4px 10px; font-size: 13px; }
.qty button:hover { background: var(--ink); color: var(--bg); }
.qty span { padding: 0 8px; font-family: var(--mono); font-size: 12px; min-width: 24px; text-align: center; }
.drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
}
.drawer__foot .row {
  display: flex; justify-content: space-between;
  font-size: 13.5px;
}
.checkout-btn {
  margin-top: 8px;
  padding: 14px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13.5px; letter-spacing: 0.02em;
}
.checkout-btn:hover { background: var(--accent); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 60px var(--gutter) 32px;
  margin-top: 40px;
}
.site-footer__cols {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.brand--footer { margin-bottom: 12px; }
.site-footer__bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ────────────────────────────────────────────────────────────────────────────
   ADMIN PANEL
   ──────────────────────────────────────────────────────────────────────────── */
.admin {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--surface);
}
.admin__sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 20px 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.admin__brand {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 20px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  text-align: left;
}
.admin__brand .brand__mark { font-size: 28px; }
.admin__brand .brand__name { font-family: var(--display-font); font-size: 20px; line-height: 1; }
.admin__brand-sub {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}
.admin__nav {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 0 12px;
}
.admin__nav-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
  padding: 16px 8px 8px;
}
.admin__nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  font-size: 13.5px;
  border-radius: var(--radius);
  text-align: left;
  transition: background .15s, color .15s;
}
.admin__nav button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.admin__nav button.is-active {
  background: var(--ink); color: var(--bg);
}
.admin__nav button.is-active .admin__nav-count { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.admin__nav-icon {
  width: 18px; text-align: center;
  font-size: 13px;
  display: inline-block;
}
.admin__nav-count {
  margin-left: auto;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
}
.admin__sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.admin__user { display: flex; align-items: center; gap: 10px; }
.admin__avatar {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--accent); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.05em;
}
.admin__user-name { font-size: 13px; }
.admin__user-role { font-size: 11px; }

.admin__main {
  padding: 32px 40px 60px;
  overflow-x: hidden;
}
.admin__mobilebar {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.admin__mobilebar button {
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12.5px;
  color: var(--muted);
}
.admin__mobilebar button.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.admin-page__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px;
}
.admin-page__head h1 {
  font-family: var(--display-font);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  margin-top: 6px;
}
.admin-page__count {
  font-family: var(--mono); font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
  vertical-align: middle;
}
.admin-page__head-tools { display: flex; gap: 10px; align-items: center; }
.primary-btn {
  padding: 10px 16px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  transition: background .15s;
}
.primary-btn:hover { background: var(--accent); }
.ghost-btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: var(--bg);
}
.ghost-btn:hover { border-color: var(--ink); }
.ghost-btn.small { padding: 6px 12px; font-size: 12px; }
.ghost-btn.danger { color: oklch(0.55 0.18 28); border-color: color-mix(in srgb, oklch(0.55 0.18 28) 35%, var(--line)); }
.link-btn {
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.link-btn.small { font-size: 12px; }
.link-btn.danger { color: oklch(0.55 0.18 28); border-color: color-mix(in srgb, oklch(0.55 0.18 28) 30%, transparent); }
.link-btn:hover { border-color: currentColor; }
.back-link {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.back-link:hover { color: var(--accent); }

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.kpi__label {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.kpi__value {
  font-family: var(--display-font);
  font-size: 40px;
  line-height: 1;
  margin-bottom: 8px;
}
.kpi__delta { font-family: var(--mono); font-size: 11px; }
.kpi__delta.is-up { color: oklch(0.5 0.12 150); }
.kpi__delta.is-warn { color: oklch(0.55 0.15 60); }
.kpi__delta.muted { color: var(--muted); }

/* Admin cards */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.admin-card--span2 { grid-column: span 2; }
.admin-card__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.admin-card__head h3 {
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 400;
}
.admin-card__tabs { display: flex; gap: 8px; }
.admin-card__tabs button {
  padding: 4px 10px;
  font-size: 11.5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.admin-card__tabs button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Chart */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding: 0 4px;
}
.chart__bar {
  flex: 1;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  position: relative;
  transition: background .15s;
  cursor: pointer;
}
.chart__bar:hover { background: var(--accent); }
.chart__val {
  position: absolute;
  bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-4px);
  font-family: var(--mono); font-size: 10px;
  background: var(--ink); color: var(--bg);
  padding: 2px 5px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.chart__bar:hover .chart__val { opacity: 1; }
.chart__axis {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 8px;
  padding: 0 4px;
}

/* Health bars */
.health-list { display: flex; flex-direction: column; gap: 12px; }
.health-row {
  display: grid;
  grid-template-columns: 80px 1fr 30px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.bar {
  height: 6px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 999px;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width .3s;
}
.health-row strong {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-align: right;
}

/* Alert list */
.alert-list { display: flex; flex-direction: column; gap: 14px; }
.alert-list li {
  display: grid; grid-template-columns: 12px 1fr;
  gap: 12px; align-items: flex-start;
}
.alert-list__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  margin-top: 6px;
}
.alert-list__title { font-size: 13px; }
.alert-list__sub { font-size: 11.5px; margin-top: 2px; }

/* Tables */
.admin-table-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  background: var(--surface);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table--rows tr:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.admin-table tr.is-selected { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.checkbox-col { width: 32px; }
.checkbox-col input { accent-color: var(--ink); }
.cell-swatch { width: 40px; height: 50px; }
.cell-swatch .swatch { width: 100%; height: 100%; }
.is-out { color: oklch(0.55 0.18 28); font-weight: 500; }
.is-warn { color: oklch(0.55 0.15 60); font-weight: 500; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  text-transform: lowercase;
}
.pill--active { background: color-mix(in srgb, oklch(0.5 0.12 150) 15%, transparent); color: oklch(0.4 0.14 150); }
.pill--draft  { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--muted); }
.pill--out    { background: color-mix(in srgb, oklch(0.55 0.18 28) 15%, transparent); color: oklch(0.5 0.18 28); }
.pill--warn   { background: color-mix(in srgb, oklch(0.65 0.15 60) 20%, transparent); color: oklch(0.5 0.15 60); }
button.pill { cursor: pointer; border: 0; }

.link-strong {
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
}
.link-strong:hover { color: var(--accent); }

.star-btn {
  font-size: 16px;
  color: color-mix(in srgb, var(--ink) 20%, transparent);
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.star-btn.is-on { color: var(--accent); }

.dup-btn {
  color: color-mix(in srgb, var(--ink) 30%, transparent);
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.dup-btn:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.row-menu { position: relative; }
.row-menu__trigger {
  width: 24px; height: 24px;
  font-size: 16px; line-height: 1;
  color: var(--muted);
  border-radius: 4px;
}
.row-menu__trigger:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.row-menu__pop {
  position: absolute; right: 0; top: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 4px;
  min-width: 160px;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
}
.row-menu__pop button {
  padding: 8px 12px;
  font-size: 13px;
  text-align: left;
  border-radius: 4px;
}
.row-menu__pop button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.row-menu__pop button.danger { color: oklch(0.5 0.18 28); }
.row-menu__pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.empty-cell { text-align: center; padding: 40px; color: var(--muted); }

/* Toolbar */
.admin-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.admin-toolbar__left { display: flex; gap: 10px; align-items: center; }
.admin-toolbar__right { display: flex; gap: 12px; align-items: center; }
.admin-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  width: 280px;
}
.admin-search input { background: none; border: 0; outline: 0; flex: 1; font-size: 13px; }
.admin-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

/* Product form */
.admin-form { max-width: 1100px; margin: 0 auto; }
.dup-notice {
  margin-top: 6px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
.form-col { display: flex; flex-direction: column; gap: 16px; }
.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.form-card h3 {
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 16px;
}
.field {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field:last-child { margin-bottom: 0; }
.field > span {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="number"],
.field textarea,
.field select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg);
}
.field textarea { resize: vertical; font-family: inherit; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.input-with-prefix {
  display: grid; grid-template-columns: auto 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.input-with-prefix .prefix {
  padding: 0 12px;
  display: inline-flex; align-items: center;
  font-family: var(--mono); color: var(--muted);
  border-right: 1px solid var(--line);
}
.input-with-prefix input {
  border: 0; background: transparent; padding: 10px 12px;
  font-size: 14px;
  width: 100%;
}
.input-with-prefix input:focus { outline: none; }

/* Segmented control */
.seg-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 3px;
  gap: 0;
}
.seg-control button {
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 2px;
  color: var(--muted);
}
.seg-control button.is-active { background: var(--ink); color: var(--bg); }

/* Toggle */
.toggle {
  display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 12px;
}
.toggle input { display: none; }
.toggle__track {
  width: 38px; height: 22px;
  background: color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 999px;
  position: relative;
  transition: background .15s;
}
.toggle__thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--bg);
  border-radius: 999px;
  transition: transform .15s;
}
.toggle input:checked + .toggle__track { background: var(--ink); }
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(16px); }

/* Upload area */
.upload-area {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .15s, background .15s;
}
.upload-area.is-hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.upload-area__preview .swatch { width: 100%; }
.upload-area__body h4 {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.upload-area__cta { display: flex; gap: 16px; align-items: center; margin: 14px 0 18px; }
.upload-area__thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 320px;
}
.thumb-slot {
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 18px;
  background: var(--bg);
  overflow: hidden;
}
.thumb-slot.is-filled { padding: 0; border-style: solid; }
.thumb-slot.is-filled .swatch { width: 100%; height: 100%; border-radius: 0; border: 0; }

/* Card preview in form sidebar */
.card-preview {
  display: flex; flex-direction: column;
  gap: 6px;
}
.card-preview .swatch { width: 100%; }
.hero-upload {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-upload__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.hero-upload__tile {
  position: relative;
}
.hero-upload__preview {
  width: min(100%, 360px);
}
.hero-upload__preview .swatch,
.hero-upload__preview.has-image,
.hero-upload__tile.has-image {
  width: 100%;
}
.hero-upload__preview.has-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.hero-upload__tile.has-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.hero-upload__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-upload__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.hero-upload__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-upload__input {
  display: none;
}
.card-preview__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px;
}
.card-preview__meta strong {
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 400;
}
.card-preview__meta span {
  font-family: var(--mono); font-size: 12px;
}

/* Categories */
.cat-list { display: flex; flex-direction: column; }
.cat-row {
  display: grid;
  grid-template-columns: 20px 1.2fr 1fr 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.cat-row:last-child { border-bottom: 0; }
.cat-handle { color: var(--muted); cursor: grab; font-size: 12px; }
.cat-name { font-weight: 500; }
.cat-count { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.cat-actions { display: flex; gap: 12px; }
.cat-row--editing { background: color-mix(in srgb, var(--accent) 4%, var(--bg)); }
.cat-edit-fields { display: flex; flex-direction: column; gap: 5px; }
.cat-edit-input {
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13.5px;
  font-family: inherit;
  width: 100%;
  outline: none;
}
.cat-edit-input--en {
  font-size: 12px;
  color: var(--muted);
  border-color: var(--line);
}

/* Inventory qty */
.qty--admin { gap: 4px; }
.qty--admin button { padding: 4px 8px; font-size: 12px; font-family: var(--mono); }
.stock-val { font-family: var(--mono); font-size: 13px; }

/* Responsive */
@media (max-width: 1100px) {
  .site-header__row {
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .primary-nav {
    gap: 18px;
    justify-content: flex-start;
    min-width: 0;
  }
  .primary-nav button {
    font-size: 13px;
  }
  .header-tools {
    gap: 8px;
  }
  .search-field {
    min-width: 170px;
    padding: 8px 10px;
  }
  .hero__inner { padding-top: 56px; }
  .hero__copy { max-width: min(760px, 100%); }
  .hero__footer { flex-direction: column; align-items: flex-start; }
  .modal__inner { grid-template-columns: 1fr; }
  .modal__gallery { border-right: 0; border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-cards { grid-template-columns: 1fr; }
  .admin-card--span2 { grid-column: span 1; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .admin { grid-template-columns: 1fr; }
  .admin__sidebar { display: none; }
  .admin__mobilebar { display: flex; }
}
@media (max-width: 720px) {
  .primary-nav { display: none; }
  .search-field { min-width: 0; }
  .hero__stage, .hero__inner { min-height: 520px; }
  .hero__inner { padding: 36px 20px 24px; }
  .hero__title { font-size: clamp(42px, 14vw, 64px); }
  .hero__lede { font-size: 16px; }
  .hero__cta { flex-wrap: wrap; gap: 14px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .modal-scrim { padding: 0; }
  .modal { max-height: 100vh; border-radius: 0; }
  .modal__detail { padding: 24px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .kpi-grid { grid-template-columns: 1fr; }
}


/* ────────────────────────────────────────────────────────────────────────────
   SIGNALWORKS additions — spec-driven catalogue components
   ──────────────────────────────────────────────────────────────────────────── */

/* Restore footer typography (was removed in refactor) */
.site-footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.site-footer ul li { padding: 4px 0; font-size: 13.5px; }
.site-footer ul li a {
  color: inherit; text-decoration: none;
  transition: color .15s;
}
.site-footer ul li a:hover, .site-footer ul li:hover { color: var(--accent); }

/* Header contact button (replaces cart icon) */
.contact-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.contact-btn:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* Product card — spec-driven version */
.card { gap: 14px; }
.card__model {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__name {
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 400;
  margin: 0;
}
.card__summary {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.card__foot {
  margin-top: 4px;
  display: flex; align-items: center; justify-content: flex-start;
}

[data-card-style="minimal"] .card__name { font-family: var(--sans); font-size: 14px; font-weight: 500; }
[data-card-style="minimal"] .card__summary { display: none; }
[data-card-style="minimal"] .card__flag { background: transparent; padding: 0; }

.product-grid--dense .card__name { font-size: 17px; }
.product-grid--dense .card__summary { -webkit-line-clamp: 2; font-size: 12.5px; }

/* Quick-view label updated */
.card__quickview {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Availability pill */
.avail-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: nowrap;
}
.avail-pill .avail-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--muted);
  display: inline-block;
}
.avail-pill--ok { color: oklch(0.4 0.14 150); border-color: color-mix(in srgb, oklch(0.5 0.12 150) 30%, var(--line)); }
.avail-pill--ok .avail-dot { background: oklch(0.55 0.14 150); }
.avail-pill--lead { color: oklch(0.45 0.13 60); border-color: color-mix(in srgb, oklch(0.65 0.13 60) 30%, var(--line)); }
.avail-pill--lead .avail-dot { background: oklch(0.65 0.15 60); }
.avail-pill--out { color: oklch(0.5 0.16 28); border-color: color-mix(in srgb, oklch(0.55 0.18 28) 30%, var(--line)); }
.avail-pill--out .avail-dot { background: oklch(0.55 0.18 28); }

/* Table density (storefront) */
.product-table {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}
.product-table__head {
  display: grid;
  grid-template-columns: 60px 160px 1fr 160px 140px;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-row {
  display: grid;
  grid-template-columns: 60px 160px 1fr 160px 140px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  transition: background .15s;
}
.product-row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.product-row__swatch { width: 48px; height: 48px; }
.product-row__swatch .swatch { width: 100%; height: 100%; }
.product-row__model { font-size: 12px; }
.product-row__name { font-family: var(--display-font); font-size: 18px; font-weight: 400; line-height: 1.1; }
.product-row__sub { font-size: 12.5px; margin-top: 2px; }
.product-row__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  color: var(--muted);
  transition: color .15s;
}
.product-row:hover .product-row__cta { color: var(--accent); }

/* Modal — spec table */
.spec-table {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 8px;
}
.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  align-items: baseline;
}
.spec-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-val {
  text-wrap: pretty;
}

.tab-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.tab-body p:last-child { margin-bottom: 0; }
.bullets { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bullets li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--muted);
}

.delivery-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.delivery-val {
  font-family: var(--display-font);
  font-size: 22px;
  margin-top: 6px;
}

/* Modal — downloads list */
.modal__downloads {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}
.download-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.download-btn:hover { border-color: var(--ink); background: var(--surface); }
.download-btn .mono {
  background: var(--ink);
  color: var(--bg);
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* Modal — inquiry block (replaces cart CTA) */
.modal__inquiry {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.modal__inquiry h4 {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.modal__inquiry > p { margin: 0 0 14px; font-size: 13.5px; }
.inquiry-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.inquiry-cta .primary, .inquiry-cta .ghost {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
  transition: background .15s, color .15s, border-color .15s;
}
.inquiry-cta .primary {
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  flex: 1;
  min-width: 220px;
  justify-content: center;
}
.inquiry-cta .primary:hover { background: var(--accent); border-color: var(--accent); }
.inquiry-cta .ghost {
  border: 1px solid var(--ink); color: var(--ink);
}
.inquiry-cta .ghost:hover { background: var(--ink); color: var(--bg); }
.inquiry-meta {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.rel-model { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

/* Contact block (above footer) */
.contact-block {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter);
  margin-top: 40px;
}
.contact-block__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.contact-block h2 {
  font-family: var(--display-font);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 400;
  margin: 12px 0 16px;
  text-wrap: balance;
}
.contact-block p { max-width: 460px; text-wrap: pretty; }
.contact-block__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.contact-card {
  display: flex; flex-direction: column;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .15s;
  gap: 4px;
}
.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card--info:hover { transform: none; cursor: default; }
.contact-card__icon { font-size: 20px; margin-bottom: 8px; color: var(--accent); }
.contact-card__label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__val {
  font-family: var(--display-font);
  font-size: 19px;
  line-height: 1.25;
  margin-top: 2px;
}
.contact-card__sub { font-size: 11.5px; margin-top: 6px; }

/* About page */
/* ─── About page ─────────────────────────────────────────────────────────── */
.about-page { overflow: hidden; }

/* Hero banner */
.about-page__banner {
  background: var(--ink);
  color: var(--bg);
  padding: 72px var(--gutter) 64px;
}
.about-page__banner-inner {
  max-width: min(var(--container), 860px);
  margin: 0 auto;
}
.about-page__banner .eyebrow {
  color: rgba(255,255,255,0.52);
  margin-bottom: 20px;
}
.about-page__title {
  font-family: var(--display-font);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 22px;
  text-wrap: balance;
  color: var(--bg);
}
.about-page__lede {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  text-wrap: pretty;
  margin: 0;
}

/* Stats strip */
.about-page__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.about-page__stat {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-page__stat:last-child { border-right: 0; }
.about-page__stat-value {
  font-family: var(--display-font);
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
}
.about-page__stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Body content */
.about-page__body {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Info grid (story + capabilities) */
.about-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-page__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about-page__panel p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.78;
  text-wrap: pretty;
}

/* Highlights */
.about-page__highlights {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about-page__highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.about-page__highlight {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}
.about-page__highlight-index {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.about-page__highlight p {
  line-height: 1.68;
  text-wrap: pretty;
}

/* Clients / trusted agencies */
.about-page__clients {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about-page__clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.about-page__clients-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  font-size: 13.5px;
}
.about-page__clients-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Contact footer */
.about-page__footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 52px var(--gutter) 56px;
}
.about-page__footer-grid {
  max-width: var(--container);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.about-page__addr .eyebrow { margin-bottom: 12px; }
.about-page__addr p {
  color: var(--muted);
  line-height: 1.72;
  text-wrap: pretty;
}
.about-page__footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}
.about-page__footer-contacts a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.about-page__footer-contacts a:hover { color: var(--accent); }
.about-page__cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: background .15s;
}
.about-page__cta:hover { background: var(--accent); }

/* ─── Admin: spec editor ─────────────────────────────────────────────────── */
.spec-editor { display: flex; flex-direction: column; gap: 8px; }
.spec-editor__row {
  display: grid;
  grid-template-columns: 180px 1fr 28px;
  gap: 8px;
  align-items: stretch;
}
.spec-key-input, .spec-val-input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
}
.spec-key-input {
  font-family: var(--mono);
  font-size: 12px;
}
.spec-key-input:focus, .spec-val-input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg);
}
.spec-remove {
  width: 28px;
  font-size: 16px;
  color: var(--muted);
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.spec-remove:hover { background: color-mix(in srgb, oklch(0.55 0.18 28) 12%, transparent); color: oklch(0.5 0.18 28); }

/* Admin: doc row in upload area */
.doc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 16px;
  font-size: 13px;
}
.doc-row__icon {
  background: var(--ink); color: var(--bg);
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* Admin: availability select in inline table */
.avail-select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  min-width: 130px;
}
.avail-select:focus { outline: none; border-color: var(--ink); }

/* Admin: storefront preview card */
.card-preview { gap: 8px; }
.card-preview__model {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-preview__name {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 400;
  display: block;
  margin: 2px 0;
}
.card-preview__summary {
  margin: 2px 0 8px;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Admin sidebar — italic accent inside brand name */
.admin__brand .brand__name i { font-style: italic; color: var(--accent); font-weight: 400; }
.admin__brand-sub { margin-top: 2px; }

/* Field labels include spec key style */
.field input.mono, .field textarea.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }

/* Responsive — about page, contact block, product table */
@media (max-width: 1100px) {
  .about-page__stats { grid-template-columns: repeat(2, 1fr); }
  .about-page__stat:nth-child(2) { border-right: 0; }
  .about-page__stat:nth-child(3),
  .about-page__stat:nth-child(4) { border-top: 1px solid var(--line); }
  .about-page__grid,
  .about-page__highlight-grid { grid-template-columns: 1fr; }
  .about-page__footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-block__inner { grid-template-columns: 1fr; gap: 32px; }
  .product-table__head, .product-row {
    grid-template-columns: 48px 140px 1fr 130px;
  }
  .product-row__cta, .product-table__head > div:last-child { display: none; }
}
@media (max-width: 720px) {
  .about-page__banner { padding: 48px 20px 40px; }
  .about-page__body { padding: 32px 20px; gap: 16px; }
  .about-page__footer { padding: 36px 20px 44px; }
  .about-page__footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-page__highlight-grid { grid-template-columns: 1fr; }
  .contact-strip__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .product-table__head, .product-row {
    grid-template-columns: 40px 1fr 110px;
  }
  .product-table__head > div:nth-child(2), .product-row__model { display: none; }
  .inquiry-cta .primary, .inquiry-cta .ghost { min-width: 0; width: 100%; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
}


/* ─── FORTH branding additions ───────────────────────────────────────────── */
.brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
  align-self: center;
  line-height: 1;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) {
  .brand__sub { display: none; }
}

.admin__brand .brand__sub { display: none; }

/* Card / row category label (replaces availability pill) */
.card__category, .product-row__category {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-row__category { white-space: nowrap; }


/* ─── FORTH logo brand ───────────────────────────────────────────────────── */
.brand { padding: 0; }
.brand__logo {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 2px;
}
.brand__logo--footer { height: 28px; }
.brand__logo--admin {
  height: 44px;
  margin-bottom: 6px;
  display: block;
}
.admin__brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.admin__brand .admin__brand-sub {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* Slight adjustment for header row alignment with bigger logo */
.site-header__row { padding-top: 12px; padding-bottom: 12px; }

/* Sticky category nav uses bg now (palette changes its offset top — recalculate at runtime not needed; CSS just needs to track header height ~ 62px) */
.category-nav { top: 62px; }
@media (max-width: 720px) {
  .brand__logo { height: 30px; }
  .category-nav { top: 56px; }
}


/* Dark palette adjustment — invert the black parts of the logo so the wordmark stays visible.
   The FORTH green stays roughly the same; the black "O" graphic becomes light. */
[data-palette="ink"] .brand__logo { filter: invert(1) hue-rotate(180deg); }


/* ═══════════════════════════════════════════════════════════════════════════
   i18n: LANGUAGE TOGGLE + ENQUIRY FORM + ADMIN ENQUIRIES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Language toggle ────────────────────────────────────────────────────── */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: border-color .15s;
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle span { padding: 0 2px; transition: color .15s; }
.lang-toggle .is-active { color: var(--ink); font-weight: 500; }
.lang-toggle__sep { color: var(--line); }

.lang-toggle--admin {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 10px;
  background: transparent;
}
.admin__user { gap: 10px; align-items: center; }

/* Admin sidebar alert dot on nav badge */
.admin__nav-count--alert {
  background: var(--accent);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 500;
}
.admin__nav button.is-active .admin__nav-count--alert {
  background: var(--bg);
  color: var(--ink);
}

/* Thai language adjustments — slightly larger line-height, wider letter-spacing on display */
html[lang="th"] body { line-height: 1.65; }
html[lang="th"] .hero__title { line-height: 1.05; letter-spacing: 0; }
html[lang="th"] .about-page__title { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.1; }
html[lang="th"] .about-page__lede { font-size: 16px; }
html[lang="th"] .about-page__stat-value { font-size: 32px; }
html[lang="th"] .about-page__clients-list li { font-size: 15px; }
html[lang="th"] .about-page__highlight p { font-size: 15px; }
html[lang="th"] .modal__title { line-height: 1.15; }
html[lang="th"] .card__name { line-height: 1.25; }
html[lang="th"] .display-only, html[lang="th"] .eyebrow { letter-spacing: 0.08em; }

/* ─── Enquiry modal ──────────────────────────────────────────────────────── */
.modal--enquiry {
  max-width: 720px;
  padding: 0;
  display: block;
  border: 0;
}
.modal--enquiry::before { content: none; }
.enquiry-head {
  padding: 32px 32px 16px;
  border-bottom: 1px solid var(--line);
}
.enquiry-head .modal__title { font-size: 32px; margin-bottom: 6px; }
.enquiry-lede { font-size: 14px; max-width: 560px; }

.modal--enquiry .field, .modal--enquiry .enquiry-grid {
  margin: 0;
}
.modal--enquiry > .field, .modal--enquiry > .enquiry-grid,
.modal--enquiry > .enquiry-attach, .modal--enquiry > .enquiry-foot {
  padding-left: 32px;
  padding-right: 32px;
}
.modal--enquiry > .field { padding-top: 14px; padding-bottom: 6px; }
.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  padding-top: 14px;
  padding-bottom: 6px;
}
.modal--enquiry .field span em {
  font-style: normal;
  color: var(--accent);
  margin-left: 2px;
}
.modal--enquiry .field input,
.modal--enquiry .field textarea,
.modal--enquiry .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 14px;
  font-family: inherit;
}
.modal--enquiry .field input:focus,
.modal--enquiry .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.modal--enquiry .field textarea { resize: vertical; min-height: 100px; }
.field.is-error input, .field.is-error textarea { border-color: oklch(0.55 0.18 28); }
.field-err {
  font-size: 11.5px;
  color: oklch(0.5 0.18 28);
  margin-top: 4px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Product chips inside enquiry */
.product-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.product-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.product-chip__model {
  font-size: 11px;
  color: var(--muted);
  padding-right: 6px;
  border-right: 1px solid var(--line);
}
.product-chip__name { padding: 0 4px; }
.product-chip button {
  width: 22px; height: 22px;
  border-radius: 999px;
  font-size: 16px; line-height: 1;
  color: var(--muted);
  background: var(--bg);
  margin-left: 2px;
}
.product-chip button:hover { background: var(--ink); color: var(--bg); }
.add-product-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}
.add-product-btn:hover { border-color: var(--ink); color: var(--ink); }
.product-picker {
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.product-picker__item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 8px 12px;
  width: 100%;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.product-picker__item:last-child { border-bottom: 0; }
.product-picker__item:hover { background: var(--bg); }

/* Enquiry attachment row */
.enquiry-attach {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 32px;
  margin: 12px 0 0;
  background: var(--surface);
  font-size: 13.5px;
}
.enquiry-attach__icon { font-size: 22px; color: var(--accent); }

/* Enquiry footer */
.enquiry-foot {
  padding: 20px 32px 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.enquiry-privacy { max-width: 380px; line-height: 1.5; }
.enquiry-actions { display: flex; gap: 10px; }
.primary-btn--lg { padding: 12px 24px; font-size: 13.5px; }

/* Enquiry success */
.enquiry-success {
  padding: 60px 40px;
  text-align: center;
}
.enquiry-success__mark {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.enquiry-success h2 {
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
}
.enquiry-success p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 24px;
  text-wrap: pretty;
}

/* ─── Contact block CTA ──────────────────────────────────────────────────── */
.contact-block__cta {
  margin-top: 24px;
  padding: 14px 22px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: background .15s;
}
.contact-block__cta:hover { background: var(--accent); }

/* ─── Admin enquiries ───────────────────────────────────────────────────── */
.admin-enquiries .admin-page__head { margin-bottom: 16px; }

.enq-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.enq-tabs button {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}
.enq-tabs button sup {
  font-family: var(--mono); font-size: 10px;
  margin-left: 4px;
  color: var(--muted);
}
.enq-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.enq-tabs button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.enq-tabs button.is-active sup { color: color-mix(in srgb, var(--bg) 65%, transparent); }

.enq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.enq-layout.has-detail {
  grid-template-columns: 1fr 380px;
}
.enq-list-wrap { min-width: 0; overflow-x: auto; }

.enq-table tr { cursor: pointer; }
.enq-table tr.is-new {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.enq-table tr.is-new:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.enq-table tr.is-new.is-selected, .enq-table tr.is-selected {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.enq-from strong { display: block; }

.enq-products {
  font-size: 11.5px;
  white-space: nowrap;
}

.enq-status {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  white-space: nowrap;
}
.enq-status--new        { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); font-weight: 500; }
.enq-status--in-progress{ background: color-mix(in srgb, oklch(0.65 0.15 60) 20%, transparent); color: oklch(0.45 0.15 60); }
.enq-status--quoted     { background: color-mix(in srgb, oklch(0.6 0.14 240) 15%, transparent); color: oklch(0.4 0.14 240); }
.enq-status--won        { background: color-mix(in srgb, oklch(0.5 0.14 150) 18%, transparent); color: oklch(0.4 0.14 150); font-weight: 500; }
.enq-status--lost       { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }

/* Detail pane */
.enq-detail {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 18px;
  position: sticky; top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.enq-detail__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.enq-detail__head h3 {
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.1;
  margin-top: 4px;
}
.enq-detail__contact {
  display: flex; flex-direction: column; gap: 6px;
}
.enq-detail__link {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  width: fit-content;
  font-family: var(--mono);
}
.enq-detail__link:hover { color: var(--accent); border-color: var(--accent); }
.enq-detail__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 13px;
}
.enq-detail__meta > div > div { margin-top: 2px; }
.enq-detail__section {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
}
.enq-detail__section .eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.enq-detail__message {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  padding: 14px;
  border-radius: var(--radius);
  margin: 0;
  white-space: pre-wrap;
  text-wrap: pretty;
}
.enq-detail__products {
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}
.enq-detail__products li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.enq-detail__products li:last-child { border-bottom: 0; }

.enq-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.enq-status-btn {
  padding: 7px 10px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  text-align: left;
}
.enq-status-btn:hover { border-color: var(--ink); color: var(--ink); }
.enq-status-btn.is-active.enq-status-btn--new        { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); border-color: var(--accent); }
.enq-status-btn.is-active.enq-status-btn--in-progress{ background: color-mix(in srgb, oklch(0.65 0.15 60) 18%, transparent); color: oklch(0.4 0.15 60); border-color: oklch(0.65 0.15 60); }
.enq-status-btn.is-active.enq-status-btn--quoted     { background: color-mix(in srgb, oklch(0.6 0.14 240) 14%, transparent); color: oklch(0.4 0.14 240); border-color: oklch(0.6 0.14 240); }
.enq-status-btn.is-active.enq-status-btn--won        { background: color-mix(in srgb, oklch(0.5 0.14 150) 18%, transparent); color: oklch(0.35 0.14 150); border-color: oklch(0.5 0.14 150); }
.enq-status-btn.is-active.enq-status-btn--lost       { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.enq-notes {
  display: flex; flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}
.enq-notes li {
  padding: 8px 10px;
  background: var(--surface);
  border-radius: var(--radius);
}
.enq-note__head { margin-bottom: 4px; }

.enq-note-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.enq-note-add input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
}
.enq-note-add input:focus { outline: none; border-color: var(--ink); }

.enq-detail__actions {
  display: flex; gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.enq-detail__actions .primary-btn {
  flex: 1;
  text-decoration: none;
  text-align: center;
}

/* Responsive: collapse detail to bottom on narrow screens */
@media (max-width: 1100px) {
  .enq-layout.has-detail { grid-template-columns: 1fr; }
  .enq-detail { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .enquiry-grid { grid-template-columns: 1fr; }
  .enquiry-foot { grid-template-columns: 1fr; }
  .modal--enquiry > .field, .modal--enquiry > .enquiry-grid,
  .modal--enquiry > .enquiry-attach, .modal--enquiry > .enquiry-foot,
  .enquiry-head { padding-left: 20px; padding-right: 20px; }
  .enq-status-grid { grid-template-columns: 1fr; }
}
