/* ==========================================================================
   BREADCRUMBS.CSS - Хлебные крошки (минималистичный стиль)
   Размер: ~0.8 KB
   ========================================================================== */

.breadcrumbs {
  padding: 10px 0 14px;
  margin: 0;
  background: transparent;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.8;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  color: #888;
}

.breadcrumbs-item a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumbs-item a:hover {
  color: #555;
  text-decoration: none;
}

/* Разделитель */
.breadcrumbs-item:not(:last-child)::after {
  content: '/';
  color: #ddd;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 300;
}

/* Текущая страница */
.breadcrumbs-item:last-child {
  color: #555;
}

.breadcrumbs-item:last-child a {
  color: #555;
  pointer-events: none;
}

/* Иконка домика */
.breadcrumbs-home-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
  display: block;
}

.breadcrumbs-text {
  display: inline-block;
}

/* Адаптив */
@media (max-width: 767px) {
  .breadcrumbs {
    padding: 10px;
  }

  .breadcrumbs-list {
    font-size: 12px;
    gap: 3px;
  }

  .breadcrumbs-item:not(:last-child)::after {
    margin-left: 3px;
    font-size: 9px;
  }

  .breadcrumbs-home-icon {
    width: 10px;
    height: 10px;
  }

  /* На мобильных скрываем промежуточные элементы, если их много */
  .breadcrumbs-list.long .breadcrumbs-item:not(:first-child):not(:last-child):not(:nth-last-child(2)) {
    display: none;
  }

  .breadcrumbs-list.long .breadcrumbs-item:nth-last-child(3)::before {
    content: '...';
    margin-right: 4px;
    color: #ddd;
    font-size: 10px;
  }
}
