/* Page-specific styles; shared responsive design in global.css. */

/* Cart line layout with compact quantity steppers and clearer spacing. */
#cart-items {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.cart-line {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e4e9e2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px #243b2f0b;
}
.cart-line-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: #f2f3ee;
}
.cart-line-details {
  min-width: 0;
}
.cart-line-details > b {
  display: block;
  color: #2d4034;
  font-size: 0.95rem;
}
.cart-line-details > p {
  margin: 5px 0 11px;
  color: #778178;
  font-size: 0.78rem;
}
.cart-quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dce5dc;
  border-radius: 12px;
  background: #f7faf6;
}
.cart-quantity-control button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #315744;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px #173b2717;
}
.cart-quantity-control button:hover:not(:disabled) {
  background: #e9f1e8;
}
.cart-quantity-control button:disabled {
  color: #aeb8ae;
  cursor: not-allowed;
  box-shadow: none;
}
.cart-quantity-control input {
  width: 54px;
  height: 36px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #c62828 !important;
  -webkit-text-fill-color: #c62828;
  font: inherit;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
}
.cart-quantity-control input:focus { color:#c62828 !important; -webkit-text-fill-color:#c62828; }
.cart-quantity-control input::-webkit-inner-spin-button,
.cart-quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}
.cart-remove {
  margin-left: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #946357;
  font: inherit;
  font-size: 0.73rem;
  cursor: pointer;
}
.cart-remove:hover {
  color: #713d32;
  text-decoration: underline;
}
.cart-line-total {
  color: #2c4635;
  font-size: 0.95rem;
  white-space: nowrap;
}
.cart-empty {
  padding: 28px;
  border: 1px dashed #d8e0d6;
  border-radius: 14px;
  text-align: center;
}
@media (max-width: 620px) {
  .cart-line {
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }
  .cart-line-image { width: 70px; height: 70px; }
  .cart-line-total { grid-column: 2; justify-self: start; }
  .cart-remove { margin-left: 8px; }
}
