.breadcrumbs {
  position: relative;

  font-size: 14px;
  line-height: 1;
  color: var(--color-text-secondary);

  width: fit-content;
  padding: 0 1.8rem 0 3.2rem;

  border-radius: 999px;
  background: #fff;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);

  z-index: 10;
}

.breadcrumbs-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3em;
}

.breadcrumbs:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.4rem;
  transform: translate(0, -50%);

  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-primary);
}

.crumb {
  position: relative;
}

.crumb.home-crumb {
  width: 1.2em;
  height: 1.2em;
  transform: translateY(-0.1em);

  flex-shrink: 0;
}

.crumb + .crumb:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.5em;
  width: 1em;
  height: 1em;
  transform: translate(-50%, -50%);

  background: url("/components/breadcrumbs/img/arrow-right-gy.svg") no-repeat
    center center / 40%;
  opacity: 0.3;

  pointer-events: none;
}

.breadcrumb-dropdown .current-depth {
  padding: 1.2rem 0;
}

.breadcrumb-dropdown .dropdown-list {
  display: none;
  transform: translate(0, -0.6rem);
  opacity: 0;

  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0);

  padding-top: 1rem;
}

.breadcrumb-dropdown ul {
  border-radius: 1.6rem;
  overflow: hidden;

  box-shadow: 0px 0.4rem 1rem 0px rgba(0, 0, 0, 0.25);
}

.breadcrumb-dropdown ul li {
  background: #fff;
}

.breadcrumb-dropdown ul li.active {
  background: var(--color-primary);
  color: #fff;
}

.breadcrumb-dropdown ul li + li {
  border-top: 1px solid #e1e1e1;
}

.breadcrumb-dropdown ul li a {
  display: block;
  padding: 1em 1.2em;
  text-align: center;
  white-space: nowrap;

  transition: all 0.3s;
}

.breadcrumb-dropdown ul li:not(.active) a:hover {
  background: rgba(191, 231, 255, 0.4);
  color: var(--color-primary-dark);
}

/* 반응형 */
@media (max-width: 500px) {
  .breadcrumbs {
    font-size: 12.6px;
    width: fit-content;
    max-width: 90%;
  }

  .breadcrumbs-inner {
    gap: 2em;
    width: 100%;
  }

  .crumb.depth1-crumb {
    flex-shrink: 0;
  }

  .crumb.depth2-crumb {
    flex: 1;
    min-width: 0;
  }

  .crumb + .crumb:before {
    left: -1em;
    width: 0.8em;
    height: 0.8em;
  }

  .breadcrumb-dropdown .current-depth {
    width: 100%;
    max-width: none;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .breadcrumb-dropdown ul li a {
    padding: 0.8em 1em;
  }
}
