/* Phase 5 cart; homepage and product layouts remain in their own files. */
[hidden] { display: none !important; }
.cart-message { font-size: 13px; color: var(--ink); min-height: 24px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 6%; align-items: start; }
.cart-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-list-heading h2 { font-size: 24px; }
.cart-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 22px; border-bottom: 1px solid var(--line); padding: 26px 0; }
.cart-photo { display: block; height: 145px; }
.cart-item h3 { font: 400 20px var(--serif); margin-bottom: 8px; }
.cart-item-details > p:not(.product-category) { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cart-item-actions { display: flex; align-items: end; gap: 24px; margin-top: 15px; }
.cart-item-actions label { width: 90px; }
.remove-button { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--accent); font: 12px "Segoe UI", "Nirmala UI", sans-serif; padding: 7px 0; cursor: pointer; }
.line-total { white-space: nowrap; font-size: 14px; margin-top: 28px; }
.quantity-error { color: #9c2924 !important; font-size: 12px; margin-top: 10px; }
.order-summary { background: #f5f2f2; padding: 30px; }
.order-summary h2 { font-size: 29px; margin-bottom: 25px; }
.delivery-label { margin-bottom: 24px; }
.order-summary dl { margin: 0; }
.order-summary dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; font-size: 13px; }
.order-summary dd { margin: 0; text-align: right; }
.order-summary .total-row { border-top: 1px solid #bfc3b3; margin-top: 10px; padding-top: 18px; font-size: 18px; }
.checkout-coming { width: 100%; justify-content: center; opacity: .6; border: 0; cursor: not-allowed; margin-top: 22px; }
.add-cart { border: 0; cursor: pointer; width: 100%; justify-content: center; }
.add-cart:disabled { opacity: .6; cursor: not-allowed; }
.product-cart-message { font-size: 13px; min-height: 25px; margin: 14px 0 0; }
.cart-view-link { margin: 12px 0 4px; }
.cart-layout > section > .text-link { margin-top: 24px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; gap: 35px; } .order-summary { max-width: 560px; width: 100%; } }
@media (max-width: 480px) {
  .cart-item { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
  .cart-photo { height: 110px; }
  .cart-item h3 { font-size: 18px; }
  .line-total { grid-column: 2; margin: 0; }
  .order-summary { padding: 24px; }
  .cart-list-heading h2 { font-size: 22px; }
}

.add-cart.is-added:disabled {
  background: #e7f2ea;
  color: #204d32;
  opacity: 1;
  font-weight: 700;
}
.product-cart-message.is-success {
  padding: 10px 12px;
  border-inline-start: 3px solid #34734c;
  background: #e7f2ea;
  color: #204d32;
  font-size: 15px;
  font-weight: 700;
}
