/* ======================================
   Product Grid Card Styles (Clean 3-Column)
   (Scoped to #product-shop-grid)
   ====================================== */

/* Base grid: flex, three columns */
#product-shop-grid ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 0;              /* no gaps between cards */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each card: one third width, equal-height via flex */
#product-shop-grid ul.products li.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 1em .25em;           /* top/bottom 1em, left/right .25em */
  background: linear-gradient(
    0deg,
    rgba(244, 250, 255, 1) 50%,
    rgba(255, 255, 255, 1) 50%
  );
  border: 2px solid #004D86;
  border-radius: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  box-sizing: border-box;
  transition: all 0.3s ease;
  margin-bottom: 3.8% !important;  /* enforce consistent bottom margin */
}

/* Responsive adjustments: two columns on tablets, one on phones */
@media (max-width: 768px) {
  #product-shop-grid ul.products li.product {
    flex: 1 1 50%;
  }
}
@media (max-width: 480px) {
  #product-shop-grid ul.products li.product {
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Center content inside the main link */
#product-shop-grid ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Thumbnail image sizing */
#product-shop-grid ul.products li.product .et_shop_image img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Tag pill at top-center */
#product-shop-grid ul.products li.product .product-tags {
  position: absolute;
  z-index:5;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #FFF;
padding: 3px 10px;
  border-radius: 0 0 5px 5px;
font-size: clamp(16px, 1.5vw, 16px) !important;
  font-family: "myriad-pro", sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

/* Title spacing */
#product-shop-grid ul.products li.product h2.woocommerce-loop-product__title {
  margin: 0 0 5px;
  font-size: clamp(18px, 1.75vw, 26px) !important;
  line-height: 1.3;
  padding: 0 10px;
  text-align: center;
}

/* Star Rating */
#product-shop-grid ul.products li.product .star-rating {
  display: block;
  width: 100%;
  font-size: 1em !important;
  margin: 1em 0;
  text-align: center;
}
#product-shop-grid ul.products li.product .star-rating span::before {
  color: #FFB136;
}

/* Price */
#product-shop-grid ul.products li.product .price {
  margin-bottom: 10px;
  text-align: center;
}

/* “View Product” Button */
#product-shop-grid 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;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Button Icon */
#product-shop-grid 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;
}
