.cart-page {
  min-height: 100vh;
  background: #f5f7fa;
  padding: 24px 16px 40px;
}

.cart-page__inner {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.08);
}

.cart-page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cart-page__header h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #18222d;
}

.cart-page__back {
  color: #0a6fa9;
  text-decoration: none;
  font-weight: 600;
}

.cart-page__status {
  margin: 12px 0;
  min-height: 20px;
  color: #4a5a6a;
}

.cart-page__loading,
.cart-page__error,
.cart-page__empty {
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.cart-page__loading {
  background: #eef4fa;
  color: #2f4f67;
}

.cart-page__error {
  background: #fdeeee;
  color: #8c2424;
}

.cart-page__empty {
  background: #f4f7fb;
  color: #304355;
}

.cart-page__list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 12px;
}

.cart-item-media {
  display: flex;
}

.cart-item__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item__title,
.cart-item__price,
.cart-item__total {
  margin: 0;
}

.cart-item__title {
  font-size: 1.05rem;
  color: #18222d;
}

.cart-item__price,
.cart-item__total {
  color: #3f4f5f;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-item__qty-btn,
.cart-item__remove {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.cart-item__qty-btn {
  width: 30px;
  height: 30px;
  background: #e7edf4;
  color: #1f2a35;
}

.cart-item__qty-input {
  width: 70px;
  height: 30px;
  border: 1px solid #c5d0db;
  border-radius: 7px;
  text-align: center;
}

.cart-item__remove {
  align-self: flex-start;
  padding: 8px 12px;
  background: #fce8e8;
  color: #8f2c2c;
}

.cart-page__summary {
  border-top: 1px solid #e5ebf2;
  margin-top: 16px;
  padding-top: 16px;
}

.cart-page__subtotal {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #1d2b3a;
}

.cart-page__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.cart-page__btn--ghost {
  background: #e8edf4;
  color: #233243;
}

.cart-page__btn--primary {
  background: #0b7dc1;
  color: #ffffff;
}

@media (min-width: 721px) {
  .cart-page .cart-item {
    display: flex;
    align-items: stretch;
  }

  .cart-page .cart-item-media {
    display: flex;
    width: 100%;
    max-width: 160px;
    flex: 0 0 160px;
  }

  .cart-page .cart-item-media .cart-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

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

  .cart-item__image {
    height: 180px;
  }
}
