/* ============================================================================
   LEN'S BIT SUPPLY — BigCommerce theme additions (theme only)
   Loaded after main.css. Covers store-only UI (cart button, sold-out state)
   and makes Cornerstone's own pages (cart, account, login, blog…) sit inside
   our header and footer on a bone "work order" panel.
   ========================================================================== */

/* header cart button */
.cart-btn { position: relative; flex: none; }
.cart-btn .count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red-600); color: var(--white); font-family: var(--font-mono); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }

/* phones: the extra cart button needs room, so the quote button goes icon-only */
@media (max-width: 480px) {
  .header__actions { gap: 8px; }
  .header__actions .quote-btn { font-size: 0; gap: 0; padding-inline: 12px; }
  .header__actions .quote-btn svg { margin: 0; }
  .cart-btn { width: 44px; height: 44px; }
}

/* sold-out buy button */
.btn--sold { --btn-bg: var(--steel-700); --btn-fg: var(--steel-300); --btn-shadow: var(--steel-950); cursor: not-allowed; }

/* store-written content */
.prose img { max-width: 100%; height: auto; }
.noscript-list { columns: 2 280px; color: var(--steel-200); }
.noscript-list a { text-decoration: underline; }
.pdp__desc img { max-width: 100%; height: auto; }

/* ---------- Cornerstone pages inside our chrome ---------- */
/* Cornerstone shrinks the root font to 14px; our header/footer are sized in rem against 16px */
html { font-size: 100% !important; }
.cs-page { background: var(--bg); }
.cs-page .body { background: var(--bone-100); color: var(--steel-900); margin: 0; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); min-height: 50vh; }
.cs-page .body .container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.cs-page .body, .cs-page .body p, .cs-page .body li, .cs-page .body td, .cs-page .body label { font-family: var(--font-text); }
.cs-page .body h1, .cs-page .body h2, .cs-page .body h3, .cs-page .body h4, .cs-page .body .page-heading {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--navy-800); }
.cs-page .body .page-heading { font-size: var(--step-3); margin: 0 0 .5em; text-align: left; }
.cs-page .body a { color: var(--navy-700); }
.cs-page .body .button { border-radius: 2px; font-family: var(--font-display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cs-page .body .button--primary { background: var(--red-600); border-color: var(--red-600); color: var(--white); }
.cs-page .body .button--primary:hover { background: var(--red-500); border-color: var(--red-500); }
.cs-page .body .breadcrumbs { text-align: left; margin-bottom: 18px; }
.cs-page .body ::selection { background: var(--brass-500); }
