/* =============================================================================
   EthioCart Web Storefront & Mini App Custom Styles
   ============================================================================= */

/* Glassmorphism & Neon Glow */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.card-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 25px -5px rgba(16, 185, 129, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Hide scrollbar for category pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Modal Animations */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-up {
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar for inner modals */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Active Category Pill Animation */
.cat-pill.active {
  background: #10b981;
  color: #022c22;
  box-shadow: 0 4px 15px -1px rgba(16, 185, 129, 0.3);
}

/* Active Toast */
#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Telegram OTP Code Input */
#input-otp-code {
  letter-spacing: 0.35em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#input-otp-code:focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Subtle Glowing Badges */
.badge-glow-emerald {
  box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.3);
}

.badge-glow-sky {
  box-shadow: 0 0 15px -3px rgba(14, 165, 233, 0.3);
}

.badge-glow-amber {
  box-shadow: 0 0 15px -3px rgba(245, 158, 11, 0.4);
}

/* Cart Drawer Transitions */
#cart-drawer.open {
  transform: translateX(0);
}

/* Star Rating Colors */
.star-rating {
  color: #fbbf24;
}

.star-rating-empty {
  color: #475569;
}

/* Flash Sale Progress Bar */
.flash-progress-bar {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
  transition: width 0.5s ease-in-out;
}

/* Quantity Stepper Input Styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Flash countdown pulse */
@keyframes flashGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
  }
}

.flash-container {
  animation: flashGlow 3s infinite ease-in-out;
}
