/* Enhanced Mobile Cart Styling */

/* Full-screen cart page */
#cart-page {
  transition: transform 0.3s ease-in-out;
  background-color: #f8f9fa;
}

/* Cart header styling */
#cart-page .p-4.border-b {
  border-bottom-width: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  z-index: 10;
}

/* Empty cart styling */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Cart items styling */
.cart-item-mobile {
  background-color: white;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-item-mobile .p-3 {
  padding: 1rem;
}

/* Quantity controls */
.quantity-control {
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.quantity-control button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border: none;
  color: #4b5563;
}

.quantity-input {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  background-color: white;
  font-size: 14px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Bottom sticky cart summary */
#order-summary-mobile {
  border-top-width: 1px;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}

/* Cart button badge */
#mobile-cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Floating cart button */
#mobile-cart-fab {
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: transform 0.2s ease;
}

#mobile-cart-fab:active {
  transform: scale(0.95);
}

/* Mobile checkout button */
#mobile-checkout-btn {
  height: 48px;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  transition: transform 0.1s ease;
}

#mobile-checkout-btn:active {
  transform: scale(0.98);
}

/* Remove item button style */
.remove-item-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fee2e2;
  color: #ef4444;
  border: none;
  transition: background-color 0.2s ease;
}

.remove-item-btn:active {
  background-color: #fecaca;
}