/* 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;
}

/* ===== Mobile Selected Items Strip ===== */
#mobile-selected-strip {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Selected Item Chips */
.selected-item-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 8px 6px 12px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.selected-item-chip:active {
  transform: scale(0.97);
}

.chip-qty {
  font-weight: 700;
  color: #4361ee;
  font-size: 12px;
}

.chip-name {
  color: #374151;
  font-weight: 500;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-remove {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fee2e2;
  color: #ef4444;
  border: none;
  font-size: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.chip-remove:active {
  background-color: #fecaca;
  transform: scale(0.9);
}

/* Cart Quantity Badge on Product Cards */
.cart-qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #4361ee 0%, #3730a3 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 6px rgba(67, 97, 238, 0.4);
  z-index: 10;
}

/* Product card with item in cart */
.product-card.ring-2 {
  border-color: #4361ee;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.dark .product-card.ring-2 {
  background: linear-gradient(135deg, #1f2937 0%, #312e81 100%);
}

/* Dark mode adjustments */
.dark #mobile-selected-strip {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-color: #4b5563;
}

.dark .selected-item-chip {
  background: #374151;
  border-color: #4b5563;
}

.dark .chip-name {
  color: #e5e7eb;
}

.dark .chip-qty {
  color: #818cf8;
}