/* brand.css — the brand landing page (/brand/{slug}). */
.bp-wrap { max-width: 1180px; margin: 0 auto; padding: 14px 16px 60px; }

.bp-crumb { font-size: 12.5px; color: #777; margin: 6px 0 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bp-crumb a { color: inherit; text-decoration: none; }
.bp-crumb a:hover { text-decoration: underline; }
.bp-crumb .sep { opacity: .5; }
.bp-crumb .cur { color: #222; font-weight: 600; }

/* ── Masthead: the one place a banner earns its keep ─────────────────────
   The shopper arrived having asked for this brand, so confirming they are in
   the right place is the job. On the grid a banner per brand would push the
   products off a phone screen, which is why it lives only here. */
.bp-banner { border-radius: 16px; overflow: hidden; background: #f2f2f2; aspect-ratio: 8 / 3; margin-bottom: 14px; }
.bp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bp-ident { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
/* contain on a neutral plate: brands supply every aspect ratio going, and a
   crop or a stretch makes a careful logo look careless. */
.bp-logo { flex: 0 0 auto; width: 104px; height: 72px; background: #fff; border: 1px solid #eee; border-radius: 12px; display: grid; place-items: center; padding: 8px; box-sizing: border-box; }
.bp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bp-ident-text { min-width: 0; }
.bp-name { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; }
.bp-blurb { margin: 6px 0 0; color: #555; font-size: 14.5px; line-height: 1.55; max-width: 60ch; }
.bp-count { margin: 6px 0 0; font-size: 12.5px; color: #888; }

.bp-cta { display: inline-block; margin: 14px 0 6px; padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none;
  background: var(--ds-chip-on, var(--primary, #111)); color: var(--ds-on-primary, #fff); }
.bp-cta:hover { opacity: .9; }

/* ── Slides ──────────────────────────────────────────────────────────────── */
.bp-slideshow { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 7; background: #111; margin: 18px 0 6px; }
.bp-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.bp-slide.on { opacity: 1; }
.bp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-slide figcaption { position: absolute; inset: auto 0 0 0; padding: 22px 24px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bp-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.bp-slide figcaption strong { font-size: 22px; line-height: 1.25; }
.bp-sub { font-size: 13.5px; opacity: .92; }
.bp-slide-cta { margin-top: 8px; background: #fff; color: #111; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.bp-dots { display: flex; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.bp-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: #ccc; cursor: pointer; }
.bp-dots button.on { background: var(--ds-primary, var(--primary, #333)); width: 20px; border-radius: 99px; }

/* ── Story ───────────────────────────────────────────────────────────────── */
.bp-story { margin: 22px 0 6px; font-size: 15px; line-height: 1.7; color: #333; max-width: 72ch; }
.bp-story h2, .bp-story h3 { font-size: 18px; margin: 18px 0 8px; }
.bp-story ul { padding-left: 22px; }
.bp-story img { max-width: 100%; border-radius: 10px; }
.bp-story a { color: var(--ds-primary, var(--primary, #06c)); }

/* ── Products ────────────────────────────────────────────────────────────── */
.bp-grid-head { margin: 26px 0 12px; font-size: 18px; font-weight: 700; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bp-card { background: #fff; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.06); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; position: relative; }
.bp-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.bp-card-img { aspect-ratio: 1 / 1; background: #f7f7f7; display: block; }
.bp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-card-name { padding: 9px 11px 2px; font-size: 13.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-card-price { padding: 0 11px 11px; font-size: 14px; font-weight: 700; margin-top: auto; }
.bp-card-price s { font-weight: 400; font-size: 12px; color: #aaa; margin-left: 4px; }
.bp-card-oos { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 10.5px; padding: 3px 8px; border-radius: 99px; }
.bp-empty { color: #777; padding: 24px 0; }

@media (max-width: 720px) {
  .bp-wrap { padding: 10px 14px 50px; }
  .bp-ident { gap: 12px; }
  .bp-logo { width: 76px; height: 56px; }
  .bp-name { font-size: 21px; }
  .bp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bp-slideshow { aspect-ratio: 4 / 3; }
  .bp-slide figcaption strong { font-size: 18px; }
}
