/* Elementor Widget Styles */

.special-coupons-elementor {
  margin: 2rem 0;
}

/* Grid Layout */
.elementor-grid-layout .coupon-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elementor-grid-layout .coupon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* List Layout */
.elementor-list-layout .coupon-list-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.elementor-list-layout .coupon-list-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.elementor-list-layout .coupon-image {
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.elementor-list-layout .coupon-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.elementor-list-layout .coupon-excerpt {
  color: #666;
  margin: 1rem 0;
  line-height: 1.6;
}

/* Pagination Styles */
.coupon-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.coupon-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.coupon-pagination .page-numbers:hover,
.coupon-pagination .page-numbers.current {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.coupon-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* Load More Button */
.load-more-coupons {
  min-width: 200px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.load-more-coupons:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Archive Layout Styles */
.coupon-sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
}

.coupon-sidebar .sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #007bff;
}

.coupon-sidebar .category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coupon-sidebar .category-list li {
  margin-bottom: 0.5rem;
}

.coupon-sidebar .category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.coupon-sidebar .category-list a:hover,
.coupon-sidebar .category-list a.active {
  background: #007bff;
  color: #fff;
}

.coupon-sidebar .category-list .count {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Archive Header */
.archive-header {
  margin-bottom: 2rem;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.archive-description {
  font-size: 1.125rem;
  color: #666;
}

/* Category Filter */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-filter .btn-group {
  flex-wrap: wrap;
}

/* Category Filter Tabs - Themesflat Style */
.coupon-category-filter {
  margin-bottom: 2rem;
}

.coupon-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  padding: 1rem;
  border-radius: 10px;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.coupon-filter li {
  margin: 0;
}

.coupon-filter li a {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 8px 20px;
  margin: 5px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.coupon-filter li a:hover,
.coupon-filter li.active a {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Container Filter */
.container-filter {
  position: relative;
}

.coupon-discount {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.container-filter.show-filter {
  /* Additional styles for filter mode */
}

/* Isotope Animation */
.container-filter .item {
  transition: all 0.5s ease;
}

.container-filter .item.isotope-hidden {
  opacity: 0;
  transform: scale(0.8);
}

/* Loading Animation */
.coupon-loading {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coupon-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
  color: #007bff;
}

/* Quick View Button Loading State */
.quick-view-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.quick-view-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Modal Loading State */
#coupon-modal-body .spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.2rem;
}

#coupon-modal-body .alert {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--bs-heading-color);
}

#coupon-modal-body h4{
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--bs-heading-color);
}

/* Fade Animation for Content */
[data-coupon-container] {
  transition: opacity 0.3s ease;
}

[data-coupon-container].loading {
  opacity: 0.5;
}

/* Pagination Styles for AJAX */
.coupon-pagination .pagination {
  margin: 0;
}

.coupon-pagination .page-link {
  color: #007bff;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  margin: 0 0.125rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.coupon-pagination .page-link:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.coupon-pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .archive-title {
    font-size: 2rem;
  }

  .coupon-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .elementor-list-layout .coupon-actions {
    text-align: center;
    margin-top: 1rem;
  }

  .elementor-list-layout .coupon-actions .btn {
    display: block;
    width: 100%;
  }

  /* Mobile Filter Tabs */
  .coupon-filter {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .coupon-filter li a {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .coupon-category-filter {
    margin-bottom: 1.5rem;
  }
}