/* ============================================================================
   KORBI PRODUCT CAROUSEL
   ============================================================================ */
.korbi-carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 28px;
  background: var(--c-bg);
  overflow: hidden;
}

.korbi-carousel__header {
  padding: 0 var(--side) 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.korbi-carousel__header-copy {
  min-width: 0;
  flex: 1;
}

.korbi-carousel__title {
  margin: 0;
  font-size: 18px;
  line-height: 10px;
  font-weight: 700;
  color: var(--carousel-title-color, var(--c-heading));
}

.korbi-carousel__subtitle {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: var(--carousel-subtitle-color, rgba(47, 49, 55, 0.56));
  letter-spacing: -0.55px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.korbi-carousel__see-all {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--c-blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.42px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.korbi-carousel__see-all svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

.korbi-carousel__filter-row {
  width: 100%;
  margin-top: 9px;
  overflow: hidden;
}

.korbi-carousel__filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0 var(--side) 0;
  scrollbar-width: none;
}

.korbi-carousel__filter-scroll::-webkit-scrollbar {
  display: none;
}

.korbi-carousel__filter-chip {
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 5px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  color: rgba(2, 6, 12, 0.74);
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: -0.28px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

/* Chip without thumbnail - more left padding */
.korbi-carousel__filter-chip:not(:has(.korbi-carousel__chip-thumb)) {
  padding-left: 11px;
}

.korbi-carousel__filter-chip.is-active {
  border-color: #2d63ff;
  background: #eff6ff;
  color: var(--c-blue);
  box-shadow: 0 0 0 1px rgba(45, 99, 255, 0.04), 0 1px 2px rgba(16, 24, 40, 0.04);
}

.korbi-carousel__chip-thumb {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(2, 6, 12, 0.06);
}

.korbi-carousel__chip-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.korbi-carousel__track-outer {
  padding: 15px 0 0;
  width: 100%;
  overflow: hidden;
}

.korbi-carousel__track {
  display: flex;
  gap: 10px;
  padding: 0 0 14px var(--side);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--side);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.korbi-carousel__track::-webkit-scrollbar {
  display: none;
}

.korbi-carousel__track::after {
  content: "";
  flex: 0 0 var(--side);
}

.korbi-carousel__slide {
  flex: 0 0 auto;
  width: 140px;
  scroll-snap-align: start;
}

.korbi-carousel__slide--compact {
  width: 120px;
}

.korbi-carousel__see-products-wrap {
  width: 100%;
  padding: 1px var(--side) 22px;
}

.korbi-carousel__see-products-btn {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4f9ff 0%, #edf6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: inherit;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(45, 99, 255, 0.03);
  overflow: hidden;
}

.korbi-carousel__see-products-thumbs {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 8px;
}

.korbi-carousel__see-products-thumb {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(2, 6, 12, 0.08), 0 2px 5px rgba(2, 6, 12, 0.06);
}

.korbi-carousel__see-products-thumb:first-child {
  margin-left: 0;
}

.korbi-carousel__see-products-thumb img {
  width: 78%;
  height: 78%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.korbi-carousel__see-products-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--c-blue);
  font-size: 13px;
  line-height: 17px;
  font-weight: 700;
  letter-spacing: -0.68px;
  white-space: nowrap;
}

.korbi-carousel__see-products-chevrons {
  width: 30px;
  height: 22px;
  flex: 0 0 30px;
  color: currentColor;
}

.korbi-carousel__see-products-chevrons path {
  stroke-width: 3.4;
}

.korbi-carousel-empty {
  padding: 20px var(--side);
  font: var(--t-body);
  color: var(--c-text-muted);
  text-align: center;
}

@media (max-width: 340px) {
  .korbi-carousel__title {
    font-size: 16px;
  }

  .korbi-carousel__see-products-btn {
    min-height: 58px;
    gap: 10px;
    border-radius: 16px;
  }

  .korbi-carousel__see-products-thumb {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    margin-left: -5px;
  }

  .korbi-carousel__see-products-label {
    font-size: 13px;
    line-height: 17px;
    letter-spacing: -0.38px;
  }

  .korbi-carousel__see-products-chevrons {
    width: 25px;
    height: 19px;
    flex-basis: 25px;
  }
}

/* ============================================================================
   DARK THEME
   ============================================================================ */
.korbi-carousel--dark {
  background: #1a1a2e;
}

.korbi-carousel--dark .korbi-carousel__title {
  color: #ffffff;
}

.korbi-carousel--dark .korbi-carousel__subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.korbi-carousel--dark .korbi-carousel__see-all {
  color: #8fa8ff;
}

.korbi-carousel--dark .korbi-carousel__filter-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.korbi-carousel--dark .korbi-carousel__filter-chip.is-active {
  background: rgba(45, 99, 255, 0.18);
  border-color: rgba(45, 99, 255, 0.4);
  color: #8fa8ff;
}

.korbi-carousel--dark .korbi-carousel__chip-thumb {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.korbi-carousel--dark .korbi-carousel__see-products-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.korbi-carousel--dark .korbi-carousel__see-products-label {
  color: #8fa8ff;
}

.korbi-carousel--dark .korbi-carousel__see-products-thumb {
  background: #1a1a2e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Filled chip style variant */
.korbi-carousel--chips-filled .korbi-carousel__filter-chip {
  background: var(--c-surface-strip);
  border-color: transparent;
  box-shadow: none;
}

.korbi-carousel--chips-filled .korbi-carousel__filter-chip.is-active {
  background: var(--c-blue);
  border-color: transparent;
  color: #fff;
}

.korbi-carousel--chips-filled .korbi-carousel__filter-chip.is-active .korbi-carousel__chip-thumb {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Dark + filled combo */
.korbi-carousel--dark.korbi-carousel--chips-filled .korbi-carousel__filter-chip {
  background: rgba(255, 255, 255, 0.1);
}

.korbi-carousel--dark.korbi-carousel--chips-filled .korbi-carousel__filter-chip.is-active {
  background: #4060ac;
  color: #fff;
}
