/*
 * STARTEX DESIGN SYSTEM
 * Version: 1.0
 * Track 1 — Foundation
 *
 * This file is the single source of truth for all visual decisions.
 * Every template imports this file. Never hardcode colors, fonts,
 * or spacing values anywhere else — use the variables defined here.
 *
 * Table of contents:
 *   1. Fonts
 *   2. Color tokens
 *   3. Typography scale
 *   4. Spacing & layout
 *   5. Component: Buttons
 *   6. Component: Badges & pills
 *   7. Component: Filter sidebar
 *   8. Component: Spec table
 *   9. Component: Product card
 *  10. Component: Resource item
 *  11. Component: Quote cart
 *  12. Navigation
 *  13. Breadcrumb
 *  14. Footer
 *  15. Utility classes
 */


/* ============================================================
   1. FONTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=DM+Serif+Display&display=swap');

/*
 * Primary UI font:   DM Sans — clean, modern, highly legible at small sizes
 * Display font:      DM Serif Display — editorial weight for product names
 * Logo / wordmark:   Arial / Helvetica Neue — honors the existing brand
 *
 * Never use: Inter, Roboto, system-ui as primary. These read as generic.
 */


/* ============================================================
   2. COLOR TOKENS
   ============================================================ */

:root {

  /* --- Brand blue family --- */
  --color-brand-dark:      #0F2F45;   /* hover states, footer accent */
  --color-brand:           #1B4F72;   /* primary brand blue */
  --color-brand-mid:       #2E6DA4;   /* links, active states, accents */
  --color-brand-bright:    #2E86C8;   /* logo wordmark */
  --color-brand-light:     #EAF1F8;   /* filter pills, badge backgrounds */
  --color-brand-faint:     #F4F8FC;   /* hover tints on interactive items */

  /* --- Ink (text & dark surfaces) --- */
  --color-ink:             #1A1A1A;   /* primary text, dark nav bg */
  --color-ink-mid:         #4A4A4A;   /* secondary text */
  --color-ink-muted:       #888888;   /* labels, metadata, placeholders */
  --color-ink-faint:       #BBBBBB;   /* disabled, decorative rules */

  /* --- Canvas (backgrounds) --- */
  --color-canvas:          #FFFFFF;   /* page background */
  --color-surface:         #F4F6F8;   /* image backgrounds, product card bg */
  --color-surface-mid:     #ECEEF0;   /* sidebar background */
  --color-surface-warm:    #FAFBFC;   /* slight warmth for sidebar */

  /* --- Borders --- */
  --color-border:          rgba(0, 0, 0, 0.09);    /* default hairline */
  --color-border-strong:   rgba(0, 0, 0, 0.16);    /* emphasized rules */
  --color-border-brand:    rgba(27, 79, 114, 0.35); /* brand-colored borders */

  /* --- Semantic: Quick Ship (green) --- */
  --color-qs:              #276234;
  --color-qs-bg:           #EAF3EC;

  /* --- Semantic: Special Order (amber) --- */
  --color-so:              #854F0B;
  --color-so-bg:           #FEF3E2;

  /* --- Semantic: Success, Warning, Danger --- */
  --color-success:         #276234;
  --color-warning:         #854F0B;
  --color-danger:          #A32D2D;

}


/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */

:root {

  /* Font families */
  --font-ui:        'DM Sans', Arial, sans-serif;
  --font-display:   'DM Serif Display', Georgia, serif;
  --font-logo:      Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono:      'Courier New', Courier, monospace;

  /* Type scale */
  --text-xs:        11px;   /* metadata, badges, labels */
  --text-sm:        12px;   /* filter labels, breadcrumb, footer links */
  --text-base:      13px;   /* body text, spec values, nav links */
  --text-md:        14px;   /* slightly larger body, card names */
  --text-lg:        16px;   /* subheadings */
  --text-xl:        20px;   /* section headings */
  --text-2xl:       27px;   /* product name (DM Serif) */
  --text-3xl:       36px;   /* hero headings */

  /* Line heights */
  --leading-tight:  1.2;
  --leading-snug:   1.4;
  --leading-normal: 1.55;
  --leading-relaxed:1.7;

  /* Letter spacing */
  --tracking-wide:  0.05em;
  --tracking-wider: 0.09em;
  --tracking-caps:  0.1em;  /* for uppercase labels */

  /* Font weights */
  --weight-light:   300;
  --weight-normal:  400;
  --weight-medium:  500;

}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background: var(--color-canvas);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-ink);
}

/* Product name — display serif */
.product-name,
.pdp-product-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-normal);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

/* Section label — all-caps micro label used throughout */
.label-caps {
  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;
}

/* Category label above product name */
.product-category-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-brand-mid);
  display: block;
  margin-bottom: 7px;
}

/* Links */
a {
  color: var(--color-brand-mid);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-brand); text-decoration: underline; }


/* ============================================================
   4. SPACING & LAYOUT
   ============================================================ */

:root {
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Page layout */
  --sidebar-width:    218px;
  --spec-panel-width: 400px;
  --page-gutter:       36px;

  /* Component radii */
  --radius-sm:  3px;
  --radius-md:  4px;
  --radius-lg:  6px;
  --radius-pill: 20px;

  /* Transitions */
  --transition-fast: 0.12s ease;
  --transition-base: 0.18s ease;
}

/* Hairline rules */
.rule {
  border: none;
  border-top: 0.5px solid var(--color-border-strong);
  margin: var(--space-5) 0;
}
.rule--light {
  border-top-color: var(--color-border);
}


/* ============================================================
   5. COMPONENT: BUTTONS
   ============================================================ */

/*
 * Two button variants:
 *   .btn-primary   — Add to Quote. Dark fill. The dominant action.
 *   .btn-secondary — Download Spec Sheet. Ghost/outline. Secondary action.
 *
 * Never use blue as the primary button color.
 * The brand blue is for links and accents, not CTAs.
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-ink);
  color: #ffffff;
  border-color: var(--color-ink);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border-strong);
  padding: 11px 20px;
}
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--color-brand-mid);
  color: var(--color-brand-mid);
  text-decoration: none;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2) + 1px; /* 9px */
  gap: 9px;
  margin-bottom: var(--space-6);
}

/* Icon inside button */
.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* ============================================================
   6. COMPONENT: BADGES & PILLS
   ============================================================ */

/*
 * Badges: small status indicators — Quick Ship, Special Order
 * Pills:  active filter tags with × remove affordance
 */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  line-height: 1;
  white-space: nowrap;
}

/* Dot before badge text */
.badge--dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge--quickship {
  background: var(--color-qs-bg);
  color: var(--color-qs);
}
.badge--quickship::before { background: var(--color-qs); }

.badge--special-order {
  background: var(--color-so-bg);
  color: var(--color-so);
}
.badge--special-order::before { background: var(--color-so); }

.badge--closeout {
  background: var(--color-so-bg);
  color: var(--color-so);
  opacity: 0.85;
}
.badge--closeout::before { background: var(--color-so); }

/* Active filter pills (in sidebar and above results) */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 3px 7px 3px 9px;
  border-radius: var(--radius-pill);
  cursor: default;
  white-space: nowrap;
}

.filter-pill__remove {
  cursor: pointer;
  opacity: 0.55;
  font-size: 12px;
  line-height: 1;
  padding: 0 1px;
  transition: opacity var(--transition-fast);
}
.filter-pill__remove:hover { opacity: 1; }

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 0.5px solid var(--color-border);
}


/* ============================================================
   7. COMPONENT: FILTER SIDEBAR
   ============================================================ */

.filter-sidebar {
  width: var(--sidebar-width);
  border-right: 0.5px solid var(--color-border);
  background: var(--color-surface-warm);
  position: sticky;
  top: 54px;
  height: calc(100vh - 54px);
  overflow-y: auto;
  padding: 20px 16px;
  flex-shrink: 0;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-track { background: transparent; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 2px; }

.filter-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.filter-sidebar__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.filter-sidebar__reset {
  font-size: var(--text-xs);
  font-family: var(--font-ui);
  color: var(--color-brand-mid);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.filter-sidebar__reset:hover { text-decoration: underline; }

/* Filter group */
.filter-group {
  margin-bottom: var(--space-4);
}

.filter-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 0.5px solid var(--color-border);
  margin-bottom: var(--space-2);
  cursor: pointer;
  user-select: none;
}

.filter-group__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}

.filter-group__count {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

/* Hidden contextual group — toggled by JS */
.filter-group--hidden { display: none; }

/* Filter item row */
.filter-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3.5px 0;
  cursor: pointer;
}
.filter-item:hover .filter-checkbox { border-color: var(--color-brand-mid); }

/* Hide native checkbox inside filter items */
.filter-item input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

/* Custom checkbox */
.filter-checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  position: relative;
}

.filter-checkbox--checked {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.filter-checkbox--checked::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #ffffff;
  border-bottom: 1.5px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.filter-label {
  font-size: var(--text-sm);
  color: var(--color-ink-mid);
  flex: 1;
  line-height: 1.4;
}
.filter-label--active {
  color: var(--color-brand-dark);
  font-weight: var(--weight-medium);
}

.filter-count {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}


/* ============================================================
   8. COMPONENT: SPEC TABLE
   ============================================================ */

/*
 * Open layout — no card container, no gray background.
 * Specs sit directly on the white page with hairline row dividers.
 * This is the key aesthetic decision that separates this from
 * a generic WooCommerce PDP.
 */

.spec-section {
  margin-bottom: var(--space-5);
}

.spec-section__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-3);
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  word-break: normal;
  overflow-wrap: break-word;
}

.spec-table tr {
  border-bottom: 0.5px solid var(--color-border);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: 8px 0;
  vertical-align: top;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.spec-table th,
.spec-table td:first-child {
  color: var(--color-ink-muted);
  width: 45%;
  padding: 8px var(--space-3) 8px 0;
  font-weight: var(--weight-normal);
  text-align: left;
  vertical-align: top;
  font-size: var(--text-base);
}

.spec-table td:last-child {
  color: var(--color-ink);
  font-weight: var(--weight-medium);
}

/* Expandable below-fold specs toggle */
.spec-toggle {
  margin-top: var(--space-1);
}

.spec-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  color: var(--color-brand-mid);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  font-family: var(--font-ui);
  user-select: none;
  outline: none;
  transition: color var(--transition-fast);
}
.spec-toggle__btn:hover { color: var(--color-brand); }

.spec-toggle__icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  line-height: 1;
}

.spec-below-fold {
  display: none;
  margin-top: var(--space-4);
}
.spec-below-fold.is-open { display: block; }


/* ============================================================
   9. COMPONENT: PRODUCT CARD (PLP)
   ============================================================ */

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  max-width: 320px;
  width: 100%;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.product-card__image img,
.woocommerce .product-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: opacity 0.15s ease;
  display: block;
}

.product-card:hover .product-card__image img {
  opacity: 0.88;
}

/* Badge in corner of card image */
.product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}

.product-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__collection {
  font-size: 11px;
  color: var(--color-brand-mid);
  margin-bottom: 2px;
}

.product-card__sku {
  font-size: 11px;
  color: var(--color-ink-muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
}


/* ============================================================
   10. COMPONENT: RESOURCE ITEM (Downloads)
   ============================================================ */

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px 12px;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-ink);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}
.resource-item:hover:not(.resource-item--unavailable) {
  border-color: var(--color-brand-mid);
  background: var(--color-brand-faint);
  text-decoration: none;
}

.resource-item--unavailable {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

.resource-item__icon {
  width: 28px;
  height: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-item__icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-ink-muted);
}

.resource-item__info { flex: 1; min-width: 0; }

.resource-item__name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  display: block;
}

.resource-item__desc {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  display: block;
}

.resource-item__action {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-brand-mid);
  white-space: nowrap;
  flex-shrink: 0;
}

.resource-item__action--na {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ============================================================
   11. COMPONENT: QUOTE CART
   ============================================================ */

/* Quote counter in nav */
.quote-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-base);
  font-family: var(--font-ui);
  font-weight: var(--weight-normal);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: color var(--transition-fast);
  text-decoration: none;
  padding: 4px 0;
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  outline: none;
  line-height: 1;
}
.quote-counter:hover { color: #ffffff; }

.quote-counter__badge {
  background: var(--color-brand-mid);
  color: #ffffff;
  font-size: 10px;
  font-weight: var(--weight-medium);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Quote slide-out tray */
.quote-tray {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: var(--color-canvas);
  border-left: 0.5px solid var(--color-border-strong);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.quote-tray.is-open { transform: translateX(0); }

.quote-tray__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 0.5px solid var(--color-border);
}

.quote-tray__title {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}

.quote-tray__close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-ink-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.quote-tray__close:hover { background: var(--color-surface); color: var(--color-ink); }

.quote-tray__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}

.quote-tray__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-ink-muted);
  font-size: var(--text-base);
  gap: var(--space-3);
}

/* Individual item in tray */
.quote-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--color-border);
  align-items: flex-start;
}
.quote-item:last-child { border-bottom: none; }

.quote-item__image {
  width: 56px;
  height: 56px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-item__image img { width: 100%; height: 100%; object-fit: contain; }

.quote-item__info { flex: 1; min-width: 0; }

.quote-item__name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  line-height: var(--leading-snug);
  margin-bottom: 3px;
}

.quote-item__sku {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

/* Qty stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 0.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: var(--space-2);
}

.qty-stepper button {
  width: 26px;
  height: 26px;
  background: var(--color-surface);
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.qty-stepper button:hover { background: var(--color-surface-mid); }

.qty-stepper__value {
  width: 32px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  border: none;
  border-left: 0.5px solid var(--color-border-strong);
  border-right: 0.5px solid var(--color-border-strong);
  padding: 0;
  height: 26px;
  line-height: 26px;
  background: var(--color-canvas);
}

.quote-item__remove {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  cursor: pointer;
  padding: 2px 0;
  flex-shrink: 0;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}
.quote-item__remove:hover { color: var(--color-danger); }

/* Tray footer */
.quote-tray__footer {
  padding: var(--space-5) var(--space-6);
  border-top: 0.5px solid var(--color-border);
}

.quote-tray__summary {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-4);
}

.quote-tray__summary strong {
  color: var(--color-ink);
  font-weight: var(--weight-medium);
}

/* Overlay backdrop */
.tray-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.tray-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}


/* ============================================================
   12. NAVIGATION
   ============================================================ */

.site-nav {
  background: var(--color-ink);
  width: 100%;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav__logo {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-brand-bright);
  letter-spacing: 0.01em;
  text-transform: lowercase;
  margin-right: auto;
  text-decoration: none;
  line-height: 1;
}
.site-nav__logo:hover { text-decoration: none; color: var(--color-brand-bright); }
.site-nav__logo img { height: 34px; width: auto; display: block; }

.site-nav__search {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  color: var(--color-ink);
  font-size: var(--text-base);
  font-family: var(--font-ui);
  outline: none;
  width: 220px;
  margin-right: var(--space-8);
  transition: box-shadow var(--transition-fast);
}
.site-nav__search::placeholder { color: var(--color-ink-muted); }
.site-nav__search:focus {
  box-shadow: 0 0 0 2px var(--color-brand-mid);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.site-nav__link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  transition: color var(--transition-fast);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.site-nav__link:hover { color: #ffffff; }
.site-nav__link--active { color: #ffffff; border-bottom-color: var(--color-brand-mid); }

.site-nav__divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 var(--space-2);
}

/* When the WP admin bar is present (logged-in users only), offset sticky nav
   so it sits flush below the 32px admin bar rather than hiding behind it. */
body.admin-bar .site-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px;
  }
}


/* ============================================================
   13. BREADCRUMB
   ============================================================ */

.breadcrumb {
  width: 100%;
  border-bottom: 0.5px solid var(--color-border);
  background: var(--color-canvas);
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px var(--page-gutter);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

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

.breadcrumb__separator {
  margin: 0 4px;
  opacity: 0.35;
  font-size: 10px;
}

.breadcrumb__current {
  color: var(--color-ink-mid);
  font-weight: var(--weight-medium);
}


/* ============================================================
   14. FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-ink);
  width: 100%;
}

.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-10) var(--page-gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.site-footer__logo {
  display: block;
  margin-bottom: var(--space-3);
  text-decoration: none;
}
.site-footer__logo img { height: 28px; width: auto; display: block; }

.site-footer__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.42);
  line-height: var(--leading-relaxed);
  max-width: 240px;
}

.site-footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: var(--space-3);
  display: block;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.site-footer__links a:hover { color: #ffffff; }

.site-footer__contact-line {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.52);
  line-height: var(--leading-relaxed);
  margin-bottom: 6px;
}

.site-footer-bottom {
  background: #111111;
  width: 100%;
}

.site-footer-bottom__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 11px var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer-bottom__text {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.30);
}


/* ============================================================
   15. UTILITY CLASSES
   ============================================================ */

/* Display */
.hidden  { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap;
  border-width: 0;
}

/* Text */
.text-muted    { color: var(--color-ink-muted); }
.text-brand    { color: var(--color-brand-mid); }
.text-sm       { font-size: var(--text-sm); }
.text-xs       { font-size: var(--text-xs); }
.font-medium   { font-weight: var(--weight-medium); }

/* Spacing */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }

/* Flex helpers */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.gap-2         { gap: var(--space-2); }
.gap-3         { gap: var(--space-3); }
.gap-4         { gap: var(--space-4); }

/* Divider rule */
.divider {
  border: none;
  border-top: 0.5px solid var(--color-border-strong);
  margin: var(--space-5) 0;
}
.divider--light {
  border-top-color: var(--color-border);
}

/* Page layout helpers */
.page-body {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - 54px - 41px);
}

.page-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
