.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.cart-table th, .cart-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}
.cart-table input[type="number"] {
    width: 50px;
    padding: 5px;
}
.totals {
    text-align: right;
}
/* ——— ProCommerceNetwork Cart Styles ——— */

.cart-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px auto;
  max-width: 1200px;
}

.cart-items {
  flex: 1 1 650px;
}

.cart-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.cart-deselect {
  background: none;
  border: none;
  color: #0073e6;
  cursor: pointer;
  margin-bottom: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 40px 100px 1fr 150px;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.item-select input {
  transform: scale(1.2);
}

.item-image img {
  width: 100%;
  max-width: 100px;
  object-fit: contain;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-name {
  margin: 0 0 5px;
  font-size: 18px;
}

.item-stock {
  color: #007600;
  font-size: 14px;
  margin: 0 0 5px;
}

.item-actions {
  margin-top: 10px;
}

.action-link {
  margin-right: 15px;
  font-size: 14px;
  color: #0073e6;
  text-decoration: none;
}

.action-link:hover {
  text-decoration: underline;
}

.item-qty-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.qty-form {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
}

.qty-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0 5px;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #333;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
  transition: background-color 0.2s, transform 0.1s;
}

.qty-btn:hover {
  background-color: #d0d0d0;
  transform: scale(1.1);
}

.qty-form input[type="number"] {
  width: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  margin: 0;
}

.item-price {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
}

.cart-summary {
  flex: 0 0 300px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.btn-full {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background-color: #0073e6;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.summary-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}

.summary-box p {
  margin: 10px 0;
  font-size: 14px;
}

.summary-old {
  text-decoration: line-through;
  color: #888;
  margin-left: 5px;
}

.summary-saving {
  color: #007600;
  font-weight: bold;
}

.summary-total {
  color: #333;
  font-size: 18px;
  font-weight: bold;
}
/* ——— Remove and Deselect link fixes ——— */

/* Scope both links globally inside .cart-items */
.cart-items .remove-btn,
.cart-items .cart-deselect {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #0073e6;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

/* On hover, only change color */
.cart-items .remove-btn:hover,
.cart-items .cart-deselect:hover {
  color: #0056b3;
  background: none;
  transform: none;
  text-decoration: underline;
}
/* ——— end ProCommerceNetwork Cart Styles ——— */
/* -------- Remove button -------- */
.remove-btn {
  background: none;
  border: none;
  color: #007BFF;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  margin-right: 1rem;
}
.remove-btn:hover {
  color: #0056b3;
}
/* === Remove-button overrides === */

/* Undo the size/shape forced on all table buttons */
.cart-table .remove-btn {
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
  padding: 0 !important;
  margin-right: 1rem; /* restore spacing */
  background: none !important;
  border: none;
  text-decoration: underline;
}

/* Ensure the hover only affects color — no background or scaling */
.cart-table .remove-btn:hover {
  background: none !important;
  transform: none !important;
  color: #0056b3;
}
/* Only quantity controls get the round‐button styling */
.cart-table button.qty-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #333;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
}
.cart-table button.qty-btn:hover {
    background-color: #d0d0d0;
    transform: scale(1.1);
}
.cart-table button.qty-btn:active {
    transform: scale(0.95);
}
.qty-btn:active {
  transform: scale(0.95);
}