/* =====================================================
   GondolaShelving.com — Catalog Styles
   Fonts: DM Serif Display (headings), DM Sans (UI)
   ===================================================== */

/* --- Tokens --- */
:root {
  --navy:       #1F3A5F;
  --steel:      #2F6DAE;
  --graphite:   #4B5563;
  --midgray:    #6B7280;
  --lightgray:  #D1D5DB;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --success:    #2E7D32;
  --warning:    #C28A16;
  --error:      #C0392B;
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.12);
  --transition: 150ms ease;
}

/* --- Reset --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: #1a1a2e; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* --- Announce Bar --- */
.announce-bar { background: #1a3a6b; color: rgba(255,255,255,0.9); font-size: 12.5px; text-align: center; padding: 9px 24px; letter-spacing: 0.01em; }
.announce-bar strong { color: #fff; font-weight: 600; }
.announce-bar a { color: #93c5fd; text-decoration: underline; }

/* --- Site Header --- */
.site-header { background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); padding: 0 24px; position: sticky; top: 0; z-index: 200; border-bottom: 1px solid var(--lightgray); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.site-header__inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 64px; }
.site-logo { flex-shrink: 0; }
.site-logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 20px; flex: 1; }
.site-nav a { color: var(--graphite); font-size: 14px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition); }
.site-nav a:hover, .site-nav a.active { color: var(--navy); border-bottom-color: var(--steel); }
.nav-cta { background: var(--steel); color: #fff; padding: 8px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background var(--transition); }
.nav-cta:hover { background: #3a7fc2; }

/* --- Catalog main --- */
.catalog-main { min-height: calc(100vh - 60px); }

/* --- Breadcrumb --- */
.breadcrumb { padding: 14px 0 8px; font-size: 13px; color: var(--midgray); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li+li::before { content: "/"; margin-right: 6px; color: var(--lightgray); }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { text-decoration: underline; }

/* =====================================================
   MANUFACTURER HUB
   ===================================================== */
.mfg-hero { background: linear-gradient(135deg, #1a1f3a 0%, #1F3A5F 60%, #2F6DAE 100%); padding: 60px 48px; color: #fff; }
.mfg-hero__inner { max-width: 900px; }
.mfg-hero__badge { display: inline-block; background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.mfg-hero__name { font-family: 'DM Serif Display', serif; font-size: 52px; font-weight: 400; margin-bottom: 10px; line-height: 1.1; }
.mfg-hero__tagline { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.mfg-hero__stats { font-size: 14px; color: rgba(255,255,255,.6); display: flex; gap: 24px; flex-wrap: wrap; }
.mfg-hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mfg-hero__pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: rgba(255,255,255,.85); }
.mfg-intro { max-width: 1400px; margin: 0 auto; padding: 32px 48px 0; font-size: 15px; color: var(--graphite); line-height: 1.7; }
.hub-body { max-width: 1400px; margin: 0 auto; padding: 32px 48px 48px; }
.section-heading { font-family: 'DM Serif Display', serif; font-size: 24px; font-weight: 400; color: var(--navy); margin-bottom: 20px; }
/* ── Category Cards (image-backed) ───────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }

.cat-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4 / 3;
    background: #1F3A5F;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.20); }

.cat-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #2F6DAE;
    opacity: 0.55;
    transition: opacity 200ms ease;
}
.cat-card:hover .cat-card-img { opacity: 0.42; }
.cat-card-no-image .cat-card-img { opacity: 1; background-image: linear-gradient(135deg, #1F3A5F 0%, #2F6DAE 100%); }

.cat-card-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(10,22,45,0.88) 100%);
}
.cat-card-name { font-family: 'DM Serif Display', serif; font-size: 18px; color: #FFFFFF; margin: 0 0 4px; line-height: 1.2; }
.cat-card-count { font-family: 'DM Sans', sans-serif; font-size: 12px; color: rgba(255,255,255,0.72); }

@media (max-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================
   HORIZONTAL FILTER BAR
   ===================================================== */
.filter-bar-wrap { background: var(--white); border-bottom: 1px solid #E5E9F0; position: sticky; top: 60px; z-index: 150; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.filter-bar { max-width: 1400px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; gap: 8px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }

.fbar-drop { position: relative; flex-shrink: 0; }
.fbar-drop__btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: #F1F5F9; border: 1px solid #E5E9F0; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--graphite); white-space: nowrap; transition: background var(--transition), border-color var(--transition); cursor: pointer; }
.fbar-drop__btn:hover, .fbar-drop__btn.is-active { background: #EEF2FF; border-color: var(--steel); color: var(--navy); }
.fbar-drop__badge { background: var(--steel); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 11px; font-weight: 700; min-width: 18px; text-align: center; display: none; }
.fbar-drop__arrow { font-size: 10px; color: var(--midgray); transition: transform var(--transition); }
.fbar-drop__btn.is-open .fbar-drop__arrow { transform: rotate(180deg); }

.fbar-panel { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--white); border: 1px solid #E5E9F0; border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 200; padding: 12px; max-height: 280px; overflow-y: auto; }
.fbar-panel.is-open { display: block; }

.fbar-check { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 13px; cursor: pointer; border-radius: var(--radius-sm); transition: background var(--transition); }
.fbar-check:hover { background: #F8FAFC; }
.fbar-check input[type="checkbox"] { accent-color: var(--steel); width: 14px; height: 14px; flex-shrink: 0; }
.fbar-check__count { font-size: 11px; color: #9CA3AF; margin-left: auto; }

.fbar-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.fbar-price-input { padding: 6px 8px; border: 1px solid var(--lightgray); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; width: 100%; color: var(--navy); }
.fbar-price-input:focus { outline: none; border-color: var(--steel); }
.fbar-price-apply { width: 100%; padding: 7px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--transition); }
.fbar-price-apply:hover { background: var(--steel); }

.fbar-search { flex: 1; min-width: 160px; max-width: 280px; }
.fbar-search__input { width: 100%; padding: 6px 14px; border: 1px solid #E5E9F0; border-radius: 20px; font-size: 13px; font-family: inherit; color: var(--navy); background: #F8FAFC; transition: border-color var(--transition), background var(--transition); }
.fbar-search__input:focus { outline: none; border-color: var(--steel); background: #fff; }

.fbar-clear { display: none; align-items: center; gap: 4px; padding: 6px 12px; background: none; border: 1px solid var(--lightgray); border-radius: 20px; font-size: 13px; color: var(--midgray); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: border-color var(--transition), color var(--transition); }
.fbar-clear.is-visible { display: flex; }
.fbar-clear:hover { border-color: var(--error); color: var(--error); }

.fbar-mobile-toggle { display: none; align-items: center; gap: 8px; padding: 8px 16px; background: var(--navy); color: #fff; border: none; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; }
.fbar-mobile-count { background: var(--steel); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 11px; font-weight: 700; display: none; }

.fbar-sheet-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 500; }
.fbar-sheet-overlay.is-open { display: block; }
.fbar-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-radius: 16px 16px 0 0; z-index: 501; transform: translateY(100%); transition: transform .3s ease; max-height: 85vh; overflow-y: auto; padding: 20px 20px 32px; }
.fbar-sheet.is-open { transform: translateY(0); }
.fbar-sheet__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 16px; font-weight: 700; color: var(--navy); }
.fbar-sheet__close { background: none; border: none; font-size: 20px; color: var(--midgray); cursor: pointer; line-height: 1; }
.fbar-sheet-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #F0F2F5; }
.fbar-sheet-section:last-of-type { border-bottom: none; }
.fbar-sheet-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--midgray); margin-bottom: 10px; }
.fbar-sheet-show-btn { width: 100%; padding: 14px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 16px; font-family: inherit; transition: background var(--transition); }
.fbar-sheet-show-btn:hover { background: var(--steel); }

/* =====================================================
   PAGE HERO BAND — navy background, white text
   Used on category hub pages and configurator pages.
   ===================================================== */
.page-hero-band {
    background: #1a2d4e;
    color: #fff;
    padding: 28px 48px 26px;
    margin-bottom: 0;
}
.page-hero-band .breadcrumb { padding: 0 0 14px; }
.page-hero-band .breadcrumb a { color: rgba(255,255,255,.65); }
.page-hero-band .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero-band .breadcrumb li { color: rgba(255,255,255,.45); }
.page-hero-band .breadcrumb li:last-child { color: rgba(255,255,255,.85); }
.page-hero-band .breadcrumb li+li::before { color: rgba(255,255,255,.3); }
.page-hero-band h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    font-weight: 400;
    color: #fff;
    line-height: 1.15;
}
.page-hero-band .page-hero-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    margin-top: 5px;
}
.page-hero-band .cat-intro-text {
    color: rgba(255,255,255,.8);
    margin-top: 12px;
    max-width: 780px;
    font-size: 15px;
    line-height: 1.65;
}
@media (max-width: 768px) {
    .page-hero-band { padding: 20px 20px 18px; }
    .page-hero-band h1 { font-size: 24px; }
}

/* =====================================================
   CATEGORY PAGE
   ===================================================== */
.cat-page-wrap { max-width: 1400px; margin: 0 auto; padding: 20px 48px 48px; }

.cat-page-heading { margin-bottom: 24px; }
.cat-page-heading h1 { font-family: 'DM Serif Display', serif; font-size: 36px; font-weight: 400; color: var(--navy); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cat-count-pill { background: #F1F5F9; color: var(--midgray); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.cat-intro-text { margin-top: 10px; font-size: 15px; color: var(--graphite); line-height: 1.7; max-width: 700px; }

/* =====================================================
   PRODUCT GRID
   ===================================================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 32px 0 8px; flex-wrap: wrap; }
.pagination__btn { min-width: 36px; height: 36px; padding: 0 10px; background: var(--white); border: 1px solid #E5E9F0; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--graphite); cursor: pointer; font-family: inherit; transition: background var(--transition), border-color var(--transition), color var(--transition); display: flex; align-items: center; justify-content: center; }
.pagination__btn:hover:not(:disabled) { border-color: var(--steel); color: var(--steel); }
.pagination__btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination__btn:disabled { opacity: .4; cursor: default; }

/* =====================================================
   PRODUCT CARD
   ===================================================== */
.pcard { background: var(--white); border: 1px solid #E5E7EB; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); }
.pcard:hover { border-color: var(--steel); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pcard__link { display: flex; flex-direction: column; flex: 1; color: inherit; }

.pcard__img-wrap { width: 100%; height: 160px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; }
.pcard__img { width: 100%; height: 100%; object-fit: contain; }
.pcard__placeholder { width: 100%; height: 100%; background: #F1F5F9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pcard__placeholder-prefix { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--lightgray); line-height: 1; }
.pcard__placeholder-sku { font-family: monospace; font-size: 10px; color: #9CA3AF; text-align: center; padding: 0 8px; word-break: break-all; }

.pcard__body { padding: 10px 12px 8px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.pcard__cat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.pcard__sku { font-family: monospace; font-size: 11px; color: var(--midgray); background: #F0F2F7; padding: 2px 6px; border-radius: 4px; display: inline-block; align-self: flex-start; }
.pcard__name { font-family: 'DM Serif Display', serif; font-size: 14px; color: var(--navy); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.pcard__pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pcard__pill { background: #EFF6FF; color: var(--steel); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.pcard__price { font-size: 17px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.pcard__price--call { font-size: 12px; color: var(--midgray); font-weight: 500; }

.pcard__footer { padding: 0 12px 12px; }
.pcard__atc { width: 100%; padding: 9px; background: var(--steel); color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--transition); }
.pcard__atc:hover { background: #3a7fc2; }
.pcard__atc.is-added { background: var(--success); }

/* Badges */
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge--featured { background: #FEF3C7; color: #92400E; }
.badge--green    { background: #DCFCE7; color: #166534; }
.badge--amber    { background: #FEF3C7; color: #92400E; }
.badge--red      { background: #FEE2E2; color: #991B1B; }
.badge--gray     { background: #F0F2F7; color: #6B7280; }
.badge--mfg      { background: #EEF2FF; color: var(--navy); }
.badge--cat      { background: #F0FDF4; color: var(--success); }

/* =====================================================
   CART TRAY
   ===================================================== */
.cart-tray { position: fixed; bottom: 0; right: 24px; width: 300px; z-index: 300; font-family: 'DM Sans', sans-serif; }
.cart-tray__header { background: var(--navy); color: #fff; border-radius: 12px 12px 0 0; padding: 12px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; box-shadow: 0 -2px 16px rgba(0,0,0,.2); transition: background var(--transition); }
.cart-tray__header:hover { background: #243f6a; }
.cart-tray__icon { font-size: 18px; line-height: 1; }
.cart-tray__label { font-size: 14px; font-weight: 600; flex: 1; }
.cart-tray__count { background: var(--steel); color: #fff; border-radius: 10px; padding: 2px 7px; font-size: 12px; font-weight: 700; min-width: 20px; text-align: center; display: none; }
.cart-tray__chevron { font-size: 11px; transition: transform .2s; }
.cart-tray.is-expanded .cart-tray__chevron { transform: rotate(180deg); }

.cart-tray__body-wrap { display: none; background: var(--white); border: 1px solid #E5E9F0; border-bottom: none; border-radius: 12px 12px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.12); flex-direction: column; max-height: 400px; }
.cart-tray.is-expanded .cart-tray__body-wrap { display: flex; }
.cart-tray.is-expanded .cart-tray__header { border-radius: 0; border-top: 1px solid rgba(255,255,255,.15); }

.cart-tray__items { flex: 1; overflow-y: auto; padding: 6px 0; }
.cart-row { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid #F0F2F5; }
.cart-row:hover .cart-row__remove { opacity: 1; }
.cart-row__sku { font-family: monospace; font-size: 11px; color: var(--midgray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; flex-shrink: 0; }
.cart-row__qty-ctrl { display: flex; align-items: center; border: 1px solid #E5E9F0; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.cart-row__qty-btn { width: 22px; height: 22px; background: #F8FAFC; border: none; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; line-height: 1; transition: background var(--transition); }
.cart-row__qty-btn:hover { background: #E5E9F0; }
.cart-row__qty-num { width: 28px; text-align: center; font-size: 12px; font-weight: 700; font-family: monospace; color: var(--navy); border-left: 1px solid #E5E9F0; border-right: 1px solid #E5E9F0; }
.cart-row__total { font-size: 12px; font-weight: 700; color: var(--navy); margin-left: auto; white-space: nowrap; }
.cart-row__remove { background: none; border: none; color: var(--error); font-size: 13px; cursor: pointer; opacity: 0; transition: opacity var(--transition); padding: 0 2px; line-height: 1; }

.cart-tray__footer { padding: 10px 14px 12px; border-top: 2px solid #E5E9F0; }
.cart-tray__subtotal { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cart-tray__btn { display: block; width: 100%; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; border: none; font-family: inherit; transition: background var(--transition); margin-bottom: 6px; }
.cart-tray__btn--primary { background: var(--navy); color: #fff; }
.cart-tray__btn--primary:hover { background: var(--steel); }
.cart-tray__btn--secondary { background: var(--white); color: var(--navy); border: 1px solid var(--lightgray); }
.cart-tray__btn--secondary:hover { border-color: var(--navy); }
.cart-tray__empty { padding: 20px 14px; text-align: center; font-size: 13px; color: var(--midgray); }

/* =====================================================
   PRODUCT DETAIL
   ===================================================== */
.detail-page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px 48px; }
.detail-layout { display: grid; grid-template-columns: 45% 55%; gap: 48px; margin: 24px 0 32px; }

.detail-img-main { width: 100%; background: var(--white); border: 1px solid #E5E9F0; border-radius: var(--radius); padding: 16px; object-fit: contain; aspect-ratio: 4/3; }
.detail-img-placeholder-wrap { width: 100%; aspect-ratio: 4/3; background: #F1F5F9; border: 1px solid #E5E9F0; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.detail-img-placeholder-prefix { font-family: 'DM Serif Display', serif; font-size: 64px; color: var(--lightgray); line-height: 1; }
.detail-img-placeholder-sku { font-family: monospace; font-size: 13px; color: #9CA3AF; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detail-thumb { width: 70px; height: 56px; object-fit: contain; border: 2px solid #E5E9F0; border-radius: 6px; cursor: pointer; background: var(--white); padding: 4px; transition: border-color var(--transition); }
.detail-thumb:hover, .detail-thumb.is-active { border-color: var(--steel); }

.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-sku { font-family: monospace; font-size: 18px; font-weight: 700; color: var(--steel); margin-bottom: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.copy-hint { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400; color: #9CA3AF; border: 1px solid #E5E9F0; padding: 2px 6px; border-radius: 4px; }
.detail-name { font-family: 'DM Serif Display', serif; font-size: 28px; font-weight: 400; color: var(--navy); line-height: 1.25; margin-bottom: 12px; }
.avail-badge { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.avail-badge--green { background: #DCFCE7; color: #166534; }
.avail-badge--amber { background: #FEF3C7; color: #92400E; }
.avail-badge--red   { background: #FEE2E2; color: #991B1B; }
.avail-badge--gray  { background: #F0F2F7; color: var(--midgray); }
.detail-price { font-size: 36px; font-weight: 700; color: var(--navy); margin-bottom: 16px; display: flex; align-items: baseline; gap: 6px; }
.detail-uom { font-size: 16px; font-weight: 400; color: var(--midgray); }
.detail-price--call { font-size: 20px; color: var(--midgray); font-weight: 500; }

.detail-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.detail-spec-table tr:nth-child(even) td { background: #F8FAFC; }
.detail-spec-table td { padding: 8px 10px; border-bottom: 1px solid #F0F2F5; vertical-align: top; }
.detail-spec-table td:first-child { font-weight: 600; color: var(--graphite); width: 40%; }
.detail-spec-table td:last-child { color: var(--navy); }

.detail-atc-block { margin-top: 20px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.qty-label { font-size: 14px; font-weight: 600; color: var(--graphite); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--lightgray); border-radius: var(--radius); overflow: hidden; }
.qty-control button { width: 36px; height: 36px; background: #F8FAFC; border: none; font-size: 18px; cursor: pointer; color: var(--navy); font-weight: 700; transition: background var(--transition); }
.qty-control button:hover { background: #E5E9F0; }
.qty-input { width: 56px; height: 36px; border: none; border-left: 1px solid var(--lightgray); border-right: 1px solid var(--lightgray); text-align: center; font-size: 15px; font-weight: 600; font-family: inherit; color: var(--navy); }
.btn-atc { display: block; width: 100%; padding: 14px; background: var(--steel); color: #fff; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background var(--transition); height: 48px; }
.btn-atc:hover { background: #3a7fc2; }
.btn-atc.is-added { background: var(--success); }
.detail-custom-link { text-align: center; margin-top: 10px; font-size: 13px; color: var(--midgray); }
.detail-custom-link a { color: var(--steel); text-decoration: underline; }
.detail-video { margin-top: 16px; }
.detail-video iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius); }

/* Detail tabs */
.detail-tabs { margin: 32px 0 0; }
.detail-tabs__nav { display: flex; border-bottom: 2px solid #E5E9F0; margin-bottom: 20px; }
.detail-tab-btn { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--midgray); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: color var(--transition), border-color var(--transition); font-family: inherit; }
.detail-tab-btn:hover { color: var(--navy); }
.detail-tab-btn.is-active { color: var(--navy); border-bottom-color: var(--steel); }
.detail-tab-panel { display: none; }
.detail-tab-panel.is-active { display: block; }
.detail-tab-desc { font-size: 15px; color: var(--graphite); line-height: 1.7; }
.detail-tab-desc p { margin-bottom: 1em; }

.related-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid #E5E9F0; }

/* =====================================================
   CART REVIEW PAGE
   ===================================================== */
.cart-review-wrap { max-width: 900px; margin: 0 auto; padding: 40px 48px; }
.cart-review-wrap h1 { font-family: 'DM Serif Display', serif; font-size: 32px; color: var(--navy); margin-bottom: 24px; }
#cart-review-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
#cart-review-table th { text-align: left; padding: 10px 12px; background: #F1F5F9; font-weight: 600; color: var(--graphite); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
#cart-review-table td { padding: 10px 12px; border-bottom: 1px solid #F0F2F5; color: var(--navy); }
#cart-review-table td:last-child { text-align: right; }
.cart-review-subtotal { text-align: right; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.cart-review-form { background: var(--white); border: 1px solid #E5E9F0; border-radius: var(--radius-lg); padding: 24px; max-width: 480px; }
.cart-review-form h2 { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--navy); margin-bottom: 16px; }
.cart-review-input { width: 100%; padding: 10px 12px; border: 1px solid var(--lightgray); border-radius: 6px; font-size: 14px; font-family: inherit; margin-bottom: 10px; color: var(--navy); transition: border-color var(--transition); }
.cart-review-input:focus { outline: none; border-color: var(--steel); }
.cart-review-btn { width: 100%; padding: 14px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background var(--transition); margin-top: 4px; }
.cart-review-btn:hover { background: var(--steel); }

/* =====================================================
   RESPONSIVE — TABLET (max-width: 1100px)
   ===================================================== */
@media (max-width: 1100px) {
  .product-grid, .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { gap: 32px; }
  .cat-page-wrap, .detail-page-wrap { padding: 20px 24px 48px; }
  .hub-body, .mfg-intro { padding-left: 24px; padding-right: 24px; }
  .filter-bar { padding: 0 24px; }
  .cart-review-wrap { padding: 32px 24px; }
}

/* =====================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mfg-hero { padding: 40px 20px; }
  .mfg-hero__name { font-size: 36px; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .cat-page-wrap, .detail-page-wrap { padding: 16px 16px 40px; }
  .filter-bar { padding: 0 16px; }
  .filter-bar > .fbar-drop,
  .filter-bar > .fbar-search,
  .filter-bar > .fbar-clear { display: none; }
  .fbar-mobile-toggle { display: flex; }
  .cart-tray { right: 0; width: 100%; }
  .cart-review-wrap { padding: 24px 16px; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ===================================================== */
@media (max-width: 480px) {
  .product-grid, .product-grid--4 { grid-template-columns: 1fr; }
  .detail-price { font-size: 28px; }
  .cat-page-heading h1 { font-size: 28px; }
}

/* =====================================================
   FEATURED PRODUCTS SECTION
   ===================================================== */
.featured-section { margin-bottom: 32px; }
.featured-section__header {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--steel);
    border-left: 3px solid var(--steel);
    padding-left: 10px;
    margin-bottom: 16px;
}
.featured-all-label {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 16px;
    margin-top: 8px;
}

/* =====================================================
   PRODUCT DETAIL — NEW LAYOUT
   ===================================================== */
.product-detail-wrap {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 40px;
    padding: 32px 0 48px;
    align-items: start;
}

/* Image column */
.product-image-col {}

.product-main-img-wrap {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.pdetail-main-img { max-height: 360px; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
.pdetail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 240px;
}
.pdetail-placeholder-prefix { font-family: 'DM Serif Display', serif; font-size: 64px; color: var(--lightgray); line-height: 1; }
.pdetail-placeholder-sku { font-family: monospace; font-size: 13px; color: #9CA3AF; }

.product-thumb-strip { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-thumb {
    width: 56px; height: 56px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 150ms;
    background: #F8FAFC;
    display: flex; align-items: center; justify-content: center;
}
.product-thumb:hover, .product-thumb.active { border-color: #2F6DAE; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* Spec column */
.product-spec-col {}

.product-cat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2F6DAE;
    margin-bottom: 8px;
}
.product-name {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: #1F3A5F;
    margin: 0 0 6px;
    line-height: 1.2;
}
.product-sku-display {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 16px;
}
.product-price-wrap { margin-bottom: 20px; }
.product-unit-price { font-family: 'DM Sans', sans-serif; font-size: 24px; font-weight: 700; color: #1F3A5F; }
.product-price-label { font-family: 'DM Sans', sans-serif; font-size: 13px; color: #6B7280; margin-left: 6px; }
.product-order-total { font-family: 'DM Sans', sans-serif; font-size: 14px; color: #4B5563; margin-top: 4px; }

/* Field label dividers */
.finish-field-label,
.qty-field-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.finish-field-label::after,
.qty-field-label::after { content: ''; flex: 1; height: 1px; background: #E5E7EB; }

/* Finish selector */
.finish-selector { position: relative; margin-bottom: 4px; }
.finish-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    text-align: left;
    transition: border-color 150ms;
}
.finish-trigger:hover,
.finish-trigger[aria-expanded="true"] { border-color: #2F6DAE; }
.finish-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); flex-shrink: 0; display: inline-block; }
.finish-trigger .finish-label { flex: 1; color: #1F3A5F; font-weight: 500; }
.finish-trigger .finish-price { color: #4B5563; font-size: 13px; }
.finish-chevron { color: #6B7280; flex-shrink: 0; transition: transform 150ms; }
.finish-trigger[aria-expanded="true"] .finish-chevron { transform: rotate(180deg); }
.finish-panel {
    position: absolute;
    z-index: 200;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 280px;
    overflow-y: auto;
}
.finish-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 100ms;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}
.finish-option:hover { background: #F8FAFC; }
.finish-option.selected { background: #EFF6FF; }
.finish-option .finish-code { font-family: 'Courier New', monospace; font-size: 12px; color: #6B7280; width: 38px; flex-shrink: 0; }
.finish-option .finish-name { flex: 1; color: #1F3A5F; }
.finish-option .finish-price { color: #4B5563; font-size: 13px; }

/* Quantity stepper */
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #D1D5DB; border-radius: 8px; overflow: hidden; height: 46px; }
.qty-btn {
    width: 46px; height: 46px;
    background: #F8FAFC;
    border: none;
    font-size: 22px; color: #1F3A5F;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 100ms; flex-shrink: 0; line-height: 1;
}
.qty-btn:hover { background: #EFF6FF; }
.qty-btn:active { background: #DBEAFE; }
.qty-input {
    width: 58px; height: 46px;
    border: none; border-left: 1px solid #D1D5DB; border-right: 1px solid #D1D5DB;
    text-align: center;
    font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 600; color: #1F3A5F;
    -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-total { font-family: 'DM Sans', sans-serif; font-size: 15px; color: #4B5563; font-weight: 500; }

/* Add to Cart — detail page */
.btn-add-to-cart-detail {
    width: 100%; height: 52px;
    background: #2F6DAE; color: white;
    border: none; border-radius: 8px;
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: background 150ms; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    letter-spacing: 0.01em;
}
.btn-add-to-cart-detail:hover { background: #1F3A5F; }
.btn-add-to-cart-detail.added { background: #2E7D32; pointer-events: none; }

/* Spec summary */
.spec-summary { border-top: 1px solid #E5E7EB; padding-top: 16px; }
.spec-row { display: flex; padding: 7px 0; border-bottom: 1px solid #F1F5F9; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.spec-key { width: 110px; color: #6B7280; flex-shrink: 0; }
.spec-val { color: #1F3A5F; font-weight: 500; }

/* Variant table */
.variant-table-section { margin-top: 52px; padding-top: 32px; border-top: 2px solid #E5E7EB; }
.variant-section-heading { font-family: 'DM Serif Display', serif; font-size: 22px; color: #1F3A5F; margin: 0 0 24px; }
.variant-group-header {
    font-family: 'DM Serif Display', serif; font-size: 16px; color: #1F3A5F;
    padding-bottom: 8px; border-bottom: 2px solid #1F3A5F;
    margin-bottom: 0; margin-top: 28px;
}
.variant-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.variant-table th {
    text-align: left; padding: 10px 12px;
    background: #F8FAFC; color: #6B7280;
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    border-bottom: 1px solid #E5E7EB;
}
.variant-table td { padding: 11px 12px; border-bottom: 1px solid #F1F5F9; color: #1F3A5F; vertical-align: middle; }
.variant-table tbody tr:hover td { background: #F8FAFC; }
.variant-table .sku-cell { font-family: 'Courier New', monospace; font-size: 12px; color: #6B7280; }
.finish-swatch-sm {
    display: inline-block; width: 12px; height: 12px;
    border-radius: 50%; border: 1px solid rgba(0,0,0,0.12);
    margin-right: 6px; vertical-align: middle;
}
.variant-table .price-cell { font-weight: 600; white-space: nowrap; }
.variant-table .action-cell { text-align: right; white-space: nowrap; }

/* Compact stepper for variant table */
.qty-stepper-sm { display: inline-flex; align-items: center; border: 1px solid #D1D5DB; border-radius: 6px; height: 34px; }
.qty-stepper-sm .qty-btn { width: 30px; height: 34px; font-size: 16px; }
.qty-stepper-sm .qty-input { width: 40px; height: 34px; font-size: 13px; }

.btn-add-row {
    height: 34px; padding: 0 14px;
    background: #2F6DAE; color: white;
    border: none; border-radius: 6px;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
    cursor: pointer; margin-left: 8px;
    transition: background 100ms; white-space: nowrap;
}
.btn-add-row:hover { background: #1F3A5F; }

/* Product detail responsive */
@media (max-width: 900px) {
    .product-detail-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    .variant-table th:nth-child(1),
    .variant-table td:nth-child(1) { display: none; }
    .product-name { font-size: 22px; }
    .product-unit-price { font-size: 20px; }
}

/* =====================================================
   CONFIG CARD — stacked card: header / image / body / footer
   ===================================================== */

.config-card {
    border: 1px solid #e2e6ea;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 100%;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.config-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    text-decoration: none;
}
.config-card__header {
    background: #1a2d4e;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.config-card__image {
    padding: 16px;
    text-align: center;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}
.config-card__image img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}
.config-card__image--placeholder {
    color: #aab;
    font-size: 32px;
    font-weight: 700;
    font-family: 'DM Serif Display', serif;
}
.config-card__body {
    padding: 12px 14px;
    flex: 1;
    font-size: 13px;
    color: #444;
    text-align: center;
    line-height: 1.5;
}
.config-card__footer {
    padding: 12px 14px;
    text-align: center;
}
.config-card__btn {
    display: inline-block;
    background: #4a7fc1;
    color: #fff;
    padding: 8px 24px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.config-card__btn:hover {
    background: #3a6faf;
    color: #fff;
    text-decoration: none;
}

/* ── Sub-type card grid (TL/DL shelf hub page) ──────────────────────────── */

.subtype-section {
    margin-bottom: 48px;
}
.subtype-section__heading {
    font-family: 'DM Serif Display', serif;
    font-size: 22px; font-weight: 400;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lightgray);
}
.subtype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}
.config-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}
@media (max-width: 900px) {
    .config-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .config-card-grid { grid-template-columns: 1fr; }
}
.subtype-card {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--white);
    border: 1px solid var(--lightgray);
    border-radius: var(--radius-lg);
    padding: 22px 24px 20px;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.subtype-card:hover {
    border-color: var(--steel);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.subtype-card__type {
    font-family: 'DM Serif Display', serif;
    font-size: 32px; color: var(--navy); line-height: 1;
}
.subtype-card__width {
    font-size: 16px; font-weight: 600; color: var(--graphite);
    margin-top: 4px;
}
.subtype-card__count {
    font-size: 12px; color: var(--midgray);
    margin-top: 6px;
}
.subtype-card__arrow {
    font-size: 13px; font-weight: 600; color: var(--steel);
    margin-top: 14px;
}

/* ── Shelf configurator page ────────────────────────────────────────────── */

.shelf-config-header { margin-bottom: 28px; }
.shelf-config-subtitle { font-size: 14px; color: var(--midgray); margin-top: 6px; }

.shelf-config-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.shelf-config-img-col { }

.shelf-config-panel {
    display: flex; flex-direction: column; gap: 20px;
    background: var(--white);
    border: 1px solid var(--lightgray);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.shelf-config-label {
    display: block;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    color: var(--midgray); margin-bottom: 6px; text-transform: uppercase;
}

.shelf-config-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lightgray);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif; font-size: 14px;
    background: var(--white); color: var(--graphite);
    cursor: pointer;
}
.shelf-config-select:focus { outline: 2px solid var(--steel); border-color: transparent; }
.shelf-config-note { display: block; font-size: 11px; color: var(--midgray); margin-top: 4px; font-style: italic; }

.shelf-finish-row { display: flex; align-items: center; gap: 10px; }
.shelf-finish-row .shelf-config-select { flex: 1; }

/* Visual finish swatch picker */
.shelf-finish-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.shelf-finish-swatch-item {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; overflow: hidden; position: relative;
    flex-shrink: 0; transition: border-color 0.12s, box-shadow 0.12s;
}
.shelf-finish-swatch-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf-finish-swatch-item.swatch-color-only { background: #D1D5DB; }
.shelf-finish-swatch-item.selected {
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}
.shelf-finish-swatch-item:hover { border-color: #9CA3AF; }
.shelf-finish-swatch-item.selected:hover { border-color: var(--navy); }
.shelf-finish-label-display { font-size: 12px; color: var(--mid-gray); margin-top: 5px; min-height: 16px; }

.shelf-config-sku-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius);
}
.shelf-sku-val {
    font-size: 15px; font-weight: 600; color: var(--graphite);
    letter-spacing: .03em; word-break: break-all;
}

.shelf-config-price-row { display: flex; align-items: baseline; gap: 2px; }
.shelf-price-val { font-size: 28px; font-weight: 700; color: var(--navy); }
.shelf-price-label { font-size: 14px; color: var(--midgray); }

.shelf-qty-row { display: flex; flex-direction: column; gap: 8px; }
.shelf-total-display { font-size: 14px; color: var(--graphite); font-weight: 600; }

/* Responsive shelf config */
@media (max-width: 960px) {
    .shelf-config-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .subtype-grid { grid-template-columns: repeat(2, 1fr); }
    .shelf-config-panel { padding: 20px; }
}

/* =====================================================
   MOBILE — MINIMUM TOUCH TARGET (44px)
   Per WCAG 2.5.5; applies to primary interactive buttons
   ===================================================== */
.pcard__atc,
.cart-tray__btn,
.sidebar-toggle { min-height: 44px; }

/* On very small screens, stack shelf-config image above the panel */
@media (max-width: 390px) {
    .shelf-config-wrap { grid-template-columns: 1fr; }
    .detail-page-wrap { padding: 12px 12px 32px; }
    .config-card-grid { grid-template-columns: 1fr; }
}

/* ── Product Info Section ────────────────────────────────────────────────── */

.product-info-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}
.product-info-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 22px; font-weight: 400;
    color: var(--navy);
    margin: 0 0 16px;
}
.product-info-body {
    font-size: 15px; color: var(--graphite); line-height: 1.7;
    max-width: 780px;
}
.product-info-body p { margin: 0 0 12px; }

/* ── Related Products Section ────────────────────────────────────────────── */

.related-products-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
    margin-bottom: 48px;
}
.related-products-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 22px; font-weight: 400;
    color: var(--navy);
    margin: 0 0 20px;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.related-card {
    display: block; text-decoration: none;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.related-card:hover {
    border-color: var(--steel);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.related-card-img {
    height: 140px;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.related-card-img img {
    max-height: 120px; max-width: 100%;
    object-fit: contain; padding: 12px;
}
.related-card-body { padding: 12px 14px 14px; }
.related-card-cat {
    font-family: 'DM Serif Display', serif;
    font-size: 15px; color: var(--navy); margin-bottom: 4px;
}
.related-card-price { font-size: 13px; color: var(--midgray); }

@media (max-width: 768px) {
    .related-products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   IS / WS Width Configurator — BOM Table
   ===================================================== */

.isws-bom-body { margin-top: 8px; }

.isws-bom-loading,
.isws-bom-empty {
    font-size: 14px;
    color: var(--midgray);
    padding: 8px 0;
}

.isws-bom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.isws-bom-table thead th {
    text-align: left;
    padding: 7px 10px;
    background: var(--bg);
    color: var(--graphite);
    font-weight: 600;
    border-bottom: 2px solid var(--lightgray);
}
.isws-bom-table tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--lightgray);
    color: var(--graphite);
}
.isws-bom-table tbody tr:last-child td { border-bottom: none; }
.isws-bom-table tfoot td {
    padding: 9px 10px;
    border-top: 2px solid var(--lightgray);
    background: var(--bg);
}
.isws-bom-sku {
    font-family: monospace;
    font-size: 12px;
    color: var(--midgray);
}
.isws-bom-num { text-align: right; }
.isws-bom-total-label {
    text-align: right;
    font-weight: 600;
    color: var(--graphite);
}
.isws-bom-total-val {
    font-weight: 700;
    color: var(--navy);
    text-align: right;
}

@media (max-width: 640px) {
    .isws-bom-table { font-size: 12px; }
    .isws-bom-table thead th,
    .isws-bom-table tbody td,
    .isws-bom-table tfoot td { padding: 6px 6px; }
}

/* ── Category Hub pages (/island-sections/, /wall-sections/, etc.) ─────── */

.cat-hub-hero {
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--lightgray);
    margin-bottom: 32px;
}
.cat-hub-hero__title {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    color: var(--navy);
    line-height: 1.15;
}
.cat-hub-hero__meta {
    font-size: 15px;
    color: var(--midgray);
    margin-top: 8px;
}

.mfg-hub-section {
    margin-bottom: 48px;
}
.mfg-hub-section__header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lightgray);
}
.mfg-hub-section__name {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    color: var(--navy);
    margin: 0;
}
.mfg-hub-section__browse {
    font-size: 13px;
    color: var(--steel);
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}
.mfg-hub-section__browse:hover { color: var(--navy); text-decoration: underline; }
