/**
 * Split from numart_main.css for maintainability.
 */

/* Low Stock Alert - Fantastic Styling */
.stock-quantity {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.alert-remaining-items {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
  border: 1px solid #ffccd5;
  border-radius: 12px;
  color: #c41e3a;
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
  animation: lowStockPulse 2s ease-in-out infinite;
  overflow: hidden;
}

/* Animated fire/urgency icon */
.alert-remaining-items::before {
  content: '🔥';
  font-size: 18px;
  animation: fireWiggle 1s ease-in-out infinite;
}

/* Shimmer effect overlay */
.alert-remaining-items::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 3s infinite;
}

/* Hide the inline edit button (admin only) */
.alert-remaining-items .inline-edit-trigger {
  display: none !important;
}

/* Pulse animation */
@keyframes lowStockPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.25);
  }
}

/* Fire wiggle animation */
@keyframes fireWiggle {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* RTL support */
[dir="rtl"] .alert-remaining-items {
  flex-direction: row-reverse;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .alert-remaining-items {
    font-size: 12px;
    padding: 10px 14px;
  }
  
  .alert-remaining-items::before {
    font-size: 16px;
  }
}

#products-sort .js-form-item {
  direction: rtl !important;
}


#edit-coupon-redemption .js-form-item {
  direction: rtl !important;
}

.site-logo {
  display: inline-block;
  line-height: 0;
}

.site-logo img {
  display: block;
}
