/* PromSelect V1 -- industrial B2B catalog visual layer.
   Typography, color system, hero/cards/forms, icons. Presentation only --
   no data model/pipeline/Gate/canonical/robots/schema/URL logic lives here. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #f1f4f8;
  --color-surface: #ffffff;
  --color-surface-2: #f6f8fb;
  --color-border: #dde3ec;
  --color-text: #1c2531;
  --color-text-muted: #5c6b7d;
  --color-primary: #0f3358;
  --color-primary-dark: #0a2440;
  --color-primary-light: #eaf1f9;
  --color-steel: #2f6fa8;
  --color-accent: #e07a1f;
  --color-accent-dark: #b95f11;
  --color-ok-bg: #dff3e6;
  --color-ok-text: #1c6b34;
  --color-warn-bg: #fdefd6;
  --color-warn-text: #8a5a10;
  --color-bad-bg: #fbdede;
  --color-bad-text: #9c2323;
  --color-neutral-bg: #e6e9ee;
  --color-neutral-text: #4b5768;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 50, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 30, 50, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 30, 50, 0.14);
  --container-width: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-steel); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--color-primary-dark); letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; margin: 0 0 0.6rem; overflow-wrap: break-word; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
h2 .icon { width: 1.15em; height: 1.15em; color: var(--color-steel); }

.section-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-heading-row h2 { margin-bottom: 0; }
.section-heading-row__link { font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }
.section-heading-row__link .icon { width: 0.85em; height: 0.85em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- header / footer ---- */

.site-header {
  background: linear-gradient(100deg, var(--color-primary) 0%, #164873 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(10, 30, 50, 0.18);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.site-header__brand:hover { text-decoration: none; opacity: 0.92; }
.site-header__brand .icon { width: 1.5rem; height: 1.5rem; color: var(--color-accent); }
.site-header__nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  background: var(--color-accent);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.site-header__nav a:hover { background: var(--color-accent-dark); text-decoration: none; }
.site-header__nav .icon { width: 0.95rem; height: 0.95rem; }

.site-header__search {
  display: flex;
  flex: 1 1 260px;
  max-width: 460px;
  min-width: 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.site-header__search .icon {
  color: var(--color-text-muted);
  margin: 0 0 0 0.9rem;
  align-self: center;
  width: 1.05rem;
  height: 1.05rem;
}
.site-header__search input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--color-text);
  background: transparent;
}
.site-header__search input[type="text"]:focus { outline: none; }
.site-header__search button {
  flex-shrink: 0;
  border: none;
  background: var(--color-primary);
  color: #fff;
  padding: 0 1.1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease;
}
.site-header__search button:hover { background: var(--color-primary-dark); }

.brand-search {
  max-width: 560px;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow-md);
}
.brand-search input[type="text"] { color: var(--color-text); }

.site-footer {
  margin-top: 3.5rem;
  padding: 2.25rem 0 1.5rem;
  background: var(--color-primary-dark);
  color: #b9c6d6;
  font-size: 0.85rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer__brand { color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 0.35rem; display: block; }
.site-footer__col { min-width: 180px; }
.site-footer__col h4 { color: #dfe8f2; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.6rem; }
.site-footer__col a { color: #b9c6d6; display: block; margin-bottom: 0.4rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__note { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1rem; padding-top: 1rem; font-size: 0.78rem; color: #8ea1b8; }

/* ---- breadcrumbs ---- */

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-steel); }
.breadcrumbs .sep { margin: 0 0.4rem; color: #b7c0cc; }
.breadcrumbs__current {
  display: inline-block;
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--color-text);
  font-weight: 500;
}

main { display: block; padding-bottom: 2.5rem; }

/* ---- page header block ---- */

.page-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-steel);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.page-header__meta {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 0.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.3rem;
  align-items: center;
}
.page-header__meta .icon { width: 0.95rem; height: 0.95rem; color: var(--color-steel); margin-right: 0.15rem; }
.page-header__meta .badge { margin-right: 0.3rem; }

/* ---- badges / status pills ---- */

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge.indexable, .badge.status-active { background: var(--color-ok-bg); color: var(--color-ok-text); }
.badge.public_noindex, .badge.status-unknown { background: var(--color-warn-bg); color: var(--color-warn-text); }
.badge.known, .badge.status-discontinued { background: var(--color-bad-bg); color: var(--color-bad-text); }
.badge.quarantined_conflicting_attributes { background: var(--color-neutral-bg); color: var(--color-neutral-text); }

/* ---- chip lists ---- */

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip-list li { margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chip:hover { border-color: var(--color-steel); box-shadow: var(--shadow-sm); text-decoration: none; }
.chip--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.chip--active:hover { text-decoration: none; opacity: 0.92; }

/* ---- catalog layout: filter sidebar + content (Category/Brand×Category/
   Series) -- desktop: fixed-width sticky sidebar + fluid content column.
   Mobile: sidebar becomes a slide-out drawer, toggled by a checkbox+label
   pair (`#filters-toggle`) declared by each page template right before
   `.catalog-layout` -- pure CSS, no JS. ---- */

.filters-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.filters-toggle-btn {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  cursor: pointer;
}
.filters-backdrop { display: none; }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.catalog-content { min-width: 0; }

.filters-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 5rem;
}
.filters-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.filters-panel__head h3 { margin: 0; }
.filters-panel__close { display: none; cursor: pointer; color: var(--color-text-muted); }

.filter-group { margin-bottom: 1.15rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--color-border); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 0.25rem; padding-bottom: 0; }
.filter-group__label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 0.6rem;
}
.filter-group__search {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
}
.filter-group__search:focus { outline: none; border-color: var(--color-steel); box-shadow: 0 0 0 3px rgba(47, 111, 168, 0.15); }

.filter-options { display: flex; flex-direction: column; gap: 0.5rem; max-height: 230px; overflow-y: auto; padding-right: 0.25rem; }
.filter-option { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; cursor: pointer; }
.filter-option input[type="checkbox"] { flex-shrink: 0; width: 15px; height: 15px; accent-color: var(--color-steel); }
.filter-option__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-option__count { color: var(--color-text-muted); font-size: 0.76rem; flex-shrink: 0; }

.filters-form__actions { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.5rem; }
.filters-form__reset { text-align: center; font-size: 0.85rem; color: var(--color-text-muted); }
.btn-primary--block { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-toggle-btn { display: inline-flex; }
  .filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    border-radius: 0;
    z-index: 60;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .filters-panel__close { display: inline-flex; }
  .filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 40, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 55;
  }
  .filters-toggle-checkbox:checked ~ .filters-backdrop { opacity: 1; pointer-events: auto; }
  .filters-toggle-checkbox:checked ~ .catalog-layout .filters-panel { transform: translateX(0); }
}

/* ---- tables ---- */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5rem 0 1rem;
  background: var(--color-surface);
  font-size: 0.88rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: middle;
}
th { background: var(--color-surface-2); font-weight: 700; color: var(--color-text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--color-primary-light); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.spec-table th { width: 40%; background: var(--color-surface-2); }

/* ---- product grid / cards ---- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
  margin: 0.75rem 0 1.25rem;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-steel); }
.product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
}
.product-card__media img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 0.5rem; }
.product-card__placeholder {
  color: #b6c3d1;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.product-card__lifecycle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}
.product-card__body { padding: 0.75rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.product-card__title { font-size: 0.98rem; margin: 0; overflow-wrap: break-word; }
.product-card__title a { color: var(--color-primary-dark); }
.product-card__brand { margin: 0; font-size: 0.78rem; color: var(--color-steel); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.product-card__desc {
  margin: 0;
  font-size: 0.83rem;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listing-stats { color: var(--color-text-muted); font-size: 0.87rem; margin: 0 0 0.5rem; }

/* ---- pagination ---- */

.pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
}
.pagination__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--color-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pagination__link:hover { text-decoration: none; border-color: var(--color-steel); box-shadow: var(--shadow-sm); }
.pagination__status { color: var(--color-text-muted); }

/* ---- product detail page ---- */

.product-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.product-detail__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: var(--color-surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.product-detail__media img { max-width: 100%; max-height: 280px; object-fit: contain; padding: 1rem; }
.product-detail__placeholder { color: #b6c3d1; font-size: 2.6rem; font-weight: 800; }
.product-detail__title { margin-top: 0; }
.product-detail__desc { color: var(--color-text-muted); }
.product-detail__meta-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.product-detail__meta-list li { display: flex; align-items: center; gap: 0.5rem; }
.product-detail__meta-list .icon { color: var(--color-steel); }
.product-detail__meta-list b { color: var(--color-text-muted); font-weight: 600; margin-right: 0.2rem; }

/* ---- CTA buttons ---- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 0.25rem;
  padding: 0.7rem 1.3rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cta:hover { background: var(--color-accent-dark); text-decoration: none; color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cta .icon { width: 1rem; height: 1rem; }
.cta--secondary { background: var(--color-primary); }
.cta--secondary:hover { background: var(--color-primary-dark); }
.cta--block { display: flex; justify-content: center; width: 100%; }

.cta-banner {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-steel) 100%);
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-banner h3 { color: #fff; margin: 0 0 0.2rem; }
.cta-banner p { margin: 0; color: #d7e4f2; font-size: 0.9rem; }
.cta-banner .cta { margin: 0; flex-shrink: 0; }

/* ---- forms ---- */

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 560px;
  box-shadow: var(--shadow-sm);
}
.form-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.form-field input,
.form-field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--color-steel); box-shadow: 0 0 0 3px rgba(47, 111, 168, 0.15); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.rfq-context {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-primary-light);
  border: 1px solid #cfe0f0;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  max-width: 560px;
}
.rfq-context .icon { color: var(--color-steel); flex-shrink: 0; }

/* ---- home page / hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-steel) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 40%, transparent 85%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,122,31,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 640px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.hero h1 { color: #fff; font-size: 2.15rem; margin-bottom: 0.75rem; }
.hero p { color: #d7e4f2; margin: 0; font-size: 1.02rem; max-width: 560px; }
.hero__points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #eaf1f9;
}
.hero__points .icon { color: var(--color-accent); width: 1.15rem; height: 1.15rem; }

/* ---- catalog index page (/catalog/) -- a real landing page, not a plain
   grid of identical tiles: an intro banner with real aggregate stats, then
   larger direction cards each carrying its own real derived stats
   (subcategory/brand/product counts), distinct from the compact
   `.entity-card` grid used for cross-linking elsewhere. ---- */

.catalog-intro {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-steel) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.catalog-intro h1 { color: #fff; margin-bottom: 0.3rem; }
.catalog-intro p { color: #dbe8f5; margin: 0; }
.catalog-intro__stats { margin-top: 0.6rem !important; font-weight: 600; color: #fff !important; }
.catalog-intro__icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.catalog-intro__icon .icon { width: 1.8rem; height: 1.8rem; color: #fff; }

.direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 2rem;
}
.direction-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.direction-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-steel); text-decoration: none; }
.direction-card__icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--radius);
  background: var(--color-primary-light);
  color: var(--color-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.direction-card__icon .icon { width: 1.7rem; height: 1.7rem; }
.direction-card__body { min-width: 0; overflow-wrap: break-word; }
.direction-card__title { display: block; font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark); margin: 0 0 0.35rem; }
.direction-card__stats { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; font-size: 0.8rem; color: var(--color-text-muted); }
.direction-card__count-badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--color-steel);
  background: var(--color-primary-light);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}
.entity-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.entity-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-steel); text-decoration: none; }
.entity-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-steel);
}
.entity-card__icon .icon { width: 1.3rem; height: 1.3rem; }
.entity-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; overflow-wrap: break-word; }
.entity-card__body span.entity-card__count { align-self: flex-start; }
.entity-card__count {
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--color-steel);
  background: var(--color-primary-light);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  flex-shrink: 0;
}
.entity-card--muted {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-weight: 500;
  font-style: italic;
  box-shadow: none;
}
.entity-card--muted .entity-card__icon { background: var(--color-neutral-bg); color: var(--color-text-muted); }

.chip__count {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-style: normal;
}

.section-secondary {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.empty-state {
  color: var(--color-text-muted);
  font-style: italic;
  padding: 0.75rem 0;
}

/* ---- error page ---- */

.error-page {
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.error-page .icon-lg { display: block; width: 4rem; height: 4rem; color: var(--color-accent); margin: 0 auto 1rem; }
.error-page h1 { font-size: 2rem; }
.error-page p { color: var(--color-text-muted); max-width: 420px; margin: 0.5rem auto 1.5rem; }
.error-page__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---- responsive ---- */

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }

  /* Compact mobile header: row 1 = logo + CTA (space-between), row 2 =
     search, full width but a normal input height/shape, not a giant pill
     stretched across the screen. Achieved with flex `order` alone -- the
     HTML markup/order stays the same as desktop. */
  .site-header .container { row-gap: 0.6rem; }
  .site-header__brand { order: 1; margin-right: 0; }
  .site-header__nav { order: 2; margin-left: auto; }
  .site-header__search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    border-radius: var(--radius);
  }
  .site-header__search input[type="text"] { padding: 0.5rem 0.6rem; font-size: 0.88rem; }
  .site-header__search button { padding: 0 0.9rem; font-size: 0.85rem; }
  .site-header__nav a { padding: 0.4rem 0.75rem; font-size: 0.82rem; }

  .breadcrumbs__current, .chip { max-width: 220px; }
  h1 { font-size: 1.4rem; }
  .hero { padding: 2.25rem 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .section-heading-row { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.85rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  table, th, td { font-size: 0.78rem; }
  .breadcrumbs__current, .chip { max-width: 150px; }
  .hero__points { gap: 0.85rem 1.2rem; }
}
