/* Homepage commerce collections: brands, featured and recommendations */
.bn-home-commerce {
  --bn-red: var(--bn-primary);
  --bn-green: #169c45;
  --bn-ink: var(--bn-text);
}

/* CTA — above Popular Categories */
.bn-home-cta {
  --bn-red: var(--bn-primary);
  position: relative;
  padding: 28px 0 8px;
}

.bn-home-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 180px;
  padding: 36px 44px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bn-hero-gradient);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.bn-home-cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bn-cta-bg);
  background-size: cover;
  background-position: center right;
  opacity: 0.22;
  pointer-events: none;
}

.bn-home-cta__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0.2) 55%, var(--bn-primary-tint) 100%);
  pointer-events: none;
}

.bn-home-cta__products,
.bn-home-cta__action {
  position: relative;
  z-index: 1;
}

.bn-home-cta__products {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bn-home-cta__product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bn-home-cta__product:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
}

.bn-home-cta__product-media {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.bn-home-cta__product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.bn-home-cta__product-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bn-home-cta__product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.bn-home-cta__product-price {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

.bn-home-cta__action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.bn-home-cta__eyebrow {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bn-home-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--bn-red) !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bn-home-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  color: var(--bn-red) !important;
}

.bn-home-cta__btn i {
  font-size: 13px;
}

@media (max-width: 1399px) {
  .bn-home-cta__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bn-home-cta__product:nth-child(4) {
    display: none;
  }
}

@media (max-width: 991px) {
  .bn-home-cta__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    min-height: 0;
  }

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

  .bn-home-cta__product:nth-child(4) {
    display: flex;
  }

  .bn-home-cta__action {
    align-items: center;
  }
}

.bn-product-collection {
  padding: 58px 0;
  background: #fff;
}

.bn-product-collection--soft {
  background: #f8fafc;
}

.bn-collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.bn-collection-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--bn-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bn-collection-title {
  margin: 0 0 6px;
  color: var(--bn-ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 800;
}

.bn-collection-desc {
  max-width: 620px;
  margin: 0;
  color: var(--bn-muted);
  font-size: 14px;
  line-height: 1.55;
}

.bn-collection-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  color: var(--bn-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.bn-collection-link:hover {
  color: var(--bn-red);
  border-color: var(--bn-red);
}

.bn-product-collection .lp-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.bn-product-collection .lp-product-item {
  min-width: 0;
  display: flex;
}

.bn-featured-head-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bn-featured-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bn-featured-nav[hidden] {
  display: none;
}

.bn-featured-nav-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--bn-ink);
  font-size: 13px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, opacity .22s ease;
}

.bn-featured-nav-btn:hover:not(:disabled) {
  border-color: var(--bn-red);
  background: var(--bn-red);
  color: #fff;
}

.bn-featured-nav-btn:disabled {
  opacity: .4;
  cursor: default;
}

.bn-featured-carousel {
  position: relative;
}

.bn-featured-track {
  --bn-featured-per-view: 4;
  --bn-featured-gap: 18px;
  display: flex;
  gap: var(--bn-featured-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bn-featured-track::-webkit-scrollbar {
  display: none;
}

.bn-product-collection .bn-featured-track .lp-product-item {
  flex: 0 0 calc(
    (100% - (var(--bn-featured-per-view) - 1) * var(--bn-featured-gap)) /
    var(--bn-featured-per-view)
  );
  scroll-snap-align: start;
}

.bn-product-collection .lp-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(15, 23, 42, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.bn-product-collection .lp-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}

.bn-product-collection .lp-product-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bn-product-collection .lp-product-media {
  position: relative;
  aspect-ratio: 1/.88;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
  background: #f7f7f7;
}

.bn-product-collection .lp-product-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.bn-product-collection .lp-product-card:hover .lp-product-media img {
  transform: scale(1.04);
}

.bn-product-collection .lp-wishlist-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #1f2937;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 8px rgba(15,23,42,.1);
  text-decoration: none !important;
  transform: translateY(-50%);
}

.bn-product-collection .lp-wishlist-btn:hover {
  color: var(--bn-red);
  border-color: var(--bn-red);
}

.bn-product-collection .lp-product-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.bn-product-collection .lp-product-status-row,
.bn-product-collection .lp-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bn-product-collection .lp-product-status-row {
  margin-bottom: 11px;
}

.bn-product-collection .lp-cat-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bn-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.bn-product-collection .lp-stock-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--bn-green);
  font-size: 11px;
  font-weight: 700;
}

.bn-product-collection .lp-stock-status.is-out {
  color: #94a3b8;
}

.bn-product-collection .lp-product-title {
  min-height: 42px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.bn-product-collection .lp-product-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--bn-ink) !important;
  text-decoration: none !important;
}

.bn-product-collection .lp-product-seller {
  position: relative;
  z-index: 4;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 5px;
  margin-bottom: 7px;
  color: var(--bn-red);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
}

.bn-product-collection .lp-product-seller span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bn-product-collection .lp-product-unit {
  margin: 0 0 16px;
  color: var(--bn-muted);
  font-size: 13px;
}

.bn-product-collection .lp-product-footer {
  margin-top: auto;
}

.bn-product-collection .lp-price-value {
  color: var(--bn-red);
  font-size: 19px;
  font-weight: 800;
}

.bn-product-collection .lp-cart-btn {
  position: relative;
  z-index: 4;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--bn-red);
  border-radius: 10px;
  color: var(--bn-red) !important;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}

.bn-product-collection .lp-cart-btn:hover:not(.is-disabled) {
  color: #fff !important;
  background: var(--bn-red);
}

.bn-product-collection .lp-cart-btn.is-disabled {
  border-color: #cbd5e1;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

/* Brands */
.bn-brand-section {
  padding: 54px 0;
  background: #fff;
}

.bn-brand-head-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bn-brand-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bn-brand-nav[hidden] {
  display: none;
}

.bn-brand-nav-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--bn-ink);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.bn-brand-nav-btn:hover:not(:disabled) {
  background: var(--bn-red);
  border-color: var(--bn-red);
  color: #fff;
}

.bn-brand-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.bn-brand-carousel {
  position: relative;
}

.bn-brand-track {
  /* One partial card stays in view so the track reads as scrollable */
  --bn-brand-per-view: 5;
  --bn-brand-gap: 14px;
  display: flex;
  gap: var(--bn-brand-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.bn-brand-track::-webkit-scrollbar {
  display: none;
}

.bn-brand-card {
  flex: 0 0 calc(
    (100% - (var(--bn-brand-per-view) - 1) * var(--bn-brand-gap)) / var(--bn-brand-per-view)
  );
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 168px;
  padding: 20px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: var(--bn-ink);
  background: #fff;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bn-brand-card:hover {
  color: var(--bn-red);
  border-color: var(--bn-primary-tint);
  box-shadow: 0 9px 22px rgba(15,23,42,.08);
  transform: translateY(-3px);
}

.bn-brand-card__media {
  width: 118px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bn-brand-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bn-brand-card__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 1400px) {
  .bn-product-collection .lp-products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .bn-featured-track {
    --bn-featured-per-view: 6;
    --bn-featured-gap: 16px;
  }
}

@media (max-width: 1199px) {
  .bn-product-collection .lp-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bn-featured-track {
    --bn-featured-per-view: 3;
  }
  .bn-brand-track {
    --bn-brand-per-view: 4;
  }
}

@media (max-width: 991px) {
  .bn-brand-track {
    --bn-brand-per-view: 3;
  }
}

@media (max-width: 767px) {
  .bn-product-collection,
  .bn-brand-section {
    padding: 36px 0;
  }
  .bn-collection-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .bn-product-collection .lp-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .bn-featured-head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .bn-featured-track {
    --bn-featured-per-view: 2;
    --bn-featured-gap: 10px;
  }
  .bn-product-collection .lp-product-content {
    padding: 12px;
  }
  .bn-product-collection .lp-product-title {
    font-size: 13px;
  }
  .bn-product-collection .lp-price-value {
    font-size: 15px;
  }
  .bn-product-collection .lp-cart-btn {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .bn-brand-head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .bn-brand-track {
    --bn-brand-per-view: 2;
    --bn-brand-gap: 10px;
  }
  .bn-brand-card {
    min-height: 132px;
    padding: 12px 8px;
  }
  .bn-brand-card__media {
    width: 92px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .bn-brand-track {
    --bn-brand-per-view: 2;
  }
}
