/* ─────────────────────────────────────────────────────────────────
 * companies.css — Company directory + detail page (/companies/)
 * All selectors prefixed .co- to avoid collisions.
 * Uses site-wide CSS variables (--accent, --bg-card, --border, etc.)
 * ────────────────────────────────────────────────────────────────── */

/* ── Page shell ───────────────────────────────────────────────────── */
.co-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* Back link — mirrors offices.css .ov-back so the manage pages (which load
   only companies.css) get the same styled, spaced "← Back" as the detail
   pages, instead of a plain blue cramped link. */
.ov-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .15s;
}
.ov-back:hover { color: var(--accent); }

.co-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.co-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.co-page-sub {
  color: var(--text-muted);
  font-size: .88rem;
  margin: 0;
}

/* ── Page hero (directory + product directory) ────────────────────── */
.co-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(205,161,44,.10), transparent 55%),
    var(--bg-card);
  padding: 26px 28px;
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  overflow: hidden;
}
.co-hero::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.co-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.co-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.01em;
  margin: 0; color: var(--text-primary); line-height: 1.1;
}
.co-hero-sub {
  font-size: .95rem; color: var(--text-secondary); margin: 9px 0 0; line-height: 1.55; max-width: 60ch;
}
.co-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Two-column layout ────────────────────────────────────────────── */
.co-layout {
  display: grid;
  /* Filters left, results right — consistent left-hand column across all
     companies pages (the detail pages match via .co-detail-grid below). */
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.co-main { min-width: 0; }
@media (max-width: 768px) {
  .co-layout { grid-template-columns: 1fr; }
}

/* ── Detail pages (company + product): side column on the LEFT ────────
   Scoped class added to the shared .ov-grid so offices' own pages are
   untouched. companies.css loads after offices.css, so these win. */
.co-detail-grid { grid-template-columns: 320px 1fr; }
.co-detail-grid .ov-aside { order: 1; }
.co-detail-grid .ov-main  { order: 2; min-width: 0; }
@media (max-width: 992px) {
  .co-detail-grid { grid-template-columns: 1fr; }
  .co-detail-grid .ov-main  { order: 1; }   /* content first when stacked */
  .co-detail-grid .ov-aside { order: 2; }
}

/* Full-width aside buttons: the inline width:100% styles set display:block,
   which kills the button's flex centering so the label rode the top of the
   fixed-height (40px) button. Force flex-centering back for every aside button. */
.co-detail-grid .ov-aside .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.co-sidebar {
  position: sticky;
  top: 72px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.co-filter-block { margin-bottom: 20px; }
.co-filter-block:last-of-type { margin-bottom: 0; }

.co-filter-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Search input */
.co-search-wrap { position: relative; }
.co-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .82rem;
  pointer-events: none;
}
.co-search-input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .86rem;
  box-sizing: border-box;
  transition: border-color .15s;
}
.co-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(205,161,44,.12);
}

/* Radio rows — clean selectable chips with a highlighted checked state */
.co-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .83rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  margin: 1px 0;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.3;
  transition: background .12s, color .12s, border-color .12s;
}
/* The native radio is forced site-wide (appearance:auto !important); on this
   filter list the discs read as heavy clutter, so we visually hide the control
   and turn each row into a selectable pill — the checked row fills gold. The
   input stays in the DOM (label toggles it, JS auto-submits, a11y intact). */
.co-check-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.co-check-row::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  opacity: .35;
  flex-shrink: 0;
  transition: background .12s, opacity .12s, transform .12s;
}
.co-check-row:hover { background: var(--overlay-soft); color: var(--text-primary); }
.co-check-row:hover::before { opacity: .6; }
.co-check-row:has(input:checked) {
  background: var(--accent-dim);
  border-color: rgba(205,161,44,.25);
  color: var(--accent);
  font-weight: 600;
}
.co-check-row:has(input:checked)::before { background: var(--accent-surface); opacity: 1; transform: scale(1.25); }
.co-check-row:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Select dropdown */
.co-select {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .86rem;
  cursor: pointer;
}
.co-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(205,161,44,.12);
}

/* Clear / Reset links */
.co-filter-clear {
  display: inline-block;
  margin-top: 6px;
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: underline;
}
.co-filter-clear:hover { color: var(--text-primary); }

.co-filter-reset {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 16px;
  padding: 8px 12px;
  background: rgba(178,62,61,.08);
  color: var(--danger);
  border: 1px solid rgba(178,62,61,.22);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.co-filter-reset:hover {
  background: rgba(178,62,61,.14);
  border-color: rgba(178,62,61,.35);
  color: var(--danger);
}

/* ── Card grid ────────────────────────────────────────────────────── */
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

/* ── Company card ─────────────────────────────────────────────────── */
.co-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(205,161,44,.04) 0%, var(--bg-card) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.16);
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.co-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
  box-shadow: 0 12px 30px rgba(0,0,0,.30);
  color: inherit;
}
.co-card--partner { border-color: rgba(245,158,11,.28); }

.co-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* Fill the banner edge-to-edge (no dead space) — most company "logos" here are
   building / brand photos, so they read as a cover image like office cards. */
.co-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.co-card-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(205,161,44,.22);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.co-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.co-card-name {
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.co-card-verified {
  color: #3b82f6;
  font-size: .83rem;
  flex-shrink: 0;
}

.co-card-type {
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(205,161,44,.20);
  border-radius: 99px;
  padding: 2px 9px;
  width: fit-content;
  line-height: 1.5;
}

.co-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.co-card-flag { font-size: .95rem; line-height: 1; }

.co-card-size {
  font-size: .74rem;
  color: var(--text-muted);
}

/* ── Pagination ───────────────────────────────────────────────────── */
.co-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
/* .co-page-btn → converged onto the canonical .arch-icon-btn (FR-4 Wave 2). */
.co-page-info {
  font-size: .86rem;
  color: var(--text-muted);
}

/* ── Empty state ──────────────────────────────────────────────────── */
.co-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  text-align: center;
}
.co-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(205,161,44,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 18px;
}
.co-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* ── Detail page ──────────────────────────────────────────────────── */

/* Unpublished banner */
.co-unpublished-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.25);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .86rem;
  color: #fbbf24;
  margin-bottom: 18px;
}

/* Hero logo */
.co-hero { padding: 24px; }
.co-hero-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.co-hero-logo img {
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
}
.co-logo-placeholder {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.co-verified-badge {
  color: #3b82f6;
  font-size: 1.05rem;
  vertical-align: middle;
  margin-left: 4px;
}

.co-community-note {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 500;
}

/* Body sections */
.co-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 14px;
}
.co-section-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.co-section-title i { color: var(--accent); font-size: .8rem; }

.co-description {
  font-size: .91rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.co-description p { margin: 0 0 .8em; }
.co-description p:last-child { margin-bottom: 0; }

.co-section-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .86rem;
  padding: 8px 0;
}

.co-aside-cta { display: flex; flex-direction: column; }
.co-follow-btn { cursor: default; }

/* ── Team grid ───────────────────────────────────────────────────── */
.co-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}
.co-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.co-team-card:hover { background: var(--overlay-soft); }
.co-team-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.co-team-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  word-break: break-word;
}
.co-team-role {
  font-size: .7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* ── Claim card ───────────────────────────────────────────────────── */
.co-claim-hint {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}
.co-claim-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.co-claim-email-input {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .86rem;
  box-sizing: border-box;
  transition: border-color .15s;
}
.co-claim-email-input:focus {
  outline: none;
  border-color: var(--accent);
}
.co-claim-submit { width: 100%; }

.co-claim-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 0 0 8px;
}
.co-claim-status--pending  { background: rgba(251,191,36,.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }
.co-claim-status--approved { background: rgba(16,185,129,.1);  color: #34d399; border: 1px solid rgba(16,185,129,.25); }
.co-claim-status--rejected { background: rgba(178,62,61,.1);   color: var(--danger); border: 1px solid rgba(178,62,61,.25); }

/* ── Section count badge ─────────────────────────────────────────── */
.co-section-count {
  font-size: .72rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  margin-left: 8px;
  color: var(--text-muted);
}

/* ── Portfolio grid ─────────────────────────────────────────────── */
.co-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.co-portfolio-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.co-portfolio-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transform: translateY(-2px);
  border-color: rgba(205,161,44,.28);
}
.co-portfolio-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
}
.co-portfolio-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.co-portfolio-title {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.co-portfolio-meta {
  font-size: .71rem;
  color: var(--text-muted);
}

/* ── Open positions list ────────────────────────────────────────── */
.co-jobs-list { display: flex; flex-direction: column; gap: 2px; }

.co-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .14s, border-color .14s;
}
.co-job-row:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
}
.co-job-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-job-title {
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-job-meta { font-size: .74rem; color: var(--text-muted); }
.co-job-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.co-job-chip {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.co-job-chip--featured {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ── Specialisation chips ────────────────────────────────────────── */
.co-section--flush { padding-top: 0; }
.co-spec-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
.co-spec-chip {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  letter-spacing: .02em;
}

/* ── Certification badges ────────────────────────────────────────── */
.co-cert-list { display: flex; flex-direction: column; gap: 8px; }
.co-cert-badge {
  border-inline-start: 3px solid var(--border);
  padding: 6px 10px;
  background: var(--bg-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.co-cert-badge--expired { opacity: .55; }
.co-cert-type { font-size: .8rem; font-weight: 700; color: var(--text-primary); letter-spacing: .03em; }
.co-cert-detail { font-size: .72rem; color: var(--text-muted); }
.co-cert-valid { font-size: .7rem; color: var(--text-muted); font-style: italic; }
.co-cert-valid--expired { color: var(--danger); }

/* ── Partner badges ─────────────────────────────────────────────── */
.co-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1.5px solid currentColor;
  vertical-align: middle;
  margin-left: 6px;
}
.co-partner-badge--gold   { color: #f59e0b; background: rgba(245,158,11,.08); }
.co-partner-badge--silver { color: #94a3b8; background: rgba(148,163,184,.08); }
.co-partner-badge--bronze { color: #b45309; background: rgba(180,83,9,.08); }

/* ── Partner ribbon on directory card ──────────────────────────── */
.co-partner-ribbon {
  position: absolute;
  top: 10px; right: -22px;
  transform: rotate(40deg);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.co-partner-ribbon--gold   { background: #f59e0b; color: #1c1917; }
.co-partner-ribbon--silver { background: #94a3b8; color: #0f172a; }
.co-partner-ribbon--bronze { background: #b45309; color: #fff8f0; }

/* ── Gold partners hero banner ──────────────────────────────────── */
.co-gold-banner {
  margin-bottom: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(245,158,11,.07) 0%, transparent 70%);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: var(--radius-md);
}
.co-gold-banner-eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color:var(--accent);
  margin: 0 0 12px;
}
.co-gold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.co-gold-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid rgba(245,158,11,.18);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .14s, background .14s;
}
.co-gold-card:hover {
  border-color: #f59e0b;
  background: rgba(245,158,11,.05);
}
.co-gold-logo {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid rgba(245,158,11,.15);
  display: flex; align-items: center; justify-content: center;
}
.co-gold-logo img { width: 100%; height: 100%; object-fit: cover; }
.co-gold-logo-placeholder { font-size: 1.1rem; font-weight: 700; color: #f59e0b; }
.co-gold-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.co-gold-name {
  font-size: .86rem; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-gold-type { font-size: .72rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════
   Products — grid cards, detail page, manager dashboard
   ══════════════════════════════════════════════════════════════════ */

/* Section header "Manage" action + members-only hint */
.co-section-action {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.co-section-action:hover { text-decoration: underline; }
.co-product-memberhint {
  display: flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--text-muted);
  margin: 0 0 12px;
}
.co-product-memberhint i { color: var(--accent); }

/* Product card grid (company page + directory) */
.co-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.co-product-grid--directory {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.co-product-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,.16);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.co-product-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
  transform: translateY(-2px);
  border-color: rgba(205,161,44,.28);
}
.co-product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.co-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-product-thumb-placeholder { font-size: 1.6rem; color: var(--text-muted); opacity: .5; }
.co-product-featured {
  position: absolute; top: 8px; right: 8px;
  background: rgba(245,158,11,.92); color: #1a1205;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .66rem;
}
.co-product-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.co-product-name {
  font-size: .85rem; font-weight: 600; color: var(--text-primary); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.co-product-company { font-size: .72rem; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 5px; }
.co-product-company i { color: var(--accent); font-size: .68rem; }
.co-product-cat { font-size: .71rem; color: var(--text-muted); }
.co-product-price { font-size: .84rem; font-weight: 800; color: var(--accent); }
.co-product-poa { font-weight: 600; color: var(--text-muted); font-size: .8rem; }
.co-product-summary {
  font-size: .74rem; color: var(--text-muted); line-height: 1.4; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Product detail ──────────────────────────────────────────────── */
.pd-gallery { margin-bottom: 18px; }
.pd-gallery-main {
  width: 100%; aspect-ratio: 16 / 10;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery-empty { font-size: 3rem; color: var(--text-muted); opacity: .4; }
.pd-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px; padding: 0; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-deep);
  transition: border-color .15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb--active { border-color: var(--accent); }

.pd-head { margin-bottom: 18px; }
.pd-cat-chip {
  display: inline-block; font-size: .72rem; font-weight: 600;
  color: var(--accent); background: var(--accent-dim);
  border-radius: 20px; padding: 2px 12px; margin-bottom: 8px;
}
.pd-title {
  font-size: 1.55rem; font-weight: 800; color: var(--text-primary);
  margin: 0 0 6px; line-height: 1.2;
}
.pd-featured { color: #f59e0b; font-size: 1rem; }
.pd-by {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; color: var(--text-secondary); text-decoration: none;
}
.pd-by:hover { color: var(--accent); }
.pd-by i { color: var(--accent); }
.pd-by-verified { color: var(--accent); font-size: .8rem; }
.pd-summary { font-size: .95rem; color: var(--text-secondary); line-height: 1.6; margin: 10px 0 0; }

/* Price row + inquiry */
.pd-price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 4px 0 18px; padding: 14px 16px;
  background: var(--accent-dim); border: 1px solid rgba(205,161,44,.22); border-radius: var(--radius-md);
}
.pd-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.pd-poa { font-size: 1.05rem; font-weight: 700; color: var(--text-secondary); }
.pd-inquiry .pd-inq-form { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.pd-inq-input {
  flex: 1 1 320px; min-width: 200px; resize: vertical;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text-primary); font: inherit;
}
.pd-inq-input:focus { outline: none; border-color: var(--accent); }
.pd-inq-yours { display: flex; flex-direction: column; gap: 10px; }
.pd-inq-q { font-size: .9rem; color: var(--text-secondary); margin: 0; }
.pd-inq-reply {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .9rem; color: var(--text-primary);
}
.pd-inq-from { display: block; font-weight: 700; color: var(--accent); font-size: .8rem; margin-bottom: 4px; }
.pd-inq-wait { font-size: .84rem; color: var(--text-muted); margin: 0; }
.pd-inq-wait i { color: var(--accent); }

/* Inquiry inbox (manager) */
.pd-inq-list { display: flex; flex-direction: column; gap: 12px; }
.pd-inq-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.pd-inq-card--open { border-left: 3px solid var(--accent); }
.pd-inq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pd-inq-prod { font-size: .92rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.pd-inq-prod:hover { color: var(--accent); }
.pd-inq-meta { font-size: .75rem; color: var(--text-muted); }
.pd-inq-msg { font-size: .9rem; color: var(--text-secondary); margin: 0; }
.pd-inq-msg--empty { font-style: italic; color: var(--text-muted); }

.pd-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden; background: #000;
}
.pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Company card on the detail aside */
.pd-company-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.pd-company-logo {
  width: 42px; height: 42px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
  background: var(--bg-surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.pd-company-logo img { width: 100%; height: 100%; object-fit: cover; }
.pd-company-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-company-name { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.pd-company-type { font-size: .72rem; color: var(--text-muted); }

/* ── Manager dashboard ───────────────────────────────────────────── */
.pd-cap-note {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: .8rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 12px;
}
.pd-upgrade-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent-dim); border: 1px solid rgba(205,161,44,.28);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px;
  font-size: .85rem; color: var(--text-secondary);
}
.pd-upgrade-banner i { color: var(--accent); }
.pd-manage-list { display: flex; flex-direction: column; gap: 8px; }
.pd-manage-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.pd-manage-thumb {
  width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
  background: var(--bg-deep); display: flex; align-items: center; justify-content: center;
}
.pd-manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-manage-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pd-manage-name { font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.pd-manage-star { color: #f59e0b; font-size: .78rem; margin-left: 4px; }
.pd-manage-meta { font-size: .76rem; color: var(--text-muted); }
.pd-status { font-weight: 600; }
.pd-status--live { color: #22c55e; }
.pd-status--draft { color: var(--text-muted); }
.pd-manage-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pd-manage-actions .btn-sm { padding: 6px 9px; font-size: .8rem; line-height: 1; }
.pd-manage-del:hover { color: var(--danger); border-color: var(--danger); }

/* Existing-image manager on the edit form */
.pd-img-manage {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.pd-img-manage-item {
  display: flex; flex-direction: column; gap: 4px; cursor: pointer; margin: 0;
}
.pd-img-manage-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.pd-img-manage-del { font-size: .72rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }

.arch-modal-icon--danger { background: rgba(178,62,61,.12); color: var(--danger); }

.co-header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.co-notify-form { display: flex; flex-direction: column; gap: 9px; }
.co-notify-row { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--text-secondary); cursor: pointer; margin: 0; }
.co-notify-row input { accent-color: var(--accent); }
.co-notify-save { margin-top: 6px; width: 100%; text-align: center; display: block; }

.pd-ad-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pd-ad-form .co-select { flex: 1 1 160px; min-width: 130px; }
.pd-ad-form .arch-cta { flex-shrink: 0; }
