/*
 * Ahh Maa Product Filter Styling v1.5
 */

/* =================================================================
   1. General Filter UI
================================================================= */
.ahh-maa-filters {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
}
.selected-tags-area {
  display: flex;
  gap: 10px;
  margin-right: 15px;
}
.selected-tag .eicon-close {
  cursor: pointer;
  font-size: 18px;
}
.filter-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  border-radius: 5px;
  margin-top: 5px;
}
.filter-tag-list {
  list-style: none;
  margin: 0;
  padding: 10px;
}
.filter-tag-list li {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.filter-tag-list li:hover {
  background-color: #f4f4f4;
}
.filter-tag-list li.active {
  font-weight: bold;
  color: #dc1f26;
}
.filter-tag-list li.disabled {
  color: #aaa;
  cursor: not-allowed;
  background-color: #f9f9f9;
}

/* =================================================================
   2. Filter Buttons & Labels
================================================================= */
.filter-toggle-button,
.selected-tag,
.clear-all-filters {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  width: fit-content;
  height: 50px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 5px;
  cursor: pointer;
}
.filter-toggle-button,
.selected-tag {
  background-color: #dc1f26;
  color: #ffffff;
}
.clear-all-filters {
  color: #dc1f26;
  background-color: #ffffff;
  border: 3px solid #dc1f26;
  text-decoration: none;
}
.clear-all-filters:hover {
  background-color: #dc1f26;
  color: #ffffff;
}
.filter-toggle-button svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
}
.filter-by-label {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  color: #222223;
  padding: 10px 15px 5px 25px;
  margin: 0;
  border-bottom: 1px solid #eee;
  font-size: 18px;
}
.load-more-button {
  background-color: #dc1f26;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  font-style: normal;
  text-decoration: none;
  line-height: 20px;
  letter-spacing: 0px;
  fill: #ffffff;
  color: #ffffff;
  border-style: none;
  border-radius: 3px 3px 3px 3px;
  padding: 14.73px 0px 17.75px 0px;
  width: 200px;
  display: block;
  margin: 0 auto;
}
.load-more-button:hover {
  background-color: #b52a2a;
  color: #ffffff;
}

/* =================================================================
   3. AJAX Loading State & Load More Button
================================================================= */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.load-more-container {
  text-align: center;
  margin-top: 30px;
}

/* =================================================================
   4. Ahh Maa Custom Flickity Carousel Styles
================================================================= */

/* Main carousel container. overflow:hidden clips the slides. Padding creates a safe-zone for overflowing elements. */
/* .ahh-maa-product-grid.ahh-maa-desktop-carousel {
	overflow: hidden;
	position: relative;
	padding: 30px 60px;} 
*/
.ahh-maa-desktop-carousel .elementor-loop-container,
.ahh-maa-desktop-carousel .flickity-viewport {
  min-height: 841px;
}
.ahh-maa-desktop-carousel .flickity-viewport {
  padding: 20px 30px;
}
.ahh-maa-desktop-carousel .flickity-slider {
  width: 100%;
}
/* FIX: Override Elementor's display:grid for Flickity */
.ahh-maa-desktop-carousel .elementor-loop-container.flickity-enabled {
  display: block;
}

/* Individual slides (the loop items) */
.ahh-maa-desktop-carousel .e-loop-item {
  width: calc(100% / 3);
  padding: 0 30px;
  box-sizing: border-box;
  height: auto;
  margin-top: 10px;
}
/* Styling for Flickity's default navigation buttons */
.ahh-maa-desktop-carousel .flickity-button {
  background: #dc1f26;
  transition: background 0.2s ease;
}
.ahh-maa-desktop-carousel .flickity-button:hover {
  background: #b52a2a;
}
.ahh-maa-desktop-carousel .flickity-button-icon {
  fill: #ffffff;
}
.ahh-maa-desktop-carousel .flickity-prev-next-button.previous {
  left: -50px;
}
.ahh-maa-desktop-carousel .flickity-prev-next-button.next {
  right: -50px;
}

@media screen and (min-width: 769px) {
  #product-filter-grid-desktop.ahh-maa-desktop-carousel .elementor-grid:not(.flickity-enabled) {
    display: flex;
    flex-direction: row;
  }
}
/* =================================================================
   5. Mobile Responsive Styles
================================================================= */
@media screen and (max-width: 1024px) {
  .ahh-maa-desktop-carousel .e-loop-item {
    width: calc(100% / 2);
  }
}

@media screen and (max-width: 767px) {
  .ahh-maa-filters {
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
  }
  .selected-tags-area {
    flex-direction: column;
    margin-bottom: 20px;
    margin-right: 0;
  }
  .filter-dropdown {
    margin-top: 5px;
    width: 100%;
  }
  .selected-tag {
    justify-content: space-between;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .ahh-maa-desktop-carousel .elementor-loop-container,
  .ahh-maa-desktop-carousel .flickity-viewport {
    min-height: 680px;
  }
}
@media (min-width: 1024px) and (max-width: 1400px) {
  .ams-container > div {
    width: calc(33% - 30px);
    margin: 0 15px;
  }
  .ams-center .ams-delivery,
  .ams-center .ams-discount {
    width: 100%;
    max-width: 250px;
  }
  .ams-left .ams-left-row {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .ahh-maa-desktop-carousel .e-loop-item {
    width: calc(100% / 2);
  }
}
.dgcpf-loading-indicator {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #0073aa;
  border-radius: 50%;
  margin: 30px auto;
  animation: dgcpf-spin 1s linear infinite;
}

@keyframes dgcpf-spin {
  to {
    transform: rotate(360deg);
  }
}
.category-add-ons {
  display: none;
}
