@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/static/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/static/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #e10600;
  --header: #0a0a0b;
  --text: #121316;
  --muted: #5c6370;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --line: #e2e5ea;
  --max: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
h1, h2, h3, .logo {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.45em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; text-transform: none; letter-spacing: 0; font-family: "Manrope", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.section { padding: 3.5rem 0; }
.section-muted { background: var(--surface); }
.section-head { margin-bottom: 1.5rem; }
.section-head p { margin: 0; color: var(--muted); }
.row-between { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.text-link { color: var(--accent); font-weight: 700; }
.empty { padding: 2rem; background: var(--surface); border-radius: var(--radius); }

.promo-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
}
.site-header {
  background: var(--header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
}
.nav { display: flex; gap: 1rem; margin-left: 1rem; flex: 1; }
.nav a { color: #cfd3da; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: #fff; }
.icon-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
}
.cart-link { position: relative; margin-left: auto; }
.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.05); }
.btn-dark { background: #111; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }

.hero {
  background:
    radial-gradient(ellipse 70% 80% at 90% 20%, rgba(225,6,0,0.28), transparent 55%),
    linear-gradient(145deg, #0a0a0b, #17181d 60%, #0a0a0b);
  color: #fff;
  padding: 3.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
.hero-lead { color: #b8bec9; font-size: 1.08rem; max-width: 34rem; }
.hero-visual {
  min-height: 280px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #14151a;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.speed-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 14px,
    rgba(225,6,0,0.08) 14px,
    rgba(225,6,0,0.08) 16px
  );
}

.team-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.team-chip {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--team);
}
.team-chip:hover { border-color: var(--team); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.product-card:hover { transform: translateY(-2px); }
.product-media {
  aspect-ratio: 1;
  background: linear-gradient(145deg, color-mix(in srgb, var(--team) 25%, #111), #1a1b20);
  display: grid;
  place-items: center;
  position: relative;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.big { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.ph { text-align: center; color: #fff; padding: 1rem; }
.ph-team { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; font-weight: 800; }
.ph-cat { opacity: 0.75; font-size: 0.9rem; }
.product-meta { padding: 0.9rem 1rem 1.1rem; }
.product-meta .muted { font-size: 0.8rem; }
.price { font-weight: 800; font-size: 1.05rem; }
.price.xl { font-size: 1.8rem; margin: 0.4rem 0 1rem; }

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.filters input, .filters select, .field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
.field span { font-weight: 600; font-size: 0.9rem; }

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.trust { background: var(--header); color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.trust-grid div { display: grid; gap: 0.25rem; }
.trust-grid span { color: #9aa1ad; font-size: 0.9rem; }

.cart-box, .checkout, .success-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb {
  width: 64px; height: 64px; border-radius: 10px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--team) 40%, #111), #222);
  overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: flex; align-items: center; gap: 0.4rem; }
.qty button {
  width: 1.8rem; height: 1.8rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.cart-total { font-size: 1.1rem; }
.checkout-form { max-width: 32rem; }
.order-items { padding-left: 1.1rem; }

.site-footer {
  background: #070708;
  color: #9aa1ad;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-grid a, .footer-grid h4 { display: block; color: #d5dae3; margin-bottom: 0.4rem; }
.footer-logo { color: #fff; }
.footer-bottom { border-top: 1px solid #1c1d22; padding-top: 1rem; font-size: 0.85rem; }

.admin-body {
  min-height: 100vh;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.admin-body.wide { display: block; padding: 0; }
.admin-card {
  width: min(100%, 420px);
  background: #1a1b20;
  border: 1px solid #2a2b32;
  border-radius: 16px;
  padding: 1.5rem;
}
.admin-card.wide-card { width: min(100%, 640px); }
.admin-form .field input, .admin-form .field select, .admin-form .field textarea {
  background: #111; color: #fff; border-color: #333;
}
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; background: #0a0a0b; border-bottom: 1px solid #222;
}
.admin-top-actions { display: flex; gap: 0.6rem; align-items: center; }
.admin-main { padding: 1.5rem 0 3rem; color: #111; }
.admin-main h2 { margin-top: 1.5rem; }
.admin-table-wrap { overflow: auto; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th, .admin-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table .actions { display: flex; gap: 0.6rem; align-items: center; }
.error { color: #ff8a80; }
.check { display: flex; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1rem; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .product-page, .footer-grid, .trust-grid, .filters {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #111;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    margin: 0;
    border-bottom: 1px solid #2a2b32;
  }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid #222; }
  .nav.open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; min-height: 56px; }
  .cart-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .cart-row { grid-template-columns: 56px 1fr; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 2rem 0 2.5rem; }
  .hero-visual { min-height: 200px; font-size: 2.2rem; }
  .btn { min-height: 44px; padding: 0.85rem 1.15rem; }
  .admin-top { flex-wrap: wrap; gap: 0.75rem; }
  .admin-top-actions { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .promo-bar { font-size: 0.78rem; padding: 0.4rem 0.75rem; padding-top: max(0.4rem, env(safe-area-inset-top)); }
  .logo { font-size: 1.35rem; }
  h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .product-meta { padding: 0.7rem 0.7rem 0.9rem; }
  .product-meta h3 { font-size: 0.95rem; }
  .team-chip { padding: 0.55rem 0.85rem; font-size: 0.9rem; }
  .filters { gap: 0.5rem; }
  .cart-actions { flex-direction: column; align-items: stretch; }
  .cart-actions .btn { width: 100%; }
  .qty button { width: 2.2rem; height: 2.2rem; }
  .site-footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .wrap { width: min(100% - 2rem, 980px); }
}
