.vp-products {
  overflow: hidden;
  padding-block: 24px;
}

.vp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.vp-section-head h2 {
  margin: 0;
  color: #17201b;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.vp-section-head > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #408c45;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 180ms ease,
    gap 180ms ease;
}

.vp-section-head > a:hover {
  gap: 11px;
  color: #286b2e;
  text-decoration: none;
}

/* Slider */

.vp-product-slider-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.vp-product-swiper {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 8px 5px 24px;
}

.vp-product-swiper > .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.vp-product-swiper .swiper-slide {
  display: flex;
  flex-shrink: 0;
  height: auto;
  box-sizing: border-box;
}

/* Product card */

.vp-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf0ed;
  border-radius: 24px;
  box-shadow:
    0 2px 8px rgba(18, 32, 27, 0.04),
    0 10px 24px rgba(18, 32, 27, 0.05);

  transition:
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.vp-product-card:hover {
  border-color: #dfe7df;

  box-shadow:
    0 4px 12px rgba(18, 32, 27, 0.05),
    0 14px 30px rgba(18, 32, 27, 0.07);
}

/* Image section */

.vp-product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 245px;
  min-height: 245px;
  margin: 12px 12px 0;
  padding: 24px;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 46%,
    #ffffff 0,
    #ffffff 35%,
    #f7faf7 100%
  );
  border-radius: 18px;
}

.vp-product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.vp-product-card__image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 195px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.vp-product-card:hover .vp-product-card__image img {
  transform: scale(1.05);
}

/* Sale badge */

.vp-product-card__sale {
 position: absolute;
    top: 14px;
    left: 13px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 3px 16px;
    color: var(--vp-primary);
    background: var(--vp-cream);
    border: 1px solid var(--vp-border);
    border-radius: 17px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    box-shadow: none;
}

.vp-product-card__wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #707873;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e8ece9;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(22, 42, 28, 0.06);
  cursor: pointer;
  font-size: 1.18rem;
  line-height: 1;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.vp-product-card__wishlist:hover {
  color: #408c45;
  border-color: #b7d3b9;
  transform: scale(1.06);
}

/* Card content */

.vp-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 22px;
}

.vp-product-card__title {
  min-height: 52px;
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 600;
}

.vp-product-card__title a {
  display: -webkit-box;
  overflow: hidden;
  color: #17201b;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 180ms ease;
}

.vp-product-card__title a:hover {
  color: #408c45;
}

/* Rating */

.vp-product-card__rating {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
  margin-bottom: 18px;
}

.vp-product-card__rating .star-rating {
  float: none;
  width: 5.4em;
  margin: 0;
  font-size: 0.8rem;
}

.vp-product-card__rating .star-rating::before {
  color: #d8dcd9;
}

.vp-product-card__rating .star-rating span::before {
  color: #d99419;
}

.vp-product-card__review-count,
.vp-product-card__no-rating {
  color: #8a918d;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Price and action footer */

.vp-product-card__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px;
  width: 100%;
  margin-top: auto;
}

/* Price */

.vp-product-card__price {
  min-width: 0;
  margin: 0;
  color: #17201b;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.vp-product-card__price del {
  display: block;
  margin: 0 0 2px;
  color: #9a9f9c;
  font-size: 0.72rem;
  font-weight: 400;
}

.vp-product-card__price ins {
 color: var(--vp-dark);
  text-decoration: none;
}
/* Circular cart button */

.vp-product-card__cart {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  min-height: 46px;
  margin: 0;
}

/* Add button */

/* Circular cart button */

.vp-product-card__cart {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  min-height: 46px;
  margin: 0;
}

.vp-product-card__action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 43px !important;
  min-width: 43px !important;
  max-width: 43px !important;

  height: 43px !important;
  min-height: 43px !important;
  max-height: 43px !important;

  margin: 0 !important;
  padding: 0 0 3px !important;

  color: #ffffff !important;
  background-color: var(--vp-primary) !important;
  border: 0 !important;
  border-radius: 50% !important;

  /* box-shadow: 0 7px 16px rgba(76, 153, 78, 0.22); */

  font-size: 1.75rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;

  box-sizing: border-box !important;
  flex-shrink: 0;
  cursor: pointer;

  transition:
    background-color 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.vp-product-card__action span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  color: inherit;
  font-size: inherit;
  line-height: 1;
}

.vp-product-card__action:hover,
.vp-product-card__action:focus {
  color: #ffffff !important;
   background: var(--vp-dark) !important;
    border-color: var(--vp-dark) !important;
  opacity: 0.88;
  /* box-shadow: 0 8px 18px rgba(52, 124, 57, 0.24); */
}

.vp-product-card__action:focus-visible {
  outline: 3px solid rgba(76, 153, 78, 0.22);
  outline-offset: 3px;
}


.vp-product-card__out-of-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0 14px;

  color: var(--vp-muted);
  background: var(--vp-cream);
  border: 1px solid var(--vp-border);
  border-radius: 999px;

  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Navigation arrows */

.vp-product-slider-arrow {
  position: absolute;
  top: 44%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0 0 4px;
  color: #263029;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e7ebe8;
  border-radius: 50%;
  box-shadow:
    0 5px 15px rgba(21, 40, 27, 0.08),
    0 15px 30px rgba(21, 40, 27, 0.08);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.vp-product-slider-arrow:hover {
  color: #408c45;
  border-color: #bad1bc;
  transform: translateY(-50%) scale(1.06);
  box-shadow:
    0 7px 18px rgba(21, 40, 27, 0.1),
    0 18px 34px rgba(21, 40, 27, 0.1);
}

.vp-product-slider-arrow--prev {
  left: -23px;
}

.vp-product-slider-arrow--next {
  right: -23px;
}

.vp-product-slider-arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.vp-product-slider-arrow.swiper-button-lock {
  display: none;
}

/* Pagination */

.vp-product-slider-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 14px;
  margin-top: 6px;
}

.vp-product-slider-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  background: #d8ddda;
  border-radius: 99px;
  opacity: 1;
  transition:
    width 200ms ease,
    background 200ms ease;
}

.vp-product-slider-pagination .swiper-pagination-bullet-active {
  width: 24px;
  background: #4c994e;
}

/* Responsive */

@media (max-width: 1490px) {
  .vp-product-slider-arrow--prev {
    left: 6px;
  }

  .vp-product-slider-arrow--next {
    right: 6px;
  }
}

@media (max-width: 767px) {
  .vp-products .vp-wrap {
    padding-inline: 16px;
  }

  .vp-section-head {
    align-items: center;
    margin-bottom: 18px;
  }

  .vp-section-head > a {
    font-size: 0.78rem;
  }


  .vp-product-swiper {
    overflow: hidden; /* was: visible */
    padding-bottom: 20px;
  }


  .vp-product-card {
    border-radius: 20px;
  }

  .vp-product-card__media {
    height: 195px;
    min-height: 195px;
    margin: 9px 9px 0;
    padding: 20px;
    border-radius: 15px;
  }

  .vp-product-card__image img {
    max-width: 80%;
    max-height: 155px;
  }

  .vp-product-card__body {
    padding: 17px 17px 19px;
  }

  .vp-product-card__title {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .vp-product-card__footer {
    gap: 12px;
  }

  .vp-product-card__cart {
    min-height: 48px;
  }

  .vp-product-card__out-of-stock {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.7rem;
  }


}
