.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 3000;

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* КОРЗИНА */
.cart {
  position: absolute;
  top: 0;
  right: 0;
	max-width:540px;
  background: #fff;
  height: 100%;
  width: 100%;
  padding: 24px 14px;

  transform: translateX(100%); /* 👉 за экраном справа */
  transition: transform .35s ease;

  display: flex;
  flex-direction: column;
}

/* OPEN */
.cart-overlay.open .cart {
  transform: translateX(0);
}


/* HEADER */
.cart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 28px;
}

.cart__header h2 {
  font-size: 28px;
}

.cart__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* ===== CART PROGRESS ===== */
.cart-progress {
  padding: 20px 0;
  font-family: 'Montserrat', sans-serif;
}

.cart-progress__text {
  font-size: 14px;
  margin-bottom: 18px;
  text-align: center;
  color: #656869;
}

/* BAR */
.cart-progress__bar {
  position: relative;
}

/* LINE */
.cart-progress__line {
position: relative;
  height: 10px;
  border: 1px solid #1788C1;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
}

/* FILL (пока статично) */
.cart-progress__fill {
  height: 100%;
  width: 18%; /* временно */
  background: #5AB7F1;
  display: block;
  border-radius: 4px;
}

/* ICON BASE */
.cart-progress__icon {
top: 50%;
transform: translate(-50%, -50%);
  position: absolute;  
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;
}

/* SVG внутри круга */
.cart-progress__icon svg {
  width: 19px;
  height: 19px;
  fill: #121212;
}

/* === ТОЧНЫЕ ПОЗИЦИИ === */
.cart-progress__icon.step-1 {
  left: 33%;
}

.cart-progress__icon.step-2 {
  left: 66%;
}

.cart-progress__icon.step-3 {
  left: 98%;
}

.cart__clear {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
margin-top: 12px;
  color: #656869;
  text-decoration: underline;
text-align: left;
  cursor: pointer;
}

.cart__clear:hover {
  color: #1788c1;
}

.cart__clear:active {
  opacity: 0.7;
}


/* ITEMS */
.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

/* FOOTER */
.cart__footer {
  padding: 20px 0;
  border-top: 1px solid #eee;
  height: 180px;              /* фиксированная высота */
  flex-shrink: 0;             /* НЕ сжиматься */
  border-top: 1px solid #eee;
  padding: 20px 0;
}


.cart__total {
  display: flex;
  justify-content: space-between;
  
}

.cart__total span {
color:#2d2f2f;
font-weight:500;
}

.cart__checkout {
  width: 100%;
  background: #3aa6e8;
  color: #fff;
  border: none;

  padding: 16px 20px;
  border-radius: 12px;

  font-size: 18px;
  font-weight: 600;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between; /* ← главное */
}

/* SVG справа */
.cart__checkout svg {
  flex-shrink: 0;
  fill: #fff;
}
.cart__note {
  margin: 6px 0;
  margin-bottom: 18px;

  font-size: 12px;
  line-height: 1.4;
  color: #656869;

  font-family: 'Montserrat', sans-serif;
}

.cart__min-order {
  display: none;

  text-align: center;
  font-size: 15px;
  color: #ef3832;

  font-family: 'Montserrat', sans-serif;
  font-weight: 400;

  margin-top: 18px;
}

/* ===== CART ITEM ===== */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eaeaea;
  font-family: 'Montserrat', sans-serif;
}

/* IMAGE */
.cart-item__image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f6f6;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* INFO */
.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TOP ROW */
.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  line-height: 150%;
}

.cart-item__price {
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

/* META */
.cart-item__meta {
  margin-top: 6px;
  font-size: 14px;
  color: #8a8a8a;
}

.cart-item__unit-price {
  margin-bottom: 6px;
  font-family: 'Montserratt', sans-serif;
  font-weight: 100;
}

.cart-item__weight {
  font-size: 14px;
  font-family: 'Montserratt', sans-serif;
  font-weight: 100;
}

/* BOTTOM */
.cart-item__bottom {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* QTY */
/* QTY */
.cart-item__qty {
  position: relative;
  width: 160px;
  height: 36px;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* VALUE */
.qty-value {
  font-size: 14px;
  font-weight: 500;
  color: #121212;
}

/* BUTTONS */
.qty-btn {
  position: absolute;
  top: 0;
  width: 36px;
  height: 100%;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn--minus {
  left: 0;
}

.qty-btn--plus {
  right: 0;
}


/* REMOVE */
.cart-item__remove {
  background: none;
  border: none;
  color: #e53935;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}


/* ===============================
   CART EMPTY STATE
   =============================== */

/* режим пустой корзины */
.cart.is-empty {
  width: 60%;
  max-width: none;
}

.cart__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* защита от двойного скролла */
}


/* обёртка обычного контента корзины */
.cart__content[hidden] {
  display: none !important;
}

/* EMPTY STATE */
.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-empty[hidden] {
  display: none !important;
}

.cart-empty__content {
  text-align: center;
}

.cart-empty__text {
  font-size: 22px;
  font-weight: 500;
  color: #121212;
  margin-bottom: 20px;
}

/* кнопка "Продолжить покупки" */
.cart-empty__btn {
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid #2fa5ed;
  background: #ffffff;
  color: #2fa5ed;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-empty__btn:hover {
  background: #2fa5ed;
  color: #ffffff;
}

/* ===============================
   CART BADGE (COUNT)
   =============================== */

/* обе кнопки корзины */
.fx-header__icon,
.icon-btn {
  position: relative;
}

/* бейдж */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;

  min-width: 17px;
  height: 17px;
  padding: 0 4px;

  background: #121212;
  color: #ffffff;

  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;

  display: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .cart.is-empty {
  width: 30%;
}

  
}