:root {
  --ink: #0d1521;
  --ink-2: #2a3442;
  --muted: #566070;
  --line: #e3e7ed;
  --bg: #f5f7fa;
  --card: #ffffff;
  --accent: #1f55e0;
  --accent-dark: #1640b0;
  --accent-soft: #eaf0ff;
  --red: #d8342b;
  --ok: #17803d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 21, 33, .05), 0 8px 24px rgba(13, 21, 33, .06);
  --shadow-hover: 0 2px 4px rgba(13, 21, 33, .06), 0 16px 40px rgba(13, 21, 33, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .logo-text, .dept-name, .footer-brand, .price { font-family: 'Space Grotesk', Inter, sans-serif; letter-spacing: -.01em; }
h1 { line-height: 1.1; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.section { padding-top: 44px; padding-bottom: 44px; }
.section-tight { padding-top: 32px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-light { color: #aab4c2; }
.small { font-size: 14px; }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Tints for part illustrations */
.tint-blue { background: var(--t1-bg); color: var(--t1); }
.tint-teal { background: var(--t2-bg); color: var(--t2); }
.tint-orange { background: var(--t3-bg); color: var(--t3); }
.tint-sky { background: var(--t4-bg); color: var(--t4); }

/* Top strip */
.strip { background: var(--strip-bg); color: #fff; font-size: 13px; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; padding-top: 8px; padding-bottom: 8px; }
.strip-item { display: inline-flex; align-items: center; gap: 6px; }
.strip-item svg { width: 16px; height: 16px; color: var(--strip-icon); }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { flex-shrink: 0; display: block; }
.logo-accent { color: #D7263D; font-weight: 500; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-accent { color: #FFB547; }
.logo-text { font-weight: 700; font-size: 23px; }
.header-search { flex: 1; position: relative; display: flex; min-width: 0; }
.header-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.header-search input { flex: 1; min-width: 0; height: 48px; padding: 0 110px 0 44px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg); transition: border-color .15s, background .15s; }
.header-search input:focus { border-color: var(--accent); background: #fff; outline: none; }
.header-search button { position: absolute; right: 5px; top: 5px; height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.help-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; padding: 6px 8px; border-radius: 10px; }
.help-link small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.help-link:hover { background: var(--bg); color: var(--ink); }
.help-link svg { color: var(--accent); }
.cart-link { position: relative; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 12px; text-decoration: none; background: var(--accent); color: #fff; font-weight: 600; }
.cart-link:hover { background: var(--accent-dark); color: #fff; }
.cart-count { position: absolute; top: -6px; left: 30px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--badge); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.dept-nav { border-top: 1px solid var(--line); }
.dept-nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dept-nav a { color: var(--ink-2); text-decoration: none; padding: 12px 14px; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.dept-nav a:hover { color: var(--accent); }
.dept-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.dept-nav a.nav-accent { margin-left: auto; color: var(--accent); }
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow-hover); padding: 8px 16px 16px; display: flex; flex-direction: column; }
.mobile-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }

/* Hero */
.hero { background: var(--hero-bg); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, var(--hero-glow) 0%, transparent 65%); opacity: .45; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); }
.eyebrow svg { width: 16px; height: 16px; }
.eyebrow.light { color: #dbe4ff; }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); max-width: 860px; }
.hl { color: var(--hl); }
.lead { color: #c7d0dd; font-size: 19px; max-width: 680px; margin: 18px 0 0; }
.search-panel { background: #fff; color: var(--ink); border-radius: 20px; padding: 18px; max-width: 980px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.search-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.search-tabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.search-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.hero-search { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-search .search-icon { position: absolute; left: 18px; top: 18px; color: var(--muted); display: flex; }
.hero-search input { flex: 1 1 360px; min-width: 0; height: 58px; padding: 0 18px 0 50px; font: inherit; font-size: 17px; border: 2px solid var(--line); border-radius: 14px; }
.hero-search input:focus { border-color: var(--accent); outline: none; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.popular a { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.popular a:hover { background: #d9e4ff; }

/* Trust */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item strong { display: block; }
.trust-item span { color: var(--muted); font-size: 14px; }
.trust-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Sections */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2, .section h2 { font-size: 28px; margin: 0 0 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.dept-card { background: #fff !important; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s; }
.dept-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.dept-top { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.dept-art { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.dept-card { border-top: 5px solid var(--dc, var(--accent)); }
.tint-blue { --dc: var(--t1); } .tint-teal { --dc: var(--t2); } .tint-orange { --dc: var(--t3); } .tint-sky { --dc: var(--t4); }
.tint-blue .dept-art { background: var(--t1); color: #fff; }
.tint-teal .dept-art { background: var(--t2); color: #fff; }
.tint-orange .dept-art { background: var(--t3); color: #fff; }
.tint-sky .dept-art { background: var(--t4); color: #fff; }
.dept-all { color: var(--dc); }
.dept-name { font-size: 21px; font-weight: 700; }
.dept-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dept-links a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.dept-links a:hover { color: var(--accent); }
.dept-all { margin-top: auto; font-weight: 700; text-decoration: none; }

/* Part types */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.type-tile { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; transition: box-shadow .2s, transform .2s; }
.type-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink); }
.type-art { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Product cards */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-img { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; text-decoration: none; background: #fafbfc; border-bottom: 1px solid var(--line); }
.product-img img { height: 100%; object-fit: contain; }
.part-art { width: 116px; height: 116px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.product-img .tag { position: absolute; top: 12px; left: 12px; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-meta { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.product-body h3 { margin: 0; font-size: 17px; line-height: 1.3; font-family: Inter, sans-serif; font-weight: 700; letter-spacing: 0; }
.product-body h3 a { color: var(--ink); text-decoration: none; }
.product-body h3 a:hover { color: var(--accent); }
.replaces { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.tag-oem { background: var(--oem-bg); color: var(--oem-fg); }
.tag-compat { background: #e3f6ea; color: #136a33; }
.price { font-size: 22px; font-weight: 700; }
.price-lg { font-size: 36px; margin: 14px 0 10px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa6b5; }
.stock.ok { color: var(--ok); }
.stock.ok .dot { background: #22a14c; box-shadow: 0 0 0 3px #d7f2e0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-primary:disabled { background: #9aa6b5; border-color: #9aa6b5; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #243146; color: #fff; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #eef2ff; color: var(--ink); }
.btn-icon svg { width: 18px; height: 18px; }

.notice { background: #fff8e6; border: 1px solid #f3dc9a; color: #5c4400; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 18px; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.steps span:last-child { color: var(--muted); }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--highlight); color: var(--highlight-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }

/* Band */
.band { background: var(--band-bg); color: #fff; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.band h2 { margin: 0 0 8px; font-size: 30px; }
.band p { margin: 0; color: #dbe4ff; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; color: var(--ink-2); }

/* Department page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-head h1 { margin: 0 0 6px; font-size: 36px; }
.page-head p { margin: 0; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: thin; }
.chip { white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-n { opacity: .6; margin-left: 4px; }
.layout-side { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; align-items: flex-start; }
.filters { flex: 1 1 240px; max-width: 280px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 140px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { margin: 0; font-size: 18px; }
.filters-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.facet { border: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.facet legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.side-main { flex: 999 1 560px; min-width: 0; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.sort-form select { height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.empty-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; text-align: center; }

/* Product page */
.product-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; margin-top: 8px; }
.gallery-main { background: #fff; border-radius: 20px; box-shadow: var(--shadow); min-height: 440px; display: flex; align-items: center; justify-content: center; }
.gallery-main .part-art { width: 260px; height: 260px; }
.buybox { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px; align-self: start; position: sticky; top: 140px; }
.product-title { font-size: 30px; margin: 12px 0 6px; }
.product-ids { color: var(--muted); margin: 0; font-size: 15px; }
.ship-box { background: var(--bg); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ship-box p { margin: 0; }
.buy-row { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; height: 58px; }
.stepper button { width: 44px; height: 100%; border: 0; background: #fff; font-size: 22px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--bg); }
.stepper input { width: 48px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks svg { color: var(--accent); flex-shrink: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 28px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel h2 { margin: 0 0 14px; font-size: 22px; }
.panel h3 { margin: 14px 0 4px; font-size: 15px; font-family: Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.panel p { margin: 0; }
.specs { border-collapse: collapse; width: 100%; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 45%; color: var(--muted); font-weight: 600; }

/* Cart, forms, generic cards */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty { padding: 40px; text-align: center; }
.cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-name { flex: 1 1 260px; display: flex; flex-direction: column; }
.cart-name a { font-weight: 700; color: var(--ink); text-decoration: none; }
.cart-qty { display: flex; gap: 8px; }
.qty { width: 80px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.cart-total { font-weight: 700; min-width: 90px; text-align: right; }
.totals { margin-top: 16px; padding: 22px; }
.totals > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 17px; }
.ship-progress { flex-direction: column !important; gap: 6px; padding: 12px 0 4px !important; }
.ship-progress .bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.ship-progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, #22a14c, #3cc46a); border-radius: 999px; }
.ship-progress p { margin: 0; }
.checkout-form, .form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.form { padding: 26px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { min-height: 46px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
fieldset label { flex-direction: row !important; align-items: center; font-weight: 500 !important; }
legend { font-weight: 700; padding: 0 6px; }

/* Admin tables */
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 28px; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: #f0f3f7; }

.prose { line-height: 1.7; }
.prose h2 { margin-top: 30px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #c7d0dd; margin-top: 56px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid #263244; }
.footer-cta h2 { margin: 0 0 6px; color: #fff; font-size: 26px; }
.footer-cta p { margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 32px; font-size: 14px; }
.footer-grid h2 { font-size: 14px; color: #fff; margin: 0 0 10px; font-family: Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid a { display: block; color: #c7d0dd; padding: 4px 0; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid a.footer-email { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 15px; }
.footer-email svg { color: #FFB547; }
.footer-brand { font-weight: 700; font-size: 22px; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid #263244; font-size: 13px; color: #8f9aab; }

/* Responsive */
@media (max-width: 1024px) {
  .hide-md { display: none; }
  .product-page { grid-template-columns: 1fr; }
  .buybox, .filters { position: static; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .mobile-menu { display: block; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .logo-text { font-size: 20px; }
  .logo-mark { width: 38px; height: 41px; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .cart-link { padding: 0 14px; }
  .dept-nav { display: none; }
  .hero-grid { padding-top: 40px; padding-bottom: 48px; }
  .search-panel { padding: 14px; }
  .hero-search .btn { width: 100%; }
  .filters { max-width: none; }
  .gallery-main { min-height: 300px; }
  .section h2, .section-head h2 { font-size: 24px; }
}

/* Colour accents */
.trust { background: var(--trust-bg); border-bottom: 0; }
.trust-item strong { color: var(--trust-ink); }
.trust-item span { color: var(--trust-muted); }
.trust-ic { background: var(--highlight); color: var(--highlight-ink); }
.search-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.popular a { background: var(--accent-soft); color: var(--accent-dark); }
.price { color: var(--price); }
.section-alt { background: var(--alt-bg); }
.type-tile:hover .type-art { background: var(--accent); color: #fff; }
.btn-primary { box-shadow: 0 6px 16px var(--accent-shadow); }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.25); }

/* ---------- Themes ---------- */
body, body[data-theme="fire"] {
  --accent: #ff5a1f; --accent-dark: #e04310; --accent-soft: #ffeee6; --accent-shadow: rgba(255, 90, 31, .28);
  --ink: #0b1733; --hero-bg: linear-gradient(135deg, #0b1733 0%, #13306b 60%, #1b44a0 100%); --hero-glow: #ff5a1f;
  --eyebrow: #ffb48f; --hl: #ff8a50; --logo-bg: linear-gradient(135deg, #ff5a1f, #ff8a3d);
  --band-bg: linear-gradient(120deg, #ff5a1f, #ff8a3d); --strip-bg: #ff5a1f; --strip-icon: #fff;
  --oem-bg: #0b1733; --oem-fg: #fff; --footer-bg: #0b1733; --badge: #0b1733;
  --highlight: #ffd23f; --highlight-ink: #0b1733; --price: #0b1733;
  --trust-bg: #0b1733; --trust-ink: #fff; --trust-muted: #b9c4da; --alt-bg: #fff4ee;
  --t1: #1b44a0; --t1-bg: #e8eeff; --t2: #ff5a1f; --t2-bg: #ffeee6; --t3: #0e9f6e; --t3-bg: #e2f7ee; --t4: #7c3aed; --t4-bg: #f1eaff;
}
body[data-theme="arctic"] {
  --accent: #00a896; --accent-dark: #00806f; --accent-soft: #e0f7f3; --accent-shadow: rgba(0, 168, 150, .28);
  --ink: #06283d; --hero-bg: linear-gradient(135deg, #06283d 0%, #0b4f6c 55%, #00a896 130%); --hero-glow: #ffc531;
  --eyebrow: #7fe7d8; --hl: #ffc531; --logo-bg: linear-gradient(135deg, #00a896, #02c39a);
  --band-bg: linear-gradient(120deg, #06283d, #0b4f6c); --strip-bg: #06283d; --strip-icon: #ffc531;
  --oem-bg: #ffc531; --oem-fg: #06283d; --footer-bg: #06283d; --badge: #ff5a5f;
  --highlight: #ffc531; --highlight-ink: #06283d; --price: #06283d;
  --trust-bg: #00a896; --trust-ink: #fff; --trust-muted: #dcfbf6; --alt-bg: #eefaf8;
  --t1: #0b4f6c; --t1-bg: #e3f0f6; --t2: #00a896; --t2-bg: #e0f7f3; --t3: #f08a24; --t3-bg: #fff1e3; --t4: #e5484d; --t4-bg: #ffeaeb;
}
body[data-theme="maple"] {
  --accent: #d7263d; --accent-dark: #b01b30; --accent-soft: #fde8eb; --accent-shadow: rgba(215, 38, 61, .28);
  --ink: #16181d; --hero-bg: linear-gradient(135deg, #16181d 0%, #2b1418 55%, #7a1222 120%); --hero-glow: #d7263d;
  --eyebrow: #ff9aa8; --hl: #ffb547; --logo-bg: linear-gradient(135deg, #d7263d, #f0544f);
  --band-bg: linear-gradient(120deg, #d7263d, #a3172b); --strip-bg: #d7263d; --strip-icon: #fff;
  --oem-bg: #16181d; --oem-fg: #ffb547; --footer-bg: #16181d; --badge: #ffb547;
  --highlight: #ffb547; --highlight-ink: #16181d; --price: #16181d;
  --trust-bg: #16181d; --trust-ink: #fff; --trust-muted: #c9c3c5; --alt-bg: #fff6ef;
  --t1: #d7263d; --t1-bg: #fde8eb; --t2: #1d6fd6; --t2-bg: #e6f0fd; --t3: #f08a24; --t3-bg: #fff1e3; --t4: #138a72; --t4-bg: #e2f5f0;
}

.trust-ic svg { color: var(--highlight-ink); stroke: var(--highlight-ink); }

/* AI part finder */
.ai-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ai-entry a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.ai-entry a:hover { background: var(--ink); color: #fff; }
.ai-new { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--highlight); color: var(--highlight-ink); }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.center-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
.eyebrow.dark { color: var(--accent); justify-content: center; }
.finder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.finder-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--accent); }
.finder-card:last-child { border-top-color: var(--highlight); }
.finder-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.finder-head h2 { margin: 0; font-size: 24px; }
.finder-head p { margin: 4px 0 0; }
.finder-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.finder-card label { font-weight: 700; }
.finder-card textarea, .finder-card input[type=text], .finder-card input:not([type]) { min-height: 48px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; resize: vertical; }
.finder-card textarea:focus, .finder-card input:focus { border-color: var(--accent); outline: none; }
.finder-card .btn { margin-top: 6px; }
.dropzone { border: 2px dashed var(--line); border-radius: 16px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer; background: var(--bg); font-weight: 400 !important; }
.dropzone:hover { border-color: var(--accent); }
.dropzone input { font: inherit; max-width: 100%; }
.ai-answer { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px; border-left: 6px solid var(--accent); margin-bottom: 28px; }
.ai-answer h1 { font-size: clamp(22px, 3.5vw, 30px); margin: 12px 0 6px; }
.ai-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--highlight); }
.safety { display: flex; gap: 10px; align-items: flex-start; background: #fff4e5; border: 1px solid #f5c98b; color: #6b3d00; padding: 12px 14px; border-radius: 12px; margin: 14px 0 0; }
.ask { background: var(--accent-soft); color: var(--accent-dark); padding: 12px 14px; border-radius: 12px; margin: 14px 0 0; font-weight: 600; }
.dx-group { margin-bottom: 32px; }
.dx-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.dx-head h2 { margin: 0; font-size: 22px; }
.dx-head p { margin: 4px 0 0; }
.dx-head .step-n { margin: 0; flex-shrink: 0; }
.read-table { max-width: 520px; margin-top: 10px; }

/* Shop by equipment */
body { --eq-fill: var(--accent-soft); }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.eq-tile { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 20px 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.eq-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: var(--ink); }
.eq-art { color: var(--accent); display: flex; }
.eq-tile:hover .eq-art { color: var(--accent-dark); }
.eq-name { font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.eq-hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px; margin-bottom: 10px; }
.eq-hero > div { flex: 1 1 360px; }
.eq-hero h1 { margin: 0 0 6px; font-size: 34px; }
.eq-art-lg { background: var(--accent-soft); border-radius: 24px; padding: 14px; }
.inline-search { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.inline-search input { flex: 1 1 260px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; }
.inline-search input:focus { border-color: var(--accent); outline: none; }

/* Admin: orders and fulfilment */
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.order-head h1 { margin: 0; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #eef1f5; color: #2a3442; white-space: nowrap; }
.st-paid { background: #fff1d6; color: #7a4b00; }
.st-ordered_from_supplier { background: #e6f0fd; color: #124c99; }
.st-shipped { background: #e7f6ee; color: #136a33; }
.st-delivered { background: #d8f3e3; color: #0e5a2b; }
.st-cancelled { background: #fde8eb; color: #9b1c2e; }
.em-sent { background: #e7f6ee; color: #136a33; }
.em-failed { background: #fde8eb; color: #9b1c2e; }
.em-not_configured, .em-queued { background: #fff1d6; color: #7a4b00; }
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.flash.ok { background: #e7f6ee; color: #0e5a2b; }
.flash.bad { background: #fde8eb; color: #9b1c2e; }
.timeline { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.timeline li { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; border-top: 4px solid var(--line); display: flex; flex-direction: column; font-size: 14px; }
.timeline li.done { border-top-color: #22a14c; }
.timeline span { color: var(--muted); font-size: 13px; }
.form.tight { padding: 0; margin-top: 8px; }
.cancel-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sub-h { margin: 32px 0 12px; font-size: 22px; }
.supplier-block { margin-bottom: 18px; }
.supplier-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.supplier-head h3 { margin: 0; font-size: 18px; text-transform: none; color: var(--ink); letter-spacing: 0; }
.warn-tag { margin-left: 10px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff1d6; color: #7a4b00; }
.copy-box { width: 100%; margin-top: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); resize: vertical; }

/* Admin: products + summary */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.admin-nav a { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 700; color: var(--ink); }
.admin-nav a:hover { color: var(--accent); }
.howto { padding-left: 20px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.confirm-box { margin-top: 20px; padding: 20px; }
.email-preview { width: 100%; max-width: 680px; height: 900px; border: 1px solid var(--line); border-radius: 12px; background: #f5f7fa; margin-top: 16px; }
code { background: var(--bg); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

.oem-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Accounts + trade */
.account-link svg { color: var(--accent); }
.trade-note { font-size: 12px; font-weight: 700; color: #136a33; margin: 2px 0 0; }
.trade-lock { background: var(--ink); color: #fff; border-color: var(--ink); font-size: 14px; }
.trade-lock:hover { color: #fff; background: #2a3442; }
.trade-only-box { background: var(--bg); border-left: 4px solid var(--ink); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.flash.pending { background: #fff1d6; color: #7a4b00; }
.narrow-card { max-width: 520px; margin: 0 auto; }
.tr-pending { background: #fff1d6; color: #7a4b00; }
.tr-approved { background: #e7f6ee; color: #136a33; }
.tr-rejected { background: #fde8eb; color: #9b1c2e; }
.inline-reject { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.inline-reject input { min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.finder-card input[type=email], .finder-card input[type=tel] { min-height: 48px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; }
.finder-card input[type=email]:focus { border-color: var(--accent); outline: none; }

/* Returns + suppliers */
.return-form fieldset.stacked, fieldset.stacked { flex-direction: column; flex-wrap: nowrap; }
.return-item { display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: center; gap: 12px; font-weight: 400 !important; padding: 6px 0; border-bottom: 1px solid var(--line); }
.return-item select { min-height: 40px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-row img { width: 140px; height: 140px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.resolve { display: flex; flex-direction: column; gap: 18px; }
.resolve form { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rma-row { margin-bottom: 14px; }
.rma-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.supplier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.rt-requested, .rt-approved { background: #fff1d6; color: #7a4b00; }
.rt-sent_to_supplier { background: #e6f0fd; color: #124c99; }
.rt-replaced, .rt-refunded { background: #e7f6ee; color: #136a33; }
.rt-denied { background: #fde8eb; color: #9b1c2e; }
.rma-needs_contact, .rma-refused { background: #fde8eb; color: #9b1c2e; }
.rma-emailed { background: #e6f0fd; color: #124c99; }
.rma-rma_received, .rma-credited { background: #e7f6ee; color: #136a33; }
.form.tight.rma-row, .form.tight.supplier-form, .form.tight.return-form { padding: 22px; }
