/* ==========================================================================
   CONCORD — Shared site chrome (header / mega menu / search / side rail / footer)
   Design tokens mirror the approved .dc.html design system. Color palette is
   UNCHANGED: brand red #480018, dark #300010, teal accent, warm oklch neutrals.
   Loaded by every page alongside page-level markup.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --brand:        #480018;
  --brand-dark:   #300010;
  --brand-hover:  #7A2740;
  --teal:         oklch(0.5 0.09 190);

  --ink:          oklch(0.22 0.02 20);
  --text:         oklch(0.4 0.02 20);
  --muted:        oklch(0.56 0.015 20);
  --line:         oklch(0.89 0.006 20);
  --line-strong:  oklch(0.8 0.01 20);
  --surface:      oklch(0.975 0.004 20);
  --tint:         oklch(0.95 0.02 15);
  --footer-bg:    oklch(0.2 0.015 20);
  --footer-line:  oklch(0.32 0.01 20);
  --footer-text:  oklch(0.85 0.006 20);
  --footer-muted: oklch(0.6 0.01 20);

  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --page-width: 1400px;
  --header-z: 100;
  --backdrop-z: 95;
  --rail-z: 120;
  --drawer-z: 200;
  --search-z: 300;

  --shadow-sm: 0 4px 14px oklch(0.2 0.02 20 / 0.08);
  --shadow-md: 0 16px 40px oklch(0.2 0.02 20 / 0.14);
  --shadow-lg: 0 32px 80px oklch(0.2 0.02 20 / 0.28);
  --ease: cubic-bezier(0.33, 0.1, 0.25, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
*:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 999;
  font: 400 14px/1 var(--font-body); text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Body lock states */
body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
/* Mount wrapper carries the sticky positioning so the header stays fixed
   for the full page scroll (a sticky child inside a same-height wrapper
   would scroll away with it). */
#site-header { position: sticky; top: 0; z-index: var(--header-z); }
.site-header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
}
.header-inner {
  max-width: var(--page-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 24px;
  transition: padding 200ms var(--ease);
}
body.is-scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }

.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 38px; width: auto; display: block; }
body.is-scrolled .header-logo img { height: 34px; }

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link, .nav-trigger {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none;
  font: 600 15px/1 var(--font-body);
  color: var(--ink);
  padding: 10px 12px; cursor: pointer; border-radius: 6px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.nav-link:hover, .nav-trigger:hover { background: var(--surface); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--brand); }
.nav-trigger.is-open { color: var(--brand); background: var(--surface); }
.nav-trigger .caret { transition: transform 180ms var(--ease); }
.nav-trigger.is-open .caret { transform: rotate(180deg); }

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

.search-trigger {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  border-radius: 8px; color: var(--text); position: relative;
  transition: background 120ms ease, color 120ms ease;
}
.search-trigger:hover { background: var(--surface); color: var(--brand); }
.search-trigger kbd {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 4px; display: none;
  font: 600 10px/1 var(--font-body); letter-spacing: 0.04em;
  color: var(--muted); background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 3px 5px; box-shadow: var(--shadow-sm);
  pointer-events: none;
}
@media (hover: hover) and (min-width: 1100px) {
  .search-trigger:hover kbd { display: block; }
}

.btn-quote {
  background: var(--brand); color: #fff;
  font: 700 14.5px/1 var(--font-body);
  padding: 12px 20px; border-radius: 7px;
  text-decoration: none; white-space: nowrap;
  transition: background 120ms ease;
}
.btn-quote:hover { background: var(--brand-dark); color: #fff; }

/* Mobile header controls */
.header-mobile { display: none; align-items: center; gap: 10px; }
.btn-quote--sm {
  background: var(--brand); color: #fff;
  font: 700 13.5px/1 var(--font-body);
  padding: 10px 14px; border-radius: 7px; text-decoration: none; white-space: nowrap;
}
.burger {
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. Mega menu — docked to the BOTTOM edge of the header.
      Never covers the nav row itself; page content is dimmed by a backdrop.
   -------------------------------------------------------------------------- */
.mega-backdrop {
  position: fixed; inset: 0; z-index: var(--backdrop-z);
  background: oklch(0.2 0.02 20 / 0.32);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.mega-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mega-dock {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: none;
}
.mega-dock.is-open { display: block; animation: megaIn 180ms var(--ease); }
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mega-pane { display: none; }
.mega-pane.is-active { display: block; }

.mega-container { max-width: var(--page-width); margin: 0 auto; padding: 26px 24px 24px; }

/* Products pane */
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.mega-cat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 8px; text-decoration: none;
  transition: background 120ms ease;
}
.mega-cat:hover { background: var(--surface); }
.mega-cat .mc-name { font: 600 14.5px/1.2 var(--font-body); color: var(--ink); }
.mega-cat .mc-desc { font: 400 12.5px/1.4 var(--font-body); color: var(--muted); }
.mega-cat:hover .mc-name { color: var(--brand); }
.mega-all {
  grid-column: 1 / -1; margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 600 13.5px/1 var(--font-body); color: var(--brand); text-decoration: none;
}
.mega-all:hover { color: var(--brand-hover); }

/* Compact panes (Solutions / Resources) */
.mega-compact { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.mega-compact-head {
  font: 700 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); padding: 4px 14px 8px;
}
.mega-item {
  display: block; padding: 11px 14px; border-radius: 8px;
  text-decoration: none; font: 500 14px/1.3 var(--font-body); color: var(--ink);
  transition: background 120ms ease;
}
.mega-item:hover { background: var(--surface); color: var(--brand); }

/* --------------------------------------------------------------------------
   5. Mobile drawer
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed; inset: 0; z-index: var(--drawer-z);
  background: #fff; overflow-y: auto;
  font-family: var(--font-body);
  display: none;
}
.drawer.is-open { display: block; }
.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-top img { height: 32px; }
.drawer-close {
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.drawer-search { padding: 16px 20px 0; }
.drawer-search button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  font: 500 14px/1 var(--font-body); color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  padding: 13px 14px; cursor: pointer; text-align: left;
}
.drawer-nav { display: flex; flex-direction: column; padding: 14px 20px 24px; }
.drawer-section { border-bottom: 1px solid var(--line); }
.drawer-acc {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 16px 4px;
  font: 700 17px/1 var(--font-head); color: var(--ink); cursor: pointer;
}
.drawer-acc .caret { transition: transform 180ms var(--ease); }
.drawer-acc[aria-expanded="true"] .caret { transform: rotate(180deg); }
.drawer-sub { display: none; padding: 0 4px 16px; flex-direction: column; gap: 2px; }
.drawer-sub.is-open { display: flex; }
.drawer-sub a {
  padding: 10px 8px; text-decoration: none;
  font: 500 15px/1.3 var(--font-body); color: var(--text); border-radius: 6px;
}
.drawer-sub a:hover { color: var(--brand); }
.drawer-link {
  padding: 16px 4px; text-decoration: none;
  font: 700 17px/1 var(--font-head); color: var(--ink);
  border-bottom: 1px solid var(--line); display: block;
}
.drawer-contacts { padding: 22px 20px 34px; display: flex; flex-direction: column; gap: 12px; }
.drawer-contacts a {
  display: flex; align-items: center; gap: 10px;
  font: 600 14px/1.3 var(--font-body); color: var(--ink); text-decoration: none;
}
.drawer-contacts a:hover { color: var(--brand); }
.drawer-contacts svg { color: var(--brand); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   6. Search modal
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: var(--search-z);
  background: oklch(0.2 0.02 20 / 0.46);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 96px 20px 40px;
}
.search-overlay.is-open { display: flex; }
.search-card {
  width: 100%; max-width: 640px;
  background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 140px);
  animation: searchIn 160ms var(--ease);
}
@keyframes searchIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.search-head {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 6px 18px;
  border-bottom: 1px solid var(--line);
}
.search-head svg { color: var(--brand); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none;
  font: 500 16px/1.3 var(--font-body); color: var(--ink);
  padding: 14px 0; background: transparent;
  min-width: 0;
}
.search-input::placeholder { color: var(--muted); font-weight: 400; }
.search-esc {
  font: 600 11px/1 var(--font-body); color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 5px; padding: 5px 7px; cursor: pointer; flex-shrink: 0;
}
.search-esc:hover { color: var(--brand); border-color: var(--brand); }

.search-body { overflow-y: auto; flex: 1; }
.search-label {
  font: 700 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); padding: 16px 20px 8px;
}
.search-result {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 100ms ease;
}
.search-result .sr-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: var(--surface); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.search-result .sr-text { min-width: 0; }
.search-result .sr-title {
  font: 600 14.5px/1.3 var(--font-body); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result .sr-title mark {
  background: var(--tint); color: var(--brand); border-radius: 2px; padding: 0 1px;
}
.search-result .sr-desc {
  font: 400 12.5px/1.4 var(--font-body); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result .sr-badge {
  margin-left: auto; flex-shrink: 0;
  font: 600 10.5px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--teal); background: oklch(0.96 0.02 190 / 0.6);
  border-radius: 100px; padding: 5px 9px;
}
.search-result:hover, .search-result.is-cursor {
  background: var(--surface);
  border-left-color: var(--brand);
}
.search-result.is-cursor .sr-title { color: var(--brand); }
.search-empty { padding: 36px 20px 40px; text-align: center; }
.search-empty p { font: 400 14px/1.5 var(--font-body); color: var(--muted); margin: 0 0 16px; }
.search-empty a {
  display: inline-block; background: var(--brand); color: #fff;
  font: 700 13.5px/1 var(--font-body); padding: 12px 20px;
  border-radius: 7px; text-decoration: none;
}
.search-empty a:hover { background: var(--brand-dark); }
.search-foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 20px; border-top: 1px solid var(--line);
  font: 400 11.5px/1 var(--font-body); color: var(--muted);
  background: var(--surface);
}
.search-foot kbd {
  font: 600 10px/1 var(--font-body); background: #fff;
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 4px; padding: 2px 5px; margin-right: 3px;
}
.search-foot .sf-gap { margin-left: auto; }

/* --------------------------------------------------------------------------
   7. Side rail — floating quick-contact (desktop ≥ 960px)
      Compact independent pill buttons on a transparent track: each button
      is its own 48px white pill; hover/focus expands ONLY that button into
      a brand-red pill with the label — neighbours keep their size.
   -------------------------------------------------------------------------- */
.side-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: var(--rail-z);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font-family: var(--font-body);
}
.rail-btn {
  display: flex; align-items: center; justify-content: flex-end;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 6px 18px oklch(0.2 0.02 20 / 0.12);
  height: 48px; min-width: 48px; padding: 0;
  cursor: pointer; text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.rail-btn:hover, .rail-btn:focus-visible {
  background: var(--brand); text-decoration: none;
  box-shadow: 0 8px 22px oklch(0.35 0.09 15 / 0.35);
}
.rail-btn .lbl {
  font: 600 13px/1 var(--font-body); color: #fff;
  white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width 240ms var(--ease), opacity 160ms ease, margin 240ms var(--ease);
}
.rail-btn .ric {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; box-sizing: border-box;
}
.rail-btn .ric svg { width: 22px; height: 22px; color: var(--brand); display: block; transition: color 160ms ease; }
.rail-btn:hover .lbl, .rail-btn:focus-visible .lbl {
  max-width: 260px; opacity: 1; margin-left: 13px; margin-right: 8px;
}
.rail-btn:hover .ric svg, .rail-btn:focus-visible .ric svg { color: #fff; }
.rail-btn--top { display: none; }
.rail-btn--top.is-visible { display: flex; }

/* Mobile bottom action bar (< 960px) — compact icon buttons:
   Project List / Email / WhatsApp */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--rail-z);
  display: none; gap: 16px; justify-content: center;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px oklch(0.2 0.02 20 / 0.12);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
}
.mobile-bar a, .mobile-bar button {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand);
  border: 1.5px solid var(--line-strong);
  text-decoration: none; cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.mobile-bar a:hover, .mobile-bar button:hover {
  background: var(--tint); border-color: var(--brand);
}
.mobile-bar .mb-list { position: relative; }
.mobile-bar .mb-list svg, .mobile-bar a svg { display: block; }
body.is-drawer-open .mobile-bar { display: none !important; }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-text);
  font-family: var(--font-body);
}
.footer-grid {
  max-width: var(--page-width); margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
.footer-brand img { height: 36px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px; line-height: 1.6; color: oklch(0.7 0.008 20);
  max-width: 260px; margin: 0;
}
.footer-col h3 {
  font: 700 13px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--footer-muted); margin: 0 0 16px;
}
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px; text-decoration: none; color: var(--footer-text);
}
.footer-col a:hover { color: #fff; }
.footer-col address {
  font-style: normal; display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; line-height: 1.5;
}
.footer-bottom {
  max-width: var(--page-width); margin: 0 auto;
  padding: 20px 24px; border-top: 1px solid var(--footer-line);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--footer-muted);
}
.footer-bottom a { color: var(--footer-muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 18px; }

/* --------------------------------------------------------------------------
   9. Static form success state (replaces sc-if submitted pattern)
   -------------------------------------------------------------------------- */
.form-success {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 40px; text-align: center;
}
.form-success h2 {
  font: 700 20px/1.3 var(--font-head); color: var(--ink); margin: 0 0 8px;
}
.form-success p { font-size: 14.5px; color: var(--text); margin: 0; }

/* Quote-context chip — shown at the top of the contact form card when the
   visitor arrived via a product page's "Get a Quote" (?product= param). */
.quote-context {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid oklch(0.8 0.02 190); border-radius: 8px;
  background: oklch(0.97 0.01 190);
  padding: 10px 14px; margin-bottom: 18px;
  font: 600 12.5px/1.4 'Inter', sans-serif; color: var(--ink);
}
.quote-context strong { color: var(--brand); }
.quote-context button {
  border: none; background: transparent; cursor: pointer;
  font: 700 16px/1 'Inter', sans-serif; color: var(--muted);
  padding: 2px 6px; border-radius: 4px;
}
.quote-context button:hover { color: var(--brand); background: oklch(0.93 0.015 190); }

/* Content spec tables — zebra striping + current-row hover highlight so
   parameter/value pairs stay readable on wide tables. Applies to every
   in-content table (header/footer contain none). */
main table tbody td { transition: background-color 0.15s ease; }
main table tbody tr:nth-child(even) td { background: oklch(0.975 0.004 20); }
main table tbody tr:hover td { background: oklch(0.955 0.006 20); }

/* Smooth in-page anchor scrolling; anchored sections clear the sticky header */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 92px; }

/* Belt-and-suspenders: never allow page-level horizontal scrolling.
   "clip" (unlike hidden) does not create a scroll container, so sticky
   positioning inside <main> keeps working. */
main { overflow-x: clip; }

/* --------------------------------------------------------------------------
   11a. Project List (RFQ cart) — rail badge, panel, add buttons
   -------------------------------------------------------------------------- */
.rail-btn--list .ric { position: relative; }
.rail-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  border-radius: 100px; background: var(--brand); color: #fff;
  font: 700 10px/16px 'Inter', sans-serif; text-align: center;
}
.pl-panel {
  position: fixed; right: 76px; top: 50%; transform: translateY(-50%);
  width: 330px; max-width: calc(100vw - 100px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); z-index: var(--backdrop-z);
}
.pl-panel[hidden] { display: none; }
.pl-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.pl-head strong { font: 700 15px/1.2 var(--font-head); color: var(--ink); }
.pl-head button {
  border: none; background: transparent; cursor: pointer;
  font: 700 18px/1 'Inter', sans-serif; color: var(--muted); padding: 2px 6px; border-radius: 4px;
}
.pl-head button:hover { color: var(--brand); background: var(--surface); }
.pl-body { max-height: 320px; overflow-y: auto; padding: 8px 0; }
.pl-item { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.pl-item + .pl-item { border-top: 1px solid var(--line); }
.pl-item a {
  flex: 1; min-width: 0; padding: 11px 0;
  font: 600 13px/1.4 'Inter', sans-serif; color: var(--ink); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-item a:hover { color: var(--brand); }
.pl-item button {
  border: none; background: transparent; cursor: pointer; flex-shrink: 0;
  font: 700 15px/1 'Inter', sans-serif; color: var(--muted); padding: 4px 6px; border-radius: 4px;
}
.pl-item button:hover { color: var(--brand); background: var(--surface); }
.pl-empty {
  padding: 22px 18px; margin: 0; text-align: center;
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.pl-empty strong { color: var(--ink); }
.pl-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 16px; border-top: 1px solid var(--line);
}
.pl-foot[hidden] { display: none; }
.pl-count { font: 600 12px/1 'Inter', sans-serif; color: var(--muted); margin-right: auto; }
.pl-send {
  background: var(--brand); color: #fff; text-decoration: none;
  font: 700 12.5px/1 'Inter', sans-serif; padding: 10px 14px; border-radius: 7px;
}
.pl-send:hover { background: var(--brand-dark); }
.pl-clear {
  border: none; background: transparent; cursor: pointer;
  font: 600 12px/1 'Inter', sans-serif; color: var(--muted); padding: 6px 4px;
}
.pl-clear:hover { color: var(--brand); }
/* Add-to-list button (product pages) */
.btn-add-list {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
  font: 700 14.5px/1 'Inter', sans-serif; color: var(--ink);
  padding: 14px; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-add-list:hover { border-color: var(--brand); color: var(--brand); }
.btn-add-list.is-added { border-color: var(--brand); color: var(--brand); background: oklch(0.97 0.015 15); }
@media (max-width: 900px) {
  .pl-panel { right: 12px; top: auto; bottom: 76px; transform: none; }
}

/* --------------------------------------------------------------------------
   10. Responsive grid utilities
       Pages keep their original inline grid styles; adding class="rg2" /
       "rg3" to a fixed-column grid makes it collapse to one column on
       narrow screens (inline styles are overridden with !important).
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .rg2, .rg3 { grid-template-columns: minmax(0,1fr) !important; }
  .rg-has-sidebar { grid-template-columns: minmax(0,1fr) !important; }
  .rg-hero-img { height: auto !important; grid-template-rows: none !important; }
  .rg-hero-img > div { min-height: 180px; }
}
@media (max-width: 640px) {
  .rg-form { grid-template-columns: minmax(0,1fr) !important; }
}
/* rg4/rg5: fixed 4- or 5-column grids collapse to 2 columns on tablets,
   1 column on phones (inline styles overridden with !important). */
@media (max-width: 1000px) {
  .rg4, .rg5 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 560px) {
  .rg4, .rg5 { grid-template-columns: minmax(0,1fr) !important; }
}

/* --------------------------------------------------------------------------
   11. Form components — split layout (copy left / form card right),
       two-column compact fields. Used by quote/question/request forms.
   -------------------------------------------------------------------------- */
.form-split {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr);
  gap: 48px; align-items: center;
}
.form-copy h2 {
  font: 800 26px/1.3 var(--font-head); color: var(--ink);
  margin: 0 0 12px; text-align: left;
}
.form-copy p { font-size: 14.5px; line-height: 1.65; color: var(--text); margin: 0 0 18px; }
.form-copy ul {
  margin: 0 0 20px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.form-copy li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.form-copy li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); margin-top: 7px;
}
.form-copy-contacts {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.form-copy-contacts a {
  display: flex; align-items: center; gap: 7px;
  font: 600 13.5px/1.3 var(--font-body); color: var(--ink); text-decoration: none;
}
.form-copy-contacts a:hover { color: var(--brand); }
.form-copy-contacts svg { color: var(--brand); flex-shrink: 0; }

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.form-card--tint { background: var(--surface); }

.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fg label {
  display: flex; flex-direction: column; gap: 5px;
  font: 600 12.5px/1 var(--font-body); color: var(--ink);
}
.fg input, .fg select, .fg textarea {
  font: 400 14px/1.2 var(--font-body); color: var(--ink);
  padding: 10px 12px; height: 40px; box-sizing: border-box;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: #fff; width: 100%;
}
.fg textarea { height: auto; min-height: 76px; resize: vertical; line-height: 1.45; }
.fg input[type="file"] { height: auto; padding: 9px 12px; border-style: dashed; font-size: 12.5px; }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.fg .fg-full { grid-column: 1 / -1; }
.fg button[type="submit"] {
  grid-column: 1 / -1;
  background: var(--brand); color: #fff;
  font: 700 14.5px/1 var(--font-body);
  padding: 14px; border: none; border-radius: 8px; cursor: pointer;
  transition: background 120ms ease; margin-top: 4px;
}
.fg button[type="submit"]:hover { background: var(--brand-dark); }
.form-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

@media (max-width: 900px) {
  .form-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .fg { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .form-success { padding: 28px 18px; }
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 959px) {
  .site-nav, .header-actions { display: none; }
  .header-mobile { display: flex; }
  .header-inner { padding: 12px 20px; }
  .side-rail { display: none; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 62px; } /* keep content clear of the bottom bar */
}
@media (min-width: 960px) {
  .header-mobile { display: none; }
  .mobile-bar { display: none !important; }
}
@media (max-width: 640px) {
  .mega-grid { grid-template-columns: 1fr; }
  .search-overlay { padding: 64px 12px 24px; }
  .footer-grid { gap: 32px; padding: 44px 20px 24px; }
}
