/* Pathfinder Defense LLC: site styles (site v19).
   Black, greys, and white only. */
:root {
  --black: #0B0B0C;
  --bg: #111213;
  --bg-2: #17181A;
  --panel: #1C1D20;
  --panel-2: #232428;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #E4E4E6;
  --muted: #A2A3A8;
  --white: #FFFFFF;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1140px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--black); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-wrap: break-word; }
body.menu-open, body.lightbox-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--white); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--white); margin: 0 0 0.5em; letter-spacing: 0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.04em; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { color: var(--white); font-weight: 600; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--white); color: var(--black); padding: 8px 14px; border-radius: 3px; font-weight: 600; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--black); border-bottom: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 0 22px; flex-wrap: wrap; padding-top: 2px; padding-bottom: 2px; }
.topbar a { display: inline-block; padding: 9px 0; color: var(--text); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(11, 11, 12, 0.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav .dd > button { color: var(--text); background: none; border: 0; font: 600 0.98rem/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 10px 11px; cursor: pointer; }
.nav > a:hover, .nav .dd > button:hover { color: var(--white); box-shadow: inset 0 -2px 0 var(--muted); }
.nav a[aria-current='page'], .nav .dd.current > button { color: var(--white); box-shadow: inset 0 -2px 0 var(--white); }
.dd { position: relative; }
.dd > button::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px 0; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.dd-menu a { display: block; padding: 10px 16px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.dd-menu a:hover, .dd-menu a[aria-current='page'] { background: var(--panel-2); color: var(--white); }
.dd.open .dd-menu { display: block; }
@media (hover: hover) and (min-width: 1061px) { .dd:hover .dd-menu { display: block; } }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 3px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--white); }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 28px; background: var(--black); display: none; overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { width: 100%; text-align: left; padding: 15px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page'], .nav .dd.current > button { box-shadow: none; }
  .nav > a:hover, .nav .dd > button:hover { box-shadow: none; background: var(--panel); }

  .dd.open .dd-menu { display: block; }
  .dd-menu { position: static; min-width: 0; padding: 0 0 6px 12px; border: 0; box-shadow: none; background: transparent; }
  .dd-menu a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .brand img { height: 42px; }
}

/* ---------- Page title band (hero) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 70px 0 60px; text-align: center; background: var(--black); border-bottom: 1px solid var(--line); }
/* The circle wallpaper sits on a taller layer that main.js slides slower than the page scrolls (parallax). */
.hero::before, .section-band::before { content: ''; position: absolute; left: 0; right: 0; top: -45%; bottom: -45%; z-index: -1; background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/shared/hero-bg.jpg') center / cover no-repeat; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero .wrap { position: relative; }
.hero h1 { margin-bottom: 0.2em; }
.hero .hero-sub { font: 600 clamp(1.15rem, 2.6vw, 1.55rem)/1.3 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin: 0; }
.hero-home { padding: 80px 0 70px; }
.hero-home::before { background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/home/hero-background-layer1.jpg'); }
.hero-home .hero-logo { width: min(340px, 70%); height: auto; margin: 0 auto 26px; }
.hero-home .tagline { font: 700 clamp(1.5rem, 3.6vw, 2.3rem)/1.2 var(--font-head); color: var(--white); letter-spacing: 0.03em; margin: 0 0 14px; }
.hero-home .hero-sub { max-width: 820px; margin: 0 auto; }
.hero-calls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 26px; }

/* ---------- Sections and layout ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 30px; }
.section-head p { color: var(--muted); }
.rule { width: 60px; height: 3px; background: var(--white); margin: 0 0 18px; border: 0; }
.center .rule, .section-head .rule { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.split + .split { margin-top: 56px; }
.split-media img { width: 100%; height: auto; border: 1px solid var(--line); }
.split-media.plain img { border: 0; }
.prose { max-width: 820px; }
.prose.center { margin: 0 auto; }
.list { margin: 0 0 1em; padding-left: 22px; }
.list li { margin: 6px 0; }
.list.dash { list-style: none; padding-left: 0; }
.list.dash li { position: relative; padding-left: 20px; }
.list.dash li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 10px; height: 2px; background: var(--white); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 26px; }
.panel h3, .panel h4 { margin-top: 0; }
.notice { border: 1px solid var(--line-strong); border-left: 4px solid var(--white); background: var(--panel); padding: 22px 26px; }
.notice p:last-child { margin-bottom: 0; }
.photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.photo-row img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }

/* ---------- Icon blocks (licenses, services) ---------- */
.icon-block { text-align: center; }
.icon-block .icon { width: 84px; height: 84px; margin: 0 auto 16px; object-fit: contain; }
.icon-side { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: start; }
.icon-side .icon { width: 76px; height: 76px; object-fit: contain; }
.lic { font-variant-numeric: tabular-nums; }
.lic p { margin: 0 0 4px; }

/* ---------- Badges (SAM, ITAR, DLA, Glock) ---------- */
.badge-card { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line); padding: 24px; text-decoration: none; color: var(--text); }
a.badge-card:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-2); }
.badge-card .badge { height: 110px; display: flex; align-items: center; justify-content: center; background: #F2F2F2; padding: 14px; }
.badge-card .badge img { max-height: 82px; width: auto; filter: grayscale(1); }
.badge-card h3 { margin: 0; }
.badge-card p { margin: 0; color: var(--muted); }
.round-badge { width: 180px; height: 180px; border-radius: 50%; margin: 20px 0 0; filter: grayscale(1); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 11px 20px; border: 1px solid var(--white); border-radius: 2px; background: transparent; color: var(--white); font: 600 0.98rem/1.2 var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--white); color: var(--black); }
.btn-list { display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.btn-list li { display: flex; }
.btn-list .btn { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.center .btn-row { justify-content: center; }

/* ---------- Testimonials ---------- */
.quote { background: var(--panel); border: 1px solid var(--line); padding: 28px; }
.quote blockquote { margin: 0 0 14px; font-style: italic; font-size: 1.12rem; color: var(--white); }
.quote .who { margin: 0; font-weight: 600; color: var(--muted); }

/* ---------- Staff ---------- */
.staff { display: flex; justify-content: center; flex-wrap: wrap; gap: 50px; }
.person { text-align: center; }
.person a { display: block; text-decoration: none; }
.person img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 2px solid var(--line-strong); }
.person a:hover img { border-color: var(--white); }
.person h3 { margin: 0; }
.person p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }
.gallery.tiles { grid-template-columns: repeat(auto-fill, 150px); max-width: none; margin: 28px 0 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); filter: grayscale(0.1); transition: filter 0.15s, border-color 0.15s; }
.gallery button:hover img { border-color: var(--white); filter: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.25rem/1.3 var(--font-head); letter-spacing: 0.03em; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 10px 0 0; color: var(--text); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); font-size: 0.9rem; }
.table-wrap { overflow-x: auto; }

/* ---------- Store ---------- */
/* v57: rows of four squares (two on a phone); a short last row is centered. */
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cat-grid > .cat { flex: 0 0 calc((100% - 48px) / 4); min-width: 0; }
.cat { display: flex; flex-direction: column; aspect-ratio: 1 / 1; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--white); text-align: center; }
.cat:hover { border-color: var(--white); color: var(--white); }
/* Every category picture sits in the same box above a label of the same height, so all the tiles line up. */
.cat img { flex: 1 1 0; min-height: 0; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; padding: 18% 22% 4%; }
.cat span { flex: none; min-height: 3.4em; display: flex; align-items: center; justify-content: center; padding: 4px 10px 14px; font: 700 1.15rem/1.2 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.item { background: var(--panel); border: 1px solid var(--line); padding: 16px; }
.item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--panel-2); margin-bottom: 12px; }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-strong); color: var(--muted); }
.warning { border: 1px solid var(--line-strong); background: var(--panel); padding: 22px 26px; }
.warning p { margin: 0 0 10px; font-weight: 600; color: var(--white); }
.warning p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.hours { list-style: none; padding: 0; margin: 0 0 1em; }
.hours li { display: flex; justify-content: space-between; gap: 12px; max-width: 340px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.map { width: 100%; height: 360px; border: 1px solid var(--line); filter: grayscale(1) contrast(1.05); }
.phones { list-style: none; padding: 0; margin: 0 0 1em; }
.phones li { margin: 4px 0; }

/* ---------- Call-to-action band ---------- */
.cta { background: var(--white); color: var(--black); padding: 36px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2, .cta h3 { color: var(--black); margin: 0; }
.cta p { margin: 4px 0 0; }
.cta a { color: var(--black); }
.cta .btn { border-color: var(--black); color: var(--black); }
.cta .btn:hover { background: var(--black); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 46px 0 26px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.5fr 1.25fr 1fr; gap: 30px; }
.site-footer h2 { font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 8px 0; }
.site-footer .social-list a { display: inline-flex; padding: 9px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .footer-logo img { width: 190px; height: auto; margin-bottom: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; }
.socials a:hover { border-color: var(--white); background: var(--panel); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: var(--white); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 0.86rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 64px 16px 24px; background: rgba(0, 0, 0, 0.94); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); width: auto; }
.lightbox-close { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--white); font-size: 1.6rem; cursor: pointer; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-count { position: fixed; top: 22px; left: 20px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Legal text ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.2em; }

@media (max-width: 900px) {
  .split, .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .split.reverse-mobile .split-media { order: -1; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .cat-grid > .cat { flex-basis: calc((100% - 16px) / 2); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 42px 0; }
  .hero { padding: 50px 0 44px; }
  .photo-row { grid-template-columns: minmax(0, 1fr); }
  .gallery, .gallery.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .items { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-list .btn { min-width: 0; width: 100%; }
  .icon-side { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .icon-side .icon { width: 56px; height: 56px; }
  .topbar .wrap { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Additions: page details ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero-home h1 { margin: 0; }
.eyebrow { font: 600 0.9rem/1.2 var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.split.top { align-items: start; }
.wordmark { width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.photo-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-row button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-row button img { aspect-ratio: 4 / 3; }
.photo-row button:hover img { border-color: var(--white); }
.split-media button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.section-band { position: relative; overflow: hidden; isolation: isolate; background: var(--black); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-band::before { background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../img/home/parallax-background-layer2.jpg'); }
.section-band > .wrap { position: relative; }
.lic-card { background: rgba(17, 18, 19, 0.82); border: 1px solid var(--line); padding: 28px 22px; }
.lic-card h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.06em; }
.lic-card .lic { color: var(--text); }
.lic .sub { color: var(--muted); margin-bottom: 10px; }
.service { max-width: 920px; margin: 0 auto; }
.service h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cols-2 { columns: 2; column-gap: 34px; }
.cols-2 li { break-inside: avoid; }
.price-tag { display: inline-block; border: 1px solid var(--line-strong); padding: 6px 14px; font: 700 1.1rem/1.2 var(--font-head); letter-spacing: 0.06em; color: var(--white); margin: 0 0 1em; }
.table td:last-child { white-space: nowrap; }
.table.wrap-last td:last-child { white-space: normal; }
.locke { max-width: 760px; margin: 0 auto; text-align: center; }
.locke blockquote { margin: 0; font: italic 400 clamp(1.15rem, 2.4vw, 1.45rem)/1.5 var(--font-body); color: var(--white); }
.locke cite { display: block; margin-top: 10px; font-style: normal; color: var(--muted); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--text); }
.shop-elsewhere { text-align: center; margin-top: 34px; }
.contact-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.contact-list li { margin: 5px 0; }
.contact-list .who { display: inline-block; min-width: 128px; color: var(--muted); }
.social-list { list-style: none; margin: 0; padding: 0; }
.social-list li { margin: 0; }
.social-list a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; color: var(--text); }
.social-list a:hover { color: var(--white); text-decoration: underline; }
.social-list svg, .social-list img { width: 20px; height: 20px; flex: none; color: var(--white); fill: var(--white); object-fit: contain; }
.footer-links { columns: 2; column-gap: 20px; }
.footer-links li { break-inside: avoid; }
.site-footer .tagline { font-size: 0.9rem; max-width: 260px; }
.map-link { font-size: 0.9rem; margin-top: 8px; }
.person .contact { margin-top: 8px; color: var(--text); }
.person .contact a { display: inline; color: var(--text); text-decoration: underline; }
.skull-link { display: block; width: 110px; margin: 40px auto 0; }
.skull-link img { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts .panel h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.05em; }
.facts .panel p { margin: 0; color: var(--text); }
@media (max-width: 900px) {
  .photo-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .photo-row.three { grid-template-columns: minmax(0, 1fr); }
  .cols-2 { columns: 1; }
  .topbar .tb-email { display: none; }
  .topbar { font-size: 0.82rem; }
  .table td:last-child { white-space: normal; }
}
.person { max-width: 380px; display: flex; flex-direction: column; }
/* The phone and email sit at the bottom of each column, so they line up side by side. */
.person .contact { margin-top: auto; padding-top: 10px; }
.person .bio { margin: 12px auto 0; color: var(--text); }
.contact-list a { overflow-wrap: anywhere; }
.email-us { font-size: 1.2rem; margin: 0; }
.social-list svg.lc { width: 26px; height: 26px; margin: -3px -3px -3px -3px; }

/* ---------- Books page ---------- */
.book { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 44px; align-items: start; max-width: 1000px; margin: 0 auto; }
.book-cover button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.book-cover img { width: 100%; height: auto; border: 1px solid var(--line-strong); }
.book-cover button:hover img { border-color: var(--white); }
.book-body h2 { margin-bottom: 0.2em; }
.book-sub { font-size: 1.15rem; color: var(--text); margin-bottom: 1.2em; }
.book-note { font-size: 0.92rem; margin-top: 16px; }

/* ---------- Pathbound screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.shots figure { margin: 0; }
.shots button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border: 1px solid var(--line-strong); }
.shots button:hover img { border-color: var(--white); }
.shots figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 900px) {
  .book { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .book-cover { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .shots { grid-template-columns: minmax(0, 1fr); }
  .cat span { font-size: 1rem; }
}
.person .bio a { display: inline; color: var(--white); text-decoration: underline; }

/* ---------- Online store: item lists, item page, cart, checkout, quote forms, admin (v13) ---------- */
a.item { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
a.item:hover { border-color: var(--white); color: var(--text); }
.item-photo { display: block; aspect-ratio: 1 / 1; background: #FFFFFF; margin-bottom: 8px; overflow: hidden; }
.item .item-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; margin: 0; background: #FFFFFF; }
.no-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); font-size: 0.9rem; background: var(--panel-2); }
.no-photo.big { aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.item-name { font: 700 1.15rem/1.2 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.item-summary { font-size: 0.92rem; color: var(--muted); }
.item-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 6px; }
.item-price { font-weight: 600; color: var(--white); }
.item-stock { font-size: 0.88rem; color: var(--muted); }

.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.product-media { display: grid; gap: 10px; }
.product-main, .product-thumbs button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #FFFFFF; cursor: zoom-in; aspect-ratio: 1 / 1; }
.product-main:hover, .product-thumbs button:hover { border-color: var(--white); }
.product-main img, .product-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.product-price { font: 700 2rem/1.1 var(--font-head); color: var(--white); letter-spacing: 0.02em; margin: 0 0 4px; }
.product-stock { color: var(--white); font-weight: 600; margin: 0 0 14px; }
.product-stock.out, .item-stock.out { color: var(--muted); }
.buy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 18px 0 8px; }
.buy-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--muted); }
.buy-row select { width: 5.5em; }
.added { color: var(--white); margin: 0 0 8px; }
.notice.rules { margin-top: 20px; font-size: 0.95rem; }
.notice.rules p { margin: 0 0 8px; }
.notice.rules p:last-child { margin: 0; }
.product-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 36px; margin-top: 44px; }
.product-details .prose { grid-column: 1 / -1; max-width: 820px; }
.product-details h2 { font-size: 1.5rem; }
.product-details .table th, .table.kv th { width: 38%; font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }

.wrap.narrow { max-width: 900px; }
.checkout fieldset { min-width: 0; margin: 0 0 18px; padding: 18px 22px 20px; border: 1px solid var(--line); background: var(--panel); }
.checkout legend { padding: 0 8px; font: 700 1.2rem/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.grid-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 8px 0 12px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.checkout input:not([type]), .checkout input[type="text"], .checkout input[type="email"], .checkout input[type="tel"], .checkout input[type="date"], .checkout input[type="number"],
.checkout input[type="url"], .checkout input[type="password"], .checkout select, .checkout textarea, .admin-bar select, .buy-row select, .cart-table select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); color: var(--white); font: inherit; font-size: 1rem; color-scheme: dark; }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { border-color: var(--white); outline: none; }
.checkout textarea { resize: vertical; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; cursor: pointer; }
.choice input { flex: none; width: 18px; height: 18px; margin: 0.25em 0 0; accent-color: #FFFFFF; }
.help { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); }
.problems { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--white); border-left-width: 4px; background: var(--panel-2); }
.problems ul { margin: 6px 0 0; padding-left: 20px; }
.problems p { margin: 0; }
.warn { font-size: 0.92rem; font-weight: 600; color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.link-btn { padding: 0; border: 0; background: none; color: var(--white); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--muted); }
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.cart-table td { vertical-align: middle; }
.cart-table select { width: 5em; }
.cart-item { display: flex; align-items: center; gap: 12px; }
.cart-item img, .cart-noimg { flex: none; width: 64px; height: 64px; object-fit: contain; background: #FFFFFF; border: 1px solid var(--line); }
.cart-noimg { background: var(--panel-2); }
.cart-total { margin: 10px 0 6px; font-size: 1.15rem; text-align: right; }
.cart-note { font-size: 0.9rem; text-align: right; }
.cart-actions { justify-content: space-between; align-items: center; }
.done { max-width: 760px; margin: 0 auto; }
.done h2 { font-size: 1.6rem; }
/* v62: the pay panel at checkout, with Fortis's card form (its own frame, kept inside the panel's width) */
.fortis-pay { min-height: 180px; margin: 0 0 12px; }
.fortis-pay iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.pay-panel [data-pay-sum] { font-weight: 600; }
.quote-wrap { max-width: 900px; margin: 36px auto 0; }
.checkout.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.checkout.inline input[type="text"] { width: auto; flex: 1 1 220px; }
.checkout.inline select, .checkout.inline input[type="number"] { width: auto; }
.checkout.inline label { display: flex; align-items: center; gap: 8px; }
/* v42: a drop-shipped gun's serial number box, one per row with its gun's name. */
.checkout.inline label.ds-sn-label { flex: 1 1 100%; flex-wrap: wrap; }
.cart-count { font-family: var(--font-body); font-size: 0.9em; }

.admin h3 { margin-top: 30px; font-size: 1.3rem; }
.admin-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 0 0 22px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 8px 2px; font: 600 1rem/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.admin-tabs a:hover { box-shadow: inset 0 -2px 0 var(--muted); color: var(--white); }
.admin-tabs a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--white); color: var(--white); }
.admin-tabs .link-btn { margin-left: auto; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.admin-bar h2 { margin: 0; }
.admin-bar label { display: flex; align-items: center; gap: 8px; }
.admin-bar select { width: auto; }
.badge { padding: 4px 10px; border: 1px solid var(--line-strong); font-size: 0.9rem; }
.admin-thumb { display: block; width: 48px; height: 48px; object-fit: contain; background: #FFFFFF; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; }
.admin-photos li { padding: 8px; border: 1px solid var(--line); background: var(--panel); }
.admin-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #FFFFFF; }
.admin-photos .btn-row { gap: 12px; margin: 6px 0 0; font-size: 0.9rem; }
.admin-login { max-width: 440px; margin: 0 auto; }
.admin .notice { margin: 0 0 18px; }
.flash { position: fixed; left: 50%; bottom: 24px; z-index: 300; max-width: 90vw; margin: 0; padding: 10px 18px; transform: translateX(-50%); background: var(--white); color: var(--black); font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.flash.bad { border: 1px solid var(--white); background: var(--panel-2); color: var(--white); }

@media (max-width: 900px) {
  .product, .product-details { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .grid-fields { grid-template-columns: minmax(0, 1fr); }
  .checkout fieldset { padding: 14px 14px 16px; }
  .product-price { font-size: 1.7rem; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { padding: 0; border: 0; }
  .cart-table td.cart-cell { grid-column: 1 / -1; }
  .cart-actions { flex-direction: column-reverse; align-items: stretch; }
  .cart-actions .btn { text-align: center; }
}
.header-cart { display: none; }
@media (max-width: 1060px) {
  .header-cart { display: inline-block; margin: 0 6px 0 auto; padding: 10px 8px; color: var(--white); font: 600 1rem/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
  .header-cart:hover { color: var(--muted); }
}

/* ---------- Age check (v13) ---------- */
body.age-open { overflow: hidden; }
.age-gate { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 8, 9, 0.94); backdrop-filter: blur(6px); }
.age-box { width: 100%; max-width: 460px; padding: 30px 30px 26px; border: 1px solid var(--line-strong); border-top: 4px solid var(--white); background: var(--panel); text-align: center; }
.age-box img { display: block; width: 130px; height: auto; margin: 0 auto 16px; }
.age-box h2 { font-size: 1.8rem; margin: 0 0 10px; }
.age-box p { margin: 0 0 12px; }
.age-q { color: var(--white); font-weight: 600; }
.age-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 16px; }
.age-buttons .btn { width: 100%; padding: 13px 16px; }
.age-remember { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.age-remember input { flex: none; width: 18px; height: 18px; margin: 0.15em 0 0; accent-color: #FFFFFF; }
.age-no { color: var(--white); font-weight: 600; }
.field-label { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.stock-now { margin: 2px 0 0; font-size: 1.3rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Firearm warning: a smaller box on the store pages (v19) ---------- */
.warning { max-width: 640px; padding: 14px 18px; font-size: 0.86rem; line-height: 1.5; }
.warning p { margin: 0 0 6px; }
.section.alt:has(> .wrap > .warning) { padding: 30px 0; }

/* ---------- Checkout totals: shipping, sales tax, card and cash totals ---------- */
.totals-table { margin-bottom: 0.8em; }
.totals-table td:first-child { color: var(--muted); white-space: normal; }
.totals-table td:last-child { text-align: right; }
.totals-table th { font-size: 1rem; }
.totals-table tr.total th, .totals-table tr.total td { border-top: 1px solid var(--line-strong); font-size: 1.05rem; }
.totals-table tr:last-child td, .totals-table tr:last-child th { border-bottom: 0; }
.cash-note { margin: 0 0 1em; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--white); }
.cash-note p { margin: 0; }
.items ~ .cash-note { margin: 18px 0 0; } /* v39: the surcharge notice under a category's list */

/* ---------- Card price with the cash price beside it (v22) ---------- */
.cash-price { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.cart-total .cash-price { margin-top: 2px; }
.product-cash { margin: -4px 0 12px; font-size: 0.92rem; color: var(--muted); }
.product-cash .cash-price { display: inline; font-size: inherit; color: var(--text); }

/* ---------- FedEx labels on the admin order page (v23) ---------- */
.label-row { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); }
.label-row p { margin: 0 0 6px; }
.label-row .list { margin: 4px 0 8px; }
/* v41: the small "Make a FedEx test label" option under each shipment. */
.label-row .test-label { margin: 4px 0 2px; font-size: 0.92rem; }
.label-row .test-label summary { cursor: pointer; color: var(--muted); }
.label-row .test-label .checkout.inline { margin: 8px 0 4px; }

/* ---------- Checkout choices light up; missed fields are outlined after pressing send (v24) ---------- */
.checkout .choice { padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.checkout .choice:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.checkout .choice input { width: 20px; height: 20px; margin-top: 0.1em; }
.checkout .choice:has(input:checked) { border-color: var(--white); background: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.checkout .choice:has(input:focus-visible) { outline: 2px solid var(--white); outline-offset: 2px; }
.checkout .choice:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.checkout .missed input, .checkout .missed select, .checkout .missed textarea { border-color: var(--white); box-shadow: 0 0 0 2px var(--white), 0 0 14px rgba(255, 255, 255, 0.45); }
.checkout .choice.missed { border-color: var(--white); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 2px var(--white), 0 0 14px rgba(255, 255, 255, 0.35); }
.missed-note { display: block; margin-top: 5px; font-size: 0.88rem; font-weight: 700; color: var(--white); letter-spacing: 0.01em; }
.missed-note::before { content: "\25B2  "; font-size: 0.7rem; }

/* ---------- Serial numbers on the admin pages (v27) ---------- */
.serial-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; }
.serial-tools label { display: flex; align-items: center; gap: 8px; }
.checkout .serial-tools input[type="text"], .checkout .serial-tools input[type="search"] { width: 11em; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); color: var(--white); font: inherit; color-scheme: dark; }
.serial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 8px 14px; margin: 10px 0 14px; padding: 0; list-style: none; }
.serial-grid.long { max-height: 28rem; overflow-y: auto; padding: 4px 8px 4px 0; }
.serial-grid label { display: flex; align-items: center; gap: 8px; }
.serial-grid label span { flex: none; min-width: 2.6em; font-size: 0.8rem; color: var(--muted); text-align: right; }
.checkout .serial-grid input[type="text"] { padding: 7px 9px; }
.serial-grid li.found input { border-color: var(--white); box-shadow: 0 0 0 2px var(--white); }
.sn-line { margin-top: 4px; font-size: 0.9rem; color: var(--muted); }
.sn-line strong { color: var(--text); font-weight: 600; }
.checkout.inline textarea.sn-stock { flex: 1 1 220px; width: auto; min-height: 2.9em; padding: 10px 12px; }
.checkout.sn-edit { margin: 6px 0 2px; }
.checkout.sn-edit input[type="text"] { flex: 0 1 11em; width: 11em; padding: 7px 9px; }
.serial-tools[hidden] { display: none; }
.field[hidden], .choice[hidden] { display: none; } /* v36: stock boxes hidden for services */

/* ---------- UPC lookup on the product page (v34) ---------- */
.upc-row { gap: 10px; margin: 4px 0 0; font-size: 0.9rem; }

/* Products list: the Show box on each row (v43). */
.table input[data-show] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--white); }
/* Products list: Find box and bulk Show/Hide buttons (v44). */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 10px; }
.bulk-bar input[type=search] { flex: 1 1 240px; max-width: 360px; padding: 7px 10px; background: var(--black, #111); color: inherit; border: 1px solid var(--line-strong, #444); border-radius: 4px; font: inherit; }
.table input[data-pick], .table input[data-pick-all] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--white); vertical-align: middle; }
.table tr[hidden] { display: none; }
.bulk-bar select { width: auto; padding: 7px 10px; background: var(--black, #111); color: inherit; border: 1px solid var(--line-strong, #444); border-radius: 4px; font: inherit; color-scheme: dark; }
/* v46: shipping weight as pounds and ounces, side by side */
.checkout .weight-pair { display: flex; align-items: center; gap: 8px; }
.checkout .weight-pair input:not([type]) { width: 6em; flex: 0 1 6em; }

/* ---------- v53: filters on category pages ---------- */
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.shop .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters { background: var(--panel); border: 1px solid var(--line); padding: 16px 16px 6px; }
.filters summary { display: none; }
.filter-search input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); color: var(--white); font: inherit; font-size: 0.98rem; color-scheme: dark; }
.filter-search input:focus { border-color: var(--white); outline: none; }
.filter-group { margin: 16px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
/* v56: on the search page the panel has no search box, so the first group starts at the top. */
.filters-body > [data-groups]:first-child > .filter-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.filter-group legend { float: left; width: 100%; margin: 0 0 6px; padding: 0; font: 700 1rem/1.2 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.filter-group .choice { clear: both; margin: 6px 0; font-size: 0.93rem; line-height: 1.3; }
.filter-group .choice input { width: 16px; height: 16px; margin-top: 0.12em; }
.filter-group .choice.extra { display: none; }
.filter-group.open .choice.extra { display: flex; }
.filter-group .choice.none { color: var(--muted); }
.filter-group .link-btn { font-size: 0.9rem; margin: 2px 0 4px; }
.filter-n { color: var(--muted); }
.filters .choice + div, .filters > .filters-body > p { margin: 14px 0 10px; }
.shop-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; margin: 0 0 14px; }
.shop-count { margin: 0; color: var(--muted); }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 0.93rem; color: var(--muted); }
.shop-sort select { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); color: var(--white); font: inherit; font-size: 0.95rem; color-scheme: dark; }
.shop-more { justify-content: center; }
.items .empty { grid-column: 1 / -1; }
.shop ~ .cash-note, .shop ~ .help { margin: 18px 0 0; }
@media (max-width: 1100px) {
  .shop .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .filters { padding: 0; }
  .filters summary { display: block; padding: 12px 16px; font: 700 1.05rem/1.2 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); cursor: pointer; }
  .filters[open] summary { border-bottom: 1px solid var(--line); }
  .filters-body { padding: 14px 16px 6px; }
}
@media (max-width: 600px) {
  .shop .items { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v55: the Firearms page leads to Handguns and Rifles & Shotguns ---------- */
.cat-grid.sub-cats { justify-content: flex-start; margin: 0 0 30px; }
.cat-grid.sub-cats > .cat { flex: 0 0 240px; }
@media (max-width: 900px) {
  .cat-grid.sub-cats { justify-content: center; }
  .cat-grid.sub-cats > .cat { flex-basis: calc((100% - 16px) / 2); max-width: 240px; }
}
.sub-cats-head { margin: 0 0 6px; }

/* ---------- v56: store search ---------- */
/* The search bar on the store, category, item and search pages; the box takes the whole row on a phone. */
.store-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 820px; margin: 0 auto 34px; }
.store-search input { flex: 1 1 180px; min-width: 0; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); color: var(--white); font: inherit; font-size: 1rem; color-scheme: dark; }
.store-search input:focus { border-color: var(--white); outline: none; }
.store-search .store-all { white-space: nowrap; }
.store-search.compact { max-width: 720px; margin: 0 0 26px; }
.search-head { margin: 0 0 18px; font: 700 1.3rem/1.2 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
@media (max-width: 600px) {
  .store-search input { flex-basis: 100%; }
}
.store-search .store-brands { white-space: nowrap; }

/* ---------- v59: the reminder notice at checkout, and the Analytics tab ---------- */
.remind-note .help { margin: 0 0 6px; }
.remind-note .choice { margin: 0; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 22px; }
.an-tile { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; }
.an-tile b { display: block; font: 700 1.6rem/1.1 var(--font-head); color: var(--white); }
.an-tile span { font-size: 0.85rem; color: var(--muted); }
.an-bar { display: block; height: 4px; margin-top: 4px; background: var(--white); opacity: 0.6; }
.checkout.inline input[type="date"] { width: auto; }

/* ---------- v57: sub categories, find boxes, and Shop by brand ---------- */
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 0.93rem; line-height: 1.3; text-decoration: none; }
.chip:hover { border-color: var(--white); color: var(--white); }
.chip[aria-current="page"] { border-color: var(--white); background: rgba(255, 255, 255, 0.12); color: var(--white); }
/* v63: the admin Products list's filter chips are buttons */
button.chip { font: inherit; font-size: 0.93rem; line-height: 1.3; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--white); background: rgba(255, 255, 255, 0.12); color: var(--white); }
.admin-chips { margin: 0 0 10px; }
.group-find, .brand-find input { width: 100%; padding: 7px 10px; margin: 0 0 8px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg); color: var(--white); font: inherit; font-size: 0.93rem; color-scheme: dark; }
.group-find:focus, .brand-find input:focus { border-color: var(--white); outline: none; }
.filter-group .choice[hidden], .filter-group.open .choice.extra[hidden] { display: none; }
.filter-group.finding .choice.extra:not([hidden]) { display: flex; }
.filter-group.finding [data-all] { display: none; }
.brand-find { display: block; max-width: 420px; margin: 0 0 16px; }
.brand-find input { font-size: 1rem; padding: 10px 12px; margin: 0; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.az a { min-width: 34px; padding: 6px 8px; border: 1px solid var(--line); text-align: center; text-decoration: none; font: 700 1rem/1.2 var(--font-head); color: var(--white); }
.az a:hover { border-color: var(--white); }
.brand-letter { margin: 0 0 18px; }
.brand-letter h3 { margin: 0 0 8px; padding: 0 0 6px; border-bottom: 1px solid var(--line); font: 700 1.2rem/1.2 var(--font-head); color: var(--white); }
.brand-list { list-style: none; margin: 0; padding: 0; columns: 4 170px; column-gap: 26px; }
.brand-list li { break-inside: avoid; margin: 0 0 6px; }
.brand-letter[hidden], .brand-list li[hidden], .az[hidden] { display: none; }
.head-link { margin-left: 12px; font: 400 0.95rem/1.2 var(--font-body); letter-spacing: 0; text-transform: none; }
