/* ============================================================
 * Стили для страницы Корзины
 * ============================================================ */
.cart-page {
  padding-top: 40px;
  padding-bottom: 100px;
}

.cart-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.back-link {
  color: #a49ab8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: #c6a6ff; }

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 204, 255, 0.1);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  color: #b5a9c6;
}
.pulse-dot {
  width: 8px; height: 8px; background: #b7ff70; border-radius: 50%;
  box-shadow: 0 0 10px rgba(183, 255, 112, 0.8);
}

.cart-page .page-title {
  font-size: 38px;
  margin-bottom: 40px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* Сетка */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

/* Левая колонка */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(145deg, rgba(34, 24, 52, 0.6), rgba(20, 14, 31, 0.8));
  border: 1px solid rgba(168, 121, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
}

.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: #1c142b;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}
.cart-item-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #f6f1ff;
}
.cart-item-info p {
  margin: 0;
  font-size: 13px;
  color: #a49ab8;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(220, 204, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.qty-control button {
  width: 32px; height: 32px;
  background: transparent; border: none;
  color: #f6f1ff; font-size: 18px; cursor: pointer;
  transition: background 0.2s;
}
.qty-control button:hover { background: rgba(255,255,255,0.1); }
.qty-control span {
  width: 30px; text-align: center; font-weight: 700; font-size: 14px;
}

.cart-item-price {
  font-size: 18px; font-weight: 800; color: #f6f1ff;
  min-width: 70px; text-align: right;
}

.remove-btn {
  background: rgba(255, 109, 120, 0.1);
  color: #ff6d78;
  border: 1px solid rgba(255, 109, 120, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.remove-btn:hover { background: rgba(255, 109, 120, 0.2); }

/* Правая колонка (Итог) */
.cart-summary {
  background: linear-gradient(145deg, rgba(34, 24, 52, 0.8), rgba(20, 14, 31, 0.9));
  border: 1px solid rgba(168, 121, 255, 0.2);
  border-radius: 24px;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.summary-note {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(220, 204, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}
.summary-note .icon { font-size: 24px; }
.summary-note strong { display: block; font-size: 14px; color: #f6f1ff; margin-bottom: 4px; }
.summary-note p { margin: 0; font-size: 12px; color: #a49ab8; line-height: 1.4; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(220, 204, 255, 0.1);
  padding-top: 20px;
  margin-bottom: 12px;
}
.summary-total span { font-size: 16px; color: #a49ab8; font-weight: 600; }
.summary-total strong { font-size: 32px; color: #f6f1ff; font-family: 'Space Grotesk', sans-serif; }

.summary-hint {
  font-size: 11px; color: #7d718e; margin-bottom: 24px; line-height: 1.4;
}

.summary-actions {
  display: flex;
  gap: 12px;
}
.summary-actions .button-quiet { flex: 1; background: rgba(255,255,255,0.05); }
.summary-actions .button-primary { flex: 2; }

/* Пустая корзина */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,0.02);
  border-radius: 20px;
  border: 1px dashed rgba(220, 204, 255, 0.15);
}
.empty-cart h3 { font-size: 20px; margin-bottom: 10px; }
.empty-cart p { color: #a49ab8; margin-bottom: 20px; }

/* Адаптив */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 600px) {
  .cart-item { flex-wrap: wrap; }
  .cart-item-controls { width: 100%; justify-content: space-between; margin-top: 10px; }
  .cart-item-price { text-align: left; }
}