/* ============================================================
   ADCART User — cart.css
   Styles specific to the cart page
   ============================================================ */

.ud-cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ud-cart-item:last-child { border-bottom: none; }

.ud-cart-item-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #eee;
}

.ud-cart-item-info { flex: 1; min-width: 0; }

.ud-cart-item-option { font-size: .85rem; color: #888; margin-top: 3px; }

.ud-cart-item-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.ud-cart-amount-input {
  width: 130px !important;
  text-align: center !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
}

.ud-cart-update-btn {
  /* No !important on display — lets Bootstrap d-none (display:none !important) hide it */
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--ud-green);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.ud-cart-update-btn:hover { background: #15803d; }

.ud-cart-delete-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #fef2f2;
  color: #dc2626 !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.ud-cart-delete-btn:hover { background: #fee2e2; }
