/**
 * Hydraulic Hammers category page (taxonomy-product_cat-hydraulic-hammers.php).
 * Scoped to .jma-hx so it cannot leak into any other archive.
 * Built on the theme's --jg-* tokens where they exist, with local fallbacks.
 */
.jma-hx { --hx-green:#20842D; --hx-green-dk:#186A23; --hx-red:#c8102e; --hx-yellow:#f5c518;
  --hx-ink:#14181c; --hx-muted:#5b6670; --hx-line:#e3e7ea; --hx-bg:#f6f8f9; }
.jma-hx *,.jma-hx *::before,.jma-hx *::after{box-sizing:border-box}

/* hero */
.jma-hx__hero{background:var(--hx-bg);padding:28px 0 34px}
.jma-hx__h1{margin:10px 0 8px;font-size:clamp(28px,4vw,44px);line-height:1.08;font-weight:800}
.jma-hx__h1-dark{color:var(--hx-ink)}
.jma-hx__h1-accent{color:var(--hx-red)}
.jma-hx__sub{max-width:60ch;color:var(--hx-muted);margin:0 0 18px;font-size:16px;line-height:1.55}
.jma-hx__cta-row{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 18px}
.jma-hx__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 22px;border-radius:6px;font-weight:700;text-decoration:none;line-height:1.2;
  min-height:44px;border:2px solid transparent;transition:background .15s,color .15s}
.jma-hx__btn--red{background:var(--hx-red);color:#fff}
.jma-hx__btn--red:hover{background:#a50d26;color:#fff}
/* out-of-stock "Request a Quote / More Info" (inc/jma/oos-quote.php), 2026-09-26 */
.jma-hx__btn--green{background:#20842D;color:#fff;border:0;cursor:pointer;font:inherit;font-weight:700}
.jma-hx__btn--green:hover{background:#186b23;color:#fff}
.jma-hx__btn--outline{border-color:var(--hx-ink);color:var(--hx-ink)}
.jma-hx__btn--outline:hover{background:var(--hx-ink);color:#fff}
.jma-hx__btn--sm{padding:10px 16px;font-size:14px;width:100%}
.jma-hx__btn--dark{background:var(--hx-ink);color:#fff}
.jma-hx__btn--ghost{border-color:var(--hx-ink);color:var(--hx-ink)}
.jma-hx__trust{list-style:none;display:flex;flex-wrap:wrap;gap:10px 26px;margin:0;padding:0}
.jma-hx__trust li{position:relative;padding-left:22px;font-weight:600;font-size:14px;color:var(--hx-ink)}
.jma-hx__trust li::before{content:"";position:absolute;left:0;top:50%;width:14px;height:14px;margin-top:-7px;
  border-radius:50%;background:var(--hx-green)}

/* toolbar: chips replace the left rail */
.jma-hx__toolbar{border-bottom:1px solid var(--hx-line);padding:14px 0;position:sticky;top:0;z-index:5;background:#fff}
.jma-hx__toolbar-inner{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.jma-hx__chips{display:flex;flex-wrap:wrap;gap:8px}
.jma-hx__chip{appearance:none;border:1px solid var(--hx-line);background:#fff;color:var(--hx-ink);
  border-radius:999px;padding:9px 16px;font-size:14px;font-weight:600;cursor:pointer;min-height:44px} /* 44px tap target (QA 2026-10-06) */
.jma-hx__chip:hover{border-color:var(--hx-green)}
.jma-hx__chip.is-active{background:var(--hx-green);border-color:var(--hx-green);color:#fff}
.jma-hx__sort{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;white-space:nowrap}
.jma-hx__sort select{min-height:44px;border:1px solid var(--hx-line);border-radius:6px;padding:8px 10px;background:#fff}

/* cards */
.jma-hx__grid-wrap{padding:26px 0 34px}
.jma-hx__h2{font-size:clamp(20px,2.4vw,28px);font-weight:800;margin:0 0 18px;color:var(--hx-ink)}
/* Heading accent: same 48x4 green line as the machine-type pages' "Featured Attachments" (read from staging 2026-09-25: 48x4px, #20842D, radius 2px, 16px below). Left-aligned to follow these headings. */
.jma-hx__h2::after{content:"";display:block;width:48px;height:4px;border-radius:2px;background:#20842D;margin:16px 0 0}
.jma-hx__grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.jma-hx__card{display:flex;flex-direction:column;border:1px solid var(--hx-line);border-radius:10px;
  overflow:hidden;background:#fff}
.jma-hx__card[hidden]{display:none}
.jma-hx__card-media{display:block;background:#fff;aspect-ratio:4/3;overflow:hidden}
.jma-hx__card-media img{width:100%;height:100%;object-fit:contain;display:block}
.jma-hx__card-body{display:flex;flex-direction:column;gap:10px;padding:14px;flex:1}
.jma-hx__card-title{font-size:15px;line-height:1.35;font-weight:700;margin:0}
.jma-hx__card-title a{color:var(--hx-ink);text-decoration:none}
.jma-hx__card-title a:hover{text-decoration:underline}
.jma-hx__spec{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0;font-size:13px}
.jma-hx__spec dt{color:var(--hx-muted)}
.jma-hx__spec dd{margin:0;font-weight:600;color:var(--hx-ink)}
.jma-hx__price{margin:0;font-size:13px}
.jma-hx__price a{color:var(--hx-green);font-weight:700;text-decoration:none}
.jma-hx__card-cta{margin:auto 0 0}
.jma-hx__empty{margin:18px 0 0;color:var(--hx-muted)}
.jma-hx__linkbtn{appearance:none;border:0;background:none;color:var(--hx-green);font-weight:700;cursor:pointer;padding:0;text-decoration:underline}

/* complete kit band — mockup layout: heading left, rule, items in a row right */
.jma-hx__kit{background:#0d5a28;color:#fff;padding:26px 0 22px} /* deep green: yellow "Ready to Work." 9.36:1 (AA); #20842D was 2.93:1 */
.jma-hx__kit-inner{display:flex;align-items:center;gap:34px}
.jma-hx__kit-h2{margin:0;flex:0 0 auto;font-size:clamp(20px,2.2vw,30px);line-height:1.12;font-weight:800;
  text-transform:uppercase;letter-spacing:.01em;padding-right:34px;border-right:1px solid rgba(255,255,255,.35)}
.jma-hx__kit-h2a,.jma-hx__kit-h2b{display:block}
.jma-hx__kit-h2b{color:var(--hx-yellow)}
.jma-hx__kit-grid{list-style:none;margin:0;padding:0;display:grid;gap:18px;flex:1 1 auto;
  grid-template-columns:repeat(5,1fr)}
.jma-hx__kit-item{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
  justify-content:flex-start}
/* photos are recoloured onto JMA green, so no tile and no blend mode */
.jma-hx__kit-media{display:grid;place-items:center;width:100%;max-width:120px;aspect-ratio:1/1;overflow:hidden}
.jma-hx__kit-img{width:100%;max-width:100%;object-fit:cover;display:block}
.jma-hx__kit-name{font-weight:700;font-size:13px;line-height:1.3}
.jma-hx__kit-item--noimg{justify-content:center;min-height:120px;border:1px dashed rgba(255,255,255,.45);
  border-radius:10px;padding:14px 8px}
.jma-hx__kit-note{margin:14px 0 0;opacity:.9;font-size:13px}

/* steps */
.jma-hx__steps{padding:32px 0}
.jma-hx__steps-list{list-style:none;counter-reset:s;margin:0;padding:0;display:grid;gap:18px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.jma-hx__steps-list li{counter-increment:s;position:relative;padding-left:52px}
.jma-hx__steps-list li::before{content:counter(s);position:absolute;left:0;top:0;width:38px;height:38px;
  border-radius:50%;background:var(--hx-green);color:#fff;font-weight:800;display:grid;place-items:center}
.jma-hx__steps-list strong{display:block;margin-bottom:4px}
.jma-hx__steps-list span{color:var(--hx-muted);font-size:14px;line-height:1.5}

/* collapsed technical guide */
.jma-hx__tech{padding:0 0 30px}
.jma-hx__details{border:1px solid var(--hx-line);border-radius:10px;background:#fff}
.jma-hx__details>summary{cursor:pointer;padding:16px 18px;font-weight:700;list-style:none;min-height:44px;display:flex;align-items:center;gap:10px}
.jma-hx__details>summary::-webkit-details-marker{display:none}
.jma-hx__details>summary::after{content:"+";margin-left:auto;font-size:22px;line-height:1;color:var(--hx-green)}
.jma-hx__details[open]>summary::after{content:"\2212"}
.jma-hx__details-body{padding:0 18px 18px}
.jma-hx__details-body table{width:100%;border-collapse:collapse;font-size:14px;margin:12px 0}
.jma-hx__details-body th,.jma-hx__details-body td{border:1px solid var(--hx-line);padding:8px 10px;text-align:left}
.jma-hx__details-body thead th{background:var(--hx-ink);color:#fff}
.jma-hx__tech-scroll{overflow-x:auto}

/* numbered FAQ */
.jma-hx__faq{padding:0 0 34px}
.jma-hx__faq-sub{color:var(--hx-muted);margin:-8px 0 16px}
.jma-hx__faq-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.jma-hx__faq-item details{border:1px solid var(--hx-line);border-radius:10px;background:#fff}
.jma-hx__faq-item summary{cursor:pointer;padding:15px 18px;font-weight:700;display:flex;gap:12px;align-items:flex-start;
  list-style:none;min-height:44px}
.jma-hx__faq-item summary::-webkit-details-marker{display:none}
.jma-hx__faq-n{flex:0 0 26px;height:26px;border-radius:50%;background:var(--hx-green);color:#fff;
  display:grid;place-items:center;font-size:13px;font-weight:800}
.jma-hx__faq-a{padding:0 18px 16px 56px;color:var(--hx-muted);line-height:1.6}

/* yellow Miami CTA */
.jma-hx__miami{background:var(--hx-yellow);padding:30px 0}
.jma-hx__miami-inner{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}
.jma-hx__miami-eyebrow{margin:0 0 4px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.jma-hx__miami-h2{margin:0 0 6px;font-size:clamp(20px,2.4vw,28px);font-weight:800}
.jma-hx__miami-text{margin:0;max-width:62ch;font-size:15px;line-height:1.55}
.jma-hx__miami-cta{display:flex;flex-wrap:wrap;gap:10px;margin:0}

@media (max-width:700px){
  .jma-hx__toolbar{position:static}
  /* WCAG 2.5.8: primary controls keep a 44px target on touch. */
  .jma-hx__chip{min-height:44px;padding:11px 16px}
  .jma-hx__sort select{min-height:44px}
  .jma-hx__chips{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .jma-hx__chip{white-space:nowrap}
  .jma-hx__sort{width:100%;justify-content:space-between}
  .jma-hx__grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
  .jma-hx__kit-inner{flex-direction:column;align-items:flex-start;gap:18px}
  .jma-hx__kit-h2{padding-right:0;border-right:0}
  .jma-hx__kit-grid{grid-template-columns:repeat(2,1fr);gap:14px;width:100%}
  .jma-hx__faq-a{padding-left:18px}
}

/* stock state — out of stock is a label here, not an exclusion (Johan 2026-09-23) */
.jma-hx__stock{margin:0;font-size:12px;font-weight:700;letter-spacing:.01em;display:flex;align-items:center;gap:7px}
.jma-hx__stock::before{content:"";width:8px;height:8px;border-radius:50%;flex:0 0 8px}
.jma-hx__stock.is-in{color:var(--hx-green)}
.jma-hx__stock.is-in::before{background:var(--hx-green)}
.jma-hx__stock.is-out{color:#8a6100}
.jma-hx__stock.is-out::before{background:#e0a800}

@media (max-width:1100px) and (min-width:701px){
  .jma-hx__kit-inner{flex-direction:column;align-items:flex-start;gap:18px}
  .jma-hx__kit-h2{padding-right:0;border-right:0}
  .jma-hx__kit-grid{grid-template-columns:repeat(3,1fr);width:100%}
}
/* 2026-09-28: size chart (real table) + why-JMA list from the approved copy */
.jma-hx__chart{padding:0 0 34px}
.jma-hx__chart-note{margin:0 0 14px;color:var(--hx-muted,#575757);max-width:72ch}
.jma-hx__table-wrap{overflow-x:auto;border:1px solid var(--hx-line);border-radius:10px;background:#fff;-webkit-overflow-scrolling:touch}
.jma-hx__table{width:100%;border-collapse:collapse;font-size:15px;min-width:640px}
.jma-hx__table th,.jma-hx__table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--hx-line);vertical-align:top}
.jma-hx__table th{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;background:#f6f8f9;color:var(--hx-ink)}
.jma-hx__table tr:last-child td{border-bottom:0}
.jma-hx__num{white-space:nowrap;font-variant-numeric:tabular-nums}
.jma-hx__code{white-space:nowrap;font-weight:700}
.jma-hx__code a{color:var(--hx-green)}
.jma-hx__code-note{display:block;font-weight:400;font-size:13px;color:var(--hx-muted,#575757);white-space:normal}
.jma-hx__why{padding:0 0 34px}
.jma-hx__why-list{margin:0;padding-left:20px;display:grid;gap:8px;max-width:80ch}
.jma-hx__why-list li{line-height:1.5}
.jma-hx__faq-a p{margin:0}

/* Oct 17 2026 (Johan): pickup / delivery line on hammer cards — same text and in-stock rule as every other product card. */
.jma-hx__card .delivery-info{display:flex;flex-direction:column;gap:4px;margin:0;font-size:13px;line-height:1.4;color:var(--hx-ink)}
.jma-hx__card .delivery-info .delivery,.jma-hx__card .delivery-info .pickup{display:block;margin:0;text-align:left}
