:root {
  --navy: #10233a;
  --navy-2: #1c3148;
  --ink: #1c1916;
  --muted: #5c564e;
  --paper: #f6f3ee;
  --card: #fffcf8;
  --line: #ddd6cc;
  --copper: #b5632b;
  --copper-2: #8f4c22;
  --ok: #3d5a45;
  --warn-bg: #f4ead6;
  --warn-ink: #5c3d12;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 35, 58, 0.06);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--copper-2); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  background: var(--navy);
  color: #f6f3ee;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-row, .hero-inner, .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  letter-spacing: 0.04em;
}
.logo-oem { font-weight: 700; font-size: 1.05rem; }
.logo-renewed { font-weight: 600; color: #e8c9a8; font-size: 1.05rem; }
.nav { display: flex; gap: 22px; }
.nav a { color: #f6f3ee; text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: #e8c9a8; }

.hero { padding: 64px 0 36px; background: linear-gradient(180deg, #ebe6dc 0%, var(--paper) 100%); }
.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 16ch;
  color: var(--navy);
}
.hero p.lede { margin: 0; max-width: 40rem; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-small { padding: 8px 14px; font-size: 0.92rem; width: 100%; }

.banner {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid #e4d3ad;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 8px auto 0;
  width: min(var(--max), calc(100% - 40px));
  font-size: 0.98rem;
}
.banner[hidden], .live-note[hidden] { display: none; }
.live-note {
  width: min(var(--max), calc(100% - 40px));
  margin: 16px auto 0;
  color: var(--ok);
  font-size: 0.95rem;
}

.catalog { padding: 28px 0 72px; }
.catalog-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 22px; flex-wrap: wrap; }
.catalog h2 { font-family: Fraunces, Georgia, serif; font-size: 1.8rem; margin: 0; color: var(--navy); }
.catalog-sub { color: var(--muted); margin: 6px 0 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-art {
  background: #efeae2;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 12px;
}
.card-art img { width: 78%; height: auto; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.condition { color: var(--ok); font-weight: 700; }
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--navy); }
.specs { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.part { margin: 0; font-size: 0.82rem; color: #7a736b; }
.price-row { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.price { font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.price-note, .stock { font-size: 0.8rem; color: var(--muted); }
.about, .contact { padding: 0 0 72px; }
.about h2, .contact h2 { font-family: Fraunces, Georgia, serif; color: var(--navy); margin: 0 0 10px; }
.about p, .contact p { max-width: 42rem; color: var(--muted); }
address { font-style: normal; color: var(--ink); margin: 12px 0; }
.site-footer {
  background: var(--navy);
  color: #d7d0c6;
  padding: 28px 0 36px;
  font-size: 0.92rem;
}
.site-footer a { color: #e8c9a8; }
.footer-grid { align-items: start; }
.fine { color: #b3aaa0; font-size: 0.85rem; max-width: 36rem; }

.status-error { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 700px) {
  .header-row { flex-wrap: wrap; }
  .hero { padding-top: 40px; }
  .footer-grid { flex-direction: column; }
}

.quote-form { max-width: 42rem; margin: 22px 0 28px; }
.quote-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 16px 18px;
  margin: 0 0 16px;
}
.quote-form legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0 6px;
}
.quote-form .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.quote-form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.92rem; color: var(--navy); font-weight: 600; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form .optional { font-weight: 400; color: var(--muted); }
.quote-form input, .quote-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}
.quote-form input:focus, .quote-form textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: var(--copper);
}
.quote-form input:invalid:user-invalid, .quote-form textarea:invalid:user-invalid { border-color: #a33; }
.quote-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}
.quote-status { margin: 0 0 12px; font-size: 0.95rem; }
.quote-status.ok { color: var(--ok); }
.quote-status.err { color: #8a2b2b; }
.quote-form button[disabled] { opacity: 0.7; }
@media (max-width: 700px) {
  .quote-form .fields { grid-template-columns: 1fr; }
}

.cart-count {
  display: inline-block;
  min-width: 1.2em;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.page { padding: 36px 0 56px; }
.page h1 { margin-top: 0; }
.page h2 { margin-top: 28px; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); margin: 16px 0; }
.cart-table th, .cart-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cart-total { font-size: 1.1rem; }
.qty-input { width: 4.5rem; }
.account-card, .wire-block, .cart-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 14px;
}
.wire-block { white-space: pre-wrap; font-family: inherit; }
.status-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.status-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.status-form input, .status-form select { font: inherit; font-weight: 400; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.saved-addresses { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-body .btn + .btn { margin-left: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.site-header { padding: 12px 0 0; }
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-search {
  flex: 1 1 16rem;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  color: var(--ink);
}
.site-search .search-submit { border-radius: 999px; padding-inline: 16px; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-link { color: #f6f3ee; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.header-link:hover { color: #e8c9a8; }
.nav-toggle {
  display: none;
  background: transparent;
  color: #f6f3ee;
  border: 1px solid #e8c9a8;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
}
.cat-nav { margin-top: 10px; border-top: 1px solid rgba(232, 201, 168, 0.25); }
.cat-nav-row { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 0 12px; }
.cat-nav a { color: #f6f3ee; text-decoration: none; font-size: 0.95rem; }
.cat-nav a:hover { color: #e8c9a8; }
.cat-item { position: relative; }
.cat-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 10rem;
  background: var(--navy-2);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 30;
}
.cat-panel a { display: block; padding: 6px 8px; }
.cat-item:hover .cat-panel, .cat-item:focus-within .cat-panel { display: block; }

.facet-row { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.facet-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facet-label { font-weight: 700; color: var(--navy); margin-right: 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.catalog-tools { display: flex; align-items: center; gap: 16px; }
.sort-label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sort-label select { font: inherit; font-weight: 400; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); }
.catalog-empty { text-align: center; padding: 28px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.item-link { color: inherit; text-decoration: none; }
.item-link:hover { color: var(--copper-2); }

.trust { padding: 8px 0 40px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.trust-grid h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }

.prose { max-width: 46rem; }
.prose h1 { font-family: Fraunces, Georgia, serif; margin-top: 0; }

.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.pdp-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pdp-price { font-size: 1.6rem; font-weight: 700; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.pdp-actions input[type="number"] { width: 4.5rem; padding: 8px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 9rem; color: var(--muted); font-weight: 600; }
.related { margin-top: 40px; }
.crumbs { font-size: 0.92rem; margin: 0 0 16px; color: var(--muted); }
.crumbs a { color: inherit; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #e8c9a8; }

@media (max-width: 800px) {
  .header-top { flex-wrap: wrap; }
  .site-search { order: 3; flex: 1 1 100%; }
  .nav-toggle { display: inline-block; }
  .cat-nav { display: none; }
  .cat-nav.is-open { display: block; }
  .cat-panel { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 0 12px; }
  .trust-grid, .pdp { grid-template-columns: 1fr; }
}

.card-art { background: #fff; display: flex; align-items: center; justify-content: center; }
.card-art img { width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.pdp-media { background: #fff; }
.pdp-media img { width: 100%; height: auto; object-fit: contain; }
.cart-item-cell { display: flex; align-items: center; gap: 10px; }
.cart-thumb { width: 72px; height: 54px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; flex-shrink: 0; }
