:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d9dee5;
  --brand: #d6262f;
  --brand-dark: #a71922;
  --steel: #293846;
  --surface: #f6f8fa;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.topbar {
  background: var(--steel);
  color: #fff;
  font-size: 0.9rem;
}

.navbar-brand {
  color: var(--brand) !important;
  font-weight: 800;
  letter-spacing: 0;
}

.hero {
  background: linear-gradient(90deg, rgba(23,32,42,.92), rgba(23,32,42,.72)), url("/assets/img/product-placeholder.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 430px;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
}

.section-band {
  padding: 56px 0;
}

.section-muted {
  background: var(--surface);
}

.card {
  border-radius: 8px;
  border-color: var(--line);
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.meta-label {
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
}

.footer {
  background: #111820;
  color: #d8dee6;
}

.admin-shell {
  background: var(--surface);
  min-height: 100vh;
}

.stat {
  border-left: 4px solid var(--brand);
}

pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.product-parameters {
  min-width: 0;
}

.product-parameters th {
  color: var(--muted);
  font-weight: 700;
  width: 42%;
}

.product-parameters td,
.product-parameters th {
  padding: 0.9rem 1rem;
}

@media (max-width: 991.98px) {
  .navbar .dropdown {
    margin-top: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .topbar .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section-band {
    padding: 36px 0;
  }

  .section-band .row {
    margin-left: 0;
    margin-right: 0;
  }

  .btn-lg {
    --bs-btn-padding-y: .65rem;
    --bs-btn-padding-x: .9rem;
    --bs-btn-font-size: 1rem;
  }

  .product-card .card-body {
    min-height: 0;
  }

  .table {
    min-width: 620px;
  }

  .product-parameters {
    min-width: 0 !important;
    width: 100%;
  }

  .product-parameters th,
  .product-parameters td {
    width: auto;
    word-break: break-word;
  }

  .card-body .text-end {
    text-align: left !important;
    width: 100%;
  }
}
