:root {
  --primary: #004aad;
  --yellow:  #FFD700;
}

/* Page wrapper */
.cart-page {
  min-height: 60vh;
}

/* Cart layout */
.cart-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.cart-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.cart-info {
  flex: 1;
}

.cart-title {
  font-size: 0.98rem;
}

/* Price block */
.price-block .unit-label {
  font-size: 0.8rem;
  color: #6c757d;
}

.price-block .unit-price {
  margin-left: 4px;
}

/* Quantity controls */
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.qty-controls input {
  width: 52px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 4px 6px;
  font-size: 0.85rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

/* Right side actions */
.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-actions-buttons {
  display: flex;
  gap: 6px;
}

/* Wishlist & Remove buttons */
.wishlist-move-btn,
.remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.wishlist-move-btn {
  background: #fff7d6;
  color: var(--primary);
  border: 1px solid #ffe58f;
}

.wishlist-move-btn:hover {
  background: var(--yellow);
}

.remove-btn {
  background: #ffe5e5;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.remove-btn:hover {
  background: #f97373;
  color: #fff;
}

/* Grand total */
.grand-total .grand-amount {
  color: var(--primary);
}

/* Checkout button color override */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: #00337a !important;
  border-color: #00337a !important;
}

/* Mobile */
@media (max-width: 576px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-actions {
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}

.wishlist-move-btn.active {
  background: #ffe6ea;
  color: #dc3545;
  border: 1px solid #dc3545;
  cursor: not-allowed;
}

.wishlist-move-btn.active i {
  color: #dc3545;
}

