/* Homepage Best Sellers only. Slick owns slide widths and responsive counts.
 * Keep the existing Myriad family and page typography scale in this release. */
#petag-home-bestsellers .bestseller-product-source ul.products {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
#petag-home-bestsellers .bestseller-product-source ul.products::before,
#petag-home-bestsellers .bestseller-product-source ul.products::after { display: none; }
#petag-home-bestsellers .bestseller-product-source .slick-list { overflow: hidden; }
#petag-home-bestsellers .bestseller-product-source .slick-track {
  display: flex !important;
  align-items: stretch;
}
#petag-home-bestsellers .bestseller-product-source ul.products li.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  float: none;
  clear: none;
  margin: 0 10px !important;
  padding: 0 0 30px;
  min-width: 0;
  min-height: 390px;
  height: auto;
  background: linear-gradient(0deg, #f4faff 50%, #fff 50%);
  border: 2px solid #004d86;
  border-radius: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  box-sizing: border-box;
  text-align: center;
}
#petag-home-bestsellers .bestseller-product-source .slick-track > li.product.slick-slide {
  flex: 0 0 auto;
}
#petag-home-bestsellers .bestseller-product-source .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
#petag-home-bestsellers .bestseller-product-source .et_shop_image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 8px;
}
#petag-home-bestsellers .bestseller-product-source .et_shop_image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0;
}
#petag-home-bestsellers .bestseller-product-source h2.woocommerce-loop-product__title {
  font-family: "myriad-pro", sans-serif;
  font-size: clamp(18px, 1.75vw, 26px) !important;
  margin: 10px 0;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.6em;
  line-height: 1.3;
  text-align: center;
  color: #004d86;
}
/* A real Flex item reserves space even when a product has no tag. Wrapped
 * tags expand naturally instead of covering the product image. */
#petag-home-bestsellers .petag-bestseller-card__tag-slot {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px 8px;
  box-sizing: border-box;
}
#petag-home-bestsellers .bestseller-product-source .product-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
  position: static;
  transform: none;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding: 6px 14px;
  border-radius: 0 0 5px 5px;
  color: #fff;
  font-family: "myriad-pro", sans-serif;
  font-size: 20px !important;
  font-weight: 700;
  z-index: 10;
}
#petag-home-bestsellers .petag-bestseller-card__rating { width: 100%; text-align: center; }
#petag-home-bestsellers .petag-bestseller-card__action { margin-top: auto; width: 100%; padding-top: 6px; }
#petag-home-bestsellers .bestseller-product-source .slick-dots {
  position: static;
  margin: 18px 0 0;
  padding: 0;
  text-align: center;
}

/* “View Product” Button */
#petag-home-bestsellers ul.products li.product .custom-button {
  margin-top: auto;
  display: inline-block;
  padding: 0.4em 0.7em 0.4em 0.9em;
  background-image: linear-gradient(180deg, #3069b3 0%, #1a92d0 45%, #1a92d0 100%);
  background-color: #FFB136;
  color: #F3F3EA !important;
  border: 4px solid #1E7ABF !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: clamp(16px, 1.5vw, 20px) !important;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Button Icon */
#petag-home-bestsellers ul.products li.product .custom-button::after {
  content: attr(data-icon);
  font-family: ETmodules !important;
  font-weight: 400 !important;
  font-size: inherit !important;
  line-height: inherit;
  opacity: 1;
  margin-left: 0.3em;
  position: relative;
}

#petag-home-bestsellers .bestseller-product-source .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}
#petag-home-bestsellers .bestseller-product-source .slick-arrow::before {
  font-family: ETmodules;
  font-size: 60px;
  line-height: 1;
  color: #b9d2e8;
  opacity: 1;
}
#petag-home-bestsellers .bestseller-product-source .slick-arrow:hover::before { opacity: 0.8; }
#petag-home-bestsellers .bestseller-product-source .slick-arrow:focus-visible {
  outline: 2px solid #004d86;
  outline-offset: 3px;
}
#petag-home-bestsellers .bestseller-product-source .slick-prev { left: -60px; }
#petag-home-bestsellers .bestseller-product-source .slick-next { right: -60px; }
#petag-home-bestsellers .bestseller-product-source .slick-prev::before { content: '4'; }
#petag-home-bestsellers .bestseller-product-source .slick-next::before { content: '5'; }
@media (max-width: 767px) {
  #petag-home-bestsellers .bestseller-product-source .slick-prev { left: -24px; }
  #petag-home-bestsellers .bestseller-product-source .slick-next { right: -24px; }
  #petag-home-bestsellers .bestseller-product-source .slick-arrow { width: 24px; }
  #petag-home-bestsellers .bestseller-product-source .slick-arrow::before { font-size: 36px; }
}

/* Slick strips IDs from cloned badges. Match the stable card wrapper instead
 * so WP Review Slider badge 4 keeps its configured orange on every slide.
 * Only set the color; retain the plugin's masks, partial stars and sizing. */
#petag-home-bestsellers .petag-bestseller-card__rating .wppro_badge1_DIV_stars span.svgicons {
  background-color: #ffb136;
}
