/* Seasonal storefront layer for Kenya's Black November campaign. */
:root {
  --mjaa-bn-black: #121212;
  --mjaa-bn-orange: #f26822;
  --mjaa-bn-yellow: #ffbf4a;
  --mjaa-bn-cream: #fff8ee;
}

body.mjaa-bn-active {
  --color-announcement-bg: var(--mjaa-bn-black);
  --color-announcement-text: #fff;
}

body.mjaa-bn-active #shoplaza-section-announcement {
  background: var(--mjaa-bn-black) !important;
  color: #fff !important;
  border-bottom: 2px solid var(--mjaa-bn-orange);
}

body.mjaa-bn-active #shoplaza-section-announcement p {
  font-weight: 600;
  letter-spacing: .02em;
}

.mjaa-bn-hero,
.mjaa-bn-categories,
.mjaa-bn-flash-meta,
.mjaa-bn-trust {
  width: min(1232px, calc(100% - 32px));
  margin-inline: auto;
}

.mjaa-bn-hero-with-nav {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 0;
  width: min(1232px, calc(100% - 32px));
  margin: 22px auto 0;
  align-items: stretch;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
}

.mjaa-bn-hero-with-nav .mjaa-bn-hero-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mjaa-bn-hero-tabs {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 54px;
  padding: 0 30px;
  background: #fff;
}

.mjaa-bn-hero-tabs a {
  color: #292929;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mjaa-bn-hero-tabs a:hover {
  color: #df3035;
}

.mjaa-bn-hero-with-nav .mjaa-bn-hero {
  flex: 1;
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.mjaa-bn-hero-with-nav .mjaa-bn-hero-shell {
  height: 100%;
  gap: 24px;
  padding: 30px;
}

.mjaa-bn-hero-with-nav .mjaa-bn-collage {
  height: 285px;
  min-height: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.mjaa-bn-hero-with-nav .mjaa-bn-collage-card {
  min-height: 0;
}

.mjaa-bn-hero {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 12%, rgba(242, 104, 34, .42), transparent 34%),
    linear-gradient(116deg, #0e0e0e 0%, #171717 58%, #282019 100%);
  box-shadow: 0 18px 45px rgba(18, 18, 18, .18);
}

.mjaa-bn-hero::after {
  content: "11.11";
  position: absolute;
  right: -18px;
  bottom: -50px;
  color: rgba(255, 191, 74, .1);
  font-size: clamp(100px, 16vw, 230px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-9deg);
}

.mjaa-bn-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 36px;
  align-items: center;
  min-height: 390px;
  padding: 44px clamp(24px, 5vw, 68px);
}

.mjaa-bn-kicker,
.mjaa-bn-eyebrow,
.mjaa-bn-countdown-label {
  margin: 0;
  color: var(--mjaa-bn-yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mjaa-bn-hero h1 {
  max-width: 640px;
  margin: 14px 0 13px;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: .98;
  letter-spacing: -.055em;
}

.mjaa-bn-hero h1 span {
  color: var(--mjaa-bn-orange);
}

.mjaa-bn-hero-copy {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.75;
}

.mjaa-bn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mjaa-bn-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--mjaa-bn-orange);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.mjaa-bn-actions a:first-child {
  background: var(--mjaa-bn-orange);
  border-color: var(--mjaa-bn-orange);
  color: #17120e;
}

.mjaa-bn-actions a:hover {
  transform: translateY(-2px);
}

.mjaa-bn-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.mjaa-bn-benefits span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
}

.mjaa-bn-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.mjaa-bn-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  background: rgba(0, 0, 0, .22);
}

.mjaa-bn-countdown-label {
  color: #fff;
  font-size: 10px;
  letter-spacing: .11em;
}

.mjaa-bn-countdown-time {
  color: var(--mjaa-bn-yellow);
  font-size: clamp(20px, 3vw, 31px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

.mjaa-bn-collage {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 10px;
  min-height: 235px;
}

.mjaa-bn-collage-card {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  border-radius: 6px;
  background: #28221d;
}

.mjaa-bn-collage-card:first-child {
  grid-row: span 2;
}

.mjaa-bn-collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  transition: transform .4s ease;
}

.mjaa-bn-collage-card:hover img {
  transform: scale(1.05);
}

.mjaa-bn-collage-card span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px #000;
  white-space: nowrap;
}

.mjaa-bn-categories {
  margin-top: 26px;
}

.mjaa-bn-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.mjaa-bn-section-head h2 {
  margin: 5px 0 0;
  color: #181818;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.mjaa-bn-section-head > p {
  margin: 0;
  color: #767676;
  font-size: 12px;
}

.mjaa-bn-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

/* Compact category rail aligned with the homepage campaign banner. */
.mjaa-bn-category-nav {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  z-index: 6;
  background: #fff;
}

.mjaa-bn-category-nav a {
  text-decoration: none;
}

.mjaa-bn-category-rail {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.mjaa-bn-rail-heading {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 13px;
  background: #e52d33;
  color: #fff;
}

.mjaa-bn-rail-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.mjaa-bn-heading-caret {
  font-size: 12px;
}

.mjaa-bn-rail-heading a {
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.mjaa-bn-primary-list {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-auto-rows: minmax(33px, 1fr);
  gap: 0;
  margin: 0;
  padding: 3px 0;
  border-right: 1px solid #eee;
}

.mjaa-bn-primary {
  display: flex;
  width: 100%;
  min-height: 33px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #f4f4f4;
  background: #fff;
  color: #444;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.mjaa-bn-primary:last-child {
  border-bottom: 0;
}

.mjaa-bn-category-icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
}

.mjaa-bn-primary span {
  flex: 1;
}

.mjaa-bn-primary b {
  color: #aaa;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.mjaa-bn-primary:hover,
.mjaa-bn-primary.is-active {
  background: #fff2f2;
  color: #de2930;
}

.mjaa-bn-primary:focus-visible,
.mjaa-bn-category-nav a:focus-visible {
  outline: 2px solid #de2930;
  outline-offset: -3px;
}

.mjaa-bn-primary.is-active b,
.mjaa-bn-primary:hover b {
  color: #de2930;
}

.mjaa-bn-primary[data-bn-category-trigger="featured"] .mjaa-bn-category-icon {
  color: #e84922;
}

.mjaa-bn-category-content {
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 100%;
  width: 540px;
  max-width: calc(100vw - 280px);
  padding: 23px 26px;
  overflow-y: auto;
  border: 1px solid #e9e9e9;
  background: #fff;
  box-shadow: 8px 5px 16px rgba(0, 0, 0, .12);
}

.mjaa-bn-category-content[hidden],
.mjaa-bn-category-pane[hidden] {
  display: none;
}

.mjaa-bn-category-pane {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mjaa-bn-pane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.mjaa-bn-pane-heading h3 {
  margin: 0;
  color: #252525;
  font-size: 19px;
  font-weight: 700;
}

.mjaa-bn-pane-heading a {
  color: #de2930;
  font-size: 12px;
  white-space: nowrap;
}

.mjaa-bn-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 10px 0 24px;
}

.mjaa-bn-subcategory-grid a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f1f1;
  color: #555;
  font-size: 12px;
  line-height: 1.5;
}

.mjaa-bn-subcategory-grid a:hover {
  color: #de2930;
  border-color: #de2930;
}

.mjaa-bn-subcategory-grid b {
  color: #aaa;
  font-size: 16px;
  font-weight: 500;
}

.mjaa-bn-category-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 15px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 5px;
  background: var(--mjaa-bn-black);
  color: #fff;
}

.mjaa-bn-category-promo strong {
  color: var(--mjaa-bn-yellow);
  font-size: 10px;
  letter-spacing: .08em;
}

.mjaa-bn-category-promo span {
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
}

.mjaa-bn-category-promo b {
  margin-left: auto;
  color: #fff;
  font-size: 10px;
}

.mjaa-bn-category {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid #eadfd3;
  border-radius: 6px;
  background: var(--mjaa-bn-cream);
  color: #2b211b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.mjaa-bn-category:hover {
  border-color: var(--mjaa-bn-orange);
  background: #fff0df;
  transform: translateY(-2px);
}

.mjaa-bn-flash-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: -20px;
  padding: 16px 18px;
  border-radius: 6px 6px 0 0;
  background: var(--mjaa-bn-black);
  color: #fff;
}

.mjaa-bn-flash-meta .mjaa-bn-eyebrow {
  color: var(--mjaa-bn-orange);
}

.mjaa-bn-flash-meta h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 25px;
  letter-spacing: -.04em;
}

.mjaa-bn-flash-meta p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

.mjaa-bn-flash-meta + .shoplaza-section .product__list-wrap {
  padding-top: 35px;
}

.mjaa-bn-flash-meta + .shoplaza-section .product__list-wrap > h4 {
  display: none;
}

.mjaa-bn-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 30px;
}

.mjaa-bn-trust-item {
  padding: 15px 14px;
  border: 1px solid #eadfd3;
  border-radius: 6px;
  background: #fffaf5;
}

.mjaa-bn-trust-item strong {
  display: block;
  color: #26201b;
  font-size: 12px;
}

.mjaa-bn-trust-item span {
  display: block;
  margin-top: 3px;
  color: #76706b;
  font-size: 11px;
  line-height: 1.45;
}

.local-bn-card-badge {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: 5px 7px;
  border-radius: 3px;
  background: var(--mjaa-bn-orange);
  color: #1c130c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.local-bn-card-discount {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  padding: 5px 7px;
  border-radius: 3px;
  background: #fff;
  color: #c54116;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.local-bn-product-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--mjaa-bn-orange);
  background: #fff4e7;
  color: #2d241e;
  font-size: 12px;
  line-height: 1.5;
}

.local-bn-product-banner strong {
  color: #bd4518;
}

.local-bn-product-banner span {
  color: #6b625b;
}

@media (max-width: 959.98px) {
  .mjaa-bn-hero-with-nav {
    grid-template-columns: 1fr;
  }

  .mjaa-bn-hero-with-nav .mjaa-bn-hero-shell {
    padding: 28px 24px;
  }

  .mjaa-bn-hero-with-nav .mjaa-bn-category-nav {
    order: 2;
  }

  .mjaa-bn-hero-with-nav .mjaa-bn-hero-stage {
    order: 1;
  }

  .mjaa-bn-hero-with-nav .mjaa-bn-category-content {
    position: static;
    width: auto;
    max-width: none;
    min-height: 0;
    border: 0;
    border-top: 1px solid #eadfd3;
    border-radius: 0;
    box-shadow: none;
  }

  .mjaa-bn-hero-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
  }

  .mjaa-bn-hero-side {
    max-width: 640px;
  }

  .mjaa-bn-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mjaa-bn-category-nav {
    grid-template-columns: 1fr;
  }

  .mjaa-bn-category-rail {
    height: auto;
  }

  .mjaa-bn-primary-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    flex: auto;
  }

  .mjaa-bn-primary {
    min-height: 44px;
  }

  .mjaa-bn-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mjaa-bn-hero-with-nav {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .mjaa-bn-hero,
  .mjaa-bn-flash-meta,
  .mjaa-bn-trust {
    width: calc(100% - 24px);
  }

  .mjaa-bn-hero {
    margin-top: 0;
    border-radius: 7px;
  }

  .mjaa-bn-hero-with-nav .mjaa-bn-hero-shell {
    padding: 27px 18px 24px;
  }

  .mjaa-bn-hero-tabs {
    gap: 32px;
    padding: 0 18px;
  }

  .mjaa-bn-hero h1 {
    font-size: 42px;
  }

  .mjaa-bn-hero-copy {
    font-size: 13px;
  }

  .mjaa-bn-actions a {
    min-height: 40px;
    padding: 0 13px;
    font-size: 10px;
  }

  .mjaa-bn-benefits span {
    font-size: 9px;
  }

  .mjaa-bn-countdown {
    padding: 11px 12px;
  }

  .mjaa-bn-countdown-time {
    font-size: 21px;
  }

  .mjaa-bn-collage {
    min-height: 190px;
  }

  .mjaa-bn-section-head {
    display: block;
  }

  .mjaa-bn-section-head > p {
    margin-top: 6px;
  }

  .mjaa-bn-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mjaa-bn-category-content {
    padding: 18px 14px 14px;
  }

  .mjaa-bn-primary-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .mjaa-bn-primary {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid #eee;
    font-size: 12px;
  }

  .mjaa-bn-primary b {
    display: none;
  }

  .mjaa-bn-primary:hover,
  .mjaa-bn-primary.is-active {
    border-color: var(--mjaa-bn-orange);
  }

  .mjaa-bn-pane-heading h3 {
    font-size: 17px;
  }

  .mjaa-bn-subcategory-grid {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 13px;
  }

  .mjaa-bn-subcategory-grid a {
    min-height: 45px;
    font-size: 11px;
  }

  .mjaa-bn-category-promo {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 8px;
  }

  .mjaa-bn-category-promo span {
    grid-column: 1 / -1;
  }

  .mjaa-bn-category-promo b {
    grid-column: 2;
    grid-row: 1;
  }

  .mjaa-bn-flash-meta {
    display: block;
    margin-bottom: -12px;
    padding: 13px 14px;
  }

  .mjaa-bn-flash-meta h2 {
    font-size: 22px;
  }

  .mjaa-bn-flash-meta p:last-child {
    margin-top: 4px;
  }

  .mjaa-bn-trust {
    gap: 8px;
    margin-top: 20px;
  }

  .mjaa-bn-trust-item {
    padding: 12px 10px;
  }

  .mjaa-bn-trust-item strong {
    font-size: 11px;
  }

  .mjaa-bn-trust-item span {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mjaa-bn-actions a,
  .mjaa-bn-category,
  .mjaa-bn-collage-card img {
    transition: none;
  }
}
