/* CATEGORIES / BRANDS SECTION */
.bm-categories{
  padding: 80px 0;
  background: #f8f9fa;
}

.bm-categories__wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.bm-categories__title{
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 40px 0;
  color: #0b0f14;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bm-categories__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: opacity 0.3s ease;
}

.bm-categories__grid.is-transitioning{
  opacity: 0;
}

/* ── SLIDER ARROWS ── */
.bm-categories__slider{
  position: relative;
}

.bm-categories__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: #fff;
  border: 2px solid #6F7FEA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  color: #6F7FEA;
  z-index: 10;
}

.bm-categories__arrow--prev{ left: -70px; }
.bm-categories__arrow--next{ right: -70px; }

.bm-categories__arrow:hover{
  background: #6F7FEA;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.bm-categories__arrow:disabled{
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.bm-categories__arrow svg{
  width: 24px;
  height: 24px;
}

.bm-categories__viewport{
  overflow: visible;
  position: relative;
}

/* ── BRAND CARD ── */
.bm-brand-card{
  position: relative;
  z-index: 1;
}

.bm-brand-card:hover,
.bm-brand-card.is-open{
  z-index: 50;
}

.bm-brand-card__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 5px;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 80px;
}

.bm-brand-card__header:hover{
  border-color: #6F7FEA;
  box-shadow: 0 8px 24px rgba(111,127,234,.15);
  transform: translateY(-2px);
}

.bm-brand-card.is-open .bm-brand-card__header{
  border-color: #6F7FEA;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.bm-brand-card__logo{
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 40px;
}

.bm-brand-card__logo img{
  max-height: 40px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

.bm-brand-card__logo svg{
  max-height: 40px;
  max-width: 140px;
}

.bm-brand-card__name-text{
  font-size: 16px;
  font-weight: 700;
  color: #0b0f14;
}

.bm-brand-card__chevron{
  flex-shrink: 0;
  color: #999;
  transition: transform .25s ease;
  margin-left: 8px;
}

.bm-brand-card.is-open .bm-brand-card__chevron{
  transform: rotate(180deg);
  color: #6F7FEA;
}

/* ── DROPDOWN ── */
.bm-brand-card__dropdown{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #6F7FEA;
  border-top: none;
  border-radius: 0 0 5px 5px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .25s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  max-height: 300px;
  overflow-y: auto;
}

.bm-brand-card.is-open .bm-brand-card__dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bm-brand-card__cat{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: #0b0f14;
  transition: background .15s ease;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.bm-brand-card__cat:last-child{
  border-bottom: none;
}

.bm-brand-card__cat:hover{
  background: #f0f2ff;
}

.bm-brand-card__cat-icon{
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-brand-card__cat-icon svg{
  width: 100%;
  height: 100%;
}

.bm-brand-card__cat-name{
  font-size: 14px;
  font-weight: 600;
  color: #0b0f14;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px){
  .bm-categories__grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 968px){
  .bm-categories__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px){
  .bm-categories{ padding: 60px 0; }
  .bm-categories__title{ font-size: 24px; margin-bottom: 30px; }
  .bm-categories__grid{ gap: 12px; }
  .bm-brand-card__header{ padding: 16px; min-height: 60px; }
  .bm-brand-card__logo img{ max-height: 32px; }
  .bm-brand-card__cat{ padding: 10px 16px; gap: 10px; }
  .bm-brand-card__cat-icon{ width: 24px; height: 24px; }
  .bm-brand-card__cat-name{ font-size: 13px; }
  .bm-categories__arrow{ width: 40px; height: 40px; }
  .bm-categories__arrow--prev{ left: -55px; }
  .bm-categories__arrow--next{ right: -55px; }
  .bm-categories__arrow svg{ width: 20px; height: 20px; }
}

@media (max-width: 480px){
  .bm-categories{ padding: 40px 0; }
  .bm-categories__grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bm-brand-card__header{ padding: 12px; min-height: 50px; }
  .bm-brand-card__logo img{ max-height: 28px; }
  .bm-brand-card__name-text{ font-size: 13px; }
  .bm-categories__arrow{ width: 36px; height: 36px; }
  .bm-categories__arrow--prev{ left: -48px; }
  .bm-categories__arrow--next{ right: -48px; }
  .bm-categories__arrow svg{ width: 18px; height: 18px; }
}
