.brand-showcase {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 34px 0;
  overflow: hidden;
  background: transparent;
  transform: translateX(-50%);
}

.brand-showcase__band {
  width: 100%;
  padding: 30px 24px;
}

.brand-showcase__band--light {
  background: linear-gradient(135deg, #f1f3f6, #fff 52%, #f3f5f8);
}

.brand-showcase__band--dark {
  background: radial-gradient(circle at 22% 0, rgb(200 255 26 / 7%), transparent 26%), #090c0f;
}

.brand-showcase__view {
  --store-accent: #ed0017;
  --store-text: #17191d;
  --store-muted: #70757d;
  --store-panel: #fff;
  display: grid;
  width: 100%;
  max-width: 1540px;
  min-height: 660px;
  grid-template-columns: minmax(360px, 35%) minmax(0, 1fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dde1e6;
  border-radius: 28px;
  background: var(--store-panel);
  color: var(--store-text);
  box-shadow: 0 22px 64px rgb(34 42 54 / 10%);
}

.brand-showcase__view--dark {
  --store-accent: #c8ff1a;
  --store-text: #fff;
  --store-muted: #a5aab2;
  --store-panel: #101318;
  border-color: #30353d;
  background: radial-gradient(circle at 28% 0, rgb(200 255 26 / 7%), transparent 28%), #101318;
  box-shadow: 0 25px 70px rgb(0 0 0 / 32%);
}

.brand-showcase__hero {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 46px 46px 25px;
  border-right: 1px solid #dfe3e8;
}

.brand-showcase__hero--light {
  background:
    radial-gradient(circle at 18% 8%, rgb(255 255 255 / 96%) 0 15%, transparent 38%),
    linear-gradient(150deg, #e7ebf2 0%, #fbfcfd 54%, #e4e9f1 100%);
}

.brand-showcase__hero--light::before {
  position: absolute;
  top: -190px;
  left: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgb(255 255 255 / 25%);
  content: "";
}

.brand-showcase__hero--dark {
  border-color: #343941;
  background: #080b0d url("../../../img/home/nike-brand-wall/background.png") center / cover no-repeat;
}

.brand-showcase__hero--dark::before {
  position: absolute;
  background: linear-gradient(180deg, rgb(5 7 8 / 4%), rgb(5 7 8 / 30%) 52%, #090c0f 100%);
  content: "";
  inset: 0;
}

.brand-showcase__hero > * { position: relative; z-index: 2; }

.brand-showcase__brand-logo {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  place-items: center;
  margin-bottom: 31px;
  border: 1px solid rgb(120 127 138 / 13%);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(32 39 50 / 10%);
}

.brand-showcase__brand-logo img { width: 52px; max-height: 52px; }
.brand-showcase__eyebrow { margin-bottom: 14px; color: var(--store-accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.brand-showcase__hero h2 { max-width: 390px; margin: 0 0 18px; color: var(--store-text); font-size: clamp(42px, 3.7vw, 59px); letter-spacing: -.05em; line-height: 1.02; }
.brand-showcase__hero p { max-width: 350px; margin: 0; color: var(--store-muted); font-size: 14px; line-height: 1.65; }

.brand-showcase__hero > a {
  display: inline-flex;
  width: fit-content;
  height: 46px;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 0 18px;
  border-radius: 11px;
  background: #15181c;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgb(22 25 29 / 13%);
}

.brand-showcase__hero > a img { width: 16px; filter: brightness(0) invert(1); }
.brand-showcase__hero--dark > a { background: var(--store-accent); color: #111; box-shadow: 0 11px 30px rgb(200 255 26 / 18%); }
.brand-showcase__hero--dark > a img { filter: none; }
.brand-showcase__mobile-trust { display: none; }

.brand-showcase__devices {
  position: absolute;
  z-index: 1;
  right: -15px;
  bottom: 91px;
  width: 58%;
  height: 36%;
  pointer-events: none;
}

.brand-showcase__devices img { position: absolute; object-fit: contain; filter: drop-shadow(0 18px 18px rgb(31 40 55 / 17%)); }
.brand-showcase__devices img:first-child { right: 0; bottom: 0; width: 60%; height: 100%; transform: rotate(-7deg); }
.brand-showcase__devices img:last-child { right: 45%; bottom: -2%; width: 53%; height: 61%; }

.brand-showcase__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: auto -18px -8px;
  padding-top: 18px;
  border-top: 1px solid rgb(126 132 141 / 18%);
}

.brand-showcase__trust > span { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 0 15px; border-right: 1px solid rgb(126 132 141 / 18%); }
.brand-showcase__trust > span:last-child { border-right: 0; }
.brand-showcase__trust b { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border: 1px solid var(--store-accent); border-radius: 50%; color: var(--store-accent); font-size: 11px; }
.brand-showcase__trust small { display: flex; min-width: 0; flex-direction: column; gap: 3px; color: var(--store-muted); font-size: 9px; white-space: nowrap; }
.brand-showcase__trust strong { color: var(--store-text); font-size: 10px; }

.brand-showcase__catalog {
  min-width: 0;
  padding: 30px 28px 17px;
  background: var(--store-panel);
}

.brand-showcase__view--dark .brand-showcase__catalog { background: transparent; }
.brand-showcase__catalog > header { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 18px; margin-bottom: 18px; }
.brand-showcase__filters { display: flex; max-width: 100%; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.brand-showcase__filters::-webkit-scrollbar { display: none; }

.brand-showcase__filters button {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #e0e4e9;
  border-radius: 999px;
  background: #fff;
  color: #5f646c;
  font: 800 11px Roboto, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.brand-showcase__filters button.is-active { border-color: #15181c; background: #15181c; color: #fff; }
.brand-showcase__view--dark .brand-showcase__filters button { border-color: #343a43; background: #191d23; color: #b6bbc3; }
.brand-showcase__view--dark .brand-showcase__filters button.is-active { border-color: var(--store-accent); background: var(--store-accent); color: #101215; }

.brand-showcase__products {
  grid-auto-columns: calc((100% - 42px) / 4);
  gap: 14px;
  max-height: none;
  padding: 4px 4px 8px;
}

.brand-showcase .dense-product-card { min-height: 315px; border-radius: 17px; }
.brand-showcase .dense-product-card__media { height: 132px; flex-basis: 132px; border-radius: 12px; }
.brand-showcase .dense-product-card__cart { height: 40px; border-radius: 9px; }
.brand-showcase__view--light .dense-product-card--brand-light .dense-product-card__cart {
  border: 1.5px solid #f21d36;
  background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
  color: #d90f28;
  box-shadow: 0 4px 12px rgb(242 29 54 / 10%), inset 0 0 0 1px rgb(255 255 255 / 72%);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.brand-showcase__view--light .dense-product-card--brand-light .dense-product-card__cart img {
  filter: invert(14%) sepia(92%) saturate(5554%) hue-rotate(348deg) brightness(91%) contrast(97%);
}
.brand-showcase__view--light .dense-product-card--brand-light .dense-product-card__cart:hover,
.brand-showcase__view--light .dense-product-card--brand-light .dense-product-card__cart.is-added {
  border-color: #ed0024;
  background: linear-gradient(135deg, #f51c39, #e80024);
  color: #fff;
  box-shadow: 0 8px 18px rgb(232 0 36 / 22%);
  transform: translateY(-1px);
}
.brand-showcase__view--light .dense-product-card--brand-light .dense-product-card__cart:hover img,
.brand-showcase__view--light .dense-product-card--brand-light .dense-product-card__cart.is-added img { filter: brightness(0) invert(1); }
.brand-showcase .dense-grid-arrow { display: none; }
.brand-showcase .dense-grid-arrow--prev { left: -16px; }
.brand-showcase .dense-grid-arrow--next { right: -16px; }
.brand-showcase .dense-showcase-notice { min-height: 10px; margin-top: 3px; color: var(--store-accent); }

.brand-showcase__view--dark .dense-product-card--dark {
  border-color: #373d46;
  background: linear-gradient(180deg, #1d2127, #15181d);
  box-shadow: 0 10px 25px rgb(0 0 0 / 22%);
}

.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__media { background: linear-gradient(145deg, #2b3037, #20242a); }
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__media {
  height: 136px;
  flex-basis: 136px;
}
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__eyebrow { display: none; }
.brand-showcase__view--dark .dense-product-card__badge {
  min-height: 24px;
  max-width: calc(100% - 48px);
  padding: 4px 9px;
  overflow: hidden;
  border: 1px solid rgb(200 255 26 / 34%);
  border-radius: 999px;
  background: rgb(15 19 23 / 86%);
  color: #d9ff6d;
  box-shadow: 0 5px 13px rgb(0 0 0 / 22%);
  font-size: 9px;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.brand-showcase__view--dark [data-badge-tone="mint"] { border-color: #51e6b0; background: rgb(21 73 58 / 90%); color: #a9ffdf; }
.brand-showcase__view--dark [data-badge-tone="coral"] { border-color: #ff6f69; background: rgb(107 34 34 / 92%); color: #ffc2bf; }
.brand-showcase__view--dark [data-badge-tone="violet"] { border-color: #ac83ff; background: rgb(62 42 101 / 92%); color: #dac9ff; }
.brand-showcase__view--dark [data-badge-tone="blue"] { border-color: #58a6ff; background: rgb(25 61 105 / 92%); color: #b9dcff; }
.brand-showcase__view--dark [data-badge-tone="rose"] { border-color: #ff6ca8; background: rgb(99 31 60 / 92%); color: #ffc2dc; }
.brand-showcase__view--dark [data-badge-tone="amber"] { border-color: #ffbd45; background: rgb(99 64 18 / 92%); color: #ffe0a1; }
.brand-showcase__view--dark [data-badge-tone="cyan"] { border-color: #4ed9e8; background: rgb(22 73 80 / 92%); color: #b5f8ff; }
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__price strong,
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__eyebrow { color: var(--store-accent); }
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__cart { border-color: var(--store-accent); background: transparent; color: var(--store-accent); }
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__cart img { filter: brightness(0) saturate(100%) invert(88%) sepia(96%) saturate(807%) hue-rotate(25deg); }
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__cart:hover,
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__cart.is-added { background: var(--store-accent); color: #111; }
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__cart:hover img,
.brand-showcase__view--dark .dense-product-card--dark .dense-product-card__cart.is-added img { filter: brightness(0); }

@media (max-width: 1199.98px) {
  .brand-showcase__view { grid-template-columns: minmax(315px, 36%) minmax(0, 1fr); }
  .brand-showcase__hero { padding-inline: 32px; }
  .brand-showcase__products { grid-auto-columns: calc((100% - 28px) / 3); }
  .brand-showcase .dense-grid-arrow { display: grid; }
}

@media (max-width: 991.98px) {
  .brand-showcase__view { grid-template-columns: 1fr; }
  .brand-showcase__hero { min-height: 520px; border-right: 0; border-bottom: 1px solid #dfe3e8; }
  .brand-showcase__hero--dark { border-color: #343941; }
  .brand-showcase__hero h2 { font-size: 48px; }
  .brand-showcase__devices { right: 2%; bottom: 80px; width: 43%; height: 47%; }
  .brand-showcase__products { grid-auto-columns: calc((100% - 28px) / 3); }
}

@media (max-width: 767.98px) {
  .brand-showcase { margin-block: 22px; }
  .brand-showcase__band { padding: 18px 12px; }
  .brand-showcase__view { width: 100%; min-height: 0; border-radius: 20px; }
  .brand-showcase__hero { min-height: 440px; padding: 28px 24px 19px; }
  .brand-showcase__brand-logo { width: 70px; height: 70px; flex-basis: 70px; margin-bottom: 20px; border-radius: 17px; }
  .brand-showcase__brand-logo img { width: 42px; }
  .brand-showcase__eyebrow { margin-bottom: 10px; font-size: 8px; }
  .brand-showcase__hero h2 { max-width: 290px; margin-bottom: 12px; font-size: 38px; }
  .brand-showcase__hero p { max-width: 290px; font-size: 11px; line-height: 1.55; }
  .brand-showcase__hero > a { height: 40px; margin-top: 17px; }
  .brand-showcase__devices { right: -12%; bottom: 77px; width: 57%; height: 34%; opacity: .92; }
  .brand-showcase__trust { margin-inline: -10px; padding-top: 14px; }
  .brand-showcase__trust > span { gap: 5px; padding-inline: 7px; }
  .brand-showcase__trust b { width: 25px; height: 25px; flex-basis: 25px; }
  .brand-showcase__trust small { font-size: 8px; }
  .brand-showcase__trust strong { font-size: 9px; }
  .brand-showcase__catalog { padding: 17px 13px 10px; }
  .brand-showcase__catalog > header { min-height: 36px; margin-bottom: 10px; }
  .brand-showcase__filters { width: calc(100% + 13px); padding-right: 13px; }
  .brand-showcase__filters button { height: 36px; padding-inline: 13px; }
  .brand-showcase__products { grid-auto-columns: minmax(164px, 72vw); gap: 10px; }
  .brand-showcase .dense-product-card { min-height: 292px; }
  .brand-showcase .dense-grid-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-showcase__filters button { transition: none; }
}

/* Raster brand banners: copy and trust content are baked into each image. */
.brand-showcase {
  left: auto;
  width: 100vw !important;
  min-width: 100vw;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  transform: none;
}

.brand-showcase__view {
  grid-template-columns: minmax(400px, 31%) minmax(0, 1fr);
}

.brand-showcase__hero {
  display: block;
  height: auto;
  min-height: 660px;
  align-self: stretch;
  padding: 0;
}

.brand-showcase__hero--light::before,
.brand-showcase__hero--dark::before {
  display: none;
}

.brand-showcase__banner {
  position: absolute !important;
  z-index: 1 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  inset: 0;
}

.brand-showcase__hero > a {
  position: absolute;
  z-index: 3;
  top: 49%;
  left: 7.5%;
  margin: 0;
}

@media (max-width: 1199.98px) {
  .brand-showcase__view { grid-template-columns: minmax(365px, 34%) minmax(0, 1fr); }
}

@media (max-width: 991.98px) {
  .brand-showcase__view { grid-template-columns: 1fr; }
  .brand-showcase__hero {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 3;
  }
}

@media (max-width: 767.98px) {
  .brand-showcase__hero { min-height: 0; padding: 0; }
  .brand-showcase__hero > a {
    top: 49%;
    left: 7%;
    height: 39px;
    padding-inline: 14px;
    font-size: 9px;
  }

  .brand-showcase__mobile-trust {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 96px;
    box-sizing: border-box;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px 7px 9px;
    border-top: 1px solid rgb(96 105 119 / 18%);
    background: rgb(249 250 252 / 97%);
    box-shadow: 0 -8px 24px rgb(25 34 48 / 8%);
    color: #171b22;
    backdrop-filter: blur(10px);
  }

  .brand-showcase__hero--dark .brand-showcase__mobile-trust {
    border-color: rgb(255 255 255 / 14%);
    background: rgb(13 16 20 / 96%);
    color: #fff;
  }

  .brand-showcase__mobile-trust > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-inline: 5px;
    border-right: 1px solid rgb(96 105 119 / 16%);
    text-align: center;
  }

  .brand-showcase__hero--dark .brand-showcase__mobile-trust > span { border-color: rgb(255 255 255 / 13%); }
  .brand-showcase__mobile-trust > span:last-child { border-right: 0; }

  .brand-showcase__mobile-trust b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin-bottom: 5px;
    border: 1.5px solid #ed1732;
    border-radius: 50%;
    background: #fff;
  }

  .brand-showcase__hero--dark .brand-showcase__mobile-trust b { border-color: var(--store-accent); background: #191d22; }
  .brand-showcase__mobile-trust b img { width: 16px; height: 16px; filter: invert(15%) sepia(94%) saturate(5800%) hue-rotate(345deg) brightness(96%); }
  .brand-showcase__hero--dark .brand-showcase__mobile-trust b img { filter: brightness(0) saturate(100%) invert(91%) sepia(91%) saturate(938%) hue-rotate(24deg); }
  .brand-showcase__mobile-trust strong { overflow: hidden; max-width: 100%; font-size: 10.5px; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .brand-showcase__mobile-trust small { margin-top: 2px; color: #606875; font-size: 9px; font-weight: 600; line-height: 1.2; }
  .brand-showcase__hero--dark .brand-showcase__mobile-trust small { color: #b3bac4; }
}
