/*
 * STARTEX THEME — theme.css
 *
 * Page-level layout only.
 * All tokens, component styles, and the base two-column .page-body grid
 * live in design-system.css. This file adds the layouts that don't exist there.
 *
 * Table of contents:
 *   1.  PDP — three-column page grid
 *   2.  PDP — .pdp-top two-column split (gallery | info)
 *   3.  PDP — .pdp-below-fold two-column split (specs | resources)
 *   4.  PDP — related products section
 *   5.  PLP — content area layout (toolbar + grid)
 *   6.  Responsive breakpoints
 */


/* ============================================================
   0. SITE-WIDE MAX-WIDTH WRAPPER
   ============================================================ */

/*
 * Constrains all page content (breadcrumb, body grid, below-fold) to 1440px.
 * The header and footer remain full-width.
 */
.site-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}


/* ============================================================
   1. PDP — TWO-COLUMN PAGE GRID
   ============================================================ */

/*
 * Visual layout of a single-product page:
 *
 *  ┌──────────────────────────────────────────────────────────┐
 *  │  site-nav (full width, 54px, sticky)                     │
 *  ├──────────────────────────────────────────────────────────┤
 *  │  breadcrumb (full width)                                 │
 *  ├───────────────────────────────────────┬──────────────────┤
 *  │  .pdp-main  (1fr)                     │  .pdp-spec-panel │
 *  │  image gallery + thumbnails           │  420px sticky    │
 *  │                                       │  CTA + spec table│
 *  └───────────────────────────────────────┴──────────────────┘
 *  │  .pdp-below-fold  (full width)                           │
 *  │  dimensional drawing | downloads & resources             │
 *  ├──────────────────────────────────────────────────────────┤
 *  │  .pdp-related  (full width)                              │
 *  └──────────────────────────────────────────────────────────┘
 */

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 460px);
  align-items: start;
  padding-top: 24px;
}

/* Left column — image gallery */
.pdp-main {
  min-width: 0;
  padding: var(--space-8) var(--space-8) var(--space-8) var(--page-gutter);
}

/* Right column — sticky spec panel: CTA buttons + quick-spec table */
.pdp-spec-panel {
  position: sticky;
  top: 96px; /* site-nav 54px + breadcrumb ~42px */
  max-height: calc(100vh - 96px);
  min-width: 0;
  overflow-y: auto;
  padding: 28px 32px;
  border-left: 0.5px solid var(--color-border);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}
.pdp-spec-panel::-webkit-scrollbar       { width: 4px; }
.pdp-spec-panel::-webkit-scrollbar-track { background: transparent; }
.pdp-spec-panel::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 2px; }

/* Spec panel — title area spacing */
.pdp-collection-link {
  display: block;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-brand-mid);
  text-decoration: none;
  margin-bottom: 6px;
}
.pdp-collection-link:hover { text-decoration: underline; }

.pdp-spec-panel .product-name           { margin-bottom: 14px; }

.pdp-spec-panel .product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.pdp-spec-panel .product-sku {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

.pdp-spec-panel .product-meta .badge {
  margin-left: 10px;
}

.pdp-spec-panel .collection-name {
  width: 100%;
  margin-top: 6px;
  font-size: var(--text-sm);
}

/* Short description above spec table */
.pdp-short-description {
  font-size: var(--text-base);
  color: var(--color-ink-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Hairline dividers inside spec panel */
.pdp-panel-divider {
  border: none;
  border-top: 0.5px solid var(--color-border);
  margin: 16px 0;
}

/* Finish / color variation pills */
.pdp-variations {
  margin-bottom: 4px;
}

.pdp-variations__label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-ink-muted);
  display: block;
  margin-bottom: var(--space-2);
}

.pdp-variations__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pdp-variation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.pdp-variation-pill:hover {
  border-color: var(--color-brand-mid);
  color: var(--color-brand-mid);
}
.pdp-variation-pill.is-active {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
}


/* ============================================================
   2. PDP — .pdp-top TWO-COLUMN SPLIT (gallery | info)
   ============================================================ */

/*
 * The top section of .pdp-main splits into:
 *   left:  product image gallery (55% — images need space)
 *   right: product name, category label, badge, description
 *
 * The sticky spec panel in the third column handles CTAs and
 * detailed specs, so .pdp-info carries only the editorial content.
 */

.pdp-top {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-10);
}

/* Gallery: main image + thumbnail strip */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.pdp-gallery__main {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  max-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-gallery__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.pdp-gallery__main img,
.pdp-gallery__main figure,
.pdp-gallery__main .wp-post-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

.pdp-gallery__thumbs {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  flex-wrap: wrap;
  overflow: visible !important;
}

.pdp-gallery__thumb {
  width: 72px;
  height: 96px;
  min-width: 72px;
  min-height: 96px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.12s;
  background: #ffffff;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.pdp-gallery__thumb.is-active      { border-color: var(--color-brand); }
.pdp-gallery__thumb:hover:not(.is-active) { border-color: var(--color-border-strong); }

.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  overflow: visible !important;
  overflow-clip-margin: unset !important;
}

/* Info: editorial content (name, badge, category, description) */
.pdp-info {
  min-width: 0;
  padding-top: var(--space-1); /* optical alignment with gallery top */
}

/* Divider between .pdp-top and .pdp-below-fold */
.pdp-section-divider {
  border: none;
  border-top: 0.5px solid var(--color-border-strong);
  margin: 0 0 var(--space-8);
}


/* ============================================================
   3. PDP — .pdp-below-fold TWO-COLUMN SPLIT (specs | resources)
   ============================================================ */

/*
 * Below the main image/info block: full specification tables on the left,
 * downloadable resources (spec sheet, CAD, install guide) on the right.
 * Both columns have roughly equal weight.
 */

.pdp-below-fold {
  display: grid;
  grid-template-columns: 1fr; /* single column by default (resources only) */
  gap: var(--space-10);
  align-items: start;
  padding: var(--space-8) var(--page-gutter);
  border-top: 0.5px solid var(--color-border-strong);
  border-bottom: 0.5px solid var(--color-border-strong);
  max-width: 600px; /* constrain resources section when alone */
}

.pdp-below-fold--has-drawing {
  grid-template-columns: 1fr 1fr;
  max-width: none;
}

.pdp-specs-col {
  min-width: 0;
  padding: 28px 32px;
}

.pdp-dim-drawing {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.pdp-resources-col {
  min-width: 0;
}

/* Section heading used in both below-fold columns */
.pdp-col-heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-ink-muted);
  display: block;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 0.5px solid var(--color-border-strong);
}


/* ============================================================
   4. PDP — RELATED PRODUCTS SECTION
   ============================================================ */

/*
 * Full-width section below .pdp-layout.
 * Uses the existing .product-grid from design-system.css for the cards.
 */

.pdp-related {
  padding: var(--space-10) var(--page-gutter);
  border-top: 0.5px solid var(--color-border-strong);
}

.pdp-related__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.pdp-related__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  line-height: var(--leading-tight);
}

.pdp-related__view-all {
  font-size: var(--text-sm);
  color: var(--color-brand-mid);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.pdp-related__view-all:hover { text-decoration: underline; }


/* ============================================================
   5. PLP — LAYOUT & COMPONENTS
   ============================================================ */

.plp-layout {
  display: grid;
  grid-template-columns: 218px 1fr;
  gap: 0;
  min-height: calc(100vh - 54px);
}

/* Filter toggle — hidden on desktop, visible on mobile */
.plp-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface-warm);
  border: none;
  border-bottom: 0.5px solid var(--color-border);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.plp-filter-toggle__icon {
  transition: transform 0.2s ease;
}
.plp-filter-toggle.is-active .plp-filter-toggle__icon {
  transform: rotate(180deg);
}

.plp-content {
  padding: 0 32px 48px;
  min-width: 0;
}

/* Sticky top bar — result count + sort */
.plp-topbar {
  position: sticky;
  top: 54px;
  background: var(--color-canvas);
  z-index: 10;
  border-bottom: 0.5px solid var(--color-border);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.plp-result-count {
  font-size: var(--text-base);
  color: var(--color-ink-muted);
}

.plp-sort-select {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--color-ink);
  border: 0.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  background: var(--color-canvas);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color var(--transition-fast);
}
.plp-sort-select:hover  { border-color: var(--color-brand-mid); }
.plp-sort-select:focus  { border-color: var(--color-brand-mid); }

/* Load more button */
.plp-load-more-btn {
  display: block;
  margin: 32px auto 0;
  padding: 12px 40px;
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.plp-load-more-btn:hover {
  border-color: var(--color-brand-mid);
  color: var(--color-brand-mid);
}

/* Empty state */
.plp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-ink-muted);
  font-size: var(--text-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}


/* ============================================================
   6. PDP QTY STEPPER + QUOTE SYSTEM
   ============================================================ */

/* PDP Add to Quote stepper */
.atq-group { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.atq-qty-row { display:flex; align-items:center; gap:12px; }
.qty-control { display:flex; align-items:center; border:0.5px solid var(--color-border-strong); border-radius:var(--radius-sm); overflow:hidden; }
.qty-btn { width:32px; height:36px; background:var(--color-surface); border:none; cursor:pointer; font-size:18px; color:var(--color-ink); display:flex; align-items:center; justify-content:center; transition:background 0.12s; }
.qty-btn:hover { background:var(--color-surface-mid); }
.qty-input { width:56px; height:36px; border:none; border-left:0.5px solid var(--color-border-strong); border-right:0.5px solid var(--color-border-strong); text-align:center; font-family:var(--font-ui); font-size:14px; font-weight:500; color:var(--color-ink); background:white; -moz-appearance:textfield; }
.qty-input::-webkit-outer-spin-button,.qty-input::-webkit-inner-spin-button { -webkit-appearance:none; }
.qty-cases { font-size:12px; color:var(--color-ink-muted); }
.atq-confirmation { font-size:12px; color:var(--color-qs); font-weight:500; min-height:18px; transition:opacity 0.3s; opacity:0; }

/* Quote Request Page — two-column layout */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: flex-start;
  padding: 40px var(--page-gutter) 80px;
}
.quote-form-col {
  position: sticky;
  top: 80px;
}

/* Items table */
.quote-items-table { width:100%; border-collapse:collapse; }
.quote-items-table th {
  font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--color-ink-muted); padding:0 12px 12px 0;
  border-bottom:0.5px solid var(--color-border-strong); text-align:left;
}
.quote-items-table td {
  padding:16px 12px 16px 0; border-bottom:0.5px solid var(--color-border);
  vertical-align:middle; font-size:var(--text-base);
}
.quote-items-table tr:last-child td { border-bottom:none; }

/* Product thumbnail in quote table */
.quote-thumb {
  width: 72px;
  height: 96px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 3px;
}
.quote-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Form sections */
.quote-form-section { margin-bottom:24px; }
.quote-form-section-label {
  font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--color-ink-muted); margin-bottom:14px; display:block;
  padding-bottom:8px; border-bottom:0.5px solid var(--color-border);
}
.quote-field { margin-bottom:14px; }
.quote-field label {
  display:block; font-size:12px; font-weight:500;
  color:var(--color-ink-mid); margin-bottom:5px;
}
.quote-field input,
.quote-field select,
.quote-field textarea {
  width:100%; font-family:var(--font-ui); font-size:13px; color:var(--color-ink);
  background:white; border:0.5px solid var(--color-border-strong);
  border-radius:var(--radius-sm); padding:9px 12px; outline:none;
  transition:border-color 0.12s;
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus { border-color:var(--color-brand-mid); }
.quote-field textarea { resize:vertical; min-height:60px; }
.quote-field select { -webkit-appearance:none; appearance:none; cursor:pointer; }

/* Validation errors */
.rq-form__errors {
  background:#fff0f0; border:1px solid #cc1818; border-radius:var(--radius-sm);
  padding:var(--space-3) var(--space-4); margin-bottom:20px;
}


/* ============================================================
   6b. QUOTE SUBMITTED CONFIRMATION PAGE
   ============================================================ */

.qs-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--page-gutter) 120px;
  min-height: 50vh;
}

.qs-page__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  margin: var(--space-6) 0 var(--space-3);
}

.qs-page__text {
  font-size: var(--text-md);
  color: var(--color-ink-mid);
  line-height: var(--leading-normal);
  max-width: 440px;
  margin-bottom: var(--space-2);
}

.qs-page__subtext {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-8);
}

.qs-page__actions {
  display: flex;
  gap: var(--space-4);
}


/* ============================================================
   7. SEARCH RESULTS PAGE
   ============================================================ */

.search-results {
  padding: 0 var(--page-gutter) 80px;
}

.search-results__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 0 20px;
  border-bottom: 0.5px solid var(--color-border);
  margin-bottom: 24px;
}

.search-results__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: 0;
}

.search-results__title em {
  font-style: italic;
  color: var(--color-brand-mid);
}

.search-results__count {
  font-size: var(--text-base);
  color: var(--color-ink-muted);
  flex-shrink: 0;
}

.search-no-results {
  padding: 48px 0;
}

.search-no-results p {
  font-size: var(--text-md);
  color: var(--color-ink-muted);
  margin-top: 8px;
}

.search-suggestions {
  margin-top: 48px;
}

.search-suggestions__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 20px;
}


/* ============================================================
   8. BRANDS LANDING PAGE + SCHEME ARCHIVE
   ============================================================ */

/* Hero */
.brands-hero { background: var(--color-ink); width: 100%; }
.brands-hero__inner { max-width: 1440px; margin: 0 auto; padding: 56px var(--page-gutter) 48px; }
.brands-hero__eyebrow { display: block; font-size: 10px; font-weight: var(--weight-medium); letter-spacing: 0.12em; text-transform: uppercase; color: #7EC8E3; margin-bottom: 12px; }
.brands-hero__title { font-family: var(--font-display); font-size: 42px; font-weight: 400; color: #ffffff; line-height: 1.15; margin-bottom: 10px; }
.brands-hero__subtitle { font-size: var(--text-md); color: rgba(255,255,255,0.65); max-width: 480px; }

/* Filter tabs */
.brands-filter-bar-wrap { position: sticky; top: 54px; background: var(--color-canvas); z-index: 9; border-bottom: 0.5px solid var(--color-border); }
.brands-filter-bar { display: flex; gap: 8px; padding: 14px var(--page-gutter); max-width: 1440px; margin: 0 auto; flex-wrap: wrap; }
.brands-filter-tab { padding: 6px 16px; border-radius: 20px; font-family: var(--font-ui); font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid var(--color-border-strong); color: var(--color-ink); background: var(--color-canvas); transition: all 0.12s; white-space: nowrap; }
.brands-filter-tab:hover { border-color: var(--color-brand-mid); color: var(--color-brand-mid); }
.brands-filter-tab.active { background: var(--color-brand); color: #ffffff; border-color: var(--color-brand); }

/* Content */
.brands-page-content { max-width: 1440px; margin: 0 auto; padding: 48px var(--page-gutter) 96px; }

/* Group section + header */
.brand-group-section { margin-bottom: 56px; }
.brand-group-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.brand-group-title { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-muted); white-space: nowrap; }
.brand-group-line { flex: 1; height: 0.5px; background: var(--color-border); }

/* Card grid */
.brand-scheme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* Card */
.brand-scheme-card { border-radius: var(--radius-md); overflow: hidden; background: #ffffff; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.brand-scheme-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); text-decoration: none; }

/* Card image */
.brand-scheme-card__image { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: #1A5C96; }
.brand-scheme-card__image > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-scheme-card__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%); pointer-events: none; }

/* Card logo */
.brand-scheme-card__logo { position: absolute; bottom: 12px; left: 12px; height: 18px; width: auto; max-width: 80px; object-fit: contain; display: block; filter: brightness(0) invert(1); z-index: 1; }

/* Card caption */
.brand-scheme-card__caption { padding: 14px 16px 18px; background: #ffffff; }
.brand-scheme-card__brand { font-size: 16px; font-weight: 500; color: var(--color-ink); line-height: 1.3; margin-bottom: 3px; }
.brand-scheme-card__scheme { font-size: 13px; color: var(--color-ink-muted); line-height: 1.3; margin-bottom: 4px; }
.brand-scheme-card__count { font-size: 12px; color: #BBBBBB; margin-top: 4px; }

/* Scheme archive hero */
.scheme-hero { background: linear-gradient(135deg, #1A5C96, #1B4F72); background-size: cover; background-position: center; width: 100%; min-height: 260px; display: flex; align-items: flex-end; }
.scheme-hero__inner { max-width: 1440px; margin: 0 auto; width: 100%; padding: 48px var(--page-gutter) 40px; }
.scheme-hero__logo { max-height: 48px; width: auto; margin-bottom: 12px; display: block; filter: brightness(0) invert(1); }
.scheme-hero__eyebrow { display: block; font-size: 10px; font-weight: var(--weight-medium); letter-spacing: 0.1em; text-transform: uppercase; color: #7EC8E3; margin-bottom: 8px; }
.scheme-hero__title { font-family: var(--font-display); font-size: 42px; font-weight: 400; color: #ffffff; line-height: 1.15; margin-bottom: 8px; }
.scheme-hero__desc { font-size: var(--text-md); color: rgba(255,255,255,0.75); max-width: 560px; line-height: 1.6; margin-bottom: 8px; }
.scheme-hero__count { font-size: var(--text-base); color: rgba(255,255,255,0.45); }


/* Inactive notice */
.scheme-inactive-notice { background: var(--color-so-bg); color: var(--color-so); font-size: var(--text-sm); font-weight: var(--weight-medium); text-align: center; padding: 10px var(--page-gutter); }
.scheme-inactive-notice a { color: var(--color-so); text-decoration: underline; margin-left: 8px; }

/* Collections landing page */
.collections-hero { background: #1A1A1A; width: 100%; }
.collections-hero__inner { max-width: 1440px; margin: 0 auto; padding: 56px var(--page-gutter) 48px; }
.collections-hero__eyebrow { display: block; font-size: 10px; font-weight: var(--weight-medium); letter-spacing: 0.12em; text-transform: uppercase; color: #7EC8E3; margin-bottom: 12px; }
.collections-hero__title { font-family: var(--font-display); font-size: 42px; font-weight: 400; color: #ffffff; line-height: 1.15; margin-bottom: 10px; }
.collections-hero__subtitle { font-size: var(--text-md); color: rgba(255,255,255,0.65); max-width: 480px; }
.collections-page-content { max-width: 1440px; margin: 0 auto; padding: 48px var(--page-gutter) 96px; }

/* Collection section headers */
.collection-group-section { margin-bottom: 48px; }
.collection-group-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.collection-group-title { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-ink-muted); white-space: nowrap; }
.collection-group-line { flex: 1; height: 0.5px; background: var(--color-border); }

/* Collection card grid */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

/* Collection card */
.collection-card { border-radius: var(--radius-md); overflow: hidden; background: #ffffff; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.collection-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); text-decoration: none; }
.collection-card__image { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: linear-gradient(135deg, #1A5C96, #1B4F72); }
.collection-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-card__caption { padding: 12px 14px 16px; background: #ffffff; }
.collection-card__name { font-size: 14px; font-weight: 500; color: var(--color-ink); line-height: 1.3; margin-bottom: 3px; }
.collection-card__count { font-size: 12px; color: #BBBBBB; }

/* Collection archive hero */
.collection-hero { background: linear-gradient(135deg, #1A5C96, #1B4F72); background-size: cover; background-position: center; width: 100%; min-height: 260px; display: flex; align-items: flex-end; }
.collection-hero__inner { max-width: 1440px; margin: 0 auto; width: 100%; padding: 48px var(--page-gutter) 40px; }
.collection-hero__eyebrow { display: block; font-size: 10px; font-weight: var(--weight-medium); letter-spacing: 0.1em; text-transform: uppercase; color: #7EC8E3; margin-bottom: 8px; }
.collection-hero__title { font-family: var(--font-display); font-size: 42px; font-weight: 400; color: #ffffff; line-height: 1.15; margin-bottom: 8px; }
.collection-hero__desc { font-size: var(--text-md); color: rgba(255,255,255,0.65); max-width: 560px; line-height: 1.6; margin-bottom: 8px; }
.collection-hero__count { font-size: var(--text-base); color: rgba(255,255,255,0.45); }

/* Collection archive content */
.collection-content { max-width: 1440px; margin: 0 auto; padding: 32px var(--page-gutter) 80px; }

/* Scheme two-column layout */
.brand-scheme-layout { display: grid; grid-template-columns: 218px 1fr; gap: 0; max-width: 1440px; margin: 0 auto; align-items: flex-start; }
.scheme-grid-col { padding: 0 32px 80px; min-width: 0; }


/* ============================================================
   9. RESPONSIVE BREAKPOINTS
   ============================================================ */

/*
 * Breakpoints:
 *   1024px — PDP switches to single column (image stacked above spec panel);
 *            below-fold also goes single column
 *   768px  — mobile: PLP sidebar stacks; image height capped; thumbs scroll
 */

@media (max-width: 1024px) {
  /* Collections: smaller hero + tighter grid on mobile */
  .collections-hero__title, .collection-hero__title { font-size: 28px; }
  .collection-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .collection-content { padding: 24px 16px 60px; }

  /* Scheme archive: collapse sidebar */
  .brand-scheme-layout { grid-template-columns: 1fr; }
  .scheme-grid-col { padding: 0 20px 60px; }

  /* Quote page: stack columns */
  .quote-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .quote-form-col {
    position: static;
  }

  /* PDP: single column */
  .pdp-layout {
    grid-template-columns: 1fr;
  }
  .pdp-main {
    padding: var(--space-6) var(--space-5);
  }
  .pdp-spec-panel {
    position: static;
    max-height: none;
    border-left: none;
    border-top: 0.5px solid var(--color-border);
    padding: 24px 20px;
  }
  .pdp-below-fold,
  .pdp-below-fold--has-drawing {
    grid-template-columns: 1fr;
    max-width: none;
    gap: var(--space-8);
  }
  .pdp-related {
    padding: var(--space-8) var(--space-5);
  }

  /* PLP: collapse sidebar behind toggle, single-column grid */
  .plp-layout {
    grid-template-columns: 1fr;
  }
  .plp-filter-toggle {
    display: flex;
  }
  .filter-sidebar {
    display: none;
    position: static;
    height: auto;
    width: 100%;
    border-right: none;
    border-bottom: 0.5px solid var(--color-border-strong);
  }
  .filter-sidebar.is-open {
    display: block;
  }
}

/* Base: hide mobile-only elements (overridden inside 768px query below) */
.nav-hamburger      { display: none; }
.mobile-nav         { display: none; }
.mobile-nav-overlay { display: none; }

@media (max-width: 768px) {
  /* Nav: hide links + divider, fit logo + search + quote on one line */
  .site-nav__links,
  .site-nav__divider {
    display: none;
  }
  .site-nav__logo img {
    height: 26px;
  }

  /* Search: collapse to icon circle, expand on focus */
  .site-nav__search-form {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-right: 0;
    margin-left: auto;
    margin-right: 12px;
  }
  .site-nav__search-form::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='7' cy='7' r='5.25' stroke='%23333' stroke-width='1.5'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23333' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
    z-index: 1;
  }
  .site-nav__search {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    color: transparent;
    cursor: pointer;
    margin-right: 0;
  }
  .site-nav__search::placeholder {
    color: transparent;
  }
  /* Expand on focus */
  .site-nav__search:focus {
    position: absolute;
    right: 0;
    width: 220px;
    border-radius: 20px;
    padding: 7px 16px;
    color: var(--color-ink);
    z-index: 2;
  }
  .site-nav__search:focus::placeholder {
    color: var(--color-ink-muted);
  }
  .site-nav__search-form:focus-within {
    flex: 0 0 220px;
    width: 220px;
  }
  .site-nav__search-form:focus-within::before {
    display: none;
  }

  /* PDP gallery: fixed height for Safari mobile compatibility */
  .pdp-gallery__main {
    aspect-ratio: unset;
    height: 320px;
    max-height: 320px;
    width: 100%;
    overflow: hidden;
  }
  .pdp-gallery__main img,
  .pdp-gallery__main figure,
  .pdp-gallery__main .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
  .pdp-gallery__thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pdp-gallery__thumbs::-webkit-scrollbar { display: none; }
  .pdp-main {
    padding: var(--space-5) var(--space-4);
  }
  .pdp-spec-panel {
    padding: 20px var(--space-4);
  }
  .pdp-top {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* Brands: smaller hero, single-col grid */
  .brands-hero__title, .scheme-hero__title { font-size: 28px; }
  .brand-scheme-grid { grid-template-columns: 1fr; }
  .brands-filter-bar { padding: 10px 16px; }
  .brands-page-content { padding: 24px 16px 60px; }

  /* Search: stack header on mobile */
  .search-results__header {
    flex-direction: column;
    gap: var(--space-2);
  }

  /* PLP: tighter padding on mobile */
  .plp-content {
    padding: 0 16px 48px;
  }
  .plp-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Homepage responsive */
  .hp-hero__content {
    padding: 60px 20px 40px;
  }
  .hp-hero__title {
    font-size: 32px;
  }
  .hp-hero__subtitle {
    font-size: 15px;
  }
  .hp-hero__ctas {
    flex-direction: column;
    gap: 10px;
  }
  .hp-hero__cta {
    width: 100%;
    text-align: center;
  }
  .hp-hero__approved-inner {
    flex-direction: column;
    gap: 4px;
  }
  /* Reduce section vertical padding on mobile */
  .hp-categories {
    padding: 48px 0 0;
    margin-bottom: 0;
  }
  .hp-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-categories__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hp-how-it-works {
    padding: 32px 24px;
  }
  .hp-how-it-works__heading {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .hp-how-it-works__steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .hp-step {
    border-right: none;
    padding: 0;
    width: 100%;
    max-width: none;
    text-align: center;
    align-items: center;
  }
  .hp-brands {
    padding: 24px 0 0;
    margin-bottom: 0;
  }
  .hp-brands__columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hp-brands__inner,
  .hp-featured__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hp-brands__header,
  .hp-featured__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hp-brands__badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding-top: 0;
    margin-top: 12px;
  }
  .hp-brands__badge {
    max-width: 160px;
  }
  .hp-brands__badge img {
    height: auto;
    max-height: 70px;
    width: auto;
  }
  .hp-brands__badge:nth-child(2) img {
    height: auto;
    max-height: 85px;
  }
  .hp-brands__badge:last-child img {
    height: auto;
    max-height: 55px;
  }
  .hp-featured {
    padding: 24px 0 48px;
  }
  .hp-featured__grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Footer: 2 columns — brand full width, then Products + Contact side by side */
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
  .site-footer__desc {
    max-width: none;
  }
  .site-footer__contact-line {
    word-break: normal;
    overflow-wrap: break-word;
  }
  .site-footer__links a {
    word-break: normal;
    overflow-wrap: break-word;
  }
  .site-footer-bottom__inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* ---- Mobile hamburger button ---- */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 6px;
    margin-left: 8px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
  }

  /* ---- Mobile nav overlay ---- */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* ---- Mobile nav drawer ---- */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #1A1A1A;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav.is-open {
    transform: translateX(0);
  }
  .mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-nav__logo img {
    height: 24px;
    width: auto;
    display: block;
  }
  .mobile-nav__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
  }
  .mobile-nav__links {
    list-style: none;
    margin: 0;
    padding: 8px 0;
  }
  .mobile-nav__links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-nav__links a {
    display: block;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.15s ease;
  }
  .mobile-nav__links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 480px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .product-grid {
    gap: var(--space-3);
  }
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* --- Section 1: Hero --- */

.hp-hero {
  position: relative;
  background-color: var(--color-ink);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 0;
}

.hp-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px var(--page-gutter) 80px;
  width: 100%;
}

.hp-hero__badge {
  display: inline-block;
  border: 1px solid rgba(46, 134, 200, 0.4);
  color: var(--color-brand-bright);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.hp-hero__title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: normal;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}

.hp-hero__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 0 32px;
}

.hp-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hp-hero__cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.hp-hero__cta:hover {
  opacity: 0.88;
  text-decoration: none;
}

.hp-hero__cta--primary {
  background: var(--color-brand-bright);
  color: #fff;
}

.hp-hero__cta--ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.hp-hero__approved {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: #111;
  padding: 14px 0;
}

.hp-hero__approved-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
}

.hp-hero__approved-label {
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hp-hero__approved-brands {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}


/* --- Section 2: Categories --- */

.hp-categories {
  background: #fff;
  padding: 80px 0;
}

.hp-categories__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.hp-categories__label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  margin-bottom: 12px;
}

.hp-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hp-category-card {
  text-decoration: none;
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: #F2F7FC;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.hp-category-card:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.hp-category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 40%);
  transition: background 0.2s ease;
}
.hp-category-card:hover .hp-category-card__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
}

.hp-category-card__name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: var(--weight-medium);
  z-index: 1;
}


/* --- Section 3: How It Works --- */

.hp-how-it-works {
  background: #F2F7FC;
  padding: 40px 0;
}

.hp-how-it-works__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.hp-how-it-works__heading {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: normal;
  text-align: center;
  margin: 0 0 24px;
  color: var(--color-ink);
}

.hp-how-it-works__steps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}

.hp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 240px;
  padding: 0 40px;
  border-right: 1px solid var(--color-border-strong);
}

.hp-step--last {
  border-right: none;
}

.hp-step__number {
  color: var(--color-brand-bright);
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: var(--weight-medium);
  margin-bottom: 8px;
}

.hp-step__title {
  font-size: 16px;
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  margin-bottom: 4px;
}

.hp-step__note {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hp-how-it-works__steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .hp-step {
    max-width: none;
    width: 100%;
    border-right: none;
    padding: 0;
  }
}


/* --- Section 4: Brand Programs --- */

.hp-brands {
  background: #fff;
  padding: 80px 0;
}

.hp-brands__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.hp-brands__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.hp-brands__heading {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: normal;
  color: var(--color-ink);
  margin: 0;
}

.hp-brands__link {
  font-size: 14px;
  color: var(--color-brand-mid);
  text-decoration: none;
  font-weight: var(--weight-medium);
}
.hp-brands__link:hover {
  text-decoration: underline;
}

.hp-brands__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.hp-brands__group-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  margin-bottom: 16px;
  font-weight: var(--weight-medium);
}

.hp-brands__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-brands__list li {
  margin-bottom: 8px;
}

.hp-brands__list a {
  font-size: 14px;
  color: var(--color-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-brands__list a:hover {
  color: var(--color-brand-mid);
}

.hp-brands__count {
  font-size: 12px;
  color: var(--color-ink-muted);
  background: var(--color-surface);
  padding: 1px 7px;
  border-radius: 10px;
}

.hp-brands__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 40px 0 16px;
}

.hp-brands__badge {
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hp-brands__badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.hp-brands__badge img {
  height: 110px;
  width: auto;
  display: block;
}

.hp-brands__badge:nth-child(2) img {
  height: 130px;
}

.hp-brands__badge:last-child img {
  height: 70px;
}


/* --- Section 5: Featured Products --- */

.hp-featured {
  background: #F8F8F7;
  padding: 80px 0;
}

.hp-featured__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.hp-featured__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.hp-featured__heading {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: normal;
  color: var(--color-ink);
  margin: 0;
}

.hp-featured__link {
  font-size: 14px;
  color: var(--color-brand-mid);
  text-decoration: none;
  font-weight: var(--weight-medium);
}
.hp-featured__link:hover {
  text-decoration: underline;
}

.hp-featured__grid {
  grid-template-columns: repeat(3, 1fr);
}


/* --- Section 6: Positioning Close --- */

.hp-about {
  background: var(--color-ink);
  padding: 80px 0;
  color: #fff;
}

.hp-about__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
}

.hp-about__eyebrow {
  display: block;
  color: var(--color-brand-bright);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: var(--weight-medium);
}

.hp-about__paragraph {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.hp-about__nmsdc-box {
  text-align: center;
}

.hp-about__nmsdc-badge {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.hp-about__nmsdc-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}


/* --- Homepage mobile overrides (after all desktop rules to win cascade) --- */
@media (max-width: 768px) {
  .hp-categories {
    padding: 32px 0;
  }
  .hp-brands {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .hp-brands__badges {
    gap: 24px;
    padding: 16px 0 8px;
    flex-wrap: wrap;
  }
  .hp-featured {
    padding-top: 24px;
  }
  .hp-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    height: auto;
  }
  .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .product-card .product-card__image .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
  }
}


/* ============================================================
   STATIC PAGES — Shared hero + content wrapper
   ============================================================ */

.page-hero {
  background: var(--color-ink);
  padding: 48px 0;
}

.page-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: normal;
  color: #fff;
  margin: 0;
}

.page-hero__subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  margin: 8px 0 0;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px var(--page-gutter) 80px;
  color: var(--color-ink);
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: normal;
  margin: 40px 0 12px;
  color: var(--color-ink);
}

.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink-mid);
  margin: 0 0 16px;
}

.page-content ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.page-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink-mid);
  margin-bottom: 6px;
}

.page-content a {
  color: var(--color-brand-mid);
}

.page-content__effective-date {
  font-size: 14px;
  color: var(--color-ink-muted);
  margin-bottom: 32px;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px var(--page-gutter) 80px;
}

.contact-success {
  background: var(--color-brand-faint);
  border: 1px solid var(--color-border-brand);
  border-radius: 8px;
  padding: 32px;
}

.contact-success h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: normal;
  margin: 0 0 8px;
  color: var(--color-ink);
}

.contact-success p {
  font-size: 15px;
  color: var(--color-ink-mid);
  margin: 0;
}

.contact-errors {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.contact-errors p {
  font-size: 14px;
  color: #991B1B;
  margin: 0 0 4px;
}
.contact-errors p:last-child { margin-bottom: 0; }

.contact-form__field {
  margin-bottom: 20px;
}

.contact-form__field label {
  display: block;
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  margin-bottom: 6px;
}

.contact-form__field .required {
  color: #DC2626;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-border-strong);
  border-radius: 6px;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-brand-mid);
}

.contact-form__field textarea {
  resize: vertical;
}

.contact-form__submit {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: var(--weight-medium);
  font-family: var(--font-sans);
  color: #fff;
  background: var(--color-ink);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.contact-form__submit:hover {
  opacity: 0.85;
}

.contact-info {
  position: sticky;
  top: 96px;
}

.contact-info__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: normal;
  color: var(--color-ink);
  margin: 0 0 24px;
}

.contact-info__block {
  margin-bottom: 20px;
}

.contact-info__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  margin-bottom: 4px;
  font-weight: var(--weight-medium);
}

.contact-info__block p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-ink);
  margin: 0;
}

.contact-info__block a {
  color: var(--color-brand-mid);
  text-decoration: none;
}
.contact-info__block a:hover {
  text-decoration: underline;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-story {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px var(--page-gutter) 64px;
  align-items: start;
}

.about-story__heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: normal;
  color: var(--color-ink);
  margin: 0 0 20px;
}

.about-story__text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink-mid);
  margin: 0 0 16px;
}

.about-story__image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-values {
  background: var(--color-surface);
  padding: 64px 0;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.about-values__card {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
}

.about-values__card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: normal;
  color: var(--color-ink);
  margin: 0 0 10px;
}

.about-values__card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-ink-mid);
  margin: 0;
}


/* ============================================================
   404 PAGE
   ============================================================ */

.error-404 {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.error-404__main {
  text-align: center;
  padding: 80px 0 60px;
}

.error-404__numeral {
  display: block;
  font-family: var(--font-serif);
  font-size: 96px;
  font-weight: normal;
  color: var(--color-brand-bright);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: normal;
  color: var(--color-ink);
  margin: 0 0 12px;
}

.error-404__message {
  font-size: 16px;
  color: var(--color-ink-muted);
  margin: 0 0 32px;
}

.error-404__ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.error-404__cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.error-404__cta:hover {
  opacity: 0.85;
  text-decoration: none;
}

.error-404__cta--primary {
  background: var(--color-ink);
  color: #fff;
}

.error-404__cta--ghost {
  border: 1px solid var(--color-border-strong);
  color: var(--color-ink);
  background: transparent;
}

.error-404__products {
  padding: 0 0 80px;
  border-top: 1px solid var(--color-border);
}

.error-404__products-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  margin: 32px 0 20px;
}

.error-404__grid {
  grid-template-columns: repeat(4, 1fr);
}


/* ============================================================
   IMAGE PROTECTION
   ============================================================ */

/* Lead-time badge below image in product card */
.product-card > .badge {
  margin-bottom: 6px;
}

.pdp-gallery img,
.product-card img {
  user-select: none;
}


/* ============================================================
   STATIC PAGES — Responsive
   ============================================================ */

@media (max-width: 768px) {

  .page-hero {
    padding: 36px 0;
  }
  .page-hero__title {
    font-size: 28px;
  }
  .page-content {
    padding: 32px 20px 60px;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 20px 60px;
  }
  .contact-info {
    position: static;
  }

  /* About */
  .about-story {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px 48px;
  }
  .about-story__image {
    min-height: 220px;
  }
  .about-values__grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  /* 404 */
  .error-404__numeral {
    font-size: 72px;
  }
  .error-404__main {
    padding: 48px 0 40px;
  }
  .error-404__ctas {
    flex-direction: column;
    align-items: center;
  }
  .error-404__cta {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  .error-404__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   NAV DROPDOWN
   ============================================================ */

.site-nav__dropdown {
  position: relative;
}

.site-nav__dropdown-arrow {
  margin-left: 3px;
  vertical-align: middle;
  transition: transform var(--transition-fast);
}

.site-nav__dropdown:hover .site-nav__dropdown-arrow {
  transform: rotate(180deg);
}

.site-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 0 6px;
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 6px 6px;
  list-style: none;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-nav__dropdown:hover .site-nav__dropdown-menu {
  display: block;
}

.site-nav__dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.site-nav__dropdown-menu li a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}


/* ============================================================
   FAQ PAGE
   ============================================================ */

/* Anchor strip */
.faq-anchors {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-canvas);
}

.faq-anchors__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px var(--page-gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.faq-anchors__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink-mid);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.faq-anchors__link:hover {
  color: var(--color-brand-mid);
}

/* Section */
.faq-content {
  padding-bottom: 80px;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section:last-child {
  margin-bottom: 0;
}

.faq-section__heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: normal;
  color: var(--color-ink);
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--color-brand-bright);
}

/* Item */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  line-height: 1.5;
}

.faq-item__question:hover {
  color: var(--color-brand-mid);
}

.faq-item__question-text {
  flex: 1;
}

.faq-item__chevron {
  flex-shrink: 0;
  color: var(--color-ink-muted);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

/* Answer panel */
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item__answer-inner {
  padding: 0 0 20px;
}

.faq-item__answer-inner p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink-mid);
  margin: 0;
}

/* FAQ responsive */
@media (max-width: 768px) {
  .faq-anchors__inner {
    gap: 6px 12px;
  }
  .faq-anchors__link {
    font-size: 11px;
  }
  .faq-section__heading {
    font-size: 18px;
  }
  .faq-item__question {
    font-size: 14px;
    padding: 14px 0;
  }
  .faq-item__answer-inner p {
    font-size: 14px;
  }
}


/* ============================================================
   WARRANTY PAGE
   ============================================================ */

/* Hero eyebrow */
.warranty-hero__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7EC8E3;
  margin-bottom: 12px;
}

/* Content area */
.warranty-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  color: var(--color-ink);
}

/* Section blocks */
.warranty-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid #DDE4EA;
}

.warranty-section:last-of-type {
  border-bottom: none;
  margin-bottom: 40px;
}

.warranty-section__label {
  display: block;
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2E86C8;
  margin-bottom: 16px;
}

.warranty-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink-mid);
  margin: 0 0 14px;
}

.warranty-content ul {
  padding-left: 20px;
  margin: 0 0 14px;
}

.warranty-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink-mid);
  margin-bottom: 6px;
}

.warranty-content a {
  color: var(--color-brand-mid);
}

/* Coverage table */
.warranty-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
}

.warranty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.warranty-table thead th {
  background: #1A5C96;
  color: #fff;
  font-weight: var(--weight-medium);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
}

.warranty-table thead th:first-child {
  border-radius: 4px 0 0 0;
}

.warranty-table thead th:last-child {
  border-radius: 0 4px 0 0;
}

.warranty-table tbody td {
  padding: 12px 16px;
  vertical-align: top;
  color: var(--color-ink-mid);
  line-height: 1.55;
  border-bottom: 1px solid #DDE4EA;
}

.warranty-table tbody tr:nth-child(even) td {
  background: #EEF3F8;
}

.warranty-table tbody tr:last-child td {
  border-bottom: none;
}

.warranty-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 4px;
}

.warranty-table tbody tr:last-child td:last-child {
  border-radius: 0 0 4px 0;
}

.warranty-table__note {
  display: block;
  font-size: 12px;
  color: var(--color-ink-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Warning box */
.warranty-warning {
  background: #FFF8E7;
  border-left: 3px solid #E5A000;
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
}

.warranty-warning strong {
  display: block;
  font-size: 14px;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.warranty-warning p {
  margin: 0;
  font-size: 14px;
  color: var(--color-ink-mid);
}

/* Contact box */
.warranty-contact {
  background: #EEF3F8;
  border: 1px solid #DDE4EA;
  border-radius: 6px;
  padding: 28px 28px 24px;
  margin-bottom: 32px;
}

.warranty-contact__heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: normal;
  color: #1A5C96;
  margin: 0 0 10px;
}

.warranty-contact p {
  font-size: 15px;
  color: var(--color-ink-mid);
  margin: 0 0 10px;
}

.warranty-contact__details {
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}

.warranty-contact__details a {
  color: var(--color-brand-mid);
}

.warranty-contact__footnote {
  font-size: 13px;
  color: var(--color-ink-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

/* Effective date */
.warranty-effective {
  font-size: 13px;
  color: var(--color-ink-muted);
  text-align: center;
  margin: 0;
}

/* Warranty responsive */
@media (max-width: 768px) {
  .warranty-content {
    padding: 32px 20px 60px;
  }
  .warranty-table {
    font-size: 13px;
  }
  .warranty-table thead th,
  .warranty-table tbody td {
    padding: 10px 12px;
  }
  .warranty-contact {
    padding: 20px;
  }
}


/* ============================================================
   QUICK QUOTE — Modal + Worksheet
   ============================================================ */

/* ---- Hero button ---- */
.qq-hero-btn {
  display: inline-block;
  width: auto;
  margin-top: 14px;
  background: #2E86C8;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: var(--font-ui);
  letter-spacing: 0.01em;
}
.qq-hero-btn:hover {
  background: #1A5C96;
}

/* ---- Modal overlay + card ---- */
.qq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.qq-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.qq-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  width: 380px;
  max-width: 90vw;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.qq-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.qq-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-ink-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.qq-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: 4px;
}
.qq-modal__scheme {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin-bottom: 24px;
}

.qq-modal__field {
  margin-bottom: 16px;
}
.qq-modal__field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: 6px;
  color: var(--color-ink);
}
.qq-modal__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: var(--font-ui);
  color: var(--color-ink);
}
.qq-modal__input:focus {
  outline: none;
  border-color: #2E86C8;
  box-shadow: 0 0 0 2px rgba(46, 134, 200, 0.15);
}

.qq-modal__submit {
  width: 100%;
  margin-top: 8px;
  background: #2E86C8;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.qq-modal__submit:hover {
  background: #1A5C96;
}

/* ---- Worksheet page ---- */
.qq-page {
  padding: 0 32px 40px;
}

.qq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}
.qq-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: 4px;
}
.qq-header__rooms {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}
.qq-header__edit {
  font-size: var(--text-sm);
  color: var(--color-brand-mid);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 6px;
}
.qq-header__edit:hover {
  text-decoration: underline;
}

/* ---- Table ---- */
.qq-table-wrap {
  overflow-x: auto;
  max-width: 1100px;
}
.qq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  table-layout: fixed;
}
.qq-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
}
/* Column widths — fixed layout */
.qq-table colgroup .qq-col-control { width: 90px; }
.qq-table colgroup .qq-col-name    { width: auto; }
.qq-table colgroup .qq-col-img     { width: 60px; }
.qq-table colgroup .qq-col-sku     { width: 130px; }
.qq-table colgroup .qq-col-cp      { width: 80px; }
.qq-table colgroup .qq-col-calc    { width: 80px; }
.qq-table colgroup .qq-col-edit    { width: 140px; }

.qq-th-control { width: 90px; }
.qq-th-img     { width: 60px; }
.qq-th-sku     { width: 130px; }
.qq-th-cp      { width: 80px; }
.qq-th-calc    { width: 80px; }
.qq-th-edit    { width: 140px; }

.qq-section-header td {
  font-size: 12px;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-mid);
  padding: 20px 10px 8px;
  border-bottom: 1px solid var(--color-border);
}

.qq-row td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border-light, #f0f0f0);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qq-row--zero {
  opacity: 0.4;
}

.qq-td-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qq-td-name a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}
.qq-td-name a:hover {
  color: var(--color-brand-mid);
}

.qq-td-img {
  width: 60px;
  padding: 4px 6px;
}
.qq-thumb-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  display: block;
}

.qq-td-control {
  font-size: 12px;
  color: var(--color-ink-muted);
}
.qq-td-sku {
  font-size: 11px;
  color: var(--color-ink-muted);
}
.qq-td-cp,
.qq-td-calc {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.qq-td-edit .qty-control {
  min-width: 110px;
}

/* ---- Add All bar (inline below table) ---- */
.qq-add-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
}
.qq-add-bar__summary {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  font-weight: var(--weight-medium);
}
.qq-add-bar__submit {
  display: inline-block;
  width: auto;
  flex-shrink: 0;
  background: #2E86C8;
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.qq-add-bar__submit:hover {
  background: #1A5C96;
}
.qq-add-bar__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .qq-page {
    padding: 0 16px 40px;
  }
  .qq-header {
    flex-direction: column;
    gap: 8px;
  }
  .qq-header__title {
    font-size: 22px;
  }
  .qq-header__edit {
    margin-top: 0;
  }

  /* Card layout */
  .qq-table thead { display: none; }
  .qq-section-header td { display: block; padding: 16px 0 8px; }

  .qq-table,
  .qq-table tbody,
  .qq-table tr,
  .qq-table td {
    display: block;
  }

  .qq-row {
    border: 1px solid var(--color-border-light, #f0f0f0);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto;
    gap: 4px 12px;
  }

  .qq-row td {
    border-bottom: none;
    padding: 2px 0;
  }

  .qq-td-img {
    grid-row: 1 / 4;
    grid-column: 1;
    width: auto;
    padding: 0;
  }
  .qq-thumb-img {
    width: 48px;
    height: 48px;
  }

  .qq-td-name {
    grid-column: 2;
    font-size: var(--text-base);
  }
  .qq-td-control {
    grid-column: 2;
    font-size: 11px;
    color: var(--color-ink-muted);
  }
  .qq-td-sku {
    grid-column: 2;
  }

  .qq-td-cp,
  .qq-td-calc {
    text-align: left;
    grid-column: 1 / -1;
  }
  .qq-td-cp::before,
  .qq-td-calc::before {
    content: attr(data-label) ": ";
    font-weight: var(--weight-medium);
    color: var(--color-ink-muted);
    font-size: 11px;
  }

  .qq-td-edit {
    grid-column: 1 / -1;
    padding-top: 6px;
  }

  .qq-add-bar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .qq-add-bar__summary {
    text-align: center;
  }
  .qq-add-bar__submit {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
  }
}
