:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --yellow: #f5c400;
  --yellow-d: #e0b000;
  --red: #e31c23;
  --line: #ececec;
  --bg: #fff;
  --soft: #f6f6f6;
  --ok: #1b7a3d;
  --low: #b45309;
  --danger: #b42318;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --max: 1200px;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 800; letter-spacing: -0.02em; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 9; }

.topbar {
  background: #111;
  color: #ddd;
  font-size: 0.78rem;
  padding: 0.45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 1rem; }
.topbar a:hover { color: var(--yellow); }

.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.head-inner { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.logo { display: flex; align-items: baseline; gap: 0.35rem; text-decoration: none; font-weight: 900; font-size: 1.45rem; letter-spacing: -0.04em; text-transform: uppercase; }
.logo span { color: var(--yellow); -webkit-text-stroke: 0; }
.search-head { flex: 1; display: none; }
.search-head form { display: flex; border: 1px solid #ddd; border-radius: 999px; overflow: hidden; background: #fafafa; }
.search-head input { border: 0; background: transparent; padding: 0.7rem 1rem; width: 100%; font: inherit; }
.search-head button { border: 0; background: var(--ink); color: #fff; padding: 0 1.1rem; cursor: pointer; }
.head-acts { display: flex; align-items: center; gap: 0.8rem; margin-left: auto; }
.cart-link { text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; }
.badge { min-width: 1.25rem; height: 1.25rem; border-radius: 99px; background: var(--yellow); color: #111; font-size: 0.72rem; display: grid; place-items: center; font-weight: 800; }
.nav-btn { width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; display: grid; gap: 5px; place-content: center; cursor: pointer; }
.nav-btn span { display: block; width: 18px; height: 2px; background: #111; }

.cat-nav { border-bottom: 1px solid var(--line); background: #fff; }
.cat-nav .wrap { display: none; gap: 0.2rem; }
.cat-nav a {
  text-decoration: none; font-size: 0.88rem; font-weight: 600;
  padding: 0.85rem 0.7rem; white-space: nowrap; color: #333;
}
.cat-nav a:hover, .cat-nav a.is-on { color: #111; box-shadow: inset 0 -2px 0 var(--yellow); }

.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
.drawer-panel { background: #fff; width: min(320px, 86vw); height: 100%; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.85rem; }
.drawer-panel a { text-decoration: none; font-weight: 600; }
.drawer-close { align-self: flex-start; background: none; border: 0; text-decoration: underline; cursor: pointer; }

.flash-wrap { padding-top: 1rem; display: grid; gap: 0.5rem; }
.flash { padding: 0.8rem 1rem; border-radius: 8px; }
.flash-ok { background: #e8f6ee; color: var(--ok); }
.flash-error { background: #fde8e8; color: var(--danger); }

.hero { position: relative; color: #fff; }
.hero-fig { margin: 0; position: relative; min-height: 340px; }
.hero-fig img { width: 100%; height: min(460px, 70vw); object-fit: cover; filter: brightness(.55); }
.hero-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  width: min(var(--max), calc(100% - 2rem)); margin: 0 auto;
  gap: 0.8rem;
}
.hero-copy h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 16ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-badges span {
  background: var(--yellow); color: #111; font-weight: 800; font-size: 0.78rem;
  padding: 0.55rem 0.8rem; border-radius: 10px;
}
.hero-stat {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid var(--yellow); color: var(--yellow); padding: 0.5rem 0.8rem;
  font-weight: 800; width: max-content; border-radius: 10px;
}

.section-title { text-align: center; padding: 2.2rem 0 1.2rem; font-size: 1.7rem; }
.section-title:before, .section-title:after { content: ""; }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; padding-bottom: 2rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); }
.card.is-sold { opacity: 0.7; }
.card-media { position: relative; display: block; background: #eee; }
.card-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pill { position: absolute; top: 0.6rem; left: 0.6rem; background: var(--yellow); color: #111; font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.45rem; border-radius: 4px; }
.pill.sold { background: #111; color: #fff; }
.pill.low { background: #fff3cd; }
.pill.sale { left: auto; right: 0.6rem; background: var(--red); color: #fff; }
.pill.svc { top: auto; bottom: 0.6rem; background: #111; color: var(--yellow); }
.card-body { padding: 0.85rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.card-body h3 { font-size: 0.95rem; font-weight: 700; }
.card-body h3 a { text-decoration: none; }
.eyebrow { font-size: 0.72rem; color: var(--muted); font-weight: 700; margin: 0; text-transform: none; letter-spacing: 0; }
.sub { color: var(--muted); font-size: 0.82rem; margin: 0; }
.card-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 0.4rem; padding-top: 0.65rem; }
.price { margin: 0; font-weight: 800; }
.price s { color: var(--muted); margin-right: 0.35rem; font-size: 0.85em; font-weight: 600; }
.price.xl { font-size: 1.5rem; }
.ghost { font-size: 0.8rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 1.1rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700;
}
.btn-solid { background: #111; color: #fff; }
.btn-solid:hover { background: #000; }
.btn-ghost { background: #fff; border-color: #111; color: #111; }
.btn-yellow { background: var(--yellow); color: #111; }
.btn-tiny { min-height: 34px; padding: 0 0.8rem; font-size: 0.82rem; border-radius: 8px; background: #111; color: #fff; }
.btn-wide { width: 100%; }
.btn-red { background: var(--red); color: #fff; }

.cats-row { display: grid; gap: 0.8rem; padding: 0.5rem 0 1.5rem; }
.cat-tile { display: grid; grid-template-columns: 72px 1fr; gap: 0.8rem; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.45rem; }
.cat-tile img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; }
.cat-tile small { display: block; color: var(--muted); font-size: 0.78rem; }

.band { padding: 0.5rem 0 2rem; }
.band-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.text-link { color: #111; background: none; border: 0; cursor: pointer; font: inherit; text-decoration: underline; font-weight: 600; }
.story { background: var(--soft); padding: 2.4rem 0; }
.story-grid { display: grid; gap: 1.6rem; align-items: center; }
.story-grid img { width: 100%; height: 320px; object-fit: cover; border-radius: 10px; }
.trust { display: grid; gap: 1rem; padding: 2rem 0 2.5rem; }
.trust article { border-top: 3px solid var(--yellow); padding-top: 0.8rem; }

.page-head { padding: 1.8rem 0 0.4rem; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lede { color: var(--muted); max-width: 44rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; padding: 1rem 0 1.2rem; }
.search { display: flex; gap: 0.4rem; flex: 1; min-width: 200px; }
.search input, select, input, textarea {
  font: inherit; border: 1px solid #ddd; background: #fff;
  padding: 0.65rem 0.75rem; width: 100%; border-radius: 8px;
}
.count { color: var(--muted); font-size: 0.9rem; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--soft); border-radius: 12px; }
.empty.mini { padding: 1.1rem; text-align: left; }
.crumb { padding: 1rem 0; font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.4rem; flex-wrap: wrap; }
.product { display: grid; gap: 1.4rem; padding-bottom: 2rem; }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.stock { font-weight: 700; }
.stock-ok { color: var(--ok); }
.stock-low { color: var(--low); }
.stock-sold { color: var(--danger); }
.add-form { display: grid; gap: 0.8rem; margin: 1rem 0; }
.qty { display: inline-flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: var(--soft); cursor: pointer; }
.qty input { width: 52px; border: 0; text-align: center; border-radius: 0; }
.ticks { list-style: none; padding: 0; color: var(--muted); font-size: 0.9rem; }
.acc { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
.acc summary { cursor: pointer; font-weight: 700; }
.prose { max-width: 46rem; color: #444; }
.legal h2 { margin-top: 1.5rem; }
.template-banner { background: #fff6d6; border: 1px solid var(--yellow); padding: 0.8rem 1rem; font-size: 0.9rem; border-radius: 8px; }
.sticky-buy { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; background: #111; color: #fff; padding: 0.7rem 1rem; }
.cart-layout { display: grid; gap: 1.4rem; padding-bottom: 3rem; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 0.8rem; border: 1px solid var(--line); padding: 0.8rem; border-radius: 10px; margin-bottom: 0.6rem; }
.thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.cart-row h2 { margin: 0; font-size: 1rem; }
.cart-sum { background: var(--soft); border: 1px solid var(--line); padding: 1.1rem; height: max-content; border-radius: 12px; }
.cart-sum p, .plain li { display: flex; justify-content: space-between; gap: 1rem; }
.cart-sum .total, .plain .total { font-size: 1.15rem; font-weight: 800; }
.hint { color: var(--muted); font-size: 0.85rem; }
.check-grid { display: grid; gap: 1.4rem; padding-bottom: 3rem; }
.check-form { display: grid; gap: 1rem; }
fieldset { border: 1px solid var(--line); background: #fff; padding: 1rem; display: grid; gap: 0.8rem; border-radius: 12px; }
legend { font-weight: 800; padding: 0 0.4rem; }
.two, .three { display: grid; gap: 0.7rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.check input { width: auto; margin-top: 0.3rem; }
.success-grid, .admin-split { display: grid; gap: 1rem; padding-bottom: 2rem; }
.panel { background: #fff; border: 1px solid var(--line); padding: 1.1rem; border-radius: 12px; }
.plain { list-style: none; padding: 0; }
.status-chip { display: inline-block; background: #e8f6ee; padding: 0.25rem 0.6rem; border-radius: 6px; font-weight: 700; }

.site-foot { background: #111; color: #cfcfcf; padding: 2.4rem 0 1.1rem; margin-top: 2rem; }
.foot-grid { display: grid; gap: 1.3rem; }
.foot-grid a { display: block; color: #fff; text-decoration: none; margin: 0.2rem 0; }
.foot-h, .foot-brand { color: #fff; margin: 0 0 0.4rem; }
.foot-brand { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; }
.foot-brand span { color: var(--yellow); }
.legal-note { font-size: 0.75rem; opacity: 0.75; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; border-top: 1px solid #333; margin-top: 1.4rem; padding-top: 0.9rem; font-size: 0.8rem; }

.call-fab {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 25;
  background: var(--red); color: #fff; text-decoration: none;
  padding: 0.75rem 1.1rem; border-radius: 999px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(227,28,35,.35);
}

.acs-body { background: #ececec; }
.acs { max-width: 440px; margin: 2rem auto; }
.acs-bar { background: #1a1a1a; color: #fff; padding: 0.65rem 1rem; display: flex; justify-content: space-between; font-size: 0.78rem; }
.acs-card { background: #fff; padding: 1.4rem; box-shadow: var(--shadow); border-radius: 0 0 10px 10px; }
.acs-bank { letter-spacing: 0.1em; font-size: 0.72rem; color: #555; font-weight: 700; }
.acs-card dl div { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 0.4rem 0; }
.acs-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.mini { font-size: 0.82rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 0; }

@media (min-width: 860px) {
  .nav-btn { display: none; }
  .search-head { display: block; }
  .cat-nav .wrap { display: flex; }
  .hero-fig img { height: 420px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cats-row { grid-template-columns: repeat(5, 1fr); }
  .trust, .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .story-grid, .cart-layout, .check-grid, .product, .success-grid, .admin-split { grid-template-columns: 1.1fr 0.9fr; }
  .product { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1fr 1fr 1fr; }
  .sticky-buy { display: none; }
  .cats-row.five { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 859px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
.loading { opacity: 0.65; pointer-events: none; }
