:root {
  --bg: #f3eee4;
  --ink: #2a1810;
  --card: #fbf7f0;
  --muted: #6f6358;
  --line: #d8cfc2;
  --maroon: #701824;
  --olive: #505828;
  --sand: #e8dfd0;
  --film: #cfc3ae;
  --font: "Courier New", Courier, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-wrap: balance; margin: 0; }
p { line-height: 1.6; text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.kicker { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 95%, white);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 6rem; }
.logo { height: 5rem; width: auto; object-fit: contain; }
.tools { display: flex; align-items: center; gap: .5rem; }
.basket, details.menu > summary {
  list-style: none; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line); background: var(--card);
  padding: .7rem 1.1rem; border-radius: 10px; font-weight: 700; font-family: var(--font);
  min-height: 2.75rem; display: inline-flex; align-items: center; gap: .4rem;
}
details.menu { position: relative; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu nav {
  position: absolute; right: 0; top: calc(100% + .4rem);
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(36rem, 70vh); overflow: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: .6rem;
}
details.menu nav a { display: block; text-decoration: none; padding: .75rem .85rem; border-radius: 8px; }
details.menu nav a.sub { padding: .45rem .85rem .45rem 1.6rem; font-size: .92rem; }
details.menu nav a:hover, details.menu nav a[aria-current="page"] { background: var(--sand); }
details.menu nav small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.film { background: var(--film); }
.film video { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.band { background: color-mix(in srgb, var(--sand) 60%, transparent); border-bottom: 1px solid var(--line); padding: 2.5rem 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: end; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta.stack { flex-direction: column; margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 10px; padding: .75rem 1.1rem; font-weight: 700;
  border: 1px solid transparent; font-family: var(--font); cursor: pointer; width: 100%;
}
.btn-primary { background: var(--maroon); color: #f7f3ea; }
.btn-outline { background: var(--card); border-color: var(--line); color: var(--ink); }
section { padding: 3rem 0; }
.muted { color: var(--muted); }
.tiny { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.grid-2 { display: grid; gap: 2.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-prod { display: grid; gap: 2rem; }
.grid-lines { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid-3, .grid-prod { grid-template-columns: repeat(3, 1fr); }
  .grid-lines { grid-template-columns: repeat(2, 1fr); }
  .logo { height: 6.25rem; }
  .bar { min-height: 7.5rem; }
  .btn { width: auto; }
  .cta.stack .btn { width: 100%; }
}
@media (min-width: 960px) {
  .grid-lines { grid-template-columns: repeat(3, 1fr); }
}
.card { background: var(--card); border-radius: 16px; padding: .5rem; box-shadow: 0 0 0 1px rgb(42 24 16 / .08); text-decoration: none; display: block; }
.card img { width: 100%; border-radius: 10px; object-fit: cover; }
.card.pad, .pad { padding: 1.4rem 1.5rem; }
.pad-sm { padding: .75rem .5rem 1rem; }
.ratio-34 { aspect-ratio: 3/4; }
.prod-meta { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; padding: .35rem 0; }
.cat-safety { color: var(--maroon); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.cat-tactical { color: var(--olive); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pills a {
  display: inline-flex; min-height: 2.75rem; align-items: center;
  border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  padding: .4rem .9rem; text-decoration: none; font-size: .92rem;
}
.pills a[aria-current="page"] { background: var(--sand); }
footer.site { border-top: 1px solid var(--line); background: var(--sand); }
.foot { display: grid; gap: 2rem; padding: 2.5rem 0; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; } }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--maroon); }
.legal { border-top: 1px solid var(--line); padding: 1rem 0; font-size: .8rem; color: var(--muted); }
form { display: grid; gap: .9rem; margin-top: 1.2rem; }
label { font-size: .9rem; font-weight: 700; }
input, textarea, button {
  border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: .7rem .8rem; font: inherit; color: inherit; font-family: var(--font);
}
input, textarea { width: 100%; }
textarea { min-height: 8rem; }
button[type=submit] { cursor: pointer; width: auto; }
.note { color: var(--olive); }
.basket-row { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .9rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.basket-row img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 8px; }
.qty { width: 4.5rem; }
.err { color: var(--maroon); }

.prod-hero { overflow: hidden; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px rgb(42 24 16 / .08); }
.prod-hero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.spec-list { background: var(--card); border-radius: 16px; box-shadow: 0 0 0 1px rgb(42 24 16 / .08); padding: .4rem 1rem; }
.spec-row { display: grid; gap: .5rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
@media (min-width: 720px) { .spec-row { grid-template-columns: 12rem 1fr auto; align-items: center; } }
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin-top: 1rem; }
.gallery-grid figure { margin: 0; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgb(42 24 16 / .08); }
.gallery-grid img, .gallery-grid video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem .75rem; font-size: .85rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--maroon); }
.subcats { margin-top: .8rem; display: grid; gap: .15rem; }
.subcats a { text-decoration: none; font-size: .92rem; padding: .35rem .2rem; display: block; }
@media (min-width: 720px) { .subcats { grid-template-columns: 1fr 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
header.site form.search, form.search { position: relative; display: flex; gap: .4rem; margin: 0; align-items: center; }
header.site form.search input, form.search input { width: min(16rem, 36vw); min-height: 2.75rem; flex: 1; }
header.site form.search button, form.search button { width: auto; cursor: pointer; flex: 0 0 auto; }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 50;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.search-suggest ul { list-style: none; margin: 0; padding: .25rem 0; }
.search-suggest li a { display: flex; gap: .7rem; align-items: center; padding: .55rem .8rem; text-decoration: none; }
.search-suggest li a:hover { background: var(--sand); }
.search-suggest img { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 6px; }
.search-suggest strong { display: block; font-size: .92rem; }
.search-suggest small { display: block; color: var(--muted); }
.search-suggest .all, .search-suggest a.all { display: block; padding: .7rem .8rem; border-top: 1px solid var(--line); text-decoration: none; }
@media (max-width: 719px) {
  .bar { flex-wrap: wrap; min-height: auto; padding: .6rem 0; }
  form.search { order: 3; width: 100%; }
  form.search input { width: 100%; flex: 1; }
}

.mobile-pass { display: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
img, video, iframe { max-width: 100%; height: auto; }
.wrap {
  width: min(72rem, calc(100% - 1.5rem));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.logo { height: 3.5rem; max-width: min(11.5rem, 48vw); }
.bar { min-height: 4.5rem; gap: .5rem; padding: calc(.45rem + env(safe-area-inset-top)) 0 .45rem; }
.basket, details.menu > summary { padding: .65rem .8rem; }
details.menu nav {
  width: min(22rem, calc(100vw - 1rem));
  max-height: min(70dvh, 36rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.55rem, 7vw, 3rem); }
.prod-meta { flex-wrap: wrap; }
.prod-meta h2 { font-size: 1.15rem; }
input, textarea, select, button { font-size: 16px; }
.cta .btn, .cta.stack .btn { min-height: 2.75rem; }
.search-suggest { max-height: min(16rem, 50dvh); overflow: auto; }
section { padding: 2rem 0; }
.basket-row { grid-template-columns: 4rem minmax(0, 1fr); }
.basket-row > p:last-child { grid-column: 2; }
@media (max-width: 719px) {
  .bar { flex-wrap: wrap; }
  form.search { order: 3; width: 100%; }
  form.search input { width: 100%; min-width: 0; flex: 1; }
  .grid-prod, .grid-3 { grid-template-columns: 1fr; }
  .cta { width: 100%; }
  .cta .btn { width: 100%; }
  .band { padding: 1.6rem 0; }
}
@media (min-width: 720px) {
  .logo { height: 6.25rem; max-width: none; }
  .bar { min-height: 7.5rem; padding: 0; }
  section { padding: 3rem 0; }
  .basket-row { grid-template-columns: 4.5rem 1fr auto; }
  .basket-row > p:last-child { grid-column: auto; }
}
