/* ============================================================
   ORINGO.EU — Main stylesheet
   Design tokens → Layout → Components → Utilities
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --red:        #8B1A0A;
  --red-light:  #fdf5f4;
  --red-border: rgba(139,26,10,0.25);
  --ember:      #1a0a05;

  --text-primary:   #1a1a1a;
  --text-secondary: #666;
  --text-muted:     #999;

  --border:     rgba(0,0,0,0.1);
  --border-mid: rgba(0,0,0,0.18);

  --bg:         #ffffff;
  --bg-secondary: #f7f6f4;
  --bg-hover:   #f2f0ed;

  --green-bg:   #edfaf1;
  --green-text: #1a7a3c;

  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --nav-h:      52px;
  --sidebar-w:  228px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text-primary); background: var(--bg); line-height: 1.5; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* ── Navbar ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 200; }

.navbar {
  background: var(--red);
  height: var(--nav-h);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-mark svg { display: block; }
.brand-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.brand-name span { color: rgba(255,255,255,0.5); }

.navbar-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: var(--nav-h);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: var(--nav-h);
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  background: transparent;
  border: none;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}
.nav-link:hover,
.nav-link--dropdown.open { color: #fff; background: rgba(0,0,0,0.18); }

.chevron { transition: transform 0.18s; flex-shrink: 0; }
.nav-link--dropdown.open .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-panel {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  min-width: 260px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 300;
  padding: 6px 0 8px;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel { display: block; }

.dropdown-section-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  padding: 8px 16px 4px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-primary);
  transition: background 0.1s;
}
.dropdown-item:hover { background: var(--bg-secondary); }
.dropdown-item-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 7px;
  border-radius: var(--radius-xl);
}
.dropdown-divider { height: 0.5px; background: var(--border); margin: 6px 0; }
.dropdown-show-more {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  background: transparent;
  border: none;
  width: 100%;
}
.dropdown-show-more:hover { background: var(--red-light); }
.dropdown-show-more .chevron { transition: transform 0.18s; }
.dropdown-show-more[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Search */
.navbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.22);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  width: 210px;
  flex-shrink: 0;
}
.navbar-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #fff;
  outline: none;
  min-width: 0;
}
.navbar-search input::placeholder { color: rgba(255,255,255,0.38); }

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 4px;
}
.navbar-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.18s;
}

/* ── Category hero ──────────────────────────────────────── */
.category-hero {
  background: linear-gradient(135deg, var(--ember) 0%, #2d1208 50%, #3d1a0a 100%);
  padding: 32px 24px 28px;
  overflow: hidden;
  position: relative;
}
.category-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 50px solid rgba(139,26,10,0.12);
  pointer-events: none;
}
.category-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.category-hero h1 {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.category-hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  max-width: 560px;
}
.category-hero-stats { display: flex; gap: 28px; }
.hero-stat-num  { display: block; font-size: 20px; font-weight: 500; color: #E8845A; }
.hero-stat-label {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Category layout ────────────────────────────────────── */
.category-body {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: auto 1fr;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-h) - 200px);
}

.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg);
  border: none;
  border-bottom: 0.5px solid var(--border);
  width: 100%;
  grid-column: 1 / -1;
}
.mobile-filter-count {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-xl);
}

/* ── Filter sidebar ─────────────────────────────────────── */
.filter-sidebar {
  border-right: 0.5px solid var(--border);
  background: var(--bg);
  overflow-y: auto;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}

/* Backdrop: hidden by default on all screen sizes; shown only on mobile when open */
.filter-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 399;
}
.filter-sidebar-backdrop.open { display: block; }

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.filter-sidebar-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
}
.filter-clear-all {
  font-size: 11px;
  color: var(--red);
  background: transparent;
  border: none;
  font-weight: 500;
}
.filter-clear-all:hover { text-decoration: underline; }

.filter-block {
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--border);
}
.filter-block-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-active-count {
  font-size: 10px;
  color: var(--red);
  background: var(--red-light);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;
}

/* ── Pills ──────────────────────────────────────────────── */
.pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-mid);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
  line-height: 1;
}
.pill:hover {
  border-color: var(--red);
  background: var(--red-light);
}
.pill--active {
  background: var(--red);
  border-color: var(--red);
}
.pill--active:hover {
  background: #7a1508;
  border-color: #7a1508;
}
.pill-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}
.pill-count {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}
.pill--active .pill-name  { color: #fff; }
.pill--active .pill-count { color: rgba(255,255,255,0.62); }
.pill:hover:not(.pill--active) .pill-name  { color: var(--red); }
.pill:hover:not(.pill--active) .pill-count { color: rgba(139,26,10,0.6); }

.pill--sm { padding: 4px 9px; }
.pill--sm .pill-name { font-size: 11px; }

/* Color pill variant */
.pill--color {
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
}
.pill--color.pill--active { background: var(--red); border-color: var(--red); }
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

/* Show more toggle */
.pills-extra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pills-extra[hidden] { display: none; }
.pill-show-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-mid);
  background: transparent;
  font-size: 11px;
  color: var(--text-secondary);
  transition: border-color 0.1s, color 0.1s;
}
.pill-show-more:hover { border-color: var(--red); color: var(--red); }

/* Dimension range inputs */
.dim-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dim-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg);
  text-align: center;
  outline: none;
  min-width: 0;
}
.dim-input:focus { border-color: var(--red); }
.dim-sep { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* Dispatch pills */
.dispatch-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-mid);
  background: var(--bg);
  width: 100%;
  margin-bottom: 6px;
  transition: border-color 0.1s, background 0.1s;
  text-align: left;
}
.dispatch-pill:last-child { margin-bottom: 0; }
.dispatch-pill:hover { border-color: var(--red); }
.dispatch-pill--active {
  border-color: #1a7a3c;
  background: var(--green-bg);
}
.dispatch-pill svg { flex-shrink: 0; color: var(--text-muted); }
.dispatch-pill--active svg { color: var(--green-text); }
.dispatch-pill-text { display: flex; flex-direction: column; gap: 1px; }
.dispatch-pill-text strong { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.dispatch-pill--active .dispatch-pill-text strong { color: var(--green-text); }
.dispatch-pill-text span { font-size: 10px; color: var(--text-muted); }

/* ── Category main ──────────────────────────────────────── */
.category-main {
  padding: 20px 24px;
  min-width: 0;
}

/* Active filter tags */
.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 10px;
  background: var(--red-light);
  border: 0.5px solid var(--red-border);
  border-radius: var(--radius-xl);
  font-size: 11px;
  color: var(--red);
}
.filter-tag-remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(139,26,10,0.5);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.1s, color 0.1s;
}
.filter-tag-remove:hover { background: rgba(139,26,10,0.12); color: var(--red); }
.filter-tag-clear-all {
  font-size: 11px;
  color: var(--red);
  background: transparent;
  border: none;
  text-decoration: underline;
}

/* Toolbar */
.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border);
}
.result-count { font-size: 13px; color: var(--text-secondary); }
.result-count strong { color: var(--text-primary); font-weight: 500; }
.sort-label { font-size: 12px; color: var(--text-secondary); }
.sort-select {
  font-size: 12px;
  color: var(--text-primary);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  background: var(--bg);
  outline: none;
  margin-left: 6px;
}

/* ── Product grid ───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.product-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.product-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 12px rgba(139,26,10,0.08);
}
.product-card-img-link { display: block; }
.product-card-img {
  background: var(--bg-secondary);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.stock-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 9px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}
.stock-fast { background: var(--green-bg); color: var(--green-text); }
.stock-req  { background: var(--bg-hover); color: var(--text-muted); }

.product-card-body { padding: 10px 12px 12px; }
.product-card-mat {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--red);
  margin-bottom: 2px;
}
.product-card-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}
.product-card-name:hover { color: var(--red); }
.product-card-meta { font-size: 11px; color: var(--text-secondary); margin-bottom: 7px; }
.product-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 9px; }
.ptag {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--bg-secondary);
  border-radius: 6px;
  color: var(--text-secondary);
}

.btn-inquiry {
  display: block;
  width: 100%;
  padding: 7px;
  border-radius: var(--radius-md);
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  transition: background 0.12s, color 0.12s;
}
.btn-inquiry:hover { background: var(--red); color: #fff; }

/* No results */
.no-results {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}
.btn-clear-filters {
  margin-top: 12px;
  padding: 8px 20px;
  border: 1px solid var(--red);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
}

/* Load more */
.load-more-wrap { text-align: center; margin-top: 28px; }
.btn-load-more {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 32px;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color 0.12s, color 0.12s;
}
.btn-load-more:hover { border-color: var(--red); color: var(--red); }
.load-more-sub { font-size: 11px; color: var(--text-muted); }
.btn-load-more.loading { opacity: 0.6; pointer-events: none; }

/* SEO text */
.seo-text-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 780px;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #1c1c1c;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding: 36px 32px 28px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.footer-logo span { color: rgba(255,255,255,0.3); }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; }

.footer-cols { display: flex; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer-col a { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-col a:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Homepage ───────────────────────────────────────────── */

/* Hero */
.home-hero {
  background: linear-gradient(135deg, var(--ember) 0%, #2d1208 60%, #3d1a0a 100%);
  padding: 60px 24px 52px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 80px solid rgba(139,26,10,0.09);
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  right: 80px;
  bottom: -70px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 55px solid rgba(139,26,10,0.06);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.home-hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.42);
  margin-bottom: 14px;
}
.home-hero-h1 {
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.home-hero-accent {
  color: #E8845A;
  display: block;
}
.home-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 32px;
}

/* Dimension finder */
.home-finder { width: 100%; }
.home-finder-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.home-finder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 120px;
}
.home-finder-field--mat { flex: 1.4; min-width: 160px; }
.home-finder-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: rgba(255,255,255,0.45);
}
.home-finder-input,
.home-finder-select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.14s, background 0.14s;
  -webkit-appearance: none;
}
.home-finder-input::placeholder { color: rgba(255,255,255,0.28); }
.home-finder-input:focus,
.home-finder-select:focus {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
}
.home-finder-select option { background: #2d1208; color: #fff; }
.home-finder-times {
  font-size: 20px;
  color: rgba(255,255,255,0.25);
  padding-bottom: 10px;
  flex-shrink: 0;
}
.home-finder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ember);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.home-finder-btn:hover { background: #f0ece8; }

.home-hero-or {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,0.32);
}

/* Stat strip */
.home-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 24px;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg);
}
.home-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 28px;
}
.home-stat strong {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.home-stat span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.home-stat-div {
  width: 0.5px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Shared section wrapper */
.home-section {
  padding: 56px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.home-section--alt {
  background: var(--bg-secondary);
  max-width: 100%;
  padding: 56px 0;
}
.home-section--alt > *,
.home-section--alt .home-section-hd,
.home-section--alt .cs-strip,
.home-section--alt .cs-strip-note {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.home-section-hd {
  margin-bottom: 28px;
}
.home-section-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.home-section-sub {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* Material grid */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.material-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.material-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 14px rgba(139,26,10,0.08);
}
.material-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2px;
}
.material-card-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: -0.2px;
}
.material-card-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 8px;
  border-radius: var(--radius-xl);
}
.material-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}
.material-card-use {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.material-card-cta {
  font-size: 11px;
  font-weight: 500;
  color: var(--red);
  margin-top: auto;
  padding-top: 8px;
  display: none;
}
.material-card:hover .material-card-cta { display: block; }

/* Same size in other materials (product page) */
.same-size {
  margin: 16px 0 20px;
}
.same-size-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.same-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.same-size-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-card);
  transition: border-color 0.15s, background 0.15s;
}
.same-size-pill:hover {
  border-color: var(--red);
  background: var(--bg-subtle);
  color: var(--red);
}
.same-size-pill-count {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: var(--radius-xl);
}

/* Search page */
.search-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* Search controls bar (tolerance + material filter) */
.search-controls {
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tolerance strip */
.tol-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.category-main > .tol-strip { margin-bottom: 10px; }
.tol-strip-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  white-space: nowrap;
}
.tol-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-mid);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.1s, color 0.1s, background 0.1s;
}
.tol-pill:hover { border-color: var(--red); color: var(--red); }
.tol-pill--active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  pointer-events: none;
}

/* Material filter row */
.search-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  border-bottom: 0.5px solid var(--border);
}
.search-mat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-mid);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: border-color 0.1s, background 0.1s, color 0.1s;
}
.search-mat-pill:hover {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red);
}

/* "All materials" expandable */
.search-mats-details { position: relative; }
.search-all-mats-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-mid);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.1s, color 0.1s;
}
.search-all-mats-btn::-webkit-details-marker { display: none; }
.search-all-mats-btn:hover { border-color: var(--red); color: var(--red); }
.search-mats-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.search-mats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.1s;
}
.search-mats-item:hover { background: var(--bg-secondary); color: var(--red); }
.search-mats-count {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 7px;
  border-radius: var(--radius-xl);
}

/* Single-material hint row */
.search-filter-row--single {
  justify-content: space-between;
}
.search-single-mat {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.search-view-cat {
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
}

/* Search result sections */
.search-results { margin-top: 4px; }
.search-section-hd {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin: 20px 0 12px;
}

/* Grid divider (spans full product-grid width) */
.grid-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.grid-divider::before,
.grid-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}
.grid-divider::before { display: none; }

/* Tolerance upsell card */
.tol-upsell-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.tol-upsell-card:hover {
  border-color: var(--red);
  background: var(--red-light);
}
.tol-upsell-body { flex: 1; }
.tol-upsell-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.tol-upsell-card:hover .tol-upsell-title { color: var(--red); }
.tol-upsell-sub {
  font-size: 12px;
  color: var(--text-secondary);
}
.tol-upsell-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.tol-upsell-card:hover .tol-upsell-meta { color: var(--red); }
.tol-upsell-arrow {
  font-size: 14px;
  color: var(--red);
  flex-shrink: 0;
}
.tol-upsell-card--no-results { margin-top: 8px; }

/* Upsell card as a grid cell (same footprint as a product card) */
.tol-upsell-card--grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  padding: 20px 14px;
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  min-height: 180px;
}
.tol-upsell-card--grid:hover {
  border-color: var(--red);
  background: var(--red-light);
}
.tol-upsell-icon {
  font-size: 24px;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 4px;
}
.tol-upsell-card--grid .tol-upsell-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}
.tol-upsell-card--grid:hover .tol-upsell-title { color: var(--red); }
.tol-upsell-card--grid .tol-upsell-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.tol-upsell-btn {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.02em;
}
/* Override base card styles when it's a grid item */
.product-grid .tol-upsell-card--grid {
  margin-top: 0;
}

/* Tolerance pill count badge */
.tol-pill-count {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 3px;
}
.tol-pill--active .tol-pill-count { color: rgba(255,255,255,0.7); }
.tol-pill:hover:not(.tol-pill--active) .tol-pill-count { color: rgba(139,26,10,0.6); }

/* Category material tag (permanent filter showing current category) */
.filter-tag--cat {
  text-decoration: none;
  font-weight: 600;
}
.filter-tag--cat:hover { background: #faeae8; }
.filter-tag-x {
  font-size: 14px;
  line-height: 1;
  color: inherit;
  margin-left: 2px;
}

/* Category near-size block */
.cat-near-size {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
}
.cat-near-size-hd {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.cat-near-size-all {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cat-near-size-all:hover { color: #7a1508; }

/* Same-size "search all" link on product page */
.same-size-all-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.same-size-all-link:hover { color: #7a1508; }

/* Near-size block on product page */
.near-size-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border);
}
.near-size-block h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.near-size-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.near-size-all-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.near-size-all-link:hover { color: #7a1508; }

/* Legacy search classes (kept for no-results path) */
.search-intro {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.search-no-results {
  max-width: 620px;
  margin: 40px auto;
  text-align: center;
}
.search-no-results-msg {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.search-suggest-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.search-suggestions {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-sug-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.search-sug-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-sug-link:hover { color: var(--red); }
.search-sug-mat {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-xl);
}
.search-sug-count {
  font-size: 12px;
  color: var(--text-muted);
}
.search-no-results-actions {
  margin-top: 8px;
}

/* Cross-section strip */
.cs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.cs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 22px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.12s, box-shadow 0.12s;
  min-width: 100px;
}
.cs-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 10px rgba(139,26,10,0.08);
}
.cs-card-val {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1;
}
.cs-card-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}
.cs-card-count {
  font-size: 11px;
  color: var(--text-muted);
}
.cs-strip-note {
  font-size: 12px;
  color: var(--text-secondary);
}
.cs-strip-note a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.cs-strip-note a:hover { color: #7a1508; }

/* Editorial */
.home-editorial {
  border-top: 0.5px solid var(--border);
  background: var(--bg-secondary);
}
.home-editorial-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 52px 24px 56px;
}
.home-editorial-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.home-editorial-col h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.home-editorial-col p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.home-editorial-col p:last-child { margin-bottom: 0; }
.home-editorial-col a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.home-editorial-col a:hover { color: #7a1508; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .category-body {
    grid-template-columns: 1fr;
  }
  .mobile-filter-btn { display: flex; }
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    z-index: 400;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .filter-sidebar.open { transform: translateX(0); }
}

@media (max-width: 640px) {
  /* Search page */
  .search-page-inner { padding: 0 16px 40px; }
  .search-controls { gap: 10px; }
  .tol-strip { gap: 6px; }
  .tol-pill { font-size: 11px; padding: 4px 9px; }
  .tol-pill-count { display: none; }
  .search-filter-row { gap: 6px; padding: 8px 0 10px; }
  .search-mat-pill { font-size: 11px; padding: 5px 10px; }
  .search-mats-panel { min-width: 180px; }
  .search-section-hd { font-size: 10px; }
  .tol-upsell-card { padding: 12px 14px; }
  .tol-upsell-title { font-size: 12px; }
  .tol-upsell-meta { font-size: 11px; }

  /* Homepage */
  .home-hero { padding: 40px 16px 36px; }
  .home-hero-h1 { font-size: 28px; }
  .home-hero-sub { font-size: 13px; }
  .home-finder-row { flex-direction: column; gap: 12px; }
  .home-finder-times { display: none; }
  .home-finder-field,
  .home-finder-field--mat { min-width: 0; width: 100%; }
  .home-finder-btn { width: 100%; justify-content: center; }
  .home-stats { flex-wrap: wrap; gap: 0; }
  .home-stat { padding: 14px 18px; }
  .home-stat-div { display: none; }
  .home-section { padding: 36px 16px; }
  .home-section--alt { padding: 36px 0; }
  .material-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .material-card { padding: 12px 14px 10px; }
  .material-card-use { display: none; }
  .material-card-cta { display: none !important; }
  .cs-strip { gap: 8px; }
  .cs-card { padding: 10px 16px; min-width: 80px; }
  .cs-card-val { font-size: 17px; }
  .home-editorial-inner { padding: 36px 16px 40px; }
  .home-editorial-cols { grid-template-columns: 1fr; gap: 28px; }

  /* Existing */
  .navbar-inner { padding: 0 16px; }
  .navbar-menu { display: none; }
  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--red);
    z-index: 350;
    height: auto;
    padding: 8px 0 16px;
  }
  .nav-link { height: auto; padding: 10px 20px; }
  .navbar-toggle { display: flex; }
  .navbar-search { width: 120px; }
  .category-hero { padding: 20px 16px; }
  .category-hero h1 { font-size: 22px; }
  .category-main { padding: 14px 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-cols { flex-wrap: wrap; gap: 24px; }
}

/* ── Product page ────────────────────────────────────────── */
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.product-breadcrumb {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.product-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: start;
}

/* Image col */
.product-image-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.product-main-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.stock-badge--lg {
  position: absolute;
  top: auto;
  bottom: 16px;
  right: 16px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-xl);
  font-weight: 500;
}

/* Detail col */
.product-mat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--red);
  margin-bottom: 6px;
}
.product-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}
.product-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Attributes table */
.product-attrs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 13px;
}
.product-attrs th {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px 8px 0;
  width: 140px;
  vertical-align: top;
  border-bottom: 0.5px solid var(--border);
}
.product-attrs td {
  padding: 8px 0;
  color: var(--text-primary);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.attr-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
  display: inline-block;
}
.cert-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  background: var(--bg-secondary);
  border-radius: 6px;
  color: var(--text-secondary);
  margin-right: 4px;
}

/* Inquiry box */
.inquiry-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.inquiry-box-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.inquiry-box-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Form */
.inquiry-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 12px; }
.form-row--2 > * { flex: 1; min-width: 0; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.req { color: var(--red); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 8px 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color 0.12s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 80px; }
.field-error { font-size: 11px; color: #c0391b; min-height: 14px; }

/* ── Image lightbox ───────────────────────────────────────────── */
.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.84);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.img-lightbox.open { display: flex; }

/* ── Cross-section landing pages ─────────────────────────────── */
.cs-nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  justify-content: center;
}
.cs-nav-item {
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border-mid);
  text-decoration: none;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  white-space: nowrap;
}
.cs-nav-item:hover { background: var(--red-light); color: var(--red); border-color: var(--red-border); }
.cs-nav-item--active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  pointer-events: none;
}
.cs-page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}
.cs-page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  text-decoration: none;
}
.cs-page-nav-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── FAQ accordion (category pages) ─────────────────────────────── */
.faq-block {
  margin: 40px 0 8px;
  padding: 32px 24px 8px;
  border-top: 1px solid var(--border);
}
.faq-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--red-border); }
.faq-q {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  background: var(--bg);
  transition: background 0.1s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.faq-item[open] .faq-q { background: var(--red-light); }
.faq-item[open] .faq-q::after { content: '−'; color: var(--red); }
.faq-q:hover { background: var(--bg-hover); }
.faq-a {
  padding: 12px 16px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.img-lightbox img {
  max-width: min(90vw, 760px);
  max-height: 90vh;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
}

.btn-submit {
  padding: 11px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
  margin-top: 4px;
}
.btn-submit:hover:not(:disabled) { background: #7a1508; }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--green-bg);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--green-text);
  font-weight: 500;
}
.form-error-global {
  padding: 10px 14px;
  background: #fdf5f4;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--red);
}

/* Related products */
.related-products {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border);
}
.related-products h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* Product page responsive */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-image-wrap { position: relative; top: auto; aspect-ratio: auto; padding: 20px; }
  .product-main-img { max-width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .product-page { padding: 16px 16px 40px; }
  .product-title { font-size: 20px; }
  .form-row--2 { flex-direction: column; }
  .product-attrs td { display: table-cell; }
}
