.msc {
  background: #fefefe;
  width: 100%;
  padding: 10px 0 18px;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #f3f3f3;
}

.msc__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.msc__item,
.msc__more {
  min-width: 104px;
  min-height: 78px;
  padding: 10px 12px;
  border-radius: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  color: #666;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.msc__item:hover,
.msc__more:hover {
  background: #f7f9f2;
  border-color: #e7edd8;
  color: #222;
}

.msc__item.is-active {
  background: #f7fbef;
  border-color: rgba(152, 187, 63, 0.35);
  color: #7aa436;
}

.msc__item.is-active .msc__label {
  font-weight: 700;
}

.msc__item.is-active .msc__icon {
  opacity: 1;
  transform: scale(1.15);
}

.msc__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.92;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.msc__item:hover .msc__icon {
  opacity: 1;
  transform: scale(1.08);
}

.msc__label,
.msc__moreText {
  font-family: "Vazirmatn", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.msc__more {
  cursor: pointer;
  font-family: inherit;
}

.msc__moreIcon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f4ea;
  color: #6e8f2d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.msc__more:hover .msc__moreIcon {
  transform: rotate(90deg);
  background: #e7efd3;
}

.breadcrumbs {
  width: 100%;
  margin: 16px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  direction: rtl;
}

.breadcrumbs__list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: #8a9180;
  font-family: "Vazirmatn", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.breadcrumbs__list::-webkit-scrollbar {
  display: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "‹";
  color: #b6bdaa;
  font-size: 16px;
  line-height: 1;
}

.breadcrumbs__link {
  color: #6e765f;
  text-decoration: none;
  transition: color 0.18s ease;
}

.breadcrumbs__link:hover {
  color: #7aa436;
}

.breadcrumbs__current {
  color: #1f241d;
  font-weight: 800;
}

@media (min-width: 701px) {
  .msc__item--overflow {
    display: inline-flex !important;
  }

  .msc__more {
    display: none;
  }
}

@media (max-width: 700px) {
  .msc {
    padding: 8px 0 14px;
  }

  .msc__inner {
    justify-content: center;
    gap: 10px 10px;
    padding: 0 14px;
  }

  .msc__item,
  .msc__more {
    min-width: 86px;
    min-height: 72px;
    padding: 8px 8px;
    border-radius: 14px;
  }

  .msc__item--overflow {
    display: none;
  }

  .msc.is-expanded .msc__item--overflow {
    display: inline-flex;
  }

  .msc__icon {
    width: 24px;
    height: 24px;
  }

  .msc__label,
  .msc__moreText {
    font-size: 11px;
  }

  .msc.is-expanded .msc__moreIcon {
    transform: rotate(45deg);
  }

  .breadcrumbs {
    margin: 12px 0 4px;
  }

  .breadcrumbs__list {
    padding-bottom: 4px;
    font-size: 11px;
  }
}
