/* batchsmarter storefront. Look after the Porto "shop44" demo: Poppins, a
   charcoal primary, soft grey panels, flat white cards, section titles with a
   short rule under them. Self-hosted fonts; no inline styles or scripts
   anywhere, which the Content-Security-Policy enforces. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/poppins-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #222529;        /* primary: logo, buttons, titles, footer */
  --heading: #333333;
  --text: #777777;
  --body: #555555;       /* running prose, a step darker than card text */
  --muted: #999999;
  --line: #e7e7e7;
  --panel: #f4f4f4;      /* intro band, forms, asides */
  --paper: #ffffff;
  --accent: #e27c7c;
  --danger: #c0392b;
  --focus: #0433ff;
  --wrap: 1220px;
  --radius: 6px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 14px/1.7 var(--font);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--heading); margin: 0; line-height: 1.25; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999rem; top: 0; z-index: 10; background: var(--ink); color: #fff; padding: 8px 14px; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

.btn {
  display: inline-block; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--ink); color: #fff; font: 600 12px/1 var(--font);
  letter-spacing: .08em; text-transform: uppercase; padding: 15px 26px;
  transition: background-color .2s;
}
.btn:hover { background: #000; color: #fff; }
.btn-lg { font-size: 13px; padding: 18px 30px; }
.btn-block { display: block; width: 100%; text-align: center; }

.eyebrow, .kicker { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }

/* --- masthead ------------------------------------------------------------ */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; flex: none; }
.logo:hover { color: var(--ink); }
.masthead-tag { color: var(--muted); font-size: 13px; }
.masthead-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 600; flex: none; }
.masthead-cta:hover { color: var(--accent); }

.catnav { border-top: 1px solid var(--line); }
.catnav ul { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.catnav a {
  display: block; padding: 15px 0 13px; border-bottom: 2px solid transparent;
  color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
.catnav a:hover, .catnav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* --- intro band ---------------------------------------------------------- */
.intro { background: var(--panel); padding: 56px 0; }
.intro h1 { color: var(--ink); font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.02em; max-width: 22ch; }
.intro h1 em { font-style: normal; color: var(--text); font-weight: 600; }
.intro-body { color: var(--body); font-size: 16px; max-width: 60ch; margin: 14px 0 26px; }
.intro-slim { padding: 28px 0 40px; }
.intro-slim .intro-body { margin-bottom: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #ccc; }
.crumbs a:hover { color: var(--ink); }
.wrap > .crumbs { margin-top: 22px; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a { display: block; border: 1px solid #d6d6d6; border-radius: 30px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 500; padding: 6px 16px; }
.jump a:hover { border-color: var(--ink); }

/* --- section titles: heading, then a short rule ------------------------- */
.sect { padding-top: 56px; padding-bottom: 8px; scroll-margin-top: 16px; }
.title { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 28px; }
.title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 12px; background: var(--ink); }

.lede { color: var(--body); font-size: 15px; max-width: 75ch; }
.lede p + p { margin-top: 12px; }
.lede.after { margin-top: 32px; font-size: 14px; }

/* --- category tiles ------------------------------------------------------ */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.cat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cat-img { display: block; width: 100%; aspect-ratio: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10%; transition: border-color .2s; }
.cat:hover .cat-img { border-color: var(--ink); }
.cat-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-name { color: var(--ink); font-size: 14px; font-weight: 600; margin-top: 14px; }
.cat-count { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* --- product cards ------------------------------------------------------- */
/* Photos come from the manufacturer on white, so the image well is white with
   a hairline rather than Porto's grey panel, which would box every photo. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; height: 100%; }
.card-img { aspect-ratio: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8%; overflow: hidden; transition: border-color .2s; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.card:hover .card-img { border-color: #cfcfcf; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.card-cat { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.card-title { color: var(--ink); font-size: 15px; font-weight: 500; margin: 2px 0 6px; }
.card-blurb {
  font-size: 13px; line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.card-more {
  align-self: flex-start; margin-top: auto; border: 1px solid var(--ink); border-radius: 3px;
  color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 13px; transition: background-color .2s, color .2s;
}
/* Space above the button whether or not the card has a blurb. */
.card-body > :nth-last-child(2) { margin-bottom: 14px; }
.card:hover .card-more { background: var(--ink); color: #fff; }
.card-kind { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* --- product page -------------------------------------------------------- */
/* Source order is gallery, buy, details, so a phone shows the name and the
   call to action before the prose. On a wide screen the buy column sits beside
   both; `auto 1fr` rows keep the gallery's row its own height. */
.product {
  display: grid; gap: 0 48px; padding: 4px 0 24px; align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "gallery buy" "details buy";
}
.p-gallery { grid-area: gallery; }
.p-details { grid-area: details; }
.buy { grid-area: buy; }

/* Gallery without script: one radio per photo, the thumbnails are its labels,
   and the checked radio decides which slide shows. Arrow keys work for free. */
.gallery { position: relative; }
.g-radio { position: absolute; opacity: 0; pointer-events: none; }
.g-stage { background: var(--paper); aspect-ratio: 1; padding: 6%; border: 1px solid var(--line); border-radius: var(--radius); }
.g-slide { display: none; width: 100%; height: 100%; object-fit: contain; }
.g-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.g-thumb { width: 76px; height: 76px; background: var(--paper); padding: 6px; cursor: pointer; border: 1px solid var(--line); border-radius: 4px; opacity: .7; transition: opacity .2s, border-color .2s; }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-thumb:hover { opacity: 1; }
#g1:checked ~ .g-stage .g-slide-1, #g2:checked ~ .g-stage .g-slide-2,
#g3:checked ~ .g-stage .g-slide-3, #g4:checked ~ .g-stage .g-slide-4,
#g5:checked ~ .g-stage .g-slide-5, #g6:checked ~ .g-stage .g-slide-6,
#g7:checked ~ .g-stage .g-slide-7, #g8:checked ~ .g-stage .g-slide-8 { display: block; }
#g1:checked ~ .g-thumbs .g-thumb-1, #g2:checked ~ .g-thumbs .g-thumb-2,
#g3:checked ~ .g-thumbs .g-thumb-3, #g4:checked ~ .g-thumbs .g-thumb-4,
#g5:checked ~ .g-thumbs .g-thumb-5, #g6:checked ~ .g-thumbs .g-thumb-6,
#g7:checked ~ .g-thumbs .g-thumb-7, #g8:checked ~ .g-thumbs .g-thumb-8 { border-color: var(--ink); opacity: 1; }
#g1:focus-visible ~ .g-thumbs .g-thumb-1, #g2:focus-visible ~ .g-thumbs .g-thumb-2,
#g3:focus-visible ~ .g-thumbs .g-thumb-3, #g4:focus-visible ~ .g-thumbs .g-thumb-4,
#g5:focus-visible ~ .g-thumbs .g-thumb-5, #g6:focus-visible ~ .g-thumbs .g-thumb-6,
#g7:focus-visible ~ .g-thumbs .g-thumb-7, #g8:focus-visible ~ .g-thumbs .g-thumb-8 { outline: 2px solid var(--focus); outline-offset: 2px; }

.buy h1 { color: var(--ink); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.01em; }
.buy .summary { color: var(--body); font-size: 15px; margin: 12px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cta-plate { background: var(--panel); border-radius: var(--radius); padding: 20px; }
.cta-plate .btn { display: block; width: 100%; text-align: center; }
.cta-plate p { color: var(--text); font-size: 13px; margin-top: 12px; }

.block { margin-top: 36px; }
.block h2 { color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.block h2::after { content: ""; display: block; width: 30px; height: 2px; margin-top: 10px; background: var(--ink); }
.block p { color: var(--body); margin-bottom: 12px; }

.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs th, .specs td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs th { color: var(--heading); font-weight: 500; width: 44%; }
.specs td { color: var(--body); }
.specs thead th { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.specs tbody tr:nth-child(odd) { background: #fafafa; }
.specs .note { display: block; color: var(--muted); font-size: 12px; }

.ticks { columns: 2 220px; column-gap: 28px; }
.ticks li { padding: 4px 0 4px 22px; position: relative; break-inside: avoid; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 30px; padding: 4px 14px; font-size: 13px; color: var(--ink); }

.downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.downloads a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 9px 14px; color: var(--ink); font-size: 13px; font-weight: 500; }
.downloads a::before { content: "PDF"; background: var(--accent); color: #fff; border-radius: 2px; font-size: 10px; font-weight: 600; letter-spacing: .05em; padding: 3px 5px 2px; }
.downloads a:hover { border-color: var(--ink); }

.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.source { font-size: 12px; color: var(--muted); margin-top: 22px; }
.source a { text-decoration: underline; }
.source + .source { margin-top: 6px; }

/* --- forms: contact and checkout ---------------------------------------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { color: var(--ink); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.01em; }
.page-head .lede { margin-top: 10px; }
.page-head .lede p + p { margin-top: 10px; }

.form-page { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding: 20px 0 24px; align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 18px; }
.fields-2 { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fields-3 { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .9fr); }
label, .label, .billing legend { display: block; color: var(--heading); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper);
  border: 1px solid #dcdcdc; border-radius: 3px; padding: 11px 14px;
}
/* One height for text inputs and selects, so a row of mixed fields lines up. */
input:not([type="checkbox"]), select { height: 46px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ink); }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.error { color: var(--danger); font-size: 12px; font-weight: 500; margin-top: 6px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.alert { border-left: 3px solid var(--danger); background: #fdf1f0; color: var(--danger); font-weight: 500; padding: 12px 16px; margin-bottom: 22px; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }

.aside { background: var(--panel); border-radius: var(--radius); padding: 22px; }
.aside .well { background: var(--paper); border-radius: 4px; aspect-ratio: 4 / 3; padding: 12px; margin-bottom: 16px; }
.aside .well img { width: 100%; height: 100%; object-fit: contain; }
.aside h2 { color: var(--ink); font-size: 18px; font-weight: 600; }
.aside p { color: var(--body); font-size: 13px; margin-top: 10px; }
.aside a { color: var(--ink); text-decoration: underline; }

.stepper { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; counter-reset: s; }
.stepper li {
  counter-increment: s; color: var(--muted); border: 1px solid var(--line); border-radius: 30px;
  font-size: 12px; font-weight: 500; padding: 6px 16px;
}
.stepper li::before { content: counter(s) ". "; }
.stepper li.done { color: var(--ink); }
.stepper li[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.ship-summary {
  background: var(--panel); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: start;
}
.ship-summary h2 { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.ship-summary p { color: var(--ink); }

.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: 600 12px/1.4 var(--font); text-decoration: underline; }
.linkish:hover { color: var(--accent); }

.handoff { border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; }
.handoff h2 { color: var(--ink); font-size: 18px; font-weight: 600; }
.handoff p { color: var(--body); margin-top: 8px; }
.handoff .kicker { margin-bottom: 4px; }
.handoff a { text-decoration: underline; }

.billing { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 2px; margin: 0 0 18px; }
.billing legend { padding: 0 6px; margin: 0; }
.billing-fields { margin-top: 14px; }
/* "Same as shipping" hides the billing fields; the server ignores them then. */
.toggle:checked ~ .billing-fields { display: none; }
.toggle, .box { width: auto; margin: 0 8px 14px 0; accent-color: var(--ink); transform: scale(1.2); vertical-align: middle; }
label.check { display: inline; color: var(--body); font-size: 14px; font-weight: 400; vertical-align: middle; }

.ref { display: inline-block; background: var(--ink); color: #fff; border-radius: 3px; font-size: 18px; font-weight: 600; letter-spacing: .12em; padding: 6px 12px; margin: 6px 0 16px; }
.ref-line { color: var(--body); margin: 24px 0 14px; }
.ref-line .ref { margin: 0 0 0 8px; font-size: 15px; }

/* --- footer -------------------------------------------------------------- */
.site-foot { background: var(--ink); color: #a8a8a8; margin-top: 72px; font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.foot-brand { color: #fff; font-size: 20px; font-weight: 700; }
.foot-tag { margin-top: 6px; max-width: 36ch; }
.foot-contact { margin-top: 14px; }
.foot-contact a { color: #fff; text-decoration: underline; }
.site-foot h4 { color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.site-foot li + li { margin-top: 6px; }
.site-foot a:hover { color: #fff; }
.foot-base { border-top: 1px solid #ffffff1a; padding-top: 22px; padding-bottom: 28px; font-size: 12px; }

/* --- small screens ------------------------------------------------------- */
@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "gallery" "buy" "details"; }
  .buy { margin-top: 28px; }
  .form-page { grid-template-columns: minmax(0, 1fr); }
  .masthead-tag { display: none; }
}

@media (max-width: 720px) {
  /* Sides only: a shorthand here would zero the vertical padding that the
     footer rows put on the same elements. */
  .wrap { padding-left: 16px; padding-right: 16px; }
  .masthead-row { min-height: 64px; gap: 14px; }
  .masthead-cta span { display: none; }
  .catnav ul { gap: 22px; }
  .intro { padding: 36px 0; }
  .intro-slim { padding: 20px 0 28px; }
  .sect { padding-top: 40px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .card-blurb { display: none; }
  .fields-3 { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 20px 16px; }
  .foot-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
