/* ============================================================
   inventory.css — inventory-specific layer on top of
   sb-design-system.css. Bootstrap has been removed; this file
   plus the design system provide all layout & components.
   Only inventory-specific pieces live here (header w/ dropdowns
   + mobile menu, footer, filter bar, visual-search dropzone,
   page scaffolding). Shared primitives (grid, product card,
   buttons, chips, inputs, modal, skeletons) come from the
   design system via .sb-* classes.
   ============================================================ */

/* Accent opacity variants — driven by Hub palette/accent picker via
   color-mix() so every rgba(gold, X) in style.css / style-products.css
   responds to tenant palette changes without touching those files.
   Use these vars anywhere a tinted accent is needed. */
:root {
  --color-accent-10: color-mix(in srgb, var(--color-accent) 10%, transparent);
  --color-accent-15: color-mix(in srgb, var(--color-accent) 15%, transparent);
  --color-accent-20: color-mix(in srgb, var(--color-accent) 20%, transparent);
  --color-accent-25: color-mix(in srgb, var(--color-accent) 25%, transparent);
  --color-accent-30: color-mix(in srgb, var(--color-accent) 30%, transparent);
  --color-accent-35: color-mix(in srgb, var(--color-accent) 35%, transparent);
  --color-accent-45: color-mix(in srgb, var(--color-accent) 45%, transparent);
  --color-accent-55: color-mix(in srgb, var(--color-accent) 55%, transparent);
  --color-accent-60: color-mix(in srgb, var(--color-accent) 60%, transparent);
  --color-accent-70: color-mix(in srgb, var(--color-accent) 70%, transparent);
  --color-accent-95: color-mix(in srgb, var(--color-accent) 95%, transparent);
}

/* Body: only set what the new shell needs; do NOT impose display:flex globally
   (it broke index/product layout). The bespoke style.css owns body layout on
   the catalog/product pages; category (no style.css) inherits design-system
   body defaults. */
body {
  margin: 0;
}

/* ---------- Header / nav ---------- */
.inv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-hairline);
}

.inv-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.inv-brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.inv-brand__logo { height: 40px; width: auto; object-fit: contain; }
.inv-brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-text-primary);
}

.inv-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.inv-nav__item { position: relative; }

.inv-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-ui-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-base, 150ms), border-color var(--t-base, 150ms);
  cursor: pointer;
}
.inv-nav__link:hover,
.inv-nav__link[aria-current="page"] {
  color: var(--color-text-primary);
  border-bottom-color: currentColor;
}
.inv-nav__link .bi-chevron-down { font-size: 0.7em; }

/* Dropdown */
.inv-nav__dropdown {
  position: absolute;
  top: calc(100% + var(--space-3));
  right: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  background: var(--color-surface-raised);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-base, 150ms), transform var(--t-base, 150ms), visibility var(--t-base, 150ms);
  z-index: 110;
}
.inv-nav__item--has-children:hover .inv-nav__dropdown,
.inv-nav__item--has-children.is-open .inv-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.inv-nav__dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-ui-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
}
.inv-nav__dropdown-link:hover { background: var(--color-surface); color: var(--color-text-primary); }

/* Mobile toggle (hidden on desktop) */
.inv-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: var(--space-1);
}

@media (max-width: 900px) {
  .inv-nav-toggle { display: inline-flex; }
  .inv-header__inner { height: 56px; }
  .inv-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface-raised);
    border-bottom: var(--border-hairline);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base, 200ms) ease;
  }
  .inv-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .inv-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--space-6);
  }
  .inv-nav__item { border-bottom: var(--border-hairline); }
  .inv-nav__link { padding: var(--space-4) 0; border-bottom: none; }
  .inv-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 var(--space-3) var(--space-4);
    display: none;
  }
  .inv-nav__item--has-children.is-open .inv-nav__dropdown { display: block; }
}

/* ---------- Site footer ----------
   NOTE: class is .inv-site-footer (NOT .inv-footer) — the product cards already
   use .inv-footer for their bottom strip, and this rule's margin-top:80px was
   leaking onto every card footer (the grid "white space"). Keep these distinct. */
.inv-site-footer {
  flex-shrink: 0;
  margin-top: var(--space-20);
  border-top: var(--border-hairline);
  background: var(--color-surface);
}
.inv-site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 640px) { .inv-site-footer__inner { flex-direction: row; align-items: center; } }
.inv-site-footer__brand { display: flex; align-items: center; gap: var(--space-3); }
.inv-site-footer__logo { height: 28px; width: auto; object-fit: contain; opacity: 0.85; }
.inv-site-footer__copy { font-size: var(--text-ui-sm); color: var(--color-text-tertiary); }
.inv-site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.inv-site-footer__links a {
  font-size: var(--text-ui-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
}
.inv-site-footer__links a:hover { color: var(--color-text-primary); }

/* ---------- Page scaffolding ---------- */
.inv-page { max-width: 1280px; margin: 0 auto; padding: var(--space-8) var(--space-6); }

.inv-page__head { margin-bottom: var(--space-8); }
.inv-page__title {
  font-family: var(--font-display);
  font-size: var(--text-d-lg);
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
}
.inv-page__sub { font-size: var(--text-ui-md); color: var(--color-text-secondary); margin: 0; }

/* ---------- Filter bar ---------- */
.inv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-6);
}
.inv-filters .sb-select,
.inv-filters .sb-input { min-width: 160px; }

/* ---------- Visual search dropzone ---------- */
.inv-search-drop {
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--t-base, 150ms), background var(--t-base, 150ms);
}
.inv-search-drop:hover,
.inv-search-drop.is-dragover {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}
.inv-search-drop__icon { font-size: 2rem; color: var(--color-text-tertiary); margin-bottom: var(--space-2); }

/* ============================================================
   Modal + collapse (sb-ui.js contract) and a small compatibility
   layer for utility/component classes the existing JS still
   toggles or injects (d-none, show, .table, .form-control, …),
   mapped to design tokens. Lets us drop Bootstrap without
   rewriting ~3,000 lines of working JS.
   ============================================================ */

/* Modal visibility (driven by sb-ui.js; .show matches the Bootstrap class the
   app JS checks, .sb-open kept as an alias) */
.sb-modal-backdrop { display: none; z-index: 1030; } /* 1030 > dock z-index:1020 */
.sb-modal-backdrop.show,
.sb-modal-backdrop.sb-open { display: flex; }

.sb-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-6) 0; }
.sb-modal__title { font-family: var(--font-display); font-size: var(--text-d-sm); font-weight: 400; color: var(--color-text-primary); margin: 0; }
.sb-modal__close {
  flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: 20px; line-height: 1; background: none; border: none; cursor: pointer;
  color: var(--color-text-tertiary); transition: color var(--t-base), background var(--t-base);
}
.sb-modal__close:hover { color: var(--color-text-primary); background: var(--color-surface); }
.sb-modal__body   { padding: var(--space-6); }
.sb-modal__footer { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; padding: 0 var(--space-6) var(--space-6); }

/* Collapse (driven by sb-ui.js / data-bs-toggle; .show is the Bootstrap class
   inventory.js toggles + checks) */
.collapse { display: none; }
.collapse.show { display: block; }

/* ---- utility compatibility (JS-toggled) ---- */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.no-scroll, .modal-open { overflow: hidden !important; }
[hidden] { display: none !important; }

/* ---- component compatibility (JS-injected markup), tokenized ---- */
.table { width: 100%; border-collapse: collapse; font-size: var(--text-ui-sm); }
.table th, .table td { padding: var(--space-3); border-bottom: var(--border-hairline); text-align: left; vertical-align: middle; }
.table th { font-weight: 600; color: var(--color-text-secondary); }
.table-responsive { overflow-x: auto; }

.form-label { display: block; font-size: var(--text-ui-sm); font-weight: 500; color: var(--color-text-secondary); margin-bottom: var(--space-1); }
.form-text { font-size: var(--text-ui-xs); color: var(--color-text-tertiary); margin-top: var(--space-1); }
.form-control {
  width: 100%; padding: var(--space-3) var(--space-4); font-family: var(--font-ui); font-size: var(--text-ui-md);
  color: var(--color-text-primary); background: var(--color-surface); border: var(--border-standard);
  border-radius: var(--radius-md); transition: border-color var(--t-base);
}
.form-control:focus { outline: none; border-color: var(--color-accent); }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2);
  font-size: var(--text-ui-xs); font-weight: 600; border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-text-secondary);
}

.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-ui-sm); border: var(--border-hairline); }
.alert-warning { background: var(--color-warning-subtle); color: var(--color-text-primary); }

/* ============================================================
   Bootstrap-subset compatibility — EXACTLY the grid/utility/
   button/tab classes the templates use (enumerated), reimplemented
   on design tokens so we can drop the Bootstrap CDN with no markup
   churn. Buttons/forms pick up the editorial look automatically.
   ============================================================ */

/* ---- grid: faithful Bootstrap 5 padding-gutter model ----
   Width-based columns + padding gutters (NOT flex `gap`), so style.css's own
   width-based cols (e.g. .col-lg-4-3 { width:33.333% }) compute correctly.
   This is a neutral primitive replica of the part of Bootstrap the app used. */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }
.container-fluid { width: 100%; padding-right: var(--space-4); padding-left: var(--space-4); margin: 0 auto; }
.row {
  display: flex;
  flex-wrap: wrap;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}
.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}
.row.g-2 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
.row.g-3 { --bs-gutter-x: 1rem;   --bs-gutter-y: 1rem; }
.row.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.col   { flex: 1 0 0%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.col-6  { flex: 0 0 auto; width: 50%; }
@media (min-width: 576px) { .col-sm-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 768px) { .col-md-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 992px) {
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
}

/* ---- display / flex utilities ---- */
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-flex { display: flex !important; }
  .flex-lg-row { flex-direction: row !important; }
  .align-items-lg-center { align-items: center !important; }
  .justify-content-lg-between { justify-content: space-between !important; }
  .justify-content-lg-end { justify-content: flex-end !important; }
  .ms-lg-auto { margin-left: auto !important; }
}
@media (max-width: 991.98px) { .d-lg-none { } }
.d-none.d-lg-flex { display: none !important; }
@media (min-width: 992px) { .d-none.d-lg-flex { display: flex !important; } }

/* ---- spacing (Bootstrap scale: 0,1=.25rem,2=.5rem,3=1rem,4=1.5rem,5=3rem) ---- */
.m-0{margin:0!important;} .mt-0{margin-top:0!important;} .mb-0{margin-bottom:0!important;}
.mt-1{margin-top:.25rem!important;} .mb-1{margin-bottom:.25rem!important;} .ms-1{margin-left:.25rem!important;} .me-1{margin-right:.25rem!important;}
.mt-2{margin-top:.5rem!important;} .mb-2{margin-bottom:.5rem!important;} .ms-2{margin-left:.5rem!important;} .me-2{margin-right:.5rem!important;}
.mt-3{margin-top:1rem!important;} .mb-3{margin-bottom:1rem!important;}
.mt-4{margin-top:1.5rem!important;} .mb-4{margin-bottom:1.5rem!important;}
.mt-5{margin-top:3rem!important;}
.ms-auto{margin-left:auto!important;} .me-auto{margin-right:auto!important;}
.p-0{padding:0!important;} .p-2{padding:.5rem!important;} .p-3{padding:1rem!important;} .p-4{padding:1.5rem!important;}
.px-3{padding-left:1rem!important;padding-right:1rem!important;} .py-1{padding-top:.25rem!important;padding-bottom:.25rem!important;} .py-2{padding-top:.5rem!important;padding-bottom:.5rem!important;} .py-3{padding-top:1rem!important;padding-bottom:1rem!important;} .py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important;} .py-5{padding-top:3rem!important;padding-bottom:3rem!important;}
.gap-1{gap:.25rem!important;} .gap-2{gap:.5rem!important;} .gap-3{gap:1rem!important;} .gap-4{gap:1.5rem!important;}
@media (min-width: 992px){ .gap-lg-2{gap:.5rem!important;} }

/* ---- text / sizing ---- */
.text-center{text-align:center!important;} .text-start{text-align:left!important;} .text-end{text-align:right!important;}
.text-nowrap{white-space:nowrap!important;}
.text-muted{color:var(--color-text-tertiary)!important;}
.text-primary{color:var(--color-accent)!important;}
.text-warning{color:var(--color-warning)!important;}
.fw-normal{font-weight:400!important;} .fw-semibold{font-weight:600!important;} .fw-bold{font-weight:700!important;}
.w-100{width:100%!important;} .h-100{height:100%!important;}
.small{font-size:var(--text-ui-sm)!important;}
.rounded-2xl{border-radius:var(--radius-2xl)!important;} .rounded-3{border-radius:var(--radius-md)!important;} .rounded-4{border-radius:var(--radius-lg)!important;} .rounded-pill{border-radius:var(--radius-full)!important;}
.hidden{display:none!important;}

/* ---- buttons: NEUTRAL Bootstrap-base primitive only ----
   This is a compat primitive, NOT a design statement. style.css owns the real
   button look (.btn-gold / .btn-ghost / .btn-outline-secondary) — those are NOT
   redefined here, so the bespoke styling wins (no clobbering). We only supply
   the base reset Bootstrap used to provide, plus neutral primary/secondary for
   the handful of generic buttons. */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.25rem; }
.btn-lg { padding: 0.5rem 1rem; font-size: 1.125rem; border-radius: 0.5rem; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-text); border-color: var(--color-accent); }
.btn-secondary { background: var(--color-surface-raised); color: var(--color-text-primary); border-color: var(--color-border); }
.btn-secondary:hover { background: var(--color-surface); }
.btn-group { display: inline-flex; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
.btn-group > .btn:last-child { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
.btn-close {
  width: 28px; height: 28px; border: none; background: transparent; cursor: pointer; border-radius: var(--radius-sm);
  color: var(--color-text-tertiary); font-size: 18px; line-height: 1;
}
.btn-close::before { content: "\00d7"; }
.btn-close:hover { background: var(--color-surface); color: var(--color-text-primary); }

/* ---- nav pills / tabs (sb-ui.js driven) ---- */
.nav { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0; }
.nav-pills .nav-link {
  display: inline-flex; align-items: center; gap: var(--space-1); cursor: pointer;
  font-family: var(--font-ui); font-size: var(--text-ui-sm); font-weight: 500;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); border: var(--border-hairline);
  background: var(--color-surface); color: var(--color-text-secondary);
}
.nav-pills .nav-link.active { background: var(--color-accent); color: var(--color-accent-text); border-color: var(--color-accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Bootstrap variable aliases — a handful of bespoke rules in style.css still
   reference these; map them to design tokens so they resolve after Bootstrap
   CSS removal. */
:root {
  --bs-font-sans-serif: var(--font-ui);
  --bs-body-bg: var(--color-bg);
}

/* ---- card component (faithful Bootstrap base; style.css .inv-card / .list-mode
   modifiers layer on top, exactly as they did with the Bootstrap CDN) ---- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--color-surface);
  background-clip: border-box;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}
.card-body { flex: 1 1 auto; padding: 1rem; }
.card-title { margin-bottom: 0.5rem; }
.card-text:last-child { margin-bottom: 0; }
.card-img-top { width: 100%; }
.card-header { padding: 0.5rem 1rem; border-bottom: 1px solid var(--color-border); }
.card-footer { padding: 0.5rem 1rem; border-top: 1px solid var(--color-border); }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }

/* ---- spinner ---- */
.spinner-border {
  display: inline-block; width: 2rem; height: 2rem; vertical-align: -0.125em;
  border: 0.25em solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spinner-border 0.75s linear infinite;
}
.spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.2em; }
@keyframes spinner-border { to { transform: rotate(360deg); } }

/* ---- remaining form controls ---- */
.form-select {
  display: block; width: 100%; height: 44px; padding: 0 2.25rem 0 var(--space-4);
  font-family: var(--font-ui); font-size: var(--text-ui-lg); line-height: 1.5;
  color: var(--color-text-primary); background-color: var(--color-surface-raised);
  border: var(--border-standard); border-radius: var(--radius-md); appearance: none;
}
.form-check { display: block; min-height: 1.5rem; padding-left: 1.5em; margin-bottom: 0.125rem; }
.form-check-input { width: 1em; height: 1em; margin-top: 0.25em; margin-left: -1.5em; vertical-align: top; }
.form-switch { padding-left: 2.5em; }
.form-switch .form-check-input { width: 2em; margin-left: -2.5em; border-radius: 2em; }
.form-check-label { cursor: pointer; }
.text-bg-light { background-color: var(--color-surface-raised); color: var(--color-text-primary); }

/* ---- responsive display utilities (Bootstrap-faithful) — needed by JS markup
   such as the list-view description `d-none d-lg-block` ---- */
@media (min-width: 576px) {
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-none { display: none !important; }
  .d-sm-inline-block { display: inline-block !important; }
}
@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
  .d-md-none { display: none !important; }
  .d-md-inline-block { display: inline-block !important; }
}
@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
}
@media (min-width: 1200px) {
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
}
.text-bg-warning { background-color: var(--color-warning, #ffc107); color: #1a1407; }

/* ---- container-xl (product detail wrapper) + responsive padding ----
   Faithful Bootstrap: fluid, maxed at xl breakpoints + centered. Without this
   the product-detail page (and its Available Inventory lot cards) spanned the
   full viewport with no side gutters. */
.container-xl {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}
@media (min-width: 1200px) { .container-xl { max-width: 1140px; } }
@media (min-width: 1400px) { .container-xl { max-width: 1320px; } }
@media (min-width: 992px)  { .px-lg-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; } }

/* ---- row-cols (Bootstrap "set N columns per row") — used by the product-detail
   Available Inventory grid (.row-cols-1 .row-cols-sm-2 .row-cols-lg-3). Without
   these the lot cards fell to width:100% = one full-width lot per row. ---- */
.row-cols-1 > * { flex: 0 0 auto; width: 100%; }
.row-cols-2 > * { flex: 0 0 auto; width: 50%; }
.row-cols-3 > * { flex: 0 0 auto; width: 33.33333333%; }
@media (min-width: 576px) { .row-cols-sm-2 > * { flex: 0 0 auto; width: 50%; } }
@media (min-width: 768px) { .row-cols-md-3 > * { flex: 0 0 auto; width: 33.33333333%; } }
@media (min-width: 992px) { .row-cols-lg-3 > * { flex: 0 0 auto; width: 33.33333333%; } }
