
/* Products Info Counter */
.products-info {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 14px;
  font-weight: 500;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
}

.products-info span {
  font-weight: 700;
  color: #333;
}

/* Load More Container */
.load-more-container {
  text-align: center;
  margin: 50px 0 30px;
  padding: 20px 0;
}

/* Load More Button */
.load-more-btn {
  padding: 14px 45px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 2px solid #333;
  background: transparent;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #333;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.load-more-btn:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}

.load-more-btn:hover:not(:disabled) {
  color: #fff;
  border-color: #333;
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.load-more-btn:active:not(:disabled) {
  transform: scale(0.98);
}

/* Spinner */
.load-more-btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #333;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.load-more-btn.loading .spinner {
  display: inline-block;
}

.load-more-btn.loading {
  color: #666;
  pointer-events: none;
}

.load-more-btn.loading:hover::before {
  width: 0;
  height: 0;
}

@keyframes spin {
  to { 
    transform: rotate(360deg); 
  }
}

/* Button Text */
.load-more-btn .btn-text {
  vertical-align: middle;
  position: relative;
  z-index: 1;
}

/* All Products Loaded Message */
.all-products-loaded {
  color: #28a745;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  padding: 15px 30px;
  background: #f0f9f4;
  border-radius: 50px;
  display: inline-block;
  border: 2px solid #28a745;
}

.all-products-loaded i {
  font-size: 18px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Product Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-fade-in {
  animation: fadeInUp 0.6s ease forwards;
  animation-fill-mode: both;
}

/* Stagger animation for multiple products */
.product-fade-in:nth-child(1) { animation-delay: 0.05s; }
.product-fade-in:nth-child(2) { animation-delay: 0.1s; }
.product-fade-in:nth-child(3) { animation-delay: 0.15s; }
.product-fade-in:nth-child(4) { animation-delay: 0.2s; }
.product-fade-in:nth-child(5) { animation-delay: 0.25s; }
.product-fade-in:nth-child(6) { animation-delay: 0.3s; }

/* Loading State Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.active {
  display: flex;
}

.loading-overlay .spinner-large {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsive Design */
@media (max-width: 767px) {
  .products-info {
    font-size: 13px;
    padding: 12px;
    margin-bottom: 20px;
  }

  .load-more-btn {
    padding: 12px 35px;
    font-size: 14px;
    min-width: 180px;
  }

  .load-more-container {
    margin: 40px 0 20px;
  }

  .all-products-loaded {
    font-size: 14px;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .load-more-btn {
    padding: 12px 30px;
    font-size: 13px;
    min-width: 160px;
  }

  .products-info {
    font-size: 12px;
  }
}

/* Error Message */
.load-more-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 15px;
  padding: 10px 20px;
  background: #f8d7da;
  border-radius: 4px;
  display: none;
}

.load-more-error.show {
  display: block;
}