.cart-page {
  margin-top: 1rem;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.checkout-card {
  background: var(--surface);
  border: 1px solid #ddcfb7;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.checkout-card h2 {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.cart-items {
  display: grid;
  gap: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.62rem;
  border: 1px solid #e2d7c4;
  border-radius: 0.9rem;
  background: #fffdf8;
}

.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 0.7rem;
}

.cart-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.qty-wrap button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid #d9cab2;
  background: #fff8e8;
  cursor: pointer;
}

.remove-btn {
  border: 1px solid #dbb4b4;
  background: #f8e2e2;
  color: #7e2d2d;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.checkout-form {
  display: grid;
  gap: 0.65rem;
}

.checkout-form label {
  display: grid;
  gap: 0.26rem;
  font-size: 0.86rem;
  color: #314037;
  font-weight: 600;
}

.checkout-form input {
  width: 100%;
  border: 1px solid #d5cab3;
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  background: #fffdf8;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
}

.summary {
  border: 1px dashed #ccbfa6;
  border-radius: 0.8rem;
  padding: 0.7rem;
  background: #faf5e8;
  font-size: 0.92rem;
  color: #2f3d34;
}

.summary strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  color: var(--forest-deep);
}

.checkout-form button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--forest), #2b7a53);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.72rem 1rem;
  cursor: pointer;
}

.secondary-pay {
  background: linear-gradient(140deg, #2f2f48, #44446a) !important;
}

.error {
  min-height: 1.1rem;
  margin: 0.7rem 0 0;
  color: #8b2f2f;
  font-weight: 600;
  font-size: 0.86rem;
}

.cart-empty {
  margin: 0;
  padding: 0.8rem;
  border: 1px dashed #ccbfa6;
  border-radius: 0.8rem;
  color: var(--muted);
}

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

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

  .cart-item > .remove-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }
}
