.catalog-product-card .product-thumb,
.product-gallery-frame .main-image {
  position: relative;
}

.catalog-product-card .product-thumb {
  aspect-ratio: 5/6;
  overflow: hidden;
}

.catalog-product-card .product-thumb > a,
.catalog-product-card .product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.catalog-product-card .product-thumb img {
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.product-sales-badge {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: 0 0.25rem 0.65rem rgba(30, 43, 34, 0.2);
  isolation: isolate;
}

.product-sales-badge::before {
  position: absolute;
  z-index: 6;
  top: calc(100% + 0.45rem);
  right: 0;
  width: max-content;
  max-width: 12rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.25rem;
  background: #263b2d;
  box-shadow: 0 0.3rem 0.75rem rgba(30, 43, 34, 0.2);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.2rem);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  visibility: hidden;
  white-space: normal;
}

.product-sales-badge:hover::before,
.product-sales-badge:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.product-sales-badge:focus-visible {
  outline: 2px solid #bfa76a;
  outline-offset: 2px;
}

.product-sales-badge > i {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
}

.product-sales-badge--bestseller {
  border-color: #d8bd78;
  background: linear-gradient(145deg, #3c5743 0%, #24392a 100%);
  color: #f3d68f;
  --fa-primary-color: #f3d68f;
  --fa-secondary-color: #fff8df;
  --fa-secondary-opacity: .72;
}

.product-sales-badge--popular {
  border-color: #314837;
  background: linear-gradient(145deg, #fffdf6 0%, #eee5cc 100%);
  color: #8b6c24;
  --fa-primary-color: #8b6c24;
  --fa-secondary-color: #314837;
  --fa-secondary-opacity: .78;
}

@media (max-width: 575.98px) {
  .product-sales-badge {
    top: 0.4rem;
    right: 0.4rem;
    width: 1.65rem;
    height: 1.65rem;
  }
  .product-sales-badge > i {
    font-size: 0.7rem;
  }
  .product-sales-badge::before {
    max-width: 9.5rem;
  }
}
.catalog-product-carousel .catalog-product-card {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.catalog-product-carousel .tns-carousel-inner.tns-slider {
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.catalog-product-carousel .tns-inner {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.catalog-product-carousel .tns-carousel-inner.tns-slider > .tns-item {
  display: flex;
  height: auto;
  flex: 0 0 auto;
}

.catalog-product-carousel .catalog-product-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.catalog-product-carousel .catalog-product-purchase {
  margin-top: auto !important;
  padding-top: 0.75rem;
}

.reviews-widget {
  background-repeat: repeat;
}

.reviews-widget__carousel .tns-inner {
  padding: 3px 1px 6px;
}

.reviews-widget__slide {
  height: 100%;
}

.reviews-widget__card {
  display: flex;
  width: 100%;
  height: 350px;
  min-width: 0;
  padding: 1.55rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3e9ef;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.5rem 2rem rgba(49, 72, 55, 0.08);
}

.reviews-widget__main {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: flex-start;
  flex: 1 1 auto;
  gap: 1.15rem;
}

.reviews-widget__cover {
  display: block;
  width: 82px;
  height: 112px;
  padding: 0.35rem;
  flex: 0 0 82px;
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 0.4rem;
  background: #f8f7f3;
}

.reviews-widget__cover img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.18rem;
  object-fit: cover;
  object-position: center;
}

.reviews-widget__copy {
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.reviews-widget__rating {
  margin-bottom: 0.7rem;
}

.reviews-widget__rating .star-rating-icon {
  margin-right: 0.08rem;
  font-size: 0.88rem;
}

.reviews-widget__title {
  display: block;
  margin-bottom: 0.35rem;
  color: #314837;
  font-size: 1rem;
  line-height: 1.3;
}

.reviews-widget__text {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #5f6d7e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.reviews-widget__footer {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #edf0f3;
}

.reviews-widget__author {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  color: #314837;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.reviews-widget__author small {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #5e9f48;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}

.reviews-widget__product {
  display: inline-flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.35rem;
  color: #6b778c;
  font-size: 0.84rem;
  line-height: 1.35;
}

.reviews-widget__product span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
}

.google-review-badge {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: top;
}

.google-review-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin: 0.55rem 0 0 0.15rem;
  color: #314837;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
}

.google-review-summary:hover {
  color: #9f8339;
}

.google-review-summary__rating {
  color: #b89338;
  font-size: 0.9rem;
  font-weight: 700;
}

.google-review-summary .star-rating-icon {
  margin-right: 0.02rem;
  color: #d6ad42;
  font-size: 0.76rem;
}

.google-review-summary__count {
  color: #5e6b61;
}

@media (min-width: 768px) {
  .footer-social-links {
    justify-content: flex-start;
  }
}
@media (max-width: 799.98px) {
  .reviews-widget {
    padding-top: 2.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .reviews-widget__card {
    height: 330px;
    padding: 1.3rem;
  }
  .reviews-widget__main {
    gap: 0.9rem;
  }
  .reviews-widget__cover {
    width: 72px;
    height: 98px;
    flex-basis: 72px;
  }
  .reviews-widget__text {
    font-size: 0.92rem;
    line-height: 1.52;
  }
}
@media (max-width: 499.98px) {
  .catalog-product-carousel .catalog-product-card {
    padding-right: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 0.3rem;
  }
  .catalog-product-carousel .catalog-product-card .card-body {
    padding-right: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.25rem;
  }
  .catalog-product-carousel .catalog-product-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding-top: 0.5rem;
  }
  .catalog-product-carousel .catalog-product-prices {
    min-width: 0;
    flex: 1 1 auto;
  }
  .catalog-product-carousel .price-box > div {
    padding-right: 0.4rem !important;
    padding-left: 0.4rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }
  .catalog-product-carousel .product-floating-btn {
    position: static;
    flex: 0 0 auto;
    opacity: 1;
  }
  .catalog-product-carousel .product-floating-btn .btn {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }
  .catalog-product-carousel .product-floating-btn .btn .ms-1 {
    margin-left: 0.2rem !important;
  }
}
