/* Brand page strip and promo block (#843). Loaded on brand pages past page 1
   and on brand pages that show promo codes. Plain CSS, every rule scoped under
   .brand-best-strip or .brand-codes, with fixed hex colors (docs/design/
   branding.md): the dark sites (guns-and-ammo, powder) set
   --color-black/--color-dark-gray to light colors, which would be
   white-on-white on these light panels. No Tailwind build step needed. Written
   to stay inside a 375px viewport: min-width: 0 on flex/grid children and
   overflow-wrap on names. */

.brand-best-strip {
  max-width: 80rem;
  margin: 1rem auto 0;
  padding: 1rem;
  border: 1px solid #E8E6E1;
  border-left: 4px solid #D4A24C;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  text-align: left;
  box-sizing: border-box;
}

.brand-best-strip .brand-best-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1B4332;
}

.brand-best-strip .brand-best-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .brand-best-strip .brand-best-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.brand-best-strip .brand-best-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid #E8E6E1;
  border-radius: 8px;
  background: #fff;
}

.brand-best-strip .brand-best-image {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  display: block;
}

.brand-best-strip .brand-best-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-best-strip .brand-best-body {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-best-strip .brand-best-name {
  display: block;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  font-weight: 600;
  color: #1B4332;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.brand-best-strip .brand-best-name:hover,
.brand-best-strip .brand-best-name:focus {
  text-decoration: underline;
}

.brand-best-strip .brand-best-price {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: #374151;
}

.brand-best-strip .brand-best-sale {
  font-weight: 700;
  color: #1F2937;
}

.brand-best-strip .brand-best-off {
  margin-left: 0.5rem;
  font-weight: 600;
  color: #9A3412;
}

.brand-best-strip .brand-best-more {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

.brand-best-strip .brand-best-more a {
  color: #1B4332;
  font-weight: 600;
  text-decoration: underline;
}

/* Promo block: the shared .merchant-codes panel (merchant-codes.css) gets the
   brand page's margins and per-merchant headings. */
.brand-codes {
  max-width: 80rem;
  margin: 1rem auto 0;
  box-sizing: border-box;
}

.brand-codes .brand-codes-note {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: #374151;
}

.brand-codes .brand-codes-merchant {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1B4332;
  overflow-wrap: anywhere;
}

.brand-codes .merchant-code,
.brand-codes .merchant-code-headline,
.brand-codes .merchant-code-description {
  min-width: 0;
  overflow-wrap: anywhere;
}
