/* Overrides theme .category-menu :last-child rules (demo8.min.css) for Solmenu sidebar */

/* demo8 only sets text-align/border on :not(:last-child) > a; last row inherits differently */
.category-menu > li:last-child > a {
  border-bottom: 1px solid #e1e1e1;
  text-align: left;
}

.category-menu > li:last-child > a i {
  margin: 0 0.7rem 0 0;
  font-size: 1.9rem;
  width: 1.9rem;
}

/* Theme .category-menu i uses line-height:0; Font Awesome needs normal line-height and solid weight 900 */
.category-menu > li > a > i[class*="fa-"] {
  line-height: 1;
}

.category-menu > li > a > i.fas,
.category-menu > li > a > i[class*="fa-solid"] {
  font-weight: 900;
}

.category-menu > li > a > i.far,
.category-menu > li > a > i[class*="fa-regular"] {
  font-weight: 400;
}

.category-menu > li > a > i.fab,
.category-menu > li > a > i[class*="fa-brands"] {
  font-weight: 400;
}

/* Touch / coarse pointer: theme hover color (#d92129) can stick on the last row after tap */
@media (hover: none) {
  .category-menu li:hover > a:not(.menu-title),
  .category-menu li:hover > a:not(.menu-title) i {
    color: #000;
  }
}

/* Sol menü marka listesi: solda ad, sağda aktif ürün sayısı */
.sidebar .sidebar-marka-list {
  max-height: 22rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
}

.sidebar .sidebar-marka-list > li .sidebar-brand-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
}

.sidebar .sidebar-marka-list > li .sidebar-brand-row > a {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  padding-right: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar .sidebar-marka-list > li .sidebar-brand-main {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.sidebar .sidebar-marka-list > li .sidebar-brand-main > a {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar .filter-items2.sidebar-marka-list > li .sidebar-brand-count {
  position: static;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  color: #999;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
}

.sidebar .sidebar-marka-list > li:last-child > a {
  white-space: normal;
}
