/* GlassCapacitors.com: uses the MicroFarads "Brand Refresh" palette */
:root {
  --primary: #1F3A5F; --primary-hover: #14263F; --link: #1F3A5F; --brass: #B8975A; --brass-hover: #A3824A;
  --bg: #F4F6F9; --text: #202020; --muted: #5F6670;
  --surface: #fff; --border: #DDE2E8; --border-strong: #C6CDD6;
  --ok: #1E7B3A; --ok-bg: #E6F4EA; --warn: #9A3B00; --warn-bg: #FDEEE4;
  --mil: #3B3F8F; --mil-bg: #ECEDFA;
  --radius: 8px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --head: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --body: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--body); color: var(--text); background: var(--bg); }
a { color: var(--link); }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, .pn { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { text-decoration: none; color: var(--text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.logo-main { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -.2px; }
.logo-tld { color: var(--primary); }
.logo-sub { font-size: 13px; color: var(--muted); }
.header-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.header-nav a { text-decoration: none; font-weight: 500; }
.cart-soon { color: var(--muted); border: 1px dashed var(--border-strong); padding: 4px 10px; border-radius: 999px; font-size: 13px; }

/* Hero + search */
.hero { background: linear-gradient(135deg, #0E1A2E 0%, #16294A 55%, #1F3A5F 100%); color: #fff; padding: 28px 0 30px; }
.hero h1 { font-size: 32px; margin-bottom: 6px; }
.hero p { margin: 0 0 16px; opacity: .92; max-width: 760px; }
.search { position: relative; max-width: 760px; }
.search input { width: 100%; font: 16px var(--body); padding: 14px 44px 14px 16px; border: 0; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0,0,0,.18); color: var(--text); }
.search input:focus { outline: 3px solid rgba(255,255,255,.6); }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; padding: 4px 8px; }

/* Layout */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 24px; padding-bottom: 40px; align-items: start; }

/* Filters */
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 18px; margin: 0; }
.filters .filters-close, .filters .filters-apply, .toolbar .filters-open { display: none; }
.link-btn { background: none; border: 0; color: var(--link); cursor: pointer; font: 500 14px var(--body); padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.toggles { display: grid; gap: 10px; padding: 8px 0 12px; border-bottom: 1px solid var(--border); }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
.slider { width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; flex: none; transition: background .15s; }
.slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::after { transform: translateX(16px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--primary); outline-offset: 2px; }
.fgroup { min-width: 0; min-inline-size: 0; border: 0; border-bottom: 1px solid var(--border); margin: 0; padding: 12px 0; }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup legend { font-family: var(--head); font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 6px; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.range select { min-width: 0; max-width: 100%; }
.switch { position: relative; }
.range label { font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
select { font: 14px var(--body); padding: 7px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text); width: 100%; }
.checks { display: grid; gap: 2px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }
.check .lbl { flex: 1; }
.check .n { color: var(--muted); font-size: 12px; background: var(--bg); border-radius: 999px; padding: 0 7px; }
.check.zero { opacity: .45; }

/* Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.count { margin: 0; color: var(--muted); }
.count strong { color: var(--text); font-size: 18px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips:empty { display: none; }
.chip { border: 1px solid #B8D7F2; background: #EEF1F6; color: var(--primary-hover); border-radius: 999px; padding: 3px 10px; font: 500 13px var(--body); cursor: pointer; }
.chip:hover { background: #D6E8FA; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 15px var(--body); padding: 10px 16px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.btn-primary:disabled { background: #A9B4C4; cursor: not-allowed; }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: #EEF1F6; color: var(--primary-hover); }
.btn-block { width: 100%; margin-top: 8px; }
.badge { background: var(--primary); color: #fff; border-radius: 999px; font-size: 12px; padding: 0 7px; }

/* Table */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; background: #F9FAFB; border-bottom: 1px solid var(--border); padding: 0; font: 700 13px var(--head); text-transform: uppercase; letter-spacing: .3px; color: var(--muted); white-space: nowrap; }
.ptable th:not(:has(button)) { padding: 10px 12px; }
.ptable th button { all: unset; cursor: pointer; display: block; padding: 10px 12px; }
.ptable th button:hover { color: var(--primary); }
.ptable th button::after { content: ' ↕'; opacity: .35; }
.ptable th button.active { color: var(--primary); }
.ptable th button.active[data-dir="asc"]::after { content: ' ↑'; opacity: 1; }
.ptable th button.active[data-dir="desc"]::after { content: ' ↓'; opacity: 1; }
.ptable th button:focus-visible { outline: 2px solid var(--primary); }
.ptable td { padding: 10px 12px; border-bottom: 1px solid #EEF1F4; vertical-align: top; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: #F7FAFE; }
.ptable .num { text-align: right; }
.ptable th.num button { text-align: right; }
.ptable .pn { font-weight: 500; font-size: 14px; text-decoration: none; }
.ptable .pn:hover { text-decoration: underline; }
.desc { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tag { display: inline-block; font: 500 11px var(--mono); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.tag.mil { background: var(--mil-bg); color: var(--mil); }
.tag.big { font-size: 13px; padding: 3px 8px; margin-left: 0; }
.stock { font-weight: 500; white-space: nowrap; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--warn); font-size: 13px; }
.price { font-weight: 700; display: block; }
.tier-note { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.quote { color: var(--link); font-size: 13px; font-weight: 500; white-space: nowrap; }
.empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 32px; text-align: center; }
.more { text-align: center; margin-top: 16px; }

/* Cards (mobile + similar parts) */
.cards { display: none; gap: 10px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.card:hover { border-color: var(--primary); color: var(--text); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-top .pn { font-weight: 500; color: var(--link); font-size: 15px; word-break: break-all; }
.card-top .pricebox { text-align: right; flex: none; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.card-specs span { background: var(--bg); border-radius: 4px; padding: 2px 8px; font-size: 13px; }
.card-bottom { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.card-bottom .stock { margin-left: auto; }
.card-bottom .tag { margin-left: 0; }

/* Product page */
.product-page { padding-top: 18px; padding-bottom: 48px; }
.crumbs { margin-bottom: 14px; font-size: 14px; }
.crumbs a { text-decoration: none; font-weight: 500; }
.pd-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.pd-main, .buybox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.eyebrow { text-transform: uppercase; letter-spacing: .6px; font: 700 13px var(--head); color: var(--muted); margin: 0 0 4px; }
.pd-pn { font-family: var(--mono); font-weight: 500; font-size: 30px; word-break: break-all; margin-bottom: 4px; }
.pd-spec { font-size: 18px; color: var(--muted); margin: 0 0 12px; }
.pd-main h2, .similar h2 { font-size: 20px; margin-top: 22px; }
.attrs { width: 100%; border-collapse: collapse; }
.attrs th, .attrs td { text-align: left; padding: 9px 0; border-bottom: 1px solid #EEF1F4; vertical-align: top; }
.attrs th { width: 38%; font-weight: 500; color: var(--muted); padding-right: 12px; }
.buybox { position: sticky; top: 76px; }
.stock-line { margin: 0 0 6px; font-size: 16px; }
.big-price { font-size: 28px; font-weight: 700; margin: 0 0 10px; font-family: var(--head); }
.big-price span { font: 400 14px var(--body); color: var(--muted); }
.tiers { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.tiers th, .tiers td { padding: 6px 8px; border-bottom: 1px solid #EEF1F4; text-align: left; }
.tiers th { font: 700 12px var(--head); text-transform: uppercase; color: var(--muted); background: #F9FAFB; }
.tiers .num { text-align: right; }
.quote-only { background: var(--bg); padding: 10px; border-radius: 6px; font-size: 14px; }
.qty-label { display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.qty-label input { width: 110px; font: 15px var(--body); padding: 8px; border: 1px solid var(--border-strong); border-radius: 6px; }
.line-total { min-height: 1.5em; margin: 8px 0 4px; text-align: right; font-size: 14px; }
.similar { margin-top: 28px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

/* Catalog: slim hero */
.hero-slim { padding: 20px 0 22px; }
.hero-slim h1 { font-size: 28px; margin-bottom: 12px; }

/* Landing page */
.hero-landing { padding: 64px 0 56px; }
.hero-landing h1 { font-size: 46px; margin-bottom: 12px; letter-spacing: -.3px; }
.hero-landing .hero-lead { font-size: 20px; font-weight: 500; margin: 0 0 6px; opacity: 1; }
.hero-landing .hero-sub { font-size: 16px; margin: 0 0 26px; }
.search-lg { display: flex; gap: 8px; max-width: 720px; }
.search-lg input { flex: 1; min-width: 0; font-size: 18px; padding: 16px 18px; }
.search-go { font-size: 17px; padding: 0 26px; box-shadow: 0 4px 14px rgba(0,0,0,.18); background: var(--brass); color: #0E1A2E; font-weight: 600; }
.search-go:hover { background: var(--brass-hover) !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #EEF1F6; color: var(--primary-hover); }
.lp-section { padding: 48px 0 8px; }
.lp-h2 { font-size: 28px; margin-bottom: 20px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.shop-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.shop-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 12px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg); color: var(--text); text-decoration: none; font: 700 16px var(--head); }
.tile:hover { border-color: var(--primary); background: #EEF1F6; color: var(--primary-hover); }
.tile-mil { color: var(--mil); }
.lp-why .why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-item { border-top: 3px solid var(--primary); background: var(--surface); padding: 16px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.why-item h3 { font-size: 18px; margin-bottom: 4px; }
.why-item p { margin: 0; color: var(--muted); }
.lp-more { margin: 16px 0 0; }
.lp-more a { font-weight: 500; text-decoration: none; }
.lp-more a:hover { text-decoration: underline; }
.use-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use-grid li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-weight: 500; }
.use-grid svg { flex: none; width: 32px; height: 32px; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta-band { margin-top: 48px; background: linear-gradient(135deg, #0E1A2E 0%, #16294A 55%, #1F3A5F 100%); color: #fff; padding: 40px 0; text-align: center; }
.cta-band h2 { font-size: 28px; margin-bottom: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.landing .site-footer { border-top: 0; }

/* About page */
.about-page { padding: 28px 0 48px; max-width: 760px; }
.about-page h1 { font-size: 32px; margin-bottom: 12px; }
.about-page h2 { font-size: 20px; margin-top: 28px; margin-bottom: 8px; }
.about-page p { margin: 0 0 12px; }
.about-page ul { margin: 0 0 8px; padding-left: 1.25em; }
.about-page li { margin-bottom: 6px; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px !important; }
.about-quote { font-weight: 500; text-decoration: none; }
.about-quote:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 24px; font-size: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer .footer-blurb { margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ptable th:nth-child(6), .ptable td:nth-child(6) { display: none; }   /* leads / lead config */
}
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .toolbar .filters-open { display: inline-flex; }
  body.show-filters { overflow: hidden; }
  body.show-filters .filters { display: block; position: fixed; inset: 0; top: 0; max-height: none; border-radius: 0; z-index: 50; padding: 16px 20px 0; }
  body.show-filters .filters .filters-close { display: block; background: none; border: 0; font-size: 28px; cursor: pointer; line-height: 1; }
  body.show-filters .filters .filters-apply { display: flex; position: sticky; bottom: 0; width: 100%; margin: 8px 0 0; box-shadow: 0 -12px 12px 4px #fff; z-index: 2; }
  body.show-filters .filters::after { content: ''; display: block; height: 16px; }
  .pd-grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
}
@media (max-width: 760px) {
  .table-wrap { display: none; }
  .cards { display: grid; }
  .hero { padding: 18px 0 20px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .wrap { padding: 0 14px; }
  .header-inner { height: 54px; }
  .logo-main { font-size: 19px; }
  .logo-sub { font-size: 12px; }
  .cart-soon { display: none; }
  .header-nav { font-size: 13px; }
  .toolbar { display: grid; grid-template-columns: auto 1fr; }
  .toolbar .count { grid-column: 1 / -1; order: -1; }
  .sort { justify-content: flex-end; }
  .pd-main, .buybox { padding: 16px; }
  .pd-pn { font-size: 24px; }
  .about-page { padding: 20px 0 36px; }
  .about-page h1 { font-size: 24px; }
}
@media (max-width: 1000px) {
  .lp-why .why-grid, .use-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero-landing { padding: 36px 0 32px; }
  .hero-landing h1 { font-size: 32px; }
  .hero-landing .hero-lead { font-size: 17px; }
  .hero-landing .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .hero-slim h1 { font-size: 22px; margin-bottom: 10px; }
  .search-lg { flex-direction: column; }
  .search-lg input { font-size: 16px; padding: 14px 16px; }
  .search-go { padding: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .lp-section { padding-top: 32px; }
  .lp-h2 { font-size: 24px; margin-bottom: 14px; }
  .lp-why .why-grid, .use-grid { grid-template-columns: 1fr; gap: 10px; }
  .cta-band { margin-top: 32px; padding: 32px 0; }
  .cta-band h2 { font-size: 24px; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* Landing headline: two lines */
.hero h1 .h1-main, .hero h1 .h1-sub { display: block; }
.hero h1 .h1-main { font-size: 44px; line-height: 1.1; }
.hero h1 .h1-sub { font-size: 30px; line-height: 1.2; font-weight: 500; opacity: .92; margin-top: 2px; }
@media (max-width: 640px) {
  .hero h1 .h1-main { font-size: 32px; }
  .hero h1 .h1-sub { font-size: 22px; }
}

/* navy + brass trial */
.hero, .cta-band { border-bottom: 3px solid var(--brass); }
.cta-band { border-top: 3px solid var(--brass); }
.hero h1 { letter-spacing: .3px; }
.logo-tld { color: #A3824A; }

/* ---------- Cart & checkout (phase 2) ---------- */
.cart-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.cart-link:hover { border-color: var(--primary); }
.cart-count { background: var(--brass); color: #0E1A2E; border-radius: 999px; min-width: 20px; padding: 0 6px; font: 700 12px/20px var(--body); text-align: center; }
.btn-add { margin-top: 6px; font: 500 12px var(--body); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; white-space: nowrap; }
.btn-add:hover { background: #EEF1F6; }
.btn-add.added { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.added-msg { font-size: 14px; color: var(--ok); margin: 8px 0 0; min-height: 1.4em; }
.cart-page h1 { font-family: var(--head); margin: 8px 0 16px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.cart-table th { text-align: left; background: #F9FAFB; padding: 10px 12px; border-bottom: 1px solid var(--border); font: 700 12px var(--head); text-transform: uppercase; color: var(--muted); }
.cart-table td { padding: 12px; border-bottom: 1px solid #EEF1F4; vertical-align: top; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table input[type=number] { width: 80px; font: 14px var(--body); padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; }
.cart-table .breakdown { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.linkbtn { all: unset; cursor: pointer; color: var(--link); font-size: 13px; text-decoration: underline; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 76px; }
.summary .row { display: flex; justify-content: space-between; margin: 0 0 8px; }
.summary .total { font: 700 20px var(--head); }
.min-msg { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.min-ok { background: var(--ok-bg); color: var(--ok); border-radius: 6px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.err-msg { color: var(--warn); font-size: 14px; margin: 8px 0 0; }
.notice-page { max-width: 640px; margin: 40px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .table-wrap.cart-wrap { display: block; }
  .header-nav { gap: 10px; }
  .cart-link { padding: 3px 8px; font-size: 13px; }
  .header-nav a[data-quote-link] { display: none; }
}
@media (max-width: 860px) {
  .cart-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--border); }
  .cart-table td { padding: 0; border: 0; }
  .cart-table td.c-part { grid-column: 1 / -1; }
}

/* Preview / test-mode banner (js/site-env.js; never shown on glasscapacitors.com) */
.preview-banner { background: var(--primary); color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; border-bottom: 2px solid var(--brass); }
.preview-banner strong { color: var(--brass); font-weight: 700; }
.preview-banner .mono { font-family: var(--mono); letter-spacing: .5px; }
.preview-banner .pb-nowrap, .preview-banner .pb-card { white-space: nowrap; }   /* never split the test card number */
@media (max-width: 420px) { .preview-banner { font-size: 12px; padding: 5px 8px; line-height: 1.45; } .preview-banner .mono { letter-spacing: 0; } }

/* Shipping chooser (cart page) */
.ship-chooser { border: 0; padding: 0; margin: 14px 0 12px; min-width: 0; }
.ship-chooser legend { font: 700 15px var(--head); color: var(--primary); margin-bottom: 8px; padding: 0; }
.ship-opt { display: grid; grid-template-columns: 20px 1fr; gap: 2px 8px; align-items: start; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin: 0 0 8px; cursor: pointer; background: #fff; }
.ship-opt.on { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--brass); background: #F7F9FC; }
.ship-opt input { margin: 3px 0 0; accent-color: var(--primary); }
.ship-main { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; }
.ship-price { white-space: nowrap; font-weight: 700; }
.ship-opt .ship-note { grid-column: 2; font-size: 12px; line-height: 1.4; }
.ups-fields { border: 1px solid var(--primary); border-radius: 6px; padding: 10px 12px; margin: -2px 0 8px; background: #F7F9FC; }
.ups-fields label { display: block; font-size: 13px; font-weight: 500; margin: 4px 0 4px; }
.ups-fields input, .ups-fields select { width: 100%; box-sizing: border-box; font: 15px var(--body); padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; }
.ups-fields input { text-transform: uppercase; font-family: var(--mono, monospace); letter-spacing: .08em; }
.ups-fields .err-msg { margin: 4px 0 6px; min-height: 0; }
.duties { background: #FBF6EC; border-left: 3px solid var(--brass); padding: 8px 10px; border-radius: 4px; margin: 6px 0 6px; color: #3D3420; }

/* Shipping & returns page */
.policy-page .lead { font-size: 16px; }
.policy-page h2 { color: var(--primary); border-left: 3px solid var(--brass); padding-left: 10px; }
.policy-table-wrap { display: block; overflow-x: visible; margin: 0 0 14px; }
.policy-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.policy-table th { text-align: left; background: var(--primary); color: #fff; font: 600 13px var(--head); padding: 9px 10px; }
.policy-table td { padding: 10px; border-top: 1px solid var(--border); vertical-align: top; }
.policy-table .num { text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
  .policy-table thead { display: none; }
  .policy-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px; border-top: 1px solid var(--border); }
  .policy-table tr:first-child { border-top: 0; }
  .policy-table td { padding: 0; border: 0; }
  .policy-table td:first-child { grid-column: 1; font-weight: 500; }
  .policy-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; }
  .policy-table td.num { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
