/* Off Grid AF! — black, bone, anarchy red, olive. */
:root {
  --black: #0c0c0b;
  --ink: #161614;
  --bone: #efe6d2;
  --paper: #f6f3ec;
  --red: #e0201b;
  --red-2: #ff3a2f;
  --olive: #3a4a2a;
  --olive-2: #4a5d35;
  --muted: #6d675b;
  --line: #e2dccd;
  --radius: 6px;
  --head: "Bebas Neue", "Oswald", Impact, sans-serif;
  --brush: "Permanent Marker", cursive;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .03em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.brush { font-family: var(--brush); font-weight: 400; }
.af { color: var(--red); }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.underline { position: relative; padding-bottom: 8px; }
.underline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px; background: var(--red); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 18px; border-radius: var(--radius); border: 0; cursor: pointer; text-decoration: none;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-green { background: var(--olive); color: #f3efe4; width: 100%; }
.btn-green:hover { background: var(--olive-2); }
.btn-lg { font-size: 1.5rem; padding: 12px 26px; }
.btn-block { width: 100%; }
.btn-outline { border: 2px solid #fff; color: #fff; background: rgba(0,0,0,.35); font-size: 1rem; padding: 6px 14px; }
.btn-outline-dark { border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-size: 1.15rem; letter-spacing: .06em; text-decoration: none; border-bottom: 2px solid currentColor; }
.link-arrow:hover { color: var(--red); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--black); color: #f3efe4; border-bottom: 1px solid #222; }
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo { height: 46px; width: auto; }
.logo-text { font-family: var(--head); font-size: 2rem; letter-spacing: .03em; color: var(--bone); white-space: nowrap; }
.logo-text sup { font-size: .5em; }
.mainnav { display: flex; gap: 4px; }
.mainnav a {
  position: relative; text-decoration: none; font-family: var(--head); font-size: 1.15rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 10px; color: #e8e2d3; transition: color .2s;
}
.mainnav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--red-2); }
.mainnav a:hover::after, .mainnav a[aria-current="page"]::after { transform: scaleX(1); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; color: #f3efe4; cursor: pointer; border-radius: 50%; text-decoration: none; }
.icon-btn:hover { color: var(--red-2); }
.icon-btn .ic { width: 24px; height: 24px; }
.menu-btn { display: none; }
.search { display: flex; align-items: center; background: #1d1d1a; border-radius: 999px; padding-left: 14px; }
.search input { background: none; border: 0; color: #f3efe4; width: 150px; font: inherit; font-size: .9rem; outline: none; }
.badge { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- flash ---------- */
.flash { width: min(1240px, 100% - 32px); margin: 14px auto 0; padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.flash-ok { background: #e3eed8; color: #2b4419; }
.flash-err { background: #fbe1df; color: #8d140f; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; min-height: min(78vh, 640px); display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,0) 80%), var(--hero, linear-gradient(160deg, #3b1a0b, #c4561d 55%, #f0a14a));
  background-size: cover; background-position: center;
}
.hero-inner { padding: 60px 0; }
.hero-title { font-size: clamp(3.6rem, 11vw, 8rem); color: var(--bone); margin: 0; line-height: .9; text-shadow: 0 4px 18px rgba(0,0,0,.5); }
.hero-title sup { font-size: .2em; vertical-align: top; }
.hero-tag { font-size: clamp(1.4rem, 3.4vw, 2.2rem); max-width: 18ch; line-height: 1.2; margin: 18px 0 26px; color: var(--bone); text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* ---------- features ---------- */
.features { background: var(--black); color: #e8e2d3; }
.feat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 18px 0; }
.feat-row div { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--head); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; }
.feat-row .ic { width: 30px; height: 30px; color: var(--bone); }

/* ---------- sections / grid ---------- */
.featured, .shop, .cart { padding: 44px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h1, .sec-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.thumb { aspect-ratio: 1; background: #ece7dc; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { text-decoration: none; font-weight: 600; }
.card-name:hover { color: var(--red); }
.price { font-weight: 700; margin-bottom: 8px; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.card-body form, .card-body > .btn { margin-top: auto; }
.empty { color: var(--muted); font-size: 1.1rem; padding: 30px 0; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--black); padding: 6px 0; }
.tile {
  position: relative; aspect-ratio: 1 / .95; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 22px; text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.75)), var(--tile, linear-gradient(160deg, #2b2b25, #5a3a1c));
  background-size: cover; background-position: center; transition: background-size .4s;
}
.tile-label { font-family: var(--head); font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: .04em; text-shadow: 0 2px 8px #000; text-align: center; line-height: 1; }
.tile:hover .btn-outline { background: var(--red); border-color: var(--red); }

/* ---------- mindset banner ---------- */
.mindset {
  color: #fff; padding: 70px 0;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.55)), var(--banner, linear-gradient(120deg, #2a1206, #b4471a 50%, #e9913f));
  background-size: cover; background-position: center;
}
.mindset-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.mindset h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15; text-shadow: 0 3px 10px rgba(0,0,0,.5); }
.values { font-family: var(--head); font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }

/* ---------- shop ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chips a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; }
.chips a[aria-current="page"], .chips a:hover { background: var(--black); color: #fff; border-color: var(--black); }
.sort select { font: inherit; padding: 6px 8px; border-radius: var(--radius); border: 1px solid var(--line); margin-left: 6px; }

/* ---------- product ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 40px 0; align-items: start; }
.main-img { background: #ece7dc; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb-btn { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: #ece7dc; }
.thumb-btn.on { border-color: var(--red); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.crumb { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.price.big { font-size: 1.6rem; }
.opts { border: 0; padding: 0; margin: 0 0 16px; }
.opts legend { font-weight: 700; margin-bottom: 6px; }
.opts label { display: inline-block; margin: 0 6px 6px 0; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: inline-block; min-width: 46px; text-align: center; padding: 7px 12px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 600; }
.opts input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.opts label.na span { opacity: .35; text-decoration: line-through; }
.qty-row { display: flex; gap: 12px; align-items: end; }
.qty-row input { width: 72px; font: inherit; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); }
.qty-row .btn { flex: 1; width: auto; }
.hint { color: var(--muted); font-size: .88rem; }
.desc { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.ship-note { font-size: .9rem; color: var(--muted); }

/* ---------- cart ---------- */
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.line { display: grid; grid-template-columns: 76px 1fr 70px 90px auto; gap: 14px; align-items: center; background: #fff; padding: 12px; border-radius: var(--radius); margin-bottom: 10px; }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; background: #ece7dc; }
.line-info { display: flex; flex-direction: column; }
.line-info a { font-weight: 600; text-decoration: none; }
.line-info small { color: var(--muted); }
.line input { width: 64px; padding: 7px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); }
.summary { background: #fff; padding: 20px; border-radius: var(--radius); position: sticky; top: 90px; }
.summary > div { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.2rem; }
.summary form { margin-top: 14px; }

/* ---------- prose / forms ---------- */
.prose { padding: 44px 0; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; }
.thanks { padding: 70px 0; text-align: center; }
.lead { font-size: 1.15rem; }
.form { display: grid; gap: 14px; margin-top: 20px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form input, .form textarea { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: #cfc8b8; padding: 44px 0 20px; margin-top: 0; }
.cols { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr 1.6fr; gap: 26px; }
.cols h4 { font-family: var(--head); font-weight: 400; font-size: 1.2rem; letter-spacing: .1em; color: #fff; margin: 0 0 8px; }
.cols a { display: block; text-decoration: none; font-size: .92rem; padding: 2px 0; }
.cols a:hover { color: var(--red-2); }
.logo-foot { height: 80px; }
.f-brand .logo-text { font-size: 2.2rem; }
.socials { display: flex; gap: 10px; }
.socials a { display: inline-grid; }
.socials .ic { width: 24px; height: 24px; }
.news-form { display: flex; margin: 6px 0; }
.news-form input[type=email] { flex: 1; min-width: 0; padding: 10px 12px; border: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; }
.news-form button { background: var(--red); color: #fff; border: 0; padding: 0 16px; font-family: var(--head); font-size: 1.1rem; letter-spacing: .06em; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.legal { border-top: 1px solid #262622; margin-top: 30px; padding-top: 16px; font-size: .8rem; color: #8b8576; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .search input { width: 110px; }
  .cols { grid-template-columns: 1fr 1fr 1fr; }
  .f-news { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .mainnav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--black); padding: 8px 16px 16px; border-bottom: 1px solid #222;
  }
  .mainnav.open { display: flex; }
  .search { display: none; }
  .feat-row { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .feat-row div { justify-content: flex-start; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pdp, .cart-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .logo { height: 36px; }
  .logo-text { font-size: 1.5rem; }
  .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feat-row { grid-template-columns: 1fr 1fr; }
  .feat-row div { font-size: 1rem; }
  .card-body { padding: 10px; }
  .btn-green { font-size: 1rem; padding: 8px 6px; }
  .line { grid-template-columns: 60px 1fr auto; }
  .line img { width: 60px; height: 60px; }
  .line strong { grid-column: 2; }
  .cols { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
