/* ── Cart page ─────────────────────────────────────────────────────────────── */

/* Page wrapper */
.cart.cart-form {
  margin-bottom: 2rem;
}

/* Table */
.lpp-cart-table {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 0;
}
.lpp-cart-table thead th {
  background-color: #f0f4f8;
  color: #3d6b8e;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #dee2e6;
  padding: 0.65rem 0.75rem;
}
.lpp-cart-table tbody td {
  vertical-align: middle;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}
.lpp-cart-table tbody tr:last-child td {
  border-bottom: none;
}
.lpp-cart-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Image / icon cell */
.lpp-cart-img-col {
  width: 72px;
  text-align: center;
}
.lpp-cart-product-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  object-position: center;
  border-radius: 3px;
  background: #f8f9fa;
  display: block;
}
.lpp-cart-product-icon {
  font-size: 2rem;
  color: #3d6b8e;
  opacity: 0.75;
}

/* Item title link */
.lpp-cart-table .views-field-purchased-entity a,
.lpp-cart-table .views-field-title a {
  color: #3d6b8e;
  font-weight: 600;
  text-decoration: none;
}
.lpp-cart-table .views-field-purchased-entity a:hover,
.lpp-cart-table .views-field-title a:hover {
  color: #7b2d82;
  text-decoration: underline;
}

/* Quantity input */
.lpp-cart-table .form-number,
.lpp-cart-table input[type="number"] {
  width: 70px;
  text-align: center;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.95rem;
}

/* Update / Remove buttons */
.lpp-cart-table .button,
.lpp-cart-table .btn {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}
.lpp-cart-table .remove-button {
  background: none;
  border: 1px solid #dee2e6;
  color: #888;
  cursor: pointer;
}
.lpp-cart-table .remove-button:hover {
  border-color: #dc3545;
  color: #dc3545;
}

/* Order summary / totals */
.views-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 2px solid #dee2e6;
  margin-top: 0.5rem;
}

/* Update cart button */
.views-form .form-actions .button--primary,
.views-form .form-actions input[type="submit"]:not(.checkout-button) {
  background-color: #3d6b8e;
  border-color: #3d6b8e;
  color: #fff;
  border-radius: 4px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}
.views-form .form-actions .button--primary:hover,
.views-form .form-actions input[type="submit"]:not(.checkout-button):hover {
  background-color: #2d5070;
  border-color: #2d5070;
}

/* Checkout button */
.views-form .form-actions .checkout-button,
.views-form .form-actions input[name="checkout"],
.cart-form .checkout-button {
  background-color: #7b2d82;
  border-color: #7b2d82;
  color: #fff;
  border-radius: 4px;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.views-form .form-actions .checkout-button:hover,
.views-form .form-actions input[name="checkout"]:hover,
.cart-form .checkout-button:hover {
  background-color: #5e2264;
  border-color: #5e2264;
}

/* Empty cart */
.cart-empty-page {
  text-align: center;
  padding: 3.5rem 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
  color: #6c757d;
  font-size: 1.05rem;
}
.cart-empty-page::before {
  content: '\F214';
  font-family: 'bootstrap-icons';
  display: block;
  font-size: 3rem;
  color: #3d6b8e;
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

/* Responsive: stack on small screens */
@media (max-width: 576px) {
  .lpp-cart-img-col {
    display: none;
  }
  .views-form .form-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .views-form .form-actions .button,
  .views-form .form-actions input[type="submit"] {
    width: 100%;
  }
}
