/* Cart Page Styles */

/* Step badges */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Cart items */
.cart-item {
  transition: background-color 0.2s ease;
}
.cart-item:hover {
  background-color: #f8f9fa;
}

/* Quantity controls */
.qty-controls {
  max-width: 130px;
}
.qty-controls .btn {
  padding: 0.25rem 0.5rem;
  z-index: 0;
}
.qty-controls .form-control {
  font-weight: bold;
  background-color: white;
}
.qty-controls .form-control:focus {
  box-shadow: none;
  border-color: #ced4da;
}

/* Delivery cards */
.delivery-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border-color: #dee2e6 !important;
}
.delivery-card:hover {
  border-color: #dc241c !important;
  box-shadow: 0 2px 8px rgba(220, 36, 28, 0.15);
}
.delivery-card.active {
  border-color: #dc241c !important;
  border-width: 2px;
  background-color: #fff5f5;
  box-shadow: 0 2px 12px rgba(220, 36, 28, 0.2);
}
.delivery-card:focus {
  outline: 3px solid #dc241c;
  outline-offset: 2px;
}

/* Sticky summary */
.sticky-summary {
  position: sticky;
  top: 20px;
}

/* Summary items */
.summary-item {
  padding-bottom: 0.25rem;
}

/* Remove button */
.remove-btn {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
}

/* Empty cart icon */
.empty-cart-icon i {
  opacity: 0.4;
}

/* Toast */
#cartToast {
  min-width: 250px;
}

/* Pay button */
#payButton {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}
#payButton:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}
#payButton:disabled {
  opacity: 0.7;
}

/* Card headers */
.card-header {
  border-bottom: none;
}

/* reCAPTCHA centering */
.g-recaptcha {
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .sticky-summary {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767.98px) {
  .cart-item .row {
    text-align: center;
  }
  .cart-item .col-6 {
    text-align: center !important;
  }
  .qty-controls {
    margin: 0 auto;
  }
}

/* Delivery details animation */
.delivery-details {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Address form labels */
.delivery-details .form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
}
