/* Selected Product Styles */
.product-item.selected {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.05);
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1), 0 2px 4px -1px rgba(245, 158, 11, 0.06);
}

.product-item .quantity-controls {
  display: none;
}

.product-item.selected .quantity-controls {
  display: flex;
}

.product-item.selected .select-btn-text {
  display: none;
}

.product-item.selected .select-btn-icon {
  display: block;
}

/* Selected item styling - High Specificity */
#mainContent .product-item.selected {
  border: 2px solid #f59e0b !important;
  background-color: #fffbeb !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1), 0 2px 4px -1px rgba(245, 158, 11, 0.06);
}

/* Dark mode support */
html.dark #mainContent .product-item.selected {
  background-color: rgba(245, 158, 11, 0.15) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: none;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Processing Modal (Energy Style) */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.processing-modal-open #processingModal {
  display: flex !important;
}

.energy-orb {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.energy-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.energy-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  border-top-color: #fbbf24;
  border-left-color: #fbbf24;
  animation: energy-spin 2s linear infinite;
  filter: drop-shadow(0 0 5px #fbbf24);
}

.energy-ring:nth-child(2) {
  width: 75%;
  height: 75%;
  border-bottom-color: #f59e0b;
  border-right-color: #f59e0b;
  animation: energy-spin-reverse 2.5s linear infinite;
  filter: drop-shadow(0 0 5px #f59e0b);
}

.energy-ring:nth-child(3) {
  width: 50%;
  height: 50%;
  border-top-color: #d97706;
  animation: energy-pulse-spin 3s ease-in-out infinite;
}

.energy-core {
  width: 18px;
  height: 18px;
  background: #fef3c7;
  border-radius: 50%;
  box-shadow: 0 0 25px 10px rgba(251, 191, 36, 0.6);
  animation: energy-pulse 1.5s ease-in-out infinite alternate;
}

.processing-text {
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #fde68a;
  text-align: center;
  min-height: 1.5em;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes energy-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes energy-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes energy-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 1; }
}

@keyframes energy-pulse-spin {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(0.9); }
}
