.archive-product-container
  .shopengine-archive-mode-grid
  .woocommerce-LoopProduct-link {
  background: #f7f9fb;
  text-align: center !important;
}

.archive-product-container {
  background: #f7f9fb !important;
}
/* Ensure all product cards have equal height */
.shopengine-widget .shopengine-archive-products .products .product {
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 3;
}

.shopengine-archive-view-mode
  .shopengine-archive-view-mode-switch-list
  .shopengine-archive-view-mode-switch.isactive,
.shopengine-archive-view-mode
  .shopengine-archive-view-mode-switch-list
  .shopengine-archive-view-mode-switch:hover {
  color: #0071bd !important;
  background: transparent;
}

/* Make the product link container use flexbox for consistent alignment */
.shopengine-widget
  .shopengine-archive-products
  .products
  .product
  .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

/* Align product categories consistently */
.shopengine-widget .shopengine-archive-products .product-categories {
  justify-content: center;
  margin-bottom: 8px;
  min-height: 24px; /* Ensure consistent height even when empty */
}

.shopengine-widget .shopengine-archive-products .products .product .onsale {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4),
      0 0 20px rgba(255, 68, 68, 0.6), 0 0 30px rgba(255, 68, 68, 0.4);
  }
}

/* Ensure product titles are aligned and have consistent spacing */
.shopengine-widget
  .shopengine-archive-products
  .products
  .product
  .woocommerce-loop-product__title {
  margin: 0 0 8px 0;
  height: 3.4em; /* Allow for 2 lines of text */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Align star rating and review count consistently */
.shopengine-widget
  .shopengine-archive-products
  .products
  .product
  .star-rating {
  margin: 0 auto 4px;
  min-height: 16px;
}

.shopengine-widget
  .shopengine-archive-products
  .products
  .product
  .shopengine-product-rating-review-count {
  display: block;
  margin-bottom: 8px;
  min-height: 20px;
}

/* Align prices consistently at the bottom */
.shopengine-widget .shopengine-archive-products .products .product .price {
  justify-content: center;
  margin-top: auto; /* Push price to bottom */
  min-height: 28px;
  display: flex;
  align-items: center;
}

.shopengine-widget .shopengine-archive-products .products .product .price del {
  display: block;
}

.shopengine-widget .shopengine-archive-products .products .product .price ins {
  color: var(--e-global-color-5b522ed);
}

.shopengine-widget .loop-product--btns-inner {
  height: auto;
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(30px, 1fr));
  border-radius: 5px 5px 0 0;
  width: auto;
  position: absolute;
  top: 5px;
  right: 0;
  left: unset;
  grid-template-columns: none;
  /* -webkit-transform: translate(-50%, 40%); */
  transform: translate(-30%, 0%);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  opacity: 0;
  padding: 10px 5px;
  -webkit-transition: cubic-bezier(0.41, 1.1, 1, 1) 0.3s;
  transition: cubic-bezier(0.41, 1.1, 1, 1) 0.3s;
}

.loop-product--btns-inner .shopengine-wishlist.badge {
  margin-left: 0 !important;
}

.shopengine-widget
  .shopengine-archive-mode-grid:hover
  .loop-product--btns-inner {
  -webkit-transform: translate(-30%, 0);
  transform: translate(-30%, 0);
  opacity: 1;
}

.shopengine-archive-products
  ul
  li
  .loop-product--btns
  .loop-product--btns-inner {
  background-color: #ffffff !important;
  row-gap: 15px !important;
}

.shopengine-archive-products
  ul
  li
  .loop-product--btns
  .loop-product--btns-inner
  :is(a, button, .button):hover {
  color: #0071bd !important;
  background: #ffffff !important;
}

.woof_products_top_panel_ul button.woof_reset_button_2 {
  background-color: var(--e-global-color-5b522ed);
  color: #ffffff;
}

/* Product Image Bounce Animation on Hover */
.archive-product-container {
  overflow: hidden; /* Prevent image from going outside container */
}

/* Target both product images */
.archive-product-container .shopengine-archive-products__left-image img,
.archive-product-container .woocommerce-LoopProduct-link img {
  transition: transform 0.6s ease;
  will-change: transform; /* Optimize for animation */
}

/* Bounce animation keyframes */
@keyframes productImageBounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Apply animation on hover */
.archive-product-container:hover .shopengine-archive-products__left-image img,
.archive-product-container:hover .woocommerce-LoopProduct-link img {
  animation: productImageBounce 0.6s ease;
}

/* Alternative: Continuous bounce on hover (if you want it to repeat) */
.archive-product-container:hover .shopengine-archive-products__left-image img,
.archive-product-container:hover .woocommerce-LoopProduct-link img {
  animation: productImageBounce 0.6s ease;
  animation-iteration-count: 1; /* Play once per hover */
}

/* Smooth transition when hover ends */
.archive-product-container .shopengine-archive-products__left-image img,
.archive-product-container .woocommerce-LoopProduct-link img {
  transition: transform 0.3s ease;
}

/* Pulsing Glow Effect */
.archive-product-container {
  background: #f7f9fb !important;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.archive-product-container:hover {
  animation: cardGlow 2s ease-in-out infinite;
  transform: translateY(-3px);
}

@keyframes cardGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(0, 113, 189, 0.4), 0 0 30px rgba(0, 113, 189, 0.3),
      0 0 45px rgba(0, 113, 189, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 113, 189, 0.6), 0 0 50px rgba(0, 113, 189, 0.4),
      0 0 75px rgba(0, 113, 189, 0.2), 0 4px 20px rgba(0, 0, 0, 0.1);
  }
}

/* Filter Sidebar */
/* WOOF Category Labels Grid Layout */
/* Price Handler */

.woof_container_inner h4 {
  color: #0071bd;
  font-family: "Days One", Sans-serif;
  font-weight: 600;
  margin-bottom: 15px;
}

.irs--round .irs-bar,
.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
  background-color: #0071bd !important;
}

.irs--round .irs-handle {
  border: 4px solid #0071bd !important;
}

.woof_container:not(.woof_checkbox_instock_container):not(
    .woof_container_product_cat
  ) {
  padding-bottom: 25px;
  margin-bottom: 9px;
  border-bottom: 1px solid #e7e7e7;
}

.woof_list.woof_list_label {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  padding: 10px 5px;
  margin: 0;
}

.woof_list.woof_list_label li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Category Button Styling */
.woof_list.woof_list_label li .woof_label_term {
  display: block;
  position: relative;
  padding: 12px 16px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.woof_list.woof_list_label li .woof_label_term:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

/* Count Badge */
.woof_list.woof_list_label li .woof_label_count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #0071bd;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Active/Checked State */
.woof_list.woof_list_label li input[type="checkbox"]:checked ~ .woof_label_term,
.woof_list.woof_list_label
  li:has(input[type="checkbox"]:checked)
  .woof_label_term {
  background: #0071bd;
  color: #fff;
  border-color: #0071bd;
}

.woof_list.woof_list_label
  li
  input[type="checkbox"]:checked
  ~ .woof_label_count,
.woof_list.woof_list_label
  li:has(input[type="checkbox"]:checked)
  .woof_label_count {
  background: #fff;
  color: #0071bd;
}

/* Disabled State */
.woof_list.woof_list_label
  li
  input[type="checkbox"]:disabled
  ~ .woof_label_term,
.woof_list.woof_list_label
  li:has(input[type="checkbox"]:disabled)
  .woof_label_term {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f9f9f9;
}

.woof_list.woof_list_label
  li
  input[type="checkbox"]:disabled
  ~ .woof_label_count,
.woof_list.woof_list_label
  li:has(input[type="checkbox"]:disabled)
  .woof_label_count {
  background: #ccc;
  color: #999;
}

/* Hide the hidden label */
.woof_list.woof_list_label li .woof_wcga_label_hide {
  display: none;
}

/* Ensure text doesn't overflow */
.woof_list.woof_list_label li .woof_label_term {
  line-height: 1.4;
}

/* Responsive - 2 columns on tablets */
@media (max-width: 768px) {
  .woof_list.woof_list_label {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .shopengine-widget .shopengine-grid ul.products li.product img {
    margin-bottom: 0px !important;
  }

  .woocommerce ul.products[class*="columns-"] li.product,
  .woocommerce-page ul.products[class*="columns-"] li.product {
    margin-bottom: 0px !important;
  }

  .woof_hide_mobile_filter span,
  .woof_show_mobile_filter span {
    display: none;
  }

  .woof_show_mobile_filter {
    padding: 10px;
    border: 1px solid #f2f2f2;
    height: 40px;
    width: 40px;
  }

  .woof_show_mobile_filter img {
    max-width: 20px;
  }

  .eicon-gallery-grid::before {
    font-size: 2.1rem;
  }

  .woof_hide_mobile_filter {
    text-align: right;
  }

  .loop-product--btns-inner .tooltiptext {
    display: none;
  }
}

/* 1 column on mobile */
@media (max-width: 480px) {
  .woof_list.woof_list_label {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Recent Viewed Products */

/* Card shell — matches archive tone (#0071bd, #f7f9fb, soft elevation) */
.recent-viewed-product-list .shopengine-single-product-item {
  position: relative;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 113, 189, 0.06);
  padding: 1rem 1rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.recent-viewed-product-list .shopengine-single-product-item:hover {
  border-color: rgba(0, 113, 189, 0.28);
  box-shadow: 0 8px 24px rgba(0, 113, 189, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.recent-viewed-product-list .shopengine-single-product-item .price,
.recent-viewed-product-list .shopengine-single-product-item .shopengine-product-price {
  margin-top: auto;
}

.recent-viewed-product-list .shopengine-single-product-item img {
  border-radius: 6px;
}

/* Recent Viewed Products - Hide action icons by default */

.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-wishlist,
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-quickview-trigger,
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-comparison {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  transition: all 0.3s ease;
  background: #fff;
  width: 30px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  margin: 0;
}

/* Show icons on product hover */
.recent-viewed-product-list
  .shopengine-single-product-item:hover
  .shopengine-wishlist,
.recent-viewed-product-list
  .shopengine-single-product-item:hover
  .shopengine-quickview-trigger,
.recent-viewed-product-list
  .shopengine-single-product-item:hover
  .shopengine-comparison {
  opacity: 1;
  visibility: visible;
}

/* Position icons in a vertical stack */
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-wishlist {
  top: 10px;
}

.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-quickview-trigger {
  top: 50px;
}

.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-comparison {
  top: 90px;
}

/* Icon hover effects */
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-wishlist:hover,
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-quickview-trigger:hover,
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-comparison:hover {
  color: #0071bd !important;
}

.shopengine-wishlist.active {
  color: #0071bd !important;
}
/* Icon styles */
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-wishlist
  i,
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-quickview-trigger
  i,
.recent-viewed-product-list
  .shopengine-single-product-item
  .shopengine-comparison
  i {
  font-size: 18px;
  line-height: 1;
}

.recent-viewed-product-list
  .shopengine-single-product-item
  .add-to-cart-bt
  .add_to_cart_button {
  display: inline-block;
}

.shopengine-archive-products
  ul.products
  li.product
  .loop-product--btns
  .loop-product--btns-inner
  a.shopengine-wishlist.active
  i.shopengine-icon-add_to_favourite_1 {
  fill: #0071bd !important;
  color: #0071bd !important;
}

.shopengine-archive-products
  ul.products
  li.archive-product-container
  ul.shopengine-archive-mode-grid
  li.product
  .loop-product--btns
  .loop-product--btns-inner
  a
  i:hover {
  fill: #0071bd !important;
  color: #0071bd !important;
}

.shopengine-archive-products
  ul.products
  li.archive-product-container
  ul.shopengine-archive-mode-grid
  li.product
  .loop-product--btns
  .loop-product--btns-inner
  a:before {
  fill: #0071bd !important;
  color: #0071bd !important;
}

.shopengine_comparison_add_to_list_action {
  display: none !important;
}
