:root {
  --color-dark: #2C2D2E;
  --color-purple: #8A5DB4;
  --color-accent: #E5915D;
  --color-bg: #FFFFFF;
}


.ajax-add-to-cart.loading img {
  display: none;
} 
.ajax-add-to-cart .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.ajax-add-to-cart.loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.catalog {
  padding: 30px 0;
  overflow: hidden;
  background-color: #fff;
}

.catalog__header {
  margin-bottom: 48px;
}

.catalog__title {
  font-weight: 700;
  font-size: 48px;
  color: var(--color-dark);
  margin: 0;
}

/* Swiper / Grid Logic */
.catalog-slider {
  padding: 10px 0 40px;
  overflow: visible; /* Allow reveal animations and shadows to show */
}

.catalog-slider__wrapper {
  transition-timing-function: linear;
}

/* Desktop Grid Layout Override */
@media (min-width: 576px) {
  .catalog-slider__wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    transform: none !important;
    width: calc(100% + 24px) !important; /* Adjust for gutters */
    margin-left: -12px !important;
    margin-right: -12px !important;
  }

  .catalog-slider__item {
    width: 50% !important;
    padding: 12px !important;
    height: auto !important;
  }

  .catalog-slider__pagination {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .catalog-slider__item {
    width: 25% !important;
  }
}

/* Mobile Swiper Layout */
@media (max-width: 575px) {
  .catalog-slider {
    overflow: hidden;
  }
  .catalog-slider__item {
    height: inherit;
    display: flex;
  }
  .catalog-slider__pagination {
    bottom: 0 !important;
  }
  .catalog-slider__pagination .swiper-pagination-bullet-active {
    background: var(--color-purple);
  }
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid #EAECEF;
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.product-card__image-wrapper {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.product-card__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.1s ease-out;
}

.product-card__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-weight: 600;
  font-size: 18px;
  color: var(--color-dark);
  margin-bottom: 30px;
  line-height: 1.4;
  text-align: center;
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__price {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-dark);
}

.product-card__old-price {
  font-weight: 500;
  font-size: 14px;
  color: #BDBDBD;
  text-decoration: line-through;
}

.product-card__cart-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--color-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
}

.product-card__cart-btn:hover {
  background-color: #C07E4D;
  transform: scale(1.05);
}

.product-card__cart-btn:active {
  transform: scale(0.95);
}

.product-card__cart-btn img {
  width: 20px;
  height: 20px;
}

.catalog__actions {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.btn-show-more {
  background: linear-gradient(to right, #73499A 0%, #8B59BC 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 18px 40px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.btn-show-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(138, 93, 180, 0.3);
}

.btn-show-more:active {
  transform: scale(0.98);
}

.btn-show-more__icon {
  width: 30px;
  height: 30px;
  background-color: #fff;
  color: var(--color-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reveal effect */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
}

@media (max-width: 991px) {
  .catalog__title {
    font-size: 36px;
  }
}

@media (max-width: 575px) {
  .catalog__title {
    font-size: 32px;
  }
  .catalog {
    padding: 40px 0;
  }
}