/* Show More Button Styles */
.btn-show-more {
  min-width: 200px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-show-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(39, 53, 120, 0.3);
}

.btn-show-more:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading spinner */
.btn-show-more .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Product item animations */
.product-item,
.product-item-ajax {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product list container */
.product-list {
  transition: all 0.3s ease;
}

/* Product counter */
.product-counter {
  margin-bottom: 20px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
}

.product-counter .current-count,
.product-counter .total-count {
  font-weight: 600;
  color: #273578;
}

/* Pagination container for Show More */
.pagination.show-more-container {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

/* Loading overlay adjustment */
.product-content {
  min-height: 400px;
  position: relative;
}

.product-content.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

/* Smooth scroll for Show More */
html {
  scroll-behavior: smooth;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .btn-show-more {
    width: 100%;
    min-width: auto;
  }

  .product-item,
  .product-item-ajax {
    animation-duration: 0.3s;
  }

  .pagination.show-more-container {
    margin-top: 30px;
    padding-top: 15px;
  }
}

/* Hover effect for product items */
.product-item,
.product-item-ajax {
  transition: transform 0.3s ease;
}

.product-item:hover,
.product-item-ajax:hover {
  transform: translateY(-5px);
}

/* Fix for button text spacing */
.btn-show-more span {
  display: inline-block;
  vertical-align: middle;
}

/* Optional: Progress bar style */
.load-more-progress {
  height: 3px;
  background: #e9ecef;
  position: relative;
  margin-top: 20px;
  border-radius: 3px;
  overflow: hidden;
}

.load-more-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #273578 0%, #3f56c0 100%);
  width: 0;
  transition: width 0.3s ease;
}

/* Filter animations */
.filter-side {
  transition: all 0.3s ease;
}

.filter-side.show {
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
