/* ═══════════════════════════════════════════════════════════════════
   Pump One — Site CSS
   Palette from brand: navy / orange / light blue + cream paper
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --po-navy:   #0a2342;
  --po-sky:    #5a8fc4;
  --po-orange: #e8832a;
  --po-ink:    #1a1f28;
  --po-line:   #e4e6ea;
  --po-paper:  #f5f3ee;
  --po-bg:     #ffffff;
  --po-muted:  #6a707a;
  --po-display:"Barlow Condensed","Helvetica Neue",Arial,sans-serif;
  --po-body:   "Barlow","Helvetica Neue",Arial,sans-serif;
  --maxw: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--po-body); color: var(--po-ink); background: var(--po-bg); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--po-navy); text-decoration: none; }
a:hover { color: var(--po-orange); }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--po-display); font-weight: 800; letter-spacing: -0.2px; text-transform: uppercase; margin: 0 0 .5em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--po-navy); color: #fff; padding: 8px 12px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 9999; }

/* ─── Header ───────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--po-line); background: #fff; position: sticky; top: 0; z-index: 40; }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1; }
.site-logo__name { font-family: var(--po-display); font-weight: 800; font-size: 17px; letter-spacing: 1px; color: var(--po-navy); }
.site-logo__tag  { font-size: 11px; color: var(--po-sky); letter-spacing: .5px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav__link { padding: 10px 14px; font-family: var(--po-display); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: #3a404e; }
.site-nav__link.is-active { color: var(--po-navy); border-bottom: 2px solid var(--po-orange); }
.site-nav__link:hover { color: var(--po-orange); }
.site-header__cta { margin-left: 4px; }
.cart-count { display:inline-block; background: rgba(255,255,255,.25); padding: 1px 7px; border-radius: 10px; margin-right: 6px; font-size: 11px; }
.site-nav__toggle { display: none; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--po-line); background: #fff; color: var(--po-navy); font-family: var(--po-display); font-weight: 700; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }
.btn--sm { padding: 8px 14px; font-size: 11.5px; }
.btn--primary { background: var(--po-orange); color: #fff; border-color: var(--po-orange); }
.btn--primary:hover { background: #d16f1f; color: #fff; }
.btn--navy { background: var(--po-navy); color: #fff; border-color: var(--po-navy); }
.btn--navy:hover { color: #fff; background: #081a33; }
.btn--ghost { background: transparent; }

/* ─── Forms ────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--po-display); font-weight: 700; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--po-navy); }
.field input, .field select, .field textarea { padding: 11px 13px; border: 1px solid var(--po-line); font-family: var(--po-body); font-size: 14px; background: #fff; color: var(--po-ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--po-orange); }
.field small { color: var(--po-muted); font-size: 12px; }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero { padding: 80px 0; background: #f6f7f9 url('../img/hero-bg.svg') right center / cover no-repeat; border-bottom: 1px solid var(--po-line); }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1; margin-bottom: 20px; color: var(--po-navy); }
.hero p.lead { font-size: 18px; max-width: 640px; color: #3a404e; }
.hero .eyebrow { font-family: var(--po-display); font-size: 12px; letter-spacing: 2px; color: var(--po-orange); text-transform: uppercase; margin-bottom: 16px; display: inline-block; }
.hero .hero-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Sections ────────────────────────────────────────────────── */
.section { padding: 70px 0; }
.section--paper { background: var(--po-paper); }
.section--navy { background: var(--po-navy); color: #fff; }
.section--navy h1,.section--navy h2,.section--navy h3 { color: #fff; }
.section__head { margin-bottom: 36px; }
.section__eyebrow { font-family: var(--po-display); font-size: 11.5px; letter-spacing: 2px; color: var(--po-orange); text-transform: uppercase; }
.section__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; color: var(--po-navy); max-width: 820px; }
.section--navy .section__title { color: #fff; }

/* ─── Grid helpers ────────────────────────────────────────────── */
.g-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.g-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ─── Cards ───────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--po-line); }
.card__body { padding: 18px; }
.card__eyebrow { font-size: 10.5px; color: var(--po-sky); font-family: var(--po-display); letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.card__title { font-family: var(--po-display); font-weight: 800; font-size: 16px; color: var(--po-navy); text-transform: uppercase; line-height: 1.2; margin: 6px 0; }

/* ─── Placeholder image (no photo yet) ───────────────────────── */
.ph { position: relative; background: #eef2f7 repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.04) 10px 11px); display: flex; align-items: center; justify-content: center; color: #4a5a75; font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; min-height: 180px; }
.ph span { background: rgba(255,255,255,.85); padding: 4px 8px; border: 1px solid #c5d0e0; }

/* ─── Tags / chips ────────────────────────────────────────────── */
.tag { display: inline-block; padding: 3px 9px; background: var(--po-paper); border: 1px solid var(--po-line); font-size: 10.5px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .4px; color: #4a5060; }
.tag--navy { background: var(--po-navy); color: #fff; border-color: var(--po-navy); }
.tag--orange { background: var(--po-orange); color: #fff; border-color: var(--po-orange); }

/* ─── Products page layout ────────────────────────────────────── */
.products-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
@media (max-width: 900px) { .products-layout { grid-template-columns: 1fr; } .filter-sidebar { border: 1px solid var(--po-line); padding: 16px; } }

/* ─── Filter sidebar ─────────────────────────────────────────── */
.filter-sidebar h4 { font-size: 11px; letter-spacing: 1.4px; font-weight: 700; color: var(--po-navy); text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.filter-block { padding-bottom: 16px; border-bottom: 1px solid var(--po-line); margin-bottom: 16px; }
.filter-block:last-child { border-bottom: none; }
.filter-block__badge { font-size: 8px; color: var(--po-muted); padding: 1px 5px; border: 1px solid var(--po-line); letter-spacing: .6px; font-family: ui-monospace, Menlo, monospace; }

.filter-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; color: #3a404e; cursor: pointer; }
.filter-row:hover { color: var(--po-navy); }
.filter-row.is-on { color: var(--po-navy); font-weight: 700; }
.filter-row .count { margin-left: auto; font-size: 10px; color: #9aa1ab; font-family: ui-monospace, Menlo, monospace; }
.chk { width: 13px; height: 13px; border: 1.5px solid #c5c9d0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; flex-shrink: 0; background: #fff; }
.filter-row.is-on .chk { background: var(--po-orange); border-color: var(--po-orange); }
.filter-row.is-on .chk::after { content: "✓"; }
.radio { width: 13px; height: 13px; border: 1.5px solid #c5c9d0; border-radius: 50%; flex-shrink: 0; background: #fff; }
.filter-row.is-on .radio { border-color: var(--po-orange); background: radial-gradient(var(--po-orange) 45%, #fff 50%); }

.filter-dynamic { padding: 16px 14px 4px; background: #fffbf0; border: 1px dashed var(--po-orange); position: relative; margin-top: 10px; }
.filter-dynamic::before { content: attr(data-label); position: absolute; top: -9px; left: 10px; background: var(--po-orange); color: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 9px; padding: 2px 8px; letter-spacing: 1px; }

.chip-select { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-select button { padding: 4px 10px; background: var(--po-paper); border: 1px solid var(--po-line); font-size: 11px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .4px; color: #4a5060; }
.chip-select button.is-on { background: var(--po-navy); color: #fff; border-color: var(--po-navy); }

.active-chips { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--po-line); }
.active-chips__head { display: flex; justify-content: space-between; font-size: 10px; color: var(--po-muted); letter-spacing: .8px; font-family: ui-monospace, Menlo, monospace; margin-bottom: 8px; }
.active-chips__clear { color: var(--po-orange); cursor: pointer; }
.active-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; background: var(--po-navy); color: #fff; font-size: 10.5px; font-family: ui-monospace, Menlo, monospace; margin: 0 4px 4px 0; cursor: pointer; }

.range-box { display: flex; justify-content: space-between; padding: 7px 10px; border: 1px solid var(--po-line); font-family: ui-monospace, Menlo, monospace; font-size: 11px; margin-bottom: 8px; background: #fff; }
.range-track { height: 3px; background: var(--po-line); position: relative; margin: 10px 4px; }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--po-orange); }
.range-knob { position: absolute; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--po-orange); }

/* ─── Results toolbar ────────────────────────────────────────── */
.results-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f6f7f9; border: 1px solid var(--po-line); margin-bottom: 20px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--po-navy); letter-spacing: .8px; }

/* ─── Product card ───────────────────────────────────────────── */
.product-card { background: #fff; border: 1px solid var(--po-line); display: flex; flex-direction: column; position: relative; }
.product-card__brand { position: absolute; top: 10px; left: 10px; z-index: 2; }
.product-card__fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; background: #fff; border: 1px solid var(--po-line); }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.product-card__cat { font-size: 10px; color: var(--po-sky); font-family: var(--po-display); letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.product-card__name { font-family: var(--po-display); font-weight: 800; font-size: 15px; color: var(--po-navy); line-height: 1.2; text-transform: uppercase; }
.product-card__spec { font-size: 12px; color: var(--po-muted); }
.product-card__actions { display: flex; gap: 8px; margin-top: 10px; }
.product-card__actions .btn { flex: 1; padding: 9px 12px; font-size: 11px; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 40px; font-family: var(--po-display); font-size: 12px; font-weight: 700; }
.pagination a, .pagination span { min-width: 32px; height: 32px; padding: 0 8px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--po-navy); border: 1px solid var(--po-line); }
.pagination .is-current { background: var(--po-navy); color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--po-navy); color: rgba(255,255,255,.8); padding: 56px 0 24px; margin-top: 80px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-size: 12.5px; letter-spacing: 1.4px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 13.5px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--po-orange); }
.site-logo--dark .site-logo__name { color: #fff; }
.site-logo--dark .site-logo__tag { color: #9fc3e8; }
.site-footer__about { font-size: 13px; color: rgba(255,255,255,.65); max-width: 320px; margin-top: 12px; }
.site-footer__bottom { display: flex; justify-content: space-between; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ─── Chatbot ────────────────────────────────────────────────── */
.chatbot-fab { position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--po-orange); color: #fff; border: none; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.chatbot-panel { position: fixed; bottom: 92px; right: 24px; z-index: 60; width: 380px; max-width: calc(100vw - 32px); height: 520px; max-height: 70vh; background: #fff; border: 1px solid var(--po-line); box-shadow: 0 20px 60px rgba(0,0,0,.2); display: none; flex-direction: column; }
.chatbot-panel.is-open { display: flex; }
.chatbot-head { background: var(--po-navy); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chatbot-head h5 { font-family: var(--po-display); font-size: 14px; letter-spacing: 1px; color: #fff; margin: 0; }
.chatbot-head button { background: transparent; border: none; color: #fff; font-size: 20px; }
.chatbot-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #f6f7f9; }
.chatbot-msg { max-width: 85%; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; }
.chatbot-msg.bot { background: #fff; border: 1px solid var(--po-line); align-self: flex-start; border-top-left-radius: 0; }
.chatbot-msg.user { background: var(--po-navy); color: #fff; align-self: flex-end; border-top-right-radius: 0; }
.chatbot-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--po-line); }
.chatbot-input input { flex: 1; padding: 10px 12px; border: 1px solid var(--po-line); font-family: inherit; font-size: 14px; }
.chatbot-input button { padding: 10px 14px; background: var(--po-orange); color: #fff; border: none; font-weight: 700; }

/* ─── Alerts / flash ─────────────────────────────────────────── */
.alert { padding: 12px 16px; border-left: 3px solid; margin-bottom: 16px; font-size: 14px; }
.alert--success { background: #e8f5e9; border-color: #388e3c; color: #1e5a23; }
.alert--error   { background: #fdecea; border-color: #c62828; color: #8a1d18; }
.alert--info    { background: #e3f2fd; border-color: #1976d2; color: #1a4a7a; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; border-top: 1px solid var(--po-line); padding: 8px 0; }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 14px 24px; }
  .site-nav__toggle { display: flex; flex-direction: column; gap: 4px; background: transparent; border: none; padding: 10px; margin-left: auto; }
  .site-nav__toggle span { width: 22px; height: 2px; background: var(--po-navy); display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .g-3, .g-4 { grid-template-columns: 1fr 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .g-3, .g-4 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0; }
}
