:root {
  --navy: #1B2A41;
  --navy-deep: #131E2F;
  --gold: #B8924C;
  --gold-soft: #D9B978;
  --cream: #FAF7F2;
  --paper: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-soft: #EFEAE0;

  --max: 1200px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(27, 42, 65, .04), 0 8px 24px rgba(27, 42, 65, .06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
h1 { font-size: 2.4rem; letter-spacing: .5px; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top utility bar ---------- */
.utility {
  background: var(--navy-deep);
  color: #D8DEE7;
  font-size: .82rem;
}
.utility .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap;
}
.utility a { color: #D8DEE7; }
.utility a:hover { color: var(--gold-soft); }
.utility .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .5px;
  font-size: .72rem;
  text-transform: uppercase;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a.active { background: var(--cream); color: var(--navy); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 10px; border-radius: var(--radius); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy); position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top:  7px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; flex-direction: column; width: 100%; padding: 8px 0; border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .site-header .container { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(19,30,47,.78), rgba(27,42,65,.55)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #243553 0%, #1B2A41 100%);
  color: #fff;
  padding: 96px 0 88px;
  border-bottom: 4px solid var(--gold);
}
.hero h1 { color: #fff; font-size: 3rem; max-width: 780px; }
.hero .lede { color: #E2E6EE; font-size: 1.15rem; max-width: 640px; }
.hero .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .est { display: inline-block; color: var(--gold-soft); letter-spacing: 4px; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-navy:hover { background: var(--navy); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { display: inline-block; color: var(--gold); letter-spacing: 4px; text-transform: uppercase; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.section-head p { max-width: 640px; margin: 8px auto 0; color: var(--muted); }

.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-navy  { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #D8DEE7; }

/* ---------- Category grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card .thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #E8E2D2 0%, #F4EFE3 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  border-bottom: 1px solid var(--line-soft);
}
.card .thumb svg { width: 56px; height: 56px; opacity: .85; }
.card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(27,42,65,.06) 0 1px, transparent 1px 8px);
  pointer-events: none;
}
/* Hide the woven-pattern overlay when a real category photo is present */
.card .thumb:has(img)::after { display: none; }
.card .body { padding: 18px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Value props strip ---------- */
.values {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.value {
  text-align: center;
  padding: 20px;
}
.value .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--cream);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.value h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Resources ---------- */
.resources { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.resource {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.resource .ico { color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.resource h3 { font-size: 1.05rem; margin-bottom: 4px; }
.resource p { font-size: .9rem; margin: 0 0 8px; }
.resource a { font-weight: 600; font-size: .9rem; color: var(--navy); border-bottom: 1px solid var(--gold); }

/* ---------- Sub-categories list (category pages) ---------- */
.sublist { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.sublist li a {
  display: block;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, color .15s, background .15s;
}
.sublist li a:hover { border-color: var(--gold); color: var(--navy); background: #FFFDF8; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--gold);
}
.page-head h1 { color: #fff; margin-bottom: 8px; }
.page-head .crumb { color: var(--gold-soft); font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.page-head p { color: #D8DEE7; max-width: 720px; margin: 0; }

/* ---------- Two-column layout ---------- */
.two-col { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { margin-top: 0; }
.info-card dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: .95rem; }
.info-card dt { color: var(--muted); font-weight: 500; }
.info-card dd { margin: 0; color: var(--ink); }

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: var(--paper);
  color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,76,.18);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #C8CFDA;
  padding: 56px 0 24px;
  margin-top: 0;
}
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #C8CFDA; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-brand p { color: #9CA5B3; font-size: .9rem; max-width: 320px; }
.footer-brand img { height: 54px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .92; }
.legal {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 36px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: #8B94A3;
}

/* ---------- Category intro copy ---------- */
.category-intro {
  max-width: 1100px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: 40px;
  align-items: start;
}
/* When the image fails to load and onerror removes it, the intro
   gracefully reverts to a single-column, narrower text-only layout. */
.category-intro:not(:has(.category-intro-img)) {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.category-intro-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}
.category-intro-text p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1.1em;
}
.category-intro-text p:first-child {
  font-size: 1.12rem;
  color: var(--ink);
}
.category-intro-text p:last-child { margin-bottom: 0; }
.category-intro > p { /* legacy single-column markup still works */
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1.1em;
}
.category-intro > p:first-child { font-size: 1.12rem; color: var(--ink); }
.category-intro > p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .category-intro { grid-template-columns: 1fr; max-width: 760px; gap: 24px; }
}

/* ---------- Product groups & cards (data-driven) ---------- */
.product-group { margin-bottom: 56px; }
.product-group:last-child { margin-bottom: 0; }
.product-group-head { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.product-group-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.product-group-head p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 720px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-soft); }

.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ECE5D2 0%, #F6F1E4 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .ph-svg { width: 56px; height: 56px; opacity: .85; }
.product-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(27,42,65,.06) 0 1px, transparent 1px 8px);
  pointer-events: none;
}

.tier-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--navy);
  color: #fff;
  font-size: .68rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 1;
}
.tier-badge.tier-classic   { background: var(--navy); }
.tier-badge.tier-signature { background: var(--gold); color: var(--navy-deep); }
.tier-badge.tier-reserve   { background: linear-gradient(135deg, #1B2A41 0%, #B8924C 100%); }

.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-body .sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.product-body h3 { margin: 0 0 10px; font-size: 1rem; line-height: 1.3; }
.product-specs {
  margin: 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 10px;
  font-size: .82rem;
}
.product-specs dt { color: var(--muted); font-weight: 500; }
.product-specs dd { margin: 0; color: var(--ink); }
.product-note { margin-top: 10px; font-size: .82rem; color: var(--muted); }

.empty-state {
  padding: 32px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

/* ---------- Product card hover when used as a link ---------- */
a.product-card { color: inherit; text-decoration: none; }
a.product-card h3 { color: var(--navy); }
a.product-card:hover h3 { color: var(--navy); }

/* ---------- Product detail page ---------- */
.detail-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; gap: 24px; } }

.detail-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ECE5D2 0%, #F6F1E4 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image .ph-svg { width: 96px; height: 96px; opacity: .7; }
.detail-image::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(27,42,65,.05) 0 1px, transparent 1px 10px);
  pointer-events: none;
}

.detail-info h1 {
  font-size: 1.9rem;
  margin: 8px 0 6px;
}
.detail-eyebrow {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: flex; align-items: center; flex-wrap: wrap;
}
.detail-sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.detail-desc h3 {
  font-family: var(--sans);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin: 18px 0 8px;
}
.detail-desc p { color: var(--ink-soft); }

.detail-specs {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .92rem;
}
.detail-specs dt { color: var(--muted); font-weight: 500; }
.detail-specs dd { margin: 0; color: var(--ink); }
.detail-specs .sku-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
  font-size: .85rem;
}

.detail-note {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #FFF8E7;
  border-left: 3px solid var(--gold);
  font-size: .9rem;
  color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.variant-count {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.variants-section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.variants-title { margin: 0 0 6px; font-size: 1.5rem; }
.variants-help { margin: 0 0 18px; font-size: .9rem; }
.variants-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.variants-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.variants-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: var(--cream);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.variants-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
}
.variants-table tbody tr:last-child td { border-bottom: none; }
.variants-table tbody tr:hover { background: #FFFDF8; }
.variants-table .sku-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  background: var(--cream);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.variants-table .variant-cta { text-align: right; white-space: nowrap; }
.variants-table .variant-cta a {
  font-weight: 600;
  font-size: .85rem;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.variants-table .variant-cta a:hover { color: var(--gold); }

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.detail-back { margin-top: 12px; font-size: .9rem; }
.detail-back a { color: var(--muted); }
.detail-back a:hover { color: var(--gold); }

/* ---------- Misc utilities ---------- */
.center { text-align: center; }
.muted  { color: var(--muted); }
.spacer-sm { height: 24px; }
.divider { height: 1px; background: var(--line); margin: 28px 0; border: 0; }

/* =========================================================================
   QUOTE CART
   ========================================================================= */

/* "Quote" button + live count badge (injected by quote-cart.js).
   Lives in the top utility bar, beside the phone/email. */
.quote-link {
  display: inline-flex; align-items: center; gap: 6px;
  vertical-align: middle;
  margin-left: 16px;
  padding: 3px 11px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: #fff;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.quote-link:hover { background: var(--gold); color: var(--navy-deep); }
.quote-link svg { flex: none; }
.quote-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: var(--navy-deep);
  border-radius: 999px;
  font-size: .7rem; font-weight: 700; line-height: 1;
}
.quote-link:hover .quote-count { background: var(--navy-deep); color: #fff; }

/* "+ Add" button on variant rows */
.btn-add-row {
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-family: inherit;
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-add-row:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

/* Toast */
.fm-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--navy-deep); color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  box-shadow: 0 8px 28px rgba(19,30,47,.28);
  font-size: .92rem; font-weight: 500;
  max-width: calc(100vw - 32px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.fm-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Quote builder page */
.quote-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.quote-main-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.quote-main-head h2 { margin: 0; }
.quote-clear {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-family: inherit; font-size: .88rem; text-decoration: underline;
  padding: 4px;
}
.quote-clear:hover { color: var(--gold); }
.quote-summary { font-size: .9rem; margin: 0 0 14px; }

.quote-table-wrap { overflow-x: auto; }
.quote-table { width: 100%; border-collapse: collapse; }
.quote-table th {
  text-align: left; font-family: var(--sans); font-weight: 600;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); border-bottom: 2px solid var(--line);
  padding: 10px 12px;
}
.quote-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qi-name { font-weight: 600; color: var(--navy); }
.qi-variant { font-size: .88rem; color: var(--ink-soft); margin-top: 2px; }
.qi-sku { margin-top: 4px; }
.qi-pack { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button {
  width: 32px; height: 34px; border: 0; background: var(--cream);
  font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--navy);
}
.qty-stepper button:hover { background: var(--gold-soft); }
.qty-stepper input {
  width: 48px; height: 34px; border: 0; text-align: center;
  font-size: .95rem; font-family: var(--sans);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qi-remove-cell { text-align: right; }
.qi-remove {
  width: 30px; height: 30px; border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; cursor: pointer; color: var(--muted);
  font-size: 1.1rem; line-height: 1;
}
.qi-remove:hover { border-color: #C0392B; color: #C0392B; }

.quote-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.quote-empty svg { margin: 0 auto 12px; color: var(--line); }
.quote-empty h3 { margin-bottom: 8px; }
.quote-empty .btn { margin-top: 18px; }

.quote-side .info-card { position: sticky; top: 96px; }
.quote-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-form-actions .btn { flex: 1 1 auto; }
.quote-error { color: #C0392B; font-size: .9rem; font-weight: 500; margin: 4px 0 0; }

@media (max-width: 800px) {
  .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .quote-side .info-card { position: static; }
}
