/* ===== Boltless configurator + compact SKU grid (appended at top so cascading is sane) ===== */
.cfg-shell {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 24px 24px;
  margin-bottom: 28px;
  box-shadow: 0 6px 24px rgba(15,23,42,0.06);
}
.cfg-head .eyebrow { color: #2563eb; }
.cfg-head h2 { margin: 4px 0 4px; font-size: 1.4rem; }
.cfg-sub { margin: 0 0 18px; color: #64748b; font-size: 0.95rem; }

.cfg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.cfg-field label {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 4px;
  font-weight: 600;
}
.cfg-field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font: inherit;
  background: #fff;
}
.cfg-field select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }

.cfg-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}
.cfg-duty-block > label {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 6px;
  font-weight: 600;
}
.cfg-duty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.cfg-duty-grid.cfg-duty-grid-2 { grid-template-columns: 1fr 1fr; }

/* ===== Category filter chips (used on Pallet Jacks/Stackers/Forklifts) ===== */
.cat-filter-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cat-filter-row:last-child { border-bottom: none; }
.cat-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 6px;
}
.cat-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-chip {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.cat-chip:hover { background: #f1f5f9; border-color: #94a3b8; }
.cat-chip.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Filter container: chip rows on the left, search pane filling the right */
.cat-filters {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
  display: grid;
  grid-template-columns: max-content minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.cat-filter-rows {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cat-filters .cat-filter-row { padding: 6px 0; }

/* Search pane sits in the right column, vertically centered, full height */
.cat-filter-search-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: none;
  padding-left: 0;
  padding-right: 80px;
}
.cat-filter-search-pane .cat-filter-label {
  margin-bottom: 6px;
  padding-top: 0;
}

/* The search input itself */
.cat-filter-search {
  display: block;
  width: 320px;
  max-width: calc(100% - 28px);
  margin: 0 auto;
  padding: 11px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1.2;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
}
/* Center the "Search" label above the input too */
.cat-filter-search-pane .cat-filter-label { text-align: center; }
.cat-filter-search:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.cat-filter-search::placeholder { color: #94a3b8; }

@media (max-width: 720px) {
  .cat-filters { grid-template-columns: 1fr; }
  .cat-filter-search-pane { border-left: none; padding-left: 0; padding-top: 8px; border-top: 1px solid #f1f5f9; }
}

#categoryFilters {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 18px;
  box-shadow: none;
}
#categoryFilters:empty { display: none; }

/* ===== Per-SKU detail cards (for filterable catalogues) ===== */
.attrs-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.attrs-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .12s, border-color .12s;
}
.attrs-card.attrs-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .attrs-card:hover {
    box-shadow: 0 8px 24px rgba(15,23,42,0.10);
    border-color: #94a3b8;
  }
}
.attrs-card-img {
  background: #ffffff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.attrs-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.attrs-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.attrs-card-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.attrs-card-title {
  margin: 2px 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}
.attrs-card-spec {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 8px;
}
.attrs-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.attrs-card-sku {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #64748b;
}
.attrs-detail-link {
  font-size: 0.78rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.attrs-detail-link:hover { text-decoration: underline; }

/* Buy-mode card: image + title link to PDP, but Qty + Add to Cart sit inline */
.attrs-card-buy { cursor: default; }
.attrs-card-buy .attrs-card-imglink {
  display: block;
  text-decoration: none;
  color: inherit;
}
.attrs-card-buy .attrs-card-titlelink {
  text-decoration: none;
  color: inherit;
  display: block;
}
.attrs-card-buy .attrs-card-titlelink:hover .attrs-card-title { color: #2563eb; }
.attrs-card-buy .attrs-card-action {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.attrs-card-buy .attrs-card-qty {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.attrs-card-buy .attrs-card-qty .qty-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.attrs-card-buy .attrs-card-qty .qty-input {
  width: 56px;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}
.attrs-card-buy .btn.primary.small {
  padding: 8px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.attrs-card-buy .attrs-detail-link {
  margin-top: 8px;
  display: inline-block;
}
.attrs-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ===== Subcategory tile grid (clickable sub-product pages) ===== */
.subcat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.subcat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
}
@media (hover: hover) and (pointer: fine) {
  .subcat-card:hover {
    box-shadow: 0 10px 28px rgba(15,23,42,0.10);
    border-color: #94a3b8;
  }
}
.subcat-card-img {
  background: #ffffff;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.subcat-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.subcat-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subcat-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}
.subcat-card-count {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}
.subcat-card-cta {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
}

/* Breadcrumb shown when drilled into a subcategory */
.subcat-crumbs {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.subcat-crumbs a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.subcat-crumbs a:hover { text-decoration: underline; }
.subcat-crumbs-sep { color: #cbd5e1; }
.subcat-crumbs-cur { color: #0f172a; font-weight: 600; }

/* Breadcrumb rendered into the section eyebrow slot — heading-sized link
   on the left, big arrow, current page in dark text on the right. */
.eyebrow.subcat-crumbs-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.005em;
  color: #0f172a;
  margin-bottom: 6px;
  padding: 0;
  background: transparent;
  border: none;
}
.eyebrow.subcat-crumbs-eyebrow a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.subcat-crumbs-eyebrow a:hover { text-decoration: underline; }
.eyebrow.subcat-crumbs-eyebrow .subcat-crumbs-sep { color: #cbd5e1; font-weight: 400; }
.eyebrow.subcat-crumbs-eyebrow .subcat-crumbs-cur { color: #0f172a; font-weight: 700; }
.eyebrow.subcat-crumbs-eyebrow .crumb-arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: #2563eb;
  stroke: none;
  display: inline-block;
  vertical-align: middle;
  transition: transform .12s ease, fill .12s ease;
}
.eyebrow.subcat-crumbs-eyebrow a:hover .crumb-arrow {
  transform: translateX(-3px);
  fill: #1d4ed8;
}
.eyebrow.subcat-crumbs-eyebrow .crumb-text {
  display: inline-block;
  vertical-align: middle;
}

.cfg-unit-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.cfg-unit-row > label {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 8px;
}
.cfg-unit-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cfg-unit-btn {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.cfg-unit-btn strong { color: #0f172a; }
.cfg-unit-btn:hover { background: #f8fafc; }
.cfg-unit-btn.active {
  border: 2px solid #2563eb;
  background: #eff6ff;
  padding: 8px 11px;
}
.cfg-unit-btn.active strong { color: #1d4ed8; }
@media (max-width: 600px) {
  .cfg-unit-toggle { grid-template-columns: 1fr; }
}
.cfg-duty-btn {
  text-align: left;
  padding: 10px 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.cfg-duty-btn:hover { background: #f8fafc; }
.cfg-duty-btn.active {
  border: 2px solid #2563eb;
  background: #eff6ff;
  padding: 9px 9px;
}
.cfg-duty-title { font-weight: 700; font-size: 0.9rem; color: #0f172a; }
.cfg-duty-btn.active .cfg-duty-title { color: #1d4ed8; }
.cfg-duty-sub { font-size: 0.75rem; color: #64748b; margin-top: 2px; }

.cfg-stepper-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}
.cfg-stepper-label { font-size: 0.85rem; font-weight: 600; color: #334155; }
.cfg-stepper-hint  { font-size: 0.7rem;  color: #94a3b8; margin-top: 2px; }
.cfg-stepper { display: inline-flex; align-items: center; gap: 8px; }
.cfg-stepper button {
  width: 32px; height: 32px;
  border: 1px solid #cbd5e1; background: #fff;
  border-radius: 8px;
  font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
}
.cfg-stepper button:hover { background: #f1f5f9; }
.cfg-stepper #cfg-lvl-display {
  min-width: 26px; text-align: center;
  font-size: 1.25rem; font-weight: 700;
}

.cfg-capacity {
  background: #f8fafc;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.cfg-capacity h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.cfg-cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 12px;
}
.cfg-cap-label { font-size: 0.78rem; color: #64748b; }
.cfg-cap-value {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 2px 0;
  color: #0f172a;
}
.cfg-cap-unit { font-size: 0.95rem; color: #64748b; font-weight: 500; }
.cfg-cap-note { font-size: 0.72rem; color: #94a3b8; }

.cfg-breakdown {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  font-size: 0.82rem;
  color: #475569;
}
.cfg-bd-title { font-weight: 700; color: #0f172a; margin-bottom: 4px; font-size: 0.78rem; }
.cfg-bd-row {
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}
.cfg-bd-row span:last-child { color: #0f172a; font-weight: 600; }
.cfg-bd-foot { margin-top: 6px; color: #94a3b8; font-size: 0.72rem; }

.cfg-warn {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
}
.cfg-warn-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.cfg-warn-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.cfg-bom {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
}
.cfg-bom-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cfg-bom-title { font-size: 0.95rem; font-weight: 700; }
.cfg-bom-count { font-size: 0.78rem; color: #94a3b8; }
.cfg-bom-row {
  display: grid;
  grid-template-columns: 1fr auto 110px;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}
.cfg-bom-row:last-of-type { border-bottom: none; }
.cfg-bom-row code { color: #2563eb; font-size: 0.78rem; }
.cfg-bom-row .cfg-bom-qty   { font-weight: 600; color: #475569; }
.cfg-bom-row .cfg-bom-price { text-align: right; color: #0f172a; font-weight: 600; }
.cfg-bom-row em { color: #94a3b8; font-style: italic; font-weight: 500; }
.cfg-bom-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 2px solid #0f172a;
  margin-top: 8px;
  font-size: 0.92rem;
}
.cfg-bom-total-amt     { font-size: 1.15rem; color: #0f172a; }
.cfg-bom-total-pending { color: #94a3b8; font-style: italic; }
.cfg-bom-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cfg-bom-msg {
  margin-top: 10px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}
.cfg-bom-msg.ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.cfg-bom-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.cfg-bom-foot {
  margin-top: 10px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
}

/* Compact SKU grid (used on Boltless category page beneath the configurator) */
.cards.inventory-grid.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}
/* One solid card — no fixed height, no overflow, no scroll */
.compact-grid .card,
.compact-grid article.card {
  padding: 0;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
}
.compact-grid .card h3, .compact-grid .card h4 { font-size: 1rem; margin: 0; line-height: 1.25; }
.compact-grid .card img {
  height: 150px;
  width: 100%;
  display: block;
  flex: 0 0 150px;
}
.compact-grid .inventory-card-content {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  gap: 10px;
  flex: 1 1 auto;
  height: auto;
}
.compact-grid .variant-selector { margin: 0; }
.compact-grid .variant-label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compact-grid .variant-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
}
.compact-grid .card-desc {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.45;
}
.compact-grid .stock-row { margin: 2px 0; }
.compact-grid .price-row {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.compact-grid .price { font-size: 1.1rem; font-weight: 800; }
.compact-grid .qty-add-row {
  gap: 8px;
  display: flex;
  align-items: flex-end;
}
.compact-grid .qty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.compact-grid .qty-label {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.compact-grid .qty-input {
  width: 54px;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}
.compact-grid .btn.primary.small {
  padding: 8px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .cfg-grid { grid-template-columns: repeat(2, 1fr); }
  .cfg-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cfg-duty-grid { grid-template-columns: 1fr; }
  .cfg-cap-grid  { grid-template-columns: 1fr; }
  .cfg-bom-row   { grid-template-columns: 1fr auto; }
  .cfg-bom-row .cfg-bom-price { grid-column: 1 / -1; text-align: right; }
}

/* ====== END Boltless configurator styles ====== */


:root {
--bg: #0f172a;
--panel: #ffffff;
--panel-alt: #f8fafc;
--text: #0f172a;
--muted: #475569;
--line: #dbe3ef;
--accent: #2563eb;
--accent-dark: #1d4ed8;
--success: #166534;
--warning: #92400e;
--danger: #b91c1c;
--shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
box-sizing: border-box;
}

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
color: var(--text);
background: #eef2f7;
}

a {
color: inherit;
text-decoration: none;
}

img {
max-width: 100%;
display: block;
}

.container {
width: 100%;
margin: 0 auto;
padding-left: clamp(32px, 4vw, 88px);
padding-right: clamp(32px, 4vw, 88px);
box-sizing: border-box;
}

/* Topbar content hugs the viewport edges — visually the widest band */
.topbar .container {
padding-left: clamp(12px, 1.5vw, 28px);
padding-right: clamp(12px, 1.5vw, 28px);
}

/* Filter / search / page-header rows are inset further than the product
   grids, creating a 3-tier width pyramid:
     topbar (widest) > product grids > filter+search rows. */
#categoryFilters,
.cat-filters,
.section-head-search,
.inventory-head {
padding-left: clamp(20px, 2vw, 56px);
padding-right: clamp(20px, 2vw, 56px);
box-sizing: border-box;
}

.section {
padding: 40px 0 72px;
}

.section.alt {
background: var(--panel-alt);
}

.eyebrow {
display: inline-block;
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--accent);
margin-bottom: 8px;
}

/* Larger blue heading variant — used as the Quote section title on category pages */
.eyebrow.quote-title {
display: block;
font-size: 2.4rem;
font-weight: 800;
text-transform: none;
letter-spacing: -0.01em;
line-height: 1.15;
margin: 0 0 4px;
color: #2563eb;
}

.topbar {
background: linear-gradient(135deg, #0f172a, #1e293b);
color: #fff;
padding: 10px 0;
border-bottom: 1px solid rgba(255,255,255,0.08);
position: sticky;
top: 0;
z-index: 1500;
box-shadow: 0 4px 18px rgba(15,23,42,0.18);
will-change: transform;
transform: translateZ(0);
}

.nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
}

.brand {
margin: 0;
font-size: 1.35rem;
line-height: 1.1;
}

.brand a {
color: inherit;
text-decoration: none;
}

.brand a:hover {
opacity: 0.85;
}

.tagline {
margin: 6px 0 0;
color: rgba(255,255,255,0.78);
}

.main-nav {
display: flex;
flex-wrap: wrap;
gap: 18px;
font-weight: 600;
}

.main-nav a {
color: rgba(255,255,255,0.92);
}

.main-nav a:hover {
color: #fff;
}

.main-nav .nav-auth {
margin-left: 8px;
padding: 6px 14px;
border-radius: 6px;
border: 1px solid rgba(255,255,255,0.35);
}

.main-nav .nav-auth:hover {
background: rgba(255,255,255,0.08);
}

.main-nav .nav-auth-cta {
background: #2563eb;
border-color: #2563eb;
}

.main-nav .nav-auth-cta:hover {
background: #1d4ed8;
}

.main-nav .nav-greeting {
color: rgba(255,255,255,0.9);
font-weight: 600;
margin-left: 8px;
display: inline-flex;
align-items: center;
gap: 4px;
background: transparent;
border: none;
padding: 6px 10px;
border-radius: 8px;
cursor: pointer;
font: inherit;
}

.main-nav .nav-greeting:hover { background: rgba(255,255,255,0.08); color: #fff; }

.main-nav .nav-caret {
font-size: 0.75rem;
margin-left: 2px;
transition: transform .15s;
}

.nav-user-wrap {
position: relative;
display: inline-block;
}

.nav-user-menu {
position: absolute;
right: 0;
top: calc(100% + 8px);
min-width: 220px;
background: #fff;
color: #0f172a;
border-radius: 12px;
box-shadow: 0 18px 48px rgba(15,23,42,0.25);
border: 1px solid #e2e8f0;
opacity: 0;
visibility: hidden;
transform: translateY(-6px);
transition: opacity .15s, transform .15s, visibility 0s linear .15s;
z-index: 1500;
overflow: hidden;
}

.nav-user-menu.open {
opacity: 1;
visibility: visible;
transform: translateY(0);
transition: opacity .15s, transform .15s, visibility 0s;
}

.nav-menu-item {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
color: #0f172a !important;
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
border-bottom: 1px solid #f1f5f9;
}

.nav-menu-item:hover { background: #f8fafc; }
.nav-menu-item svg { flex-shrink: 0; color: #475569; }

.nav-menu-signout-wrap {
padding: 0;
}

.nav-menu-signout {
display: block;
padding: 16px 18px;
background: #dc2626;
color: #fff !important;
text-align: center;
font-size: 1.05rem;
font-weight: 700;
text-decoration: none;
letter-spacing: 0.02em;
}

.nav-menu-signout:hover { background: #b91c1c; }

.cart-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
padding: 0 7px;
margin-left: 6px;
background: #2563eb;
color: #fff;
font-size: 0.78rem;
font-weight: 700;
border-radius: 999px;
vertical-align: 1px;
}

.main-nav .nav-checkout {
margin-left: 8px;
padding: 6px 14px;
border-radius: 8px;
background: #059669;
color: #fff !important;
font-weight: 700;
}

.main-nav .nav-checkout:hover { background: #047857; }

.cart-toast {
position: fixed;
top: 20px;
right: 20px;
max-width: 360px;
padding: 14px 18px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(15,23,42,0.25);
font-weight: 600;
opacity: 0;
transform: translateY(-8px);
pointer-events: none;
z-index: 2000;
transition: opacity .2s, transform .2s;
}
.cart-toast.ok  { background: #065f46; color: #fff; border: 1px solid #047857; }
.cart-toast.err { background: #991b1b; color: #fff; border: 1px solid #b91c1c; }
.cart-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.hero {
background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
color: #fff;
padding: 96px 0 132px;
}

/* Hero variant: the dark band hosts the embedded visual rack configurator.
   Scaled to 2/3 (smaller by 1/3) and anchored top-left within the band. */
.hero-configurator-embed { padding: 16px 0 24px; }
.configurator-embed-wrap {
width: 66.67%;
height: min(547px, calc((100vh - 120px) * 0.6667));
min-height: 380px;
overflow: hidden;
border-radius: 18px;
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
background: #cfd8e3;
}
.configurator-frame {
display: block;
width: 150%;
height: 150%;
border: 0;
transform: scale(0.6667);
transform-origin: top left;
background: #fff;
}

.hero-grid {
display: grid;
grid-template-columns: 1.3fr 0.9fr;
gap: 28px;
align-items: center;
}

.hero h2 {
margin: 0 0 16px;
font-size: clamp(2rem, 4vw, 3.4rem);
line-height: 1.05;
}

.hero p {
color: rgba(255,255,255,0.84);
font-size: 1.05rem;
max-width: 700px;
}

.hero-card {
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.14);
border-radius: 20px;
padding: 24px;
backdrop-filter: blur(8px);
}

.hero-card ul {
padding-left: 18px;
margin-bottom: 0;
}

/* === Compact 3-mode shelving configurator (hero) === */
.hero-configurator { padding: 18px 20px 20px; }

.hero-cfg-tabs {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 4px;
background: rgba(0,0,0,0.25);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 999px;
padding: 4px;
margin-bottom: 14px;
}
.hero-cfg-tab {
appearance: none;
background: transparent;
color: #cbd5e1;
border: none;
border-radius: 999px;
font: inherit;
font-size: 0.85rem;
font-weight: 600;
padding: 7px 6px;
cursor: pointer;
transition: background .15s, color .15s;
}
.hero-cfg-tab:hover { color: #fff; }
.hero-cfg-tab.active {
background: #2563eb;
color: #fff;
box-shadow: 0 2px 8px rgba(37,99,235,0.4);
}

.hero-cfg-panel { display: flex; flex-direction: column; gap: 10px; }
.hero-cfg-panel[hidden] { display: none; }

.hero-cfg-row {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 8px;
}
.hero-cfg-row label {
display: flex;
flex-direction: column;
gap: 3px;
font-size: 0.7rem;
font-weight: 600;
color: rgba(255,255,255,0.7);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.hero-cfg-row select {
appearance: none;
background: rgba(255,255,255,0.95);
color: #0f172a;
border: 1px solid rgba(255,255,255,0.2);
border-radius: 8px;
padding: 6px 8px;
font: inherit;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
}
.hero-cfg-row select:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 2px rgba(37,99,235,0.4);
}

.hero-cfg-output {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid rgba(255,255,255,0.12);
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
align-items: end;
}
.hero-cfg-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-cfg-stat-label {
font-size: 0.68rem;
font-weight: 600;
color: rgba(255,255,255,0.65);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.hero-cfg-stat strong {
font-size: 1.25rem;
font-weight: 800;
color: #fff;
line-height: 1;
}
.hero-cfg-stat small {
font-size: 0.7rem;
color: rgba(255,255,255,0.6);
font-weight: 600;
margin-top: 2px;
}
.hero-cfg-price-stat strong { color: #fde68a; }
.hero-cfg-cta {
grid-column: 1 / -1;
margin-top: 8px;
padding: 11px 14px;
font-size: 0.95rem;
font-weight: 700;
text-align: center;
border-radius: 10px;
}
.hero-cfg-fulllink {
grid-column: 1 / -1;
text-align: center;
font-size: 0.82rem;
font-weight: 600;
color: rgba(255,255,255,0.78);
text-decoration: none;
padding: 4px 0 0;
}
.hero-cfg-fulllink:hover { color: #fff; text-decoration: underline; }
.hero-cfg-added {
grid-column: 1 / -1;
text-align: center;
font-size: 0.85rem;
font-weight: 600;
color: #86efac;
margin-top: 4px;
min-height: 1.2em;
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 24px;
}

.btn {
border: 0;
border-radius: 12px;
padding: 12px 18px;
font-weight: 700;
cursor: pointer;
transition: 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
}

.btn.primary {
background: var(--accent);
color: #fff;
}

.btn.primary:hover {
background: var(--accent-dark);
}

.btn.secondary {
background: #fff;
color: var(--text);
}

.btn.ghost {
background: transparent;
border: 1px solid var(--line);
color: var(--text);
}

.btn.small {
padding: 10px 14px;
font-size: 0.92rem;
}

.section-head,
.inventory-head {
display: flex;
justify-content: space-between;
gap: 20px;
align-items: center;
margin-bottom: 40px;
}

/* Two-column section header: heading on the left, search input on the right */
.section-head-search {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
margin-bottom: 40px;
flex-wrap: wrap;
}
.section-head-tools {
display: flex;
align-items: center;
gap: 10px;
margin-right: 80px;
}
.section-head-tools .cat-filter-search {
margin: 0;
}

/* Make the existing top inventory-tools search input on category pages
   adopt the same transparent-pill style as the in-filter search. */
.inventory-tools input[type="text"] {
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 999px;
padding: 11px 16px;
font-size: 1.05rem;
min-width: 280px;
}
.inventory-tools input[type="text"]:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.section h2 {
margin: 0;
font-size: 2rem;
}

.category-subtext {
color: var(--muted);
margin-top: 8px;
margin-bottom: 0;
}

.cards {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}

.card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 18px;
padding: 22px;
box-shadow: var(--shadow);
}

.card p {
color: var(--muted);
}

.product-lines .card {
padding: 0;
overflow: hidden;
}

.category-card {
display: block;
transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
.category-card:hover {
box-shadow: 0 10px 28px rgba(15,23,42,0.12);
border-color: #94a3b8;
}
}

.category-image {
width: 100%;
height: 240px;
object-fit: contain;
object-position: center center;
display: block;
background: #ffffff;
padding: 18px;
box-sizing: border-box;
border-bottom: 1px solid var(--line);
}

.category-card-body {
padding: 20px;
}

.inventory-tools {
display: flex;
gap: 12px;
flex-wrap: wrap;
}

.inventory-tools input,
.inventory-tools select,
.inventory-search-wrap input,
.inventory-search-wrap select,
.quote-form input,
.quote-form textarea {
width: 100%;
border: 1px solid #cbd5e1;
border-radius: 12px;
padding: 13px 14px;
font: inherit;
background: #fff;
}

.inventory-tools input { min-width: 320px; }
.inventory-tools select { min-width: 220px; }

/* Centered single-row search bar (homepage) */
.inventory-search-wrap {
max-width: 680px;
margin: 16px auto 18px;
display: flex;
gap: 10px;
align-items: stretch;
}

.inventory-search-wrap input {
flex: 1;
min-width: 0;
font-size: 1rem;
padding: 14px 16px;
border-radius: 14px;
box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.inventory-search-wrap input:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 6px 22px rgba(37,99,235,0.18);
}

.inventory-search-wrap select {
flex: 0 0 auto;
min-width: 170px;
}

.inventory-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-card {
display: flex;
flex-direction: column;
gap: 14px;
padding: 0;
overflow: hidden;
}

.product-image {
width: 100%;
height: 280px;
object-fit: contain;
background: #ffffff;
padding: 16px;
box-sizing: border-box;
border-bottom: 1px solid var(--line);
}

.inventory-card-content {
padding: 18px;
display: flex;
flex-direction: column;
gap: 14px;
height: 100%;
}

.inventory-card h3 {
margin: 0;
font-size: 1.2rem;
}

.meta,
.specs-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 10px;
border-radius: 999px;
font-size: 0.86rem;
font-weight: 600;
background: #eff6ff;
color: #1d4ed8;
}

.stock.ok {
background: #ecfdf5;
color: var(--success);
}

.stock.low {
background: #fff7ed;
color: var(--warning);
}

.specs-box {
background: #f8fafc;
border-radius: 14px;
padding: 14px;
border: 1px solid #e2e8f0;
}

.price-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-top: auto;
}

.price {
font-size: 1.3rem;
font-weight: 800;
}

.quote-layout {
display: grid;
grid-template-columns: 1fr;
gap: 24px;
}
.quote-layout > .quote-head {
text-align: center;
max-width: 720px;
margin: 0 auto;
}
/* Two-column row: cart on the left (wider), billing/card form on the right */
.quote-grid-row {
display: grid;
grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
gap: 24px;
max-width: 1280px;
margin: 0 auto;
width: 100%;
align-items: stretch;
}
.quote-left-col {
display: flex;
flex-direction: column;
gap: 18px;
min-width: 0;
height: 100%;
align-self: stretch;
}
.quote-left-col > .shipping-box {
flex: 1 1 auto;
}
.quote-grid-row .quote-cart {
position: static;
width: 100%;
padding: 24px 26px;
}
.quote-grid-row > .quote-cart .quote-cart-head h3 {
font-size: 1.3rem;
}
.quote-grid-row > .quote-cart .cart-items {
min-height: 220px;
}

/* Billing + payment form on the right */
.quote-billing {
background: #fff;
border: 1px solid var(--line);
border-radius: 18px;
padding: 30px 34px 28px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 24px;
height: 100%;
align-self: stretch;
justify-content: space-between;
}

/* Shipping box — sits under the cart, anchored to the bottom of the column.
   Min-height keeps the box the same size whether pickup or delivery is
   selected (so the layout doesn't jump). */
.shipping-box {
background: #fff;
border: 1px solid var(--line);
border-radius: 18px;
padding: 20px 24px 22px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 14px;
min-height: 460px;
}
.shipping-title {
margin: 0;
font-size: 1.15rem;
color: #0f172a;
}
.shipping-options {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.shipping-radio {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 14px;
border: 1px solid #cbd5e1;
border-radius: 12px;
cursor: pointer;
background: #ffffff;
transition: border-color .12s, background .12s, box-shadow .12s;
}
.shipping-radio:hover { border-color: #94a3b8; background: #f8fafc; }
.shipping-radio input[type="radio"] {
margin: 3px 0 0 0;
flex-shrink: 0;
accent-color: #2563eb;
}
.shipping-radio:has(input:checked) {
border-color: #2563eb;
background: #eff6ff;
box-shadow: 0 0 0 1px #2563eb inset;
}
.shipping-radio-label {
display: flex;
flex-direction: column;
gap: 2px;
line-height: 1.2;
}
.shipping-radio-label strong {
font-size: 0.95rem;
color: #0f172a;
font-weight: 700;
}
.shipping-radio-label small {
font-size: 0.78rem;
color: #64748b;
font-weight: 500;
}
.shipping-address-wrap {
display: flex;
flex-direction: column;
gap: 12px;
padding-top: 4px;
}
.shipping-address-wrap[hidden] { display: none; }
.shipping-same-row {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
color: #334155;
font-weight: 500;
cursor: pointer;
}
.shipping-same-row input[type="checkbox"] {
accent-color: #2563eb;
width: 16px;
height: 16px;
margin: 0;
flex-shrink: 0;
}
.shipping-address-fields[hidden] { display: none; }

/* ===== PIXEL FLATBED — appears under the billing form on a successful
   "Place Order" submission. Bobs up and down with spinning wheels and a
   moving dashed ground line so it reads as actively driving. ===== */
.ship-truck-stage {
  margin-top: 18px;
  padding: 18px 20px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-align: center;
  overflow: hidden;
}
.ship-truck-stage[hidden] { display: none; }
.ship-truck {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
  shape-rendering: crispEdges;
  image-rendering: pixelated;
}
.ship-truck-caption {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #166534;
}
@keyframes ship-truck-bob {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-2px); }
  75%      { transform: translateY(2px); }
}
.ship-truck-body {
  animation: ship-truck-bob 0.45s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes ship-truck-wheel {
  to { transform: rotate(360deg); }
}
.ship-truck-wheel {
  animation: ship-truck-wheel 0.35s linear infinite;
}
@keyframes ship-truck-ground {
  to { stroke-dashoffset: -28; }
}
.ship-truck-ground {
  animation: ship-truck-ground 0.32s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ship-truck-body,
  .ship-truck-wheel,
  .ship-truck-ground { animation: none; }
}

/* Pickup info: address card + time-of-day select + flexibility radio */
.shipping-pickup-info {
display: flex;
flex-direction: column;
gap: 14px;
padding-top: 4px;
}
.shipping-pickup-info[hidden] { display: none; }
.pickup-address-card {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 14px 16px;
}
.pickup-address-label {
font-size: 0.72rem;
font-weight: 700;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 6px;
}
.pickup-address-text {
font-size: 0.94rem;
color: #0f172a;
line-height: 1.5;
}
.pickup-address-text small {
display: inline-block;
margin-top: 4px;
color: #64748b;
font-size: 0.82rem;
}
.pickup-time-row {
display: flex;
flex-direction: column;
gap: 6px;
}
.pickup-time-row label {
font-size: 0.78rem;
font-weight: 600;
color: #475569;
}
.pickup-time-select {
width: 100%;
padding: 9px 11px;
border: 1px solid #cbd5e1;
border-radius: 9px;
font: inherit;
background: #fff;
box-sizing: border-box;
}
.pickup-time-select:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.pickup-flex-row {
border: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.pickup-flex-row legend {
grid-column: 1 / -1;
font-size: 0.78rem;
font-weight: 700;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 4px;
padding: 0;
}
.pickup-flex-opt {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 12px;
border: 1px solid #cbd5e1;
border-radius: 10px;
cursor: pointer;
background: #fff;
transition: border-color .12s, background .12s, box-shadow .12s;
}
.pickup-flex-opt:hover { border-color: #94a3b8; background: #f8fafc; }
.pickup-flex-opt input[type="radio"] {
margin: 3px 0 0 0;
flex-shrink: 0;
accent-color: #2563eb;
}
.pickup-flex-opt:has(input:checked) {
border-color: #2563eb;
background: #eff6ff;
box-shadow: 0 0 0 1px #2563eb inset;
}
.pickup-flex-opt span {
display: flex;
flex-direction: column;
gap: 2px;
line-height: 1.2;
}
.pickup-flex-opt strong {
font-size: 0.9rem;
color: #0f172a;
font-weight: 700;
}
.pickup-flex-opt small {
font-size: 0.76rem;
color: #64748b;
font-weight: 500;
}

@media (max-width: 540px) {
.shipping-options { grid-template-columns: 1fr; }
.pickup-flex-row { grid-template-columns: 1fr; }
}
.billing-title {
margin: 0;
font-size: 1.55rem;
color: #0f172a;
}
.billing-fieldset {
border: none;
padding: 0;
margin: 0;
}
.billing-fieldset legend {
font-size: 0.95rem;
font-weight: 700;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 16px;
padding: 0;
}
.billing-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px 16px;
}
.billing-field { display: flex; flex-direction: column; }
.billing-field-wide { grid-column: 1 / -1; }
.billing-field label {
font-size: 0.95rem;
font-weight: 600;
color: #475569;
margin-bottom: 8px;
}
.billing-field .opt {
font-weight: 500;
color: #94a3b8;
}
.billing-field input {
width: 100%;
padding: 13px 15px;
border: 1px solid #cbd5e1;
border-radius: 10px;
font: inherit;
font-size: 1rem;
background: #fff;
box-sizing: border-box;
}
.billing-field input:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.billing-note {
margin: 10px 0 0;
font-size: 0.92rem;
color: #64748b;
line-height: 1.5;
}
.billing-msg {
padding: 12px 14px;
border-radius: 10px;
font-size: 0.95rem;
font-weight: 500;
}
.billing-msg.ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.billing-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.billing-submit {
align-self: stretch;
margin-top: auto;
padding: 16px 22px;
font-weight: 700;
font-size: 1.1rem;
border-radius: 12px;
}
@media (max-width: 900px) {
.quote-grid-row { grid-template-columns: 1fr; }
}

.quote-single {
max-width: 760px;
margin: 0 auto;
}

.quote-intro {
text-align: center;
margin-bottom: 24px;
}

.quote-intro p {
color: var(--muted);
margin: 6px auto 0;
max-width: 540px;
}

.quote-cart-wide {
position: static !important;
}

.submit-quote-btn {
width: 100%;
margin-top: 16px;
padding: 14px 18px;
font-size: 1rem;
font-weight: 700;
}

.submit-quote-btn:disabled {
opacity: .55;
cursor: not-allowed;
}

.quote-cart {
background: #fff;
border: 1px solid var(--line);
border-radius: 18px;
padding: 18px;
box-shadow: var(--shadow);
height: fit-content;
position: sticky;
top: 24px;
}

.quote-cart-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
margin-bottom: 16px;
}

.cart-items {
display: grid;
gap: 12px;
min-height: 120px;
max-height: 420px;
overflow-y: auto;
overscroll-behavior: auto;
padding-right: 6px;
scrollbar-width: thin;
}
.cart-items::-webkit-scrollbar { width: 8px; }
.cart-items::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.cart-items::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.cart-item {
border: 1px solid #e2e8f0;
border-radius: 14px;
padding: 12px;
background: #f8fafc;
}

.cart-item-top,
.cart-item-bottom,
.cart-summary {
display: flex;
justify-content: space-between;
gap: 10px;
align-items: center;
}

.cart-item-bottom {
margin-top: 10px;
}

.cart-actions {
display: flex;
align-items: center;
gap: 8px;
}

.icon-btn {
border: 1px solid #e2e8f0;
background: #fff;
color: var(--danger);
border-radius: 10px;
padding: 8px 10px;
cursor: pointer;
font-size: 1rem;
}

.icon-btn:hover {
background: #fef2f2;
}

.empty-state {
color: var(--muted);
margin: 0;
}

.cart-summary {
margin-top: 18px;
padding-top: 16px;
border-top: 1px solid var(--line);
}

.contact-header {
margin-bottom: 22px;
}

.contact-box {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 28px;
align-items: stretch;
}

.contact-right {
display: flex;
flex-direction: column;
gap: 18px;
}

.contact-card {
background: #fff;
border: 1px solid var(--line);
border-radius: 18px;
padding: 22px;
box-shadow: var(--shadow);
}

.review-slideshow {
background: linear-gradient(135deg, #0f172a, #1e293b);
color: #fff;
border-radius: 18px;
padding: 22px 24px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
position: relative;
}

.review-slideshow-title {
margin: 0 0 14px;
font-size: 1rem;
color: rgba(255,255,255,0.85);
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: 700;
}

.review-slides {
position: relative;
flex: 1;
display: flex;
align-items: center;
min-height: 200px;
}

.review-slide {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity .5s ease;
display: flex;
flex-direction: column;
justify-content: center;
pointer-events: none;
}

.review-slide.active {
opacity: 1;
pointer-events: auto;
position: relative;
}

.review-stars {
color: #fbbf24;
font-size: 1.15rem;
letter-spacing: 2px;
margin-bottom: 10px;
}

.review-quote {
font-size: 1.02rem;
line-height: 1.55;
color: rgba(255,255,255,0.92);
font-style: italic;
margin: 0 0 14px;
}

.review-quote::before { content: "\201C"; font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; color: rgba(255,255,255,0.35); margin-right: 4px; }

.review-author {
font-size: 0.88rem;
color: rgba(255,255,255,0.75);
margin: 0;
}

.review-author strong { color: #fff; }

.review-dots {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 16px;
}

.review-dot {
width: 9px;
height: 9px;
border-radius: 50%;
border: none;
padding: 0;
background: rgba(255,255,255,0.25);
cursor: pointer;
transition: background .15s, transform .15s;
}

.review-dot:hover { background: rgba(255,255,255,0.5); }
.review-dot.active { background: #fbbf24; transform: scale(1.2); }

@media (max-width: 720px) {
  .contact-box { grid-template-columns: 1fr; }
}

/* ===== Top-anchored contact modal (opens from nav) ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  pointer-events: none;
}
.contact-modal.open { display: block; pointer-events: auto; }

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.contact-modal-panel {
  position: absolute;
  top: 64px;
  right: 24px;
  width: clamp(320px, 33vw, 460px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.35);
  border: 1px solid #e2e8f0;
  padding: 18px 18px 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .15s, transform .15s;
}
.contact-modal.open .contact-modal-panel {
  opacity: 1;
  transform: translateY(0);
}

.contact-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.contact-modal-close:hover { background: #f1f5f9; color: #0f172a; }

.contact-modal-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-modal-form { display: flex; flex-direction: column; gap: 8px; }
.contact-modal-form input,
.contact-modal-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  background: #fff;
}
.contact-modal-form input:focus,
.contact-modal-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.contact-modal-form textarea { resize: vertical; min-height: 72px; font-family: inherit; }

.contact-modal-msg {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 2px;
}
.contact-modal-msg.ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.contact-modal-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.contact-modal-submit {
  margin-top: 4px;
  padding: 10px 14px;
  font-weight: 700;
}
.contact-modal-submit:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 720px) {
  .contact-modal-panel {
    width: 92vw;
    top: 70px;
    right: 4vw;
  }
}

/* ===== Top-anchored cart modal (opens from nav) ===== */
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  pointer-events: none;
}
.cart-modal.open { display: block; pointer-events: auto; }

.cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.cart-modal-panel {
  position: absolute;
  top: 64px;
  right: 24px;
  width: clamp(340px, 36vw, 500px);
  max-height: calc(100vh - 90px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.35);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .15s, transform .15s;
}
.cart-modal.open .cart-modal-panel {
  opacity: 1;
  transform: translateY(0);
}

.cart-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}
.cart-modal-close:hover { background: #f1f5f9; color: #0f172a; }

.cart-modal-title {
  margin: 0;
  padding: 16px 18px 12px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid #f1f5f9;
}

.cart-modal-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  vertical-align: 1px;
}

.cart-modal-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  min-height: 80px;
}

.cart-modal-empty {
  color: var(--muted);
  text-align: center;
  margin: 24px 18px;
  font-size: 0.92rem;
}

.cart-modal-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.cart-modal-line:last-child { border-bottom: none; }

.cart-modal-line-info { min-width: 0; }
.cart-modal-line-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-modal-line-sku {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.cart-modal-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-modal-qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}
.cart-modal-qty-btn:hover { background: #f8fafc; }
.cart-modal-qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-modal-line-price {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 60px;
  text-align: right;
}

.cart-modal-line-remove {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
}
.cart-modal-line-remove:hover { background: #fef2f2; }

.cart-modal-foot {
  padding: 14px 18px 16px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
  border-radius: 0 0 14px 14px;
}

.cart-modal-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.cart-modal-total-row strong { font-size: 1.15rem; }

.cart-modal-msg {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.cart-modal-msg.ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.cart-modal-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.cart-modal-checkout {
  width: 100%;
  padding: 11px 16px;
  font-weight: 700;
}
.cart-modal-checkout:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 720px) {
  .cart-modal-panel {
    width: 92vw;
    top: 70px;
    right: 4vw;
    max-height: calc(100vh - 90px);
  }
}

/* ===== Specialized Products sub-section on homepage ===== */
.specialized-section {
  background: var(--panel-alt);
  border-radius: 22px;
  padding: 32px 28px 36px;
  margin-top: 36px;
  box-shadow: inset 0 1px 0 rgba(15,23,42,0.04);
}
.specialized-head {
  margin: 0 0 22px;
  text-align: center;
}
.specialized-head h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}
.specialized-head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.5;
}
.specialized-grid {
  margin: 0;
}

/* ===== Consultation page layout (Mezzanine / Pushback) ===== */
.consult-layout {
  display: block;
}

.consult-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
  align-items: stretch;
}

.consult-slideshow {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.consult-slides {
  position: relative;
  flex: 1;
  min-height: 320px;
}

.consult-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.consult-slide.active { opacity: 1; }

.consult-slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.consult-slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  padding: 0;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.consult-slide-dot:hover { background: rgba(255,255,255,0.7); }
.consult-slide-dot.active { background: #fbbf24; transform: scale(1.25); }

.consult-spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.consult-spec h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}
.consult-spec p {
  color: #334155;
  line-height: 1.6;
  margin: 0 0 12px;
}
.consult-spec-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 6px;
}
.consult-spec-bullets li {
  position: relative;
  padding-left: 22px;
  color: #0f172a;
  font-weight: 500;
}
.consult-spec-bullets li::before {
  content: 'âœ“';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 800;
}

.consult-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.consult-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.consult-form-heading {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.consult-team-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
  display: flex;
  flex-direction: column;
}
.consult-team-photo img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
  min-height: 320px;
}
.consult-team-photo figcaption {
  padding: 14px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
  background: rgba(0,0,0,0.35);
}
.consult-form-blurb {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.55;
}
.consult-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.consult-field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
}
.consult-field .req { color: #dc2626; font-weight: 700; }
.consult-field input,
.consult-field textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
}
.consult-field input:focus,
.consult-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.consult-field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}
.consult-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.consult-msg {
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.consult-msg.ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.consult-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.consult-submit {
  width: 100%;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 1rem;
}
.consult-submit:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 900px) {
  .consult-top, .consult-bottom { grid-template-columns: 1fr; }
  .consult-team-photo img { min-height: 240px; }
}
@media (max-width: 600px) {
  .consult-field-row { grid-template-columns: 1fr; }
}

.contact-form {
background: #fff;
border: 1px solid var(--line);
border-radius: 18px;
padding: 24px;
box-shadow: var(--shadow);
}

.contact-form-title {
margin: 0 0 14px;
font-size: 1.15rem;
}

.contact-field {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 12px;
}

.contact-field label {
font-weight: 600;
font-size: 0.88rem;
color: #334155;
}

.contact-field .req {
color: #dc2626;
font-weight: 700;
}

.contact-field input,
.contact-field textarea {
border: 1px solid #cbd5e1;
border-radius: 10px;
padding: 11px 13px;
font: inherit;
background: #fff;
}

.contact-field input:focus,
.contact-field textarea:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.contact-field textarea {
resize: vertical;
min-height: 110px;
font-family: inherit;
}

.contact-field-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}

.contact-msg {
padding: 10px 14px;
border-radius: 10px;
margin-bottom: 12px;
font-size: 0.9rem;
font-weight: 500;
}
.contact-msg.ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.contact-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.contact-submit {
width: 100%;
padding: 13px 18px;
font-weight: 700;
font-size: 1rem;
margin-top: 4px;
}

.contact-submit:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 720px) {
  .contact-field-row { grid-template-columns: 1fr; }
}

.footer {
background: #0f172a;
color: rgba(255,255,255,0.8);
padding: 24px 0;
}

@media (max-width: 960px) {
.hero-grid,
.quote-layout,
.contact-box,
.cards,
.inventory-grid,
.section-head,
.inventory-head,
.nav {
grid-template-columns: 1fr;
display: grid;
}

.quote-cart {
position: static;
}
}

@media (max-width: 680px) {
.section {
padding: 56px 0;
}

.inventory-tools input,
.inventory-tools select {
min-width: 100%;
}

.product-image,
.category-image {
height: 180px;
}
}
/* ===== SUBMIT OPTIONS ===== */
.submit-options {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.submit-options-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.submit-options-desc {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.submit-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submit-service-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.submit-service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.submit-service-btn.quote {
  border-color: #2563eb;
  background: #eff6ff;
}

.submit-service-btn.quote:hover {
  background: #dbeafe;
  border-color: #1d4ed8;
}

.submit-service-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.quote-submit-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
}
.quote-submit-msg.ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.quote-submit-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.submit-service-btn.freight {
  border-color: #059669;
}

.submit-service-btn.freight:hover {
  background: #ecfdf5;
  border-color: #047857;
}

.service-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-info strong {
  font-size: 1rem;
  color: var(--text);
}

.service-info span {
  font-size: 0.88rem;
  color: var(--muted);
}

.service-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.modal-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0 0 2px;
  font-size: 1.25rem;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.freight-header .modal-price {
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 800;
  color: #059669;
}

.modal-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.modal-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.modal-summary h4 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.modal-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.88rem;
}

.modal-summary-item:last-child {
  border-bottom: none;
}

.modal-customer-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #1e40af;
  margin-bottom: 14px;
}

.modal-customer-info p {
  margin: 2px 0;
  color: #1e40af;
}

.modal-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #92400e;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-pay-btn {
  padding: 13px 22px;
  font-size: 1rem;
}

.freight-pay {
  background: #059669;
}

.freight-pay:hover {
  background: #047857;
}

/* Freight Form */
.freight-fields h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.freight-form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.freight-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.95rem;
}

.freight-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.forklift-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 8px;
  background: #f8fafc;
  font-size: 0.92rem;
  font-family: inherit;
}

.forklift-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.no-forklift {
  background: #fff7ed;
  border-color: #fed7aa;
}

/* Success Modal */
.success-modal-box {
  text-align: center;
  padding: 40px 32px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  border: 3px solid #10b981;
  color: #10b981;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.success-modal-box h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.success-modal-box p {
  color: var(--muted);
  margin: 0;
}

/* Credit note inline label */
.credit-note {
  font-style: normal;
  color: #059669;
  font-weight: 600;
  font-size: 0.82rem;
}

/* ===== VARIANT CARDS ===== */
.variant-card {}

.part-badge {
  background: #f0fdf4;
  color: #166534;
}

.variant-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.variant-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.variant-select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  cursor: pointer;
  appearance: auto;
  color: var(--text);
  transition: border-color 0.2s;
}

.variant-select:hover,
.variant-select:focus {
  border-color: var(--accent);
  outline: none;
}


/* ===== STOCK BADGE - OUT OF STOCK (legacy class, kept for any callers) ===== */
.stock.out {
  background: #fef2f2;
  color: var(--danger);
}

/* ===== STOCK BADGE - LEAD TIME (warehouse out, ships 3-5 days) ===== */
.stock.lead {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ===== LIVE DATA BADGE ===== */
.live-badge {
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.78rem;
  animation: livepulse 2.5s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ===== STOCK ROW (below variant selector) ===== */
.stock-row {
  min-height: 28px;
  display: flex;
  align-items: center;
}

/* ===== QTY + ADD TO QUOTE ROW ===== */
.qty-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qty-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.qty-input {
  width: 68px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: none;
  border-color: var(--accent);
}

.qty-input:disabled {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
}
