/* ============================================================
   IKS - Koszyk
   ============================================================ */

.cart-section {
  padding: clamp(48px, 7vh, 88px) 0 80px;
  min-height: 60vh;
  background: var(--bg-alt);
}

/* ---------- Stepper ---------- */
.checkout-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
}

.stepper-step.active {
  color: var(--violet);
}

.stepper-step.done {
  color: var(--mint-600);
}

.stepper-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.stepper-step.active .stepper-num {
  background: var(--violet);
  color: #fff;
}

.stepper-step.done .stepper-num {
  background: var(--mint);
  color: var(--ink);
}

.stepper-sep {
  width: 28px;
  height: 1.5px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ---------- Naglowek koszyka ---------- */
.cart-header {
  margin-bottom: 28px;
}

.cart-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-top: 12px;
}

/* ---------- Lista pozycji ---------- */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background: var(--violet-50);
}

.cart-item-cover {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.cart-item-cover-placeholder {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--violet-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
}

.cart-item-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
}

.cart-item-meta {
  font-size: 12.5px;
  color: var(--gray-600);
  margin-top: 3px;
}

.cart-item-price {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}

.cart-item-price-sub {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.cart-item-remove:hover {
  color: #c9184a;
  background: #fff0f3;
}

/* ---------- Podsumowanie koszyka ---------- */
.cart-summary-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--charcoal);
  padding: 7px 0;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

.cart-summary-total-label {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.cart-summary-total-amount {
  font-weight: 800;
  font-size: 22px;
  color: var(--violet);
}

/* ---------- Karty wyboru sciezki ---------- */
.path-choice-section {
  margin-top: 40px;
}

.path-choice-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.path-choice-sub {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.path-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.path-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
  text-decoration: none;
  color: inherit;
}

.path-card:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow-violet);
  transform: translateY(-2px);
}

.path-card-b2g {
  border-color: var(--mint);
}

.path-card-b2g:hover {
  border-color: var(--mint-600);
  box-shadow: 0 12px 40px -16px rgba(0, 246, 160, 0.35);
}

.path-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-50);
  color: var(--violet);
}

.path-card-b2g .path-card-icon {
  background: var(--mint-50);
  color: var(--mint-600);
}

.path-card-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.path-card-desc {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;
}

.path-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--charcoal);
  font-weight: 500;
}

.path-card-features li svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--violet);
}

.path-card-b2g .path-card-features li svg {
  color: var(--mint-600);
}

.path-card-cta {
  margin-top: auto;
}

/* ---------- Pusty koszyk ---------- */
.cart-empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cart-empty-icon {
  color: var(--border);
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}

.cart-empty-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.cart-empty-sub {
  color: var(--gray-600);
  margin-bottom: 28px;
}

/* ---------- Pasek zaufania ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--gray-600);
  font-weight: 500;
}

.trust-item svg {
  color: var(--violet);
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .path-cards {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }
}
