*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
img, video, svg { max-width: 100%; height: auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.85rem;
}
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.dark .site-header {
  background: #0f172a;
  border-bottom-color: #1e293b;
}

.nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}
.nav-link:hover,
.nav-link.is-active {
  color: #0b1f3a;
  background: #f1f5f9;
}
.dark .nav-link { color: #cbd5e1; }
.dark .nav-link:hover,
.dark .nav-link.is-active {
  color: #fff;
  background: #1e293b;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ea580c;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.65rem 1.05rem;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover { background: #c2410c; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0b1f3a;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.65rem 1.05rem;
  border: 0;
  cursor: pointer;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0b1f3a;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.65rem 1.05rem;
  cursor: pointer;
}
.dark .btn-outline {
  background: transparent;
  color: #e2e8f0;
  border-color: #475569;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 2.5rem;
}
@media (min-width: 768px) {
  .wrap { padding: 2.25rem 2rem 3.5rem; }
}

.hero-grid {
  display: grid;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; min-height: 28rem; }
}
.hero-photo {
  min-height: 16rem;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
@media (min-width: 768px) {
  .hero-photo { min-height: 28rem; }
}

.cat-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  color: inherit;
}
.dark .cat-card {
  background: #0f172a;
  border-color: #1e293b;
}
.cat-card img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  display: block;
}
.cat-card:hover { border-color: #ea580c; }

.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.dark .product-card {
  background: #0f172a;
  border-color: #1e293b;
}
.product-card img {
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
  display: block;
}

.stock {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  background: #ecfdf5;
  color: #047857;
}
.stock.late {
  background: #fff7ed;
  color: #c2410c;
}
.dark .stock { background: #064e3b; color: #6ee7b7; }
.dark .stock.late { background: #7c2d12; color: #fdba74; }

.field {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: inherit;
}
.dark .field {
  background: #0f172a;
  border-color: #334155;
}
.field:focus {
  outline: 2px solid #ea580c;
  outline-offset: 1px;
}

.filter-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  color: inherit;
}
.filter-chip.is-on,
.filter-chip:hover {
  background: #0b1f3a;
  color: #fff;
  border-color: #0b1f3a;
}
.dark .filter-chip {
  background: #0f172a;
  border-color: #334155;
}
.dark .filter-chip.is-on,
.dark .filter-chip:hover {
  background: #ea580c;
  border-color: #ea580c;
}

.quote-ok {
  border: 1px solid #86efac;
  background: #f0fdf4;
  padding: 1rem;
}
.dark .quote-ok {
  background: #052e16;
  border-color: #166534;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}
.brand-row span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
