/* ============================================================
   The Fascia Factory — extended page styles
   New component rules for shop, product, cart and account pages.

   RULES:
   - Uses ONLY tokens from styles.css :root (var(--navy) etc.)
   - Three functional/status colours are permitted by design-extension.md §1
     solely for WCAG-compliant stock, order status and form-error communication:
       Status green : #2e7d32
       Status red   : #c62828
       Status blue  : #0d47a1
   - No other colour additions.
   ============================================================ */

/* ============================================================
   SHARED PAGE CHROME
   ============================================================ */

/* Page-level background for inner pages */
.page-bg { background: var(--bg-soft); min-height: 60vh; }

/* Breadcrumb row */
.breadcrumb {
  padding: 14px 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb__sep { margin: 0 8px; opacity: .5; }
.breadcrumb__current { color: var(--amber-600); font-weight: 700; }

/* Page headings (inner pages) */
.page-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 6px;
}

/* ============================================================
   SECTION: SHOP / CATEGORY LISTING  (shop.html)
   ============================================================ */

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 28px 0 72px;
  align-items: start;
}

/* ---- Filter sidebar ---- */
.filter-sidebar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 24px;
}
.filter-sidebar__heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.filter-group {
  border-top: 1px solid var(--line);
  padding: 0;
}
.filter-group__btn {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font);
}
.filter-group__chevron {
  font-size: 12px;
  color: var(--muted);
  transition: transform .15s ease;
}
.filter-group--open .filter-group__chevron { transform: rotate(180deg); }
.filter-group__body { padding-bottom: 14px; }

/* Checkbox rows */
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.filter-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--navy);
  flex: none;
}
.filter-check__count { color: var(--muted); font-size: 13px; }

/* Colour swatches in filter */
.filter-swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 10px; }
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  title: attr(title);
}
.swatch--selected { box-shadow: 0 0 0 2px var(--amber); border-color: var(--navy); }
.swatch--white { background: #fff; }
.swatch--cream { background: #f5f0e8; }
.swatch--grey { background: #9e9e9e; }
.swatch--black { background: #1a1a1a; }
.swatch--rosewood { background: #7d2a2a; }
.swatch--chartwell { background: #4e6e4e; }

/* Active filter chips + clear */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.filter-chip {
  background: var(--navy-500);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chip__remove {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.filter-chip__remove:hover { color: #fff; }
.clear-filters {
  color: var(--amber-600);
  font-weight: 700;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 4px 0;
}

/* ---- Sort / results bar ---- */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.sort-bar__count { color: var(--muted); font-size: 14px; }
.sort-bar__select {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  cursor: pointer;
}
.sort-bar__select:focus { border-color: var(--navy-500); outline: none; }

/* ---- Product grid (shop listing) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Product card (extends .cat from styles.css) */
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--amber); }

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-500);
  overflow: hidden;
}
.product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}
/* OOS overlay */
.product-card__oos-overlay {
  position: absolute;
  inset: 0;
  background: rgba(93,107,122,.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__oos-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
/* Wishlist icon */
.product-card__wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  color: var(--muted);
}
.product-card__wishlist--saved { color: var(--amber); }

.product-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-card__variant {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
/* Guarantee badge */
.guarantee-badge {
  display: inline-block;
  background: #fff7e6;
  border: 1px solid var(--amber-600);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 8px;
}
.product-card__price {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.product-card__price .vat-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
/* Stock status labels */
.stock-in    { color: #2e7d32; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.stock-low   { color: var(--amber-600); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.stock-out   { color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 12px; }

.product-card__add {
  margin-top: auto;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  background: var(--amber);
  color: #2a1d00;
  transition: background .12s ease, transform .12s ease;
}
.product-card__add:hover { background: var(--amber-600); transform: translateY(-1px); }
.product-card__add--disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none !important;
}

/* Product card image tone variants (same pattern as .cat__img data-tone) */
.tone-1  { background: linear-gradient(135deg,#1b3a5b,#2b5481); }
.tone-2  { background: linear-gradient(135deg,#2b5481,#3f6ea3); }
.tone-3  { background: linear-gradient(135deg,#3a4a5c,#566c83); }
.tone-4  { background: linear-gradient(135deg,#22455f,#37708f); }
.tone-5  { background: linear-gradient(135deg,#2e5a73,#4d8aa3); }
.tone-6  { background: linear-gradient(135deg,#1f3d57,#345f80); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pagination__btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  background: var(--bg);
  cursor: pointer;
  font-family: var(--font);
  transition: background .1s ease, color .1s ease;
}
.pagination__btn:hover { background: var(--bg-soft); color: var(--navy); }
.pagination__btn--active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination__btn--nav { color: var(--navy); font-weight: 700; }

/* ============================================================
   SECTION: SINGLE PRODUCT PAGE  (product.html)
   ============================================================ */

.pdp-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  padding: 28px 0 56px;
  align-items: start;
}

/* ---- Gallery ---- */
.pdp-gallery__main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.pdp-gallery__main-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy-500);
  font-size: 14px;
}
.pdp-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  transition: border-color .12s ease;
}
.pdp-gallery__thumb--active { border-color: var(--amber); }
.pdp-gallery__thumb:hover { border-color: var(--navy-500); }

/* ---- Purchase panel ---- */
.pdp-panel {}
.pdp-panel__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--navy);
  margin-bottom: 10px;
}
.pdp-panel__rating {
  color: var(--amber);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.pdp-panel__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.pdp-panel__price .vat-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
/* Trade price row — pending ASSUMPTION-B / OQ-3 */
.pdp-trade-row {
  margin-bottom: 4px;
}
.pdp-trade-row__retail {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}
.pdp-trade-row__price {
  color: var(--amber-600);
  font-size: 22px;
  font-weight: 800;
}
.pdp-trade-row__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}

.pdp-panel__stock { margin-bottom: 16px; }

/* Variant selectors */
.pdp-variants { margin-bottom: 20px; }
.pdp-variants__group { margin-bottom: 16px; }
.pdp-variants__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}
.pdp-variants__swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.variant-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
}
.variant-swatch--selected { box-shadow: 0 0 0 3px var(--amber); border-color: var(--navy); }
.variant-select {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  font-family: var(--font);
  cursor: pointer;
}
.variant-select:focus { border-color: var(--navy-500); outline: none; }

/* Quantity input */
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.qty-btn {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 800;
  padding: 8px 14px;
  font-size: 16px;
  cursor: pointer;
  font-family: var(--font);
  transition: background .1s ease;
}
.qty-btn:hover { background: var(--line); }
.qty-input {
  border: 2px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  width: 56px;
  padding: 8px 0;
  font-size: 16px;
  font-family: var(--font);
}

/* Add to cart */
.btn-atc {
  display: block;
  width: 100%;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  background: var(--amber);
  color: #2a1d00;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 6px 16px rgba(246,166,9,.35);
  transition: background .12s ease, transform .12s ease;
}
.btn-atc:hover { background: var(--amber-600); transform: translateY(-1px); }

.wishlist-link {
  color: var(--navy-500);
  font-weight: 600;
  font-size: 14px;
  display: block;
  text-align: center;
  margin-top: 10px;
}
.wishlist-link:hover { color: var(--navy); }

/* Delivery info panel */
.delivery-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 18px;
}
.delivery-panel__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.delivery-panel__row:last-child { border-bottom: none; }
.delivery-panel__row--highlight {
  border-left: 4px solid var(--amber);
  padding-left: 12px;
  margin-left: -18px;
  padding-left: 14px;
}
.delivery-panel__label { font-weight: 700; color: var(--navy); font-size: 14px; }
.delivery-panel__sub { font-size: 13px; color: var(--muted); }
.delivery-panel__price { font-weight: 800; color: var(--navy); font-size: 14px; white-space: nowrap; }

/* Trust signals row */
.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.trust-signal {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.trust-signal__sep { color: var(--line); margin: 0 2px; }

/* ---- Tabbed content (below fold) ---- */
.pdp-tabs { padding: 48px 0; }
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--line);
  gap: 0;
  flex-wrap: wrap;
}
.tab-btn {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: var(--font);
  transition: color .1s ease;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn--active { color: var(--navy); font-weight: 700; border-bottom-color: var(--navy); }

.tab-panel { padding: 28px 0; display: none; }
.tab-panel--active { display: block; }
.tab-panel p { color: var(--ink); font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
.tab-panel h3 { color: var(--navy); font-weight: 800; font-size: 20px; margin-bottom: 10px; }

/* Spec table */
.spec-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.spec-table tr:nth-child(odd)  td { background: var(--bg); }
.spec-table tr:nth-child(even) td { background: var(--bg-soft); }
.spec-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--muted); font-weight: 700; width: 40%; }
.spec-table td:last-child { color: var(--ink); }

/* Education hook */
.edu-hook {
  background: var(--bg-soft);
  padding: 48px 0;
  text-align: center;
}
.edu-hook h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.edu-hook p { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

/* ============================================================
   SECTION: CART PAGE  (cart.html)
   ============================================================ */

.cart-layout {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 28px;
  padding: 28px 0 72px;
  align-items: start;
}

/* Delivery messaging bar */
.delivery-msg {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Amber threshold state */
.delivery-msg--threshold {
  background: #fff7e6;
  border: 1px solid var(--amber-600);
}
.delivery-msg--threshold strong { color: var(--amber-600); font-weight: 800; }
/* Green confirmed state */
.delivery-msg--confirmed {
  background: #f0faf0;
  border: 1px solid #2e7d32;
}
.delivery-msg--confirmed strong { color: #2e7d32; }
/* Standard state */
.delivery-msg--standard {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Cart line-item table */
.cart-table-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--line);
  padding: 14px 20px;
  text-align: left;
  background: var(--bg);
}
.cart-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-table tr:last-child td { border-bottom: none; }

.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-product__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  flex: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-product__thumb-img {
  width: 100%;
  height: 100%;
}
.cart-product__name {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 3px;
}
.cart-product__variant { font-size: 13px; color: var(--muted); }

.cart-price { font-size: 15px; color: var(--ink); white-space: nowrap; }
.cart-total { font-size: 15px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.cart-remove {
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  line-height: 1;
  transition: color .1s ease;
}
.cart-remove:hover { color: var(--navy); }

/* Compact qty control for cart */
.qty-control--sm { gap: 6px; }
.qty-control--sm .qty-btn { padding: 6px 10px; font-size: 14px; }
.qty-control--sm .qty-input { width: 44px; padding: 6px 0; font-size: 14px; }

/* ---- Order summary sidebar ---- */
.order-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 24px;
}
.order-summary h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row__label { color: var(--muted); }
.summary-row__value { color: var(--ink); font-weight: 700; }
.summary-row--total {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  border-bottom: none;
  padding-top: 14px;
}
.summary-row--total .summary-row__label { color: var(--navy); font-weight: 800; }
.summary-row--total .summary-row__value { color: var(--navy); font-weight: 800; }

/* Coupon row */
.coupon-row {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.coupon-input {
  flex: 1;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--font);
}
.coupon-input:focus { border-color: var(--navy-500); outline: none; }
.coupon-apply {
  background: var(--amber);
  color: #2a1d00;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background .12s ease;
}
.coupon-apply:hover { background: var(--amber-600); }

.btn-checkout {
  display: block;
  width: 100%;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  background: var(--amber);
  color: #2a1d00;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 6px 16px rgba(246,166,9,.35);
  margin-top: 16px;
  transition: background .12s ease, transform .12s ease;
}
.btn-checkout:hover { background: var(--amber-600); transform: translateY(-1px); }

.continue-shopping {
  color: var(--navy-500);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  display: block;
  margin-top: 10px;
}

/* ============================================================
   SECTION: MY ACCOUNT PAGE  (account.html)
   ============================================================ */

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px 0 72px;
  align-items: start;
}

/* ---- Account sidebar ---- */
.account-sidebar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.account-sidebar__user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.account-sidebar__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.account-sidebar__email {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.account-nav__link {
  display: block;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--muted);
  font-size: 15px;
  border-left: 3px solid transparent;
  transition: color .1s ease, background .1s ease;
}
.account-nav__link:hover { color: var(--navy); background: var(--bg-soft); }
.account-nav__link--active {
  background: var(--bg-soft);
  color: var(--navy);
  border-left-color: var(--amber);
}
.account-nav__link--logout {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* ---- Dashboard panel ---- */
.account-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.account-panel h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

/* Quick stats tiles */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.stat-tile__num {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  display: block;
}
.stat-tile__label {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* Orders table */
.account-section-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.orders-table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.orders-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink);
}
.orders-table tr:last-child td { border-bottom: none; }

/* Order status badges */
.status-badge {
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  display: inline-block;
  white-space: nowrap;
}
.status-badge--processing  { background: #e8f4fd; color: #0d47a1; }
.status-badge--completed   { background: #f0faf0; color: #2e7d32; }
.status-badge--cancelled   { background: #fff8f8; color: #c62828; }
.status-badge--onhold      { background: #fff7e6; color: var(--amber-600); }

.orders-table__view { color: var(--navy-500); font-weight: 700; font-size: 14px; }
.orders-table__reorder {
  background: var(--amber);
  color: #2a1d00;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background .12s ease;
}
.orders-table__reorder:hover { background: var(--amber-600); }

/* Address cards */
.address-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.address-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.address-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.address-card address {
  font-style: normal;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}
.address-card__edit {
  color: var(--navy-500);
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  margin-top: 12px;
}

/* ---- Login / Register card ---- */
.login-wrap {
  min-height: 60vh;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 24px 72px;
}
.login-wrap .page-heading { text-align: center; margin-bottom: 24px; }

.login-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  width: 100%;
  max-width: 480px;
}
/* Tab nav reused from pdp-tabs */
.login-card .tab-nav { margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.form-label .req { color: var(--amber-600); }
.form-input {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  font-family: var(--font);
  transition: border-color .12s ease;
}
.form-input:focus { border-color: var(--navy-500); outline: none; }

/* Account type radio cards */
.account-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.account-type-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: border-color .12s ease, background .12s ease;
}
.account-type-card:has(input:checked) {
  border-color: var(--navy);
  background: var(--bg-soft);
}
.account-type-card input[type="radio"] { margin-top: 2px; accent-color: var(--navy); flex: none; }
.account-type-card__body {}
.account-type-card__title { font-weight: 700; color: var(--navy); font-size: 15px; }
.account-type-card__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.btn-form {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  background: var(--amber);
  color: #2a1d00;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 6px 16px rgba(246,166,9,.35);
  transition: background .12s ease, transform .12s ease;
  margin-top: 6px;
}
.btn-form:hover { background: var(--amber-600); transform: translateY(-1px); }

.form-divider {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0;
  position: relative;
}
.form-divider::before, .form-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--line);
}
.form-divider::before { left: 0; }
.form-divider::after  { right: 0; }

/* ============================================================
   SECTION: CHECKOUT PAGE  (checkout.html)
   ============================================================ */

.checkout-layout {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 32px;
  padding: 28px 0 72px;
  align-items: start;
}

/* Progress indicator */
.checkout-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.checkout-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.checkout-progress__step--active {
  color: var(--navy);
  font-weight: 800;
}
.checkout-progress__step--done {
  color: var(--amber-600);
  font-weight: 700;
}
.checkout-progress__connector {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 12px;
  min-width: 32px;
}
.checkout-progress__connector--done { background: var(--amber); }

/* Form sections */
.form-section { margin-bottom: 28px; }
.form-section__heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  margin-top: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.form-section__heading:first-child { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row--full { grid-template-columns: 1fr; }

/* Delivery method radio cards */
.delivery-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; }
.delivery-method {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.delivery-method:has(input:checked) {
  border-color: var(--navy);
  background: var(--bg-soft);
}
.delivery-method--free-local:has(input:checked) {
  border-left: 4px solid var(--amber);
}
.delivery-method input[type="radio"] {
  accent-color: var(--navy);
  flex: none;
  width: 18px;
  height: 18px;
}
.delivery-method__info { flex: 1; }
.delivery-method__label {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
.delivery-method__sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.delivery-method__price {
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
  white-space: nowrap;
}

/* Payment placeholder block */
.payment-placeholder {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  background: var(--bg-soft);
  text-align: center;
}
.payment-placeholder__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.payment-placeholder__box {
  background: var(--line);
  border-radius: 8px;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Trust signals strip (checkout) */
.checkout-trust {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.checkout-trust__item {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Checkout order summary (right column) */
.checkout-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 24px;
}
.checkout-summary h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.checkout-summary-items { margin-bottom: 16px; }
.checkout-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: none;
  overflow: hidden;
}
.checkout-summary-item__info { flex: 1; }
.checkout-summary-item__name { font-weight: 700; color: var(--navy); font-size: 13px; }
.checkout-summary-item__variant { font-size: 12px; color: var(--muted); }
.checkout-summary-item__price { font-weight: 700; color: var(--ink); font-size: 13px; white-space: nowrap; }

.btn-place-order {
  display: block;
  width: 100%;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  background: var(--amber);
  color: #2a1d00;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 6px 16px rgba(246,166,9,.35);
  transition: background .12s ease, transform .12s ease;
  margin-top: 16px;
}
.btn-place-order:hover { background: var(--amber-600); transform: translateY(-1px); }

/* ============================================================
   SECTION: CONTENT / STATIC PAGES  (delivery.html, faq.html, contact.html)
   ============================================================ */

/* Standard content-page wrapper */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 72px;
}
.content-page h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.content-page .page-intro {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 620px;
}
.content-page h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 14px;
}
.content-page p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 14px;
}
.content-page ul {
  margin: 0 0 14px 20px;
}
.content-page li {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 6px;
}

/* Delivery option cards (content page variant — narrower, stacked) */
.delivery-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 36px; }
.delivery-card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  background: var(--bg);
}
.delivery-card--highlight { border-color: var(--amber); box-shadow: var(--shadow); }
.delivery-card .tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #2a1d00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 20px;
}
.delivery-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.delivery-card .price {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0 8px;
}
.delivery-card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* Explainer box (how local delivery works etc.) */
.info-box {
  background: #fff7e6;
  border: 1px solid var(--amber-600);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.info-box p { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--navy); }

/* FAQ accordion */
.faq-list { margin-top: 8px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font);
  gap: 16px;
}
.faq-question:hover { color: var(--navy-500); }
.faq-chevron {
  font-size: 13px;
  color: var(--muted);
  flex: none;
  transition: transform .15s ease;
}
.faq-item--open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 4px 18px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  display: none;
}
.faq-item--open .faq-answer { display: block; }

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 72px;
}
.contact-info h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 12px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-detail__icon {
  font-size: 20px;
  flex: none;
  margin-top: 2px;
}
.contact-detail__text { font-size: 15px; color: var(--ink); }
.contact-detail__text strong { color: var(--navy); font-weight: 700; display: block; font-size: 14px; margin-bottom: 2px; }
.contact-detail__text a { color: var(--navy-500); font-weight: 700; }
.contact-detail__text a:hover { color: var(--amber-600); }

.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-form-wrap h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ============================================================
   SECTION: SEARCH RESULTS PAGE  (search.html)
   ============================================================ */

.search-results-header { padding: 28px 0 0; }
.search-results-query {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.search-results-query strong { color: var(--navy); font-weight: 700; }
.search-results-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Empty search state */
.search-empty {
  text-align: center;
  padding: 72px 24px;
}
.search-empty__icon { font-size: 48px; color: var(--muted); margin-bottom: 18px; }
.search-empty h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.search-empty p { font-size: 16px; color: var(--muted); margin-bottom: 24px; }

/* ============================================================
   SECTION: 404 PAGE  (404.html)
   ============================================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  text-align: center;
}
.error-page__inner { max-width: 560px; }
.error-page__code {
  font-size: 96px;
  font-weight: 800;
  color: var(--line);
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 8px;
}
.error-page__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.error-page__body {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.error-page__search { max-width: 400px; margin: 0 auto 24px; }
.error-page__links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION: TRADE ACCOUNT APPLICATION  (trade-account.html)
   ============================================================ */

.trade-account-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 72px;
  align-items: start;
}
.trade-intro__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}
.trade-intro h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.trade-intro p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 14px;
}
.trade-benefits {
  margin: 20px 0 0;
  list-style: none;
  padding: 0;
}
.trade-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.trade-benefits li:last-child { border-bottom: none; }
.trade-benefits__icon { font-size: 17px; flex: none; margin-top: 1px; }

.trade-form-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.trade-form-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.trade-form-wrap .form-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.form-input--error {
  border-color: #c62828;
  background: #fff8f8;
}
.form-error-msg {
  font-size: 13px;
  color: #c62828;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ============================================================
   PRODUCT PHOTOGRAPHY — AI-generated generic stand-ins for client demo.
   DESIGN-SPEC §10: replace all images in design/images/ with the
   client's real product photography before going live.
   ============================================================ */

/* Category tile photos — fill the 4:3 image box */
.cat__img--photo {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.cat__img--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Product card photo images — fill the 4:3 image wrap */
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

/* PDP main gallery photo */
.pdp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* PDP thumbnail photos */
.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Cart line-item thumbnail photos */
.cart-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 6px;
}

/* Checkout summary thumbnail photos */
.checkout-summary-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
}

/* ============================================================
   CHANGE 1 — SVG WORDMARK LOGO
   Replaces the plain "FF" box + text spans with a proper
   branded SVG wordmark mark + wordmark text.
   DESIGN-SPEC §10: swap to client's real logo by replacing
   the <svg> with an <img src="logo.svg" ...> — one-line change.
   ============================================================ */

/* Hide the old text-only spans when the SVG logo is present.
   The SVG carries all branding; these rules keep the fallback
   text invisible but present for screen readers via aria-label
   on the wrapping <a>/<span>. */
.logo--svg .logo__mark,
.logo--svg .logo__text { display: none; }

/* Make the SVG scale cleanly at header and footer sizes */
.logo--svg { display: flex; align-items: center; }
.logo--svg svg { display: block; }

/* Header logo — ~40 px tall */
.header .logo--svg svg { height: 40px; width: auto; }

/* Footer logo — slightly smaller to suit the dark background */
.logo--footer.logo--svg svg { height: 34px; width: auto; }

/* ============================================================
   CHANGE 2 — REPRESENTATIVE COLOUR SWATCHES
   Replaces grey diagonal-stripe placeholders with tasteful
   UPVC-toned gradients so pages look purposeful in review.
   DESIGN-SPEC §10: real photography from the client replaces
   every element carrying a .swatch-* or .hero--swatch class.
   All colours are CSS gradients only — no external image URLs.
   ============================================================ */

/* Hero image placeholder: rich branded navy panel
   Replaces the grey repeating-linear-gradient in styles.css */
.hero__img {
  /* DESIGN-SPEC §10 — client hero photography replaces this block */
  background: linear-gradient(
    150deg,
    var(--navy) 0%,
    var(--navy-700) 40%,
    var(--navy-500) 75%,
    #3a6fa3 100%
  ) !important;
  color: rgba(255,255,255,.55) !important;
  font-size: 13px !important;
}

/* PDP main gallery: white UPVC tone — the hero product view */
.pdp-gallery__main.tone-1 {
  /* DESIGN-SPEC §10 — product photography replaces this block */
  background: linear-gradient(145deg, #e8edf2 0%, #cdd8e4 50%, #b8c9da 100%);
}
.pdp-gallery__main .pdp-gallery__main-img {
  color: var(--navy-500);
  font-size: 13px;
  font-weight: 600;
}

/* PDP thumbnail swatches — evoke UPVC colour variants */
.pdp-gallery__thumb.tone-1 { background: linear-gradient(135deg, #eaf0f5, #cdd8e6); } /* white UPVC */
.pdp-gallery__thumb.tone-2 { background: linear-gradient(135deg, #f0ece3, #d9d0bf); } /* cream UPVC */
.pdp-gallery__thumb.tone-3 { background: linear-gradient(135deg, #b0b8c0, #8d9aa7); } /* grey UPVC */
.pdp-gallery__thumb.tone-4 { background: linear-gradient(135deg, #2a2a2a, #444);     } /* black UPVC */

/* Category card image swatches — UPVC product tones per category.
   Overrides the navy-only tones in styles.css with more evocative palettes.
   Kept subtle so text remains readable.
   DESIGN-SPEC §10 — category photography replaces these panels. */
.cat__img[data-tone="1"]  { background: linear-gradient(150deg, #2b5481 0%, #3f6ea3 60%, #7ba3c4 100%); } /* Gutter Systems — steel blue */
.cat__img[data-tone="2"]  { background: linear-gradient(150deg, #e8edf2 0%, #c2d0de 100%); color: var(--navy); } /* Screws — white UPVC */
.cat__img[data-tone="3"]  { background: linear-gradient(150deg, #b0b8c0 0%, #8d9aa7 100%); }  /* Accessories — grey */
.cat__img[data-tone="4"]  { background: linear-gradient(150deg, #c8b89a 0%, #a89070 100%); }  /* Corners & Joints — oak tone */
.cat__img[data-tone="5"]  { background: linear-gradient(150deg, #eaf0f5 0%, #becfdf 100%); }  /* Window Trims — white UPVC */
.cat__img[data-tone="6"]  { background: linear-gradient(150deg, #7a4e30 0%, #a06840 100%); }  /* Capping Fascia — rosewood */
.cat__img[data-tone="7"]  { background: linear-gradient(150deg, #e4e8ec 0%, #c8d4dc 100%); }  /* Solid Soffit — off-white */
.cat__img[data-tone="8"]  { background: linear-gradient(150deg, #d4dce4 0%, #b0bec8 100%); }  /* Vented Soffit — light grey */
.cat__img[data-tone="9"]  { background: linear-gradient(150deg, #1b3a5b 0%, #2b5481 100%); }  /* Full Replacement — navy */
.cat__img[data-tone="10"] { background: linear-gradient(150deg, #4a3828 0%, #6b5240 100%); }  /* Roofing Supplies — slate/felt */
.cat__img[data-tone="11"] { background: linear-gradient(150deg, #8d6e3a 0%, #b08050 100%); }  /* External Cladding — oak */
.cat__img[data-tone="12"] { background: linear-gradient(150deg, #2a2a2a 0%, #555 100%);    }  /* Nails & Pins — black */
.cat__img[data-tone="13"] { background: linear-gradient(150deg, #f5f0e8 0%, #ddd5c4 100%); }  /* Cleaning — cream */
.cat__img[data-tone="14"] { background: linear-gradient(150deg, #3a4a5c 0%, #566c83 100%); }  /* Glues — slate */
.cat__img[data-tone="15"] { background: linear-gradient(150deg, #d0dae2 0%, #b4c4d0 100%); }  /* Hollow Soffit — pale blue-grey */

/* Product card image swatches (shop / search / cart thumbs)
   DESIGN-SPEC §10 — product photography replaces these blocks */
.tone-1 { background: linear-gradient(150deg, #e8edf2 0%, #c2d0de 100%); } /* white UPVC */
.tone-2 { background: linear-gradient(150deg, #f0ece3 0%, #d4c8b2 100%); } /* cream UPVC */
.tone-3 { background: linear-gradient(150deg, #b8c2cc 0%, #8d9aa7 100%); } /* grey UPVC */
.tone-4 { background: linear-gradient(150deg, #2a2a2a 0%, #4a4a4a 100%); } /* black UPVC */
.tone-5 { background: linear-gradient(150deg, #7a4e30 0%, #9e6440 100%); } /* rosewood */
.tone-6 { background: linear-gradient(150deg, #4e6e4e 0%, #3a5a3a 100%); } /* chartwell green */

/* Cart thumbnail swatches inherit .tone-* above — no extra rules needed */

/* For light-toned product placeholders (white/cream UPVC), override the
   inline white text labels to a readable navy-muted colour */
.product-card__img-wrap.tone-1 span,
.product-card__img-wrap.tone-2 span:not(.product-card__oos-overlay span):not(.cart-count) {
  color: rgba(43,84,129,.45) !important;
}
.product-card__img-wrap.tone-1 .product-card__wishlist,
.product-card__img-wrap.tone-2 .product-card__wishlist {
  color: var(--muted);
}

/* Checkout summary item thumbnails */
.checkout-summary-item__thumb.tone-1 { background: linear-gradient(135deg, #e8edf2, #c2d0de); }
.checkout-summary-item__thumb.tone-3 { background: linear-gradient(135deg, #b8c2cc, #8d9aa7); }
.checkout-summary-item__thumb.tone-5 { background: linear-gradient(135deg, #7a4e30, #9e6440); }

/* Placeholder caption label — small, unobtrusive */
.swatch-caption {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .3px;
  pointer-events: none;
}
/* Dark-bg captions (use white) vs light-bg (use navy) */
.swatch-caption--light {
  color: rgba(43,84,129,.55);
}

/* ============================================================
   RESPONSIVE — pages.css breakpoints
   (mirrors the pattern in styles.css)
   ============================================================ */

@media (max-width: 1024px) {
  .shop-layout   { grid-template-columns: 220px 1fr; gap: 20px; }
  .product-grid  { grid-template-columns: repeat(3, 1fr); }
  .pdp-layout    { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cart-layout   { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .account-layout { grid-template-columns: 200px 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; } /* drawer trigger would show in real build */
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .address-cards { grid-template-columns: 1fr; }
  .account-type-options { grid-template-columns: 1fr; }
  .login-card { padding: 24px; }
  .pdp-panel__title { font-size: 22px; }
}

/* ============================================================
   FF-LIVE-FIXES — un-box body, clean shop grid, WooCommerce loop, mobile
   ============================================================ */
body { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Shop archive: clean full-width product grid (hide legacy widget sidebar) */
.shop-layout { display: block !important; }
.filter-sidebar { display: none !important; }
.shop-layout > main { width: 100% !important; max-width: none !important; }

/* Drop the duplicate result-count / ordering rendered before the grid */
.page-bg > .container > .woocommerce-result-count,
.page-bg > .container > .woocommerce-ordering { display: none !important; }

/* Map the WooCommerce product loop onto our card grid */
ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 22px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
ul.products::before, ul.products::after { content: none !important; display: none !important; }
ul.products > .product, ul.products > li.product { width: auto !important; margin: 0 !important; float: none !important; }

@media (max-width: 1024px){ ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px){
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 480px){ ul.products { grid-template-columns: 1fr !important; } }


/* FF-PAGE-FIXES contain edge-to-edge content on Contact & Window pages */
body.page-id-5529 .elementor, body.page-id-6724 .elementor,
body.page-id-5529 .entry-content, body.page-id-6724 .entry-content {
  max-width: 1180px; margin-left: auto; margin-right: auto;
  padding-left: 20px; padding-right: 20px; box-sizing: border-box;
}

/* FF-FORM-ALIGN align CF7 form flush with heading */
body.page-id-6724 .wpcf7-form, body.page-id-5529 .wpcf7-form { margin-left: 0 !important; margin-right: 0 !important; }

/* FF-NAV-FORM-FIX active-page nav highlight + contact form styling */
.mainnav__inner a[aria-current="page"]{ background: var(--amber) !important; color: var(--navy) !important; border-radius: 6px !important; }
.mainnav__inner a.mainnav__link--shop:not([aria-current="page"]){ background: transparent !important; color: #fff !important; }
body.page-id-5529 .wpcf7-form p{ margin: 0 0 14px; }
body.page-id-5529 .wpcf7-form label{ display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
body.page-id-5529 .wpcf7-form input[type="text"], body.page-id-5529 .wpcf7-form input[type="email"], body.page-id-5529 .wpcf7-form input[type="tel"], body.page-id-5529 .wpcf7-form textarea{ width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
body.page-id-5529 .wpcf7-form textarea{ min-height: 150px; }
body.page-id-5529 .wpcf7-form input[type="submit"]{ background: var(--amber); color: var(--navy); border: 0; border-radius: 8px; padding: 12px 30px; font-weight: 700; font-size: 15px; cursor: pointer; }

/* FF-SHOP-IMG-PAGINATION show full product image + style pagination */
.product-card__img-wrap img{ object-fit: contain !important; background: #fff; }
ul.page-numbers{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; list-style:none; padding:0; margin:28px 0; }
ul.page-numbers li{ list-style:none; margin:0; }
ul.page-numbers a.page-numbers, ul.page-numbers span.page-numbers{ display:inline-block; min-width:40px; text-align:center; padding:9px 13px; border:1px solid var(--line); border-radius:6px; text-decoration:none; color:var(--navy); background:#fff; }
ul.page-numbers span.current{ background:var(--amber); color:var(--navy); border-color:var(--amber); font-weight:700; }

/* FF-PAGINATION-DEDUP belt-and-braces: hide the in-loop manual pagination, keep the after-loop one */
.shop-layout nav.pagination { display: none !important; }

/* FF-MOBILE-NAV — hamburger menu on small screens */
.mainnav__toggle { display: none; }
@media (max-width: 900px) {
  /* override base .mainnav__inner { height:50px; overflow-x:auto } so the
     stacked links aren't trapped/clipped inside a 50px-tall scroll box */
  .mainnav__inner { flex-wrap: wrap; align-items: stretch; height: auto !important; min-height: 50px; overflow: visible !important; }
  .mainnav__toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; background: transparent; border: 0; color: #fff; font-weight: 700; font-size: 16px; padding: 14px 2px; cursor: pointer; }
  .mainnav__toggle-bars { font-size: 22px; line-height: 1; }
  .mainnav__inner > a { display: none; width: 100%; box-sizing: border-box; margin: 0; padding: 14px 6px; border-top: 1px solid rgba(255,255,255,0.14); border-radius: 0 !important; }
  body.ff-nav-open .mainnav__inner > a { display: block; }
}
