/**
 * BienHabillé — Breadcrumb CSS
 *
 * @package BienHabille
 */

.bh-breadcrumb {
  padding: var(--bh-space-3) var(--bh-space-8);
  background: var(--bh-white);
}

.bh-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--bh-space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--bh-space-2);
  font-size: var(--bh-text-xs);
}

.bh-breadcrumb__item a {
  color: var(--bh-gray-text);
  text-decoration: none;
  transition: color var(--bh-transition);
  white-space: nowrap;
}

.bh-breadcrumb__item a:hover {
  color: var(--bh-black);
  text-decoration: underline;
}

.bh-breadcrumb__item--current {
  font-weight: 600;
  color: var(--bh-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.bh-breadcrumb__separator {
  color: var(--bh-gray-text);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

/* Breadcrumb mobile produit — en bas de page */
.bh-breadcrumb--product-bottom {
  padding: var(--bh-space-4) var(--bh-space-4);
  border-top: 1px solid var(--bh-gray-mid);
  margin-top: var(--bh-space-5);
}

@media (max-width: 767px) {
  .bh-breadcrumb {
    padding: var(--bh-space-3) var(--bh-space-4);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bh-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .bh-breadcrumb__list {
    flex-wrap: nowrap;
  }
}