/* =================== hc-cart-steps.css =================== */
/* hc-cart-steps — checkout progress indicator (4 шага), показывается на
 * /cart когда есть позиции. Активный шаг подсвечен; остальные — серые точки
 * с тонкой соединительной линией.
 *
 * Strict isolation: .hc-cart-steps / .hc-cart-steps__*. */

.hc-cart-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  padding: 16px clamp(16px, 2vw, 28px);
  list-style: none;
  background: var(--hc-paper, #ffffff);
  border: 0.5px solid rgba(141, 109, 71, 0.18);
  border-radius: 14px;
}

.hc-cart-steps__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-family: var(--hc-sans, "Outfit", sans-serif);
}
.hc-cart-steps__item + .hc-cart-steps__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(141, 109, 71, 0.30);
  transform: translateY(-50%);
}

.hc-cart-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hc-paper-3, #f2efe9);
  border: 0.5px solid rgba(141, 109, 71, 0.22);
  font-family: var(--hc-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--hc-ink-mid, rgba(26, 23, 20, 0.55));
  flex-shrink: 0;
}

.hc-cart-steps__lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.62));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-cart-steps__item.is-active .hc-cart-steps__num {
  background: linear-gradient(135deg, var(--hc-gold-1, #d4b896), var(--hc-accent, #8b7355));
  border-color: var(--hc-accent-dark, #5d4d3a);
  color: var(--hc-paper, #ffffff);
  box-shadow: 0 6px 14px -6px rgba(184, 154, 111, 0.42);
}
.hc-cart-steps__item.is-active .hc-cart-steps__lbl {
  color: var(--hc-ink, #1a1714);
  font-weight: 600;
}
.hc-cart-steps__item.is-done .hc-cart-steps__num {
  background: var(--hc-ink, #1a1714);
  border-color: var(--hc-ink, #1a1714);
  color: var(--hc-paper, #ffffff);
}
.hc-cart-steps__item.is-done + .hc-cart-steps__item::before,
.hc-cart-steps__item.is-active + .hc-cart-steps__item::before {
  background: var(--hc-accent, #8b7355);
}

@media (max-width: 768px) {
  .hc-cart-steps {
    grid-template-columns: repeat(4, auto);
    overflow-x: auto;
    padding: 12px 16px;
  }
  .hc-cart-steps__lbl {
    display: none;
  }
  .hc-cart-steps__item {
    padding: 0 8px;
    gap: 0;
  }
  .hc-cart-steps__item.is-active .hc-cart-steps__lbl {
    display: inline;
    font-size: 11px;
  }
}
