.cart-page {
  padding: 0 0 40px;
}

.cart-hero {
  padding: 36px 0 24px;
}

.cart-hero-card {
  background: linear-gradient(135deg, #fffaf2 0%, #f3e4cc 100%);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 42px;
}

.cart-hero-card h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.cart-hero-text {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-soft);
}

.cart-section {
  padding: 6px 0 10px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.cart-main {
  min-width: 0;
}

.cart-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.cart-section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.cart-items-note {
  color: var(--text-soft);
  white-space: nowrap;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  align-items: stretch;
}

.cart-row-image {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #eadbc3;
}

.cart-row-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cart-row-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.cart-row-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-accent-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-row-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-main);
}

.cart-row-desc {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.cart-row-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.cart-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  flex-wrap: wrap;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f2e3ca;
  padding: 8px 10px;
  border-radius: 999px;
}

.cart-qty-btn {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--text-main);
}

.cart-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.cart-remove-btn {
  border: 0;
  background: #ecd7cf;
  color: #7a4332;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: 0.2s ease;
}

.cart-remove-btn:hover {
  background: #e2c1b6;
}

.checkout-block {
  position: sticky;
  top: 104px;
}

.checkout-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.checkout-head h2 {
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1.1;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0 8px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-soft);
}

.summary-row strong {
  color: var(--text-main);
  font-size: 20px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-submit {
  width: 100%;
  margin-top: 6px;
}

.cart-empty {
  margin-top: 12px;
}

.cart-empty-card {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
}

.cart-empty-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.cart-empty-card p {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-block {
    position: static;
  }
}

@media (max-width: 800px) {
  .cart-section-head {
    flex-direction: column;
    align-items: start;
  }

  .cart-items-note {
    white-space: normal;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }

  .cart-row-image {
    height: 220px;
  }

  .cart-row-top {
    flex-direction: column;
  }

  .cart-row-bottom {
    align-items: stretch;
  }

  .cart-row-actions {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .cart-hero {
    padding-top: 20px;
  }

  .cart-hero-card,
  .checkout-card,
  .cart-empty-card {
    padding: 22px;
  }

  .cart-row {
    padding: 14px;
  }

  .cart-row-title {
    font-size: 21px;
  }

  .cart-row-price {
    font-size: 24px;
  }

  .cart-row-image {
    height: 190px;
  }
}