/* Makes the default WooCommerce product cards (shop page, category archives,
   and the "Related products" / "You may also like" section on single product
   pages) look like the Woo Product Category Slider cards. */
:root{
  --wpcs-teal:#2b6777;
  --wpcs-teal-dark:#215466;
  --wpcs-red:#d1352e;
  --wpcs-link:#1a54c4;
  --wpcs-ink:#1c1c1c;
  --wpcs-muted:#6b7280;
  --wpcs-border:#e6e8eb;
}

ul.products li.product{
  position:relative;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--wpcs-border);
  border-radius:6px;
  padding:0 0 14px !important;
  margin:0 0 24px;
  overflow:hidden;
  list-style:none;
  box-shadow:none;
  transition:box-shadow .2s, transform .2s;
}
ul.products li.product:hover{
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  transform:translateY(-2px);
}
ul.products li.product *{box-sizing:border-box}

/* Everything up to (and including) the price sits inside one <a> tag in the
   default WooCommerce templates; make it stretch and stack vertically. */
ul.products li.product > a.woocommerce-loop-product__link,
ul.products li.product > a.woocommerce-LoopProduct-link{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  color:inherit;
  text-decoration:none;
}

ul.products li.product img{
  width:100% !important;
  height:150px !important;
  object-fit:contain !important;
  padding:18px 18px 6px;
  background:#fff;
  box-shadow:none !important;
}

ul.products li.product .onsale{
  position:absolute !important;
  top:10px !important;
  left:auto !important;
  inset-inline-start:10px !important;
  inset-inline-end:auto !important;
  margin:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  width:auto !important;
  height:auto !important;
  line-height:1.2 !important;
  border-radius:3px !important;
  background:var(--wpcs-red) !important;
  color:#fff !important;
  font-size:11px !important;
  font-weight:700 !important;
  padding:5px 10px !important;
  z-index:2;
}

ul.products li.product .woocommerce-loop-product__title{
  order:2;
  font-size:14.5px;
  font-weight:700;
  line-height:1.4;
  color:var(--wpcs-link);
  margin:2px 16px 4px;
  padding:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
ul.products li.product a:hover .woocommerce-loop-product__title{
  text-decoration:underline;
}

ul.products li.product .star-rating{
  order:3;
  margin:0 16px 6px;
  font-size:14px;
}
ul.products li.product .star-rating::before{color:#d9dce0}
ul.products li.product .star-rating span::before{color:#f5a623}

ul.products li.product .price{
  order:4;
  margin:0 16px 4px;
  padding:0;
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
  font-size:17px;
  font-weight:700;
  color:var(--wpcs-ink);
}
ul.products li.product .price del{
  font-size:13px;
  color:var(--wpcs-muted);
  font-weight:400;
  opacity:1;
}
ul.products li.product .price ins{
  text-decoration:none;
  color:var(--wpcs-red);
}

/* The Add to cart / View product link sits AFTER the <a> above, as its own
   sibling — this pins it to the bottom of the card. */
ul.products li.product > a.button,
ul.products li.product > a.add_to_cart_button,
ul.products li.product > a.product_type_variable,
ul.products li.product > a.product_type_grouped,
ul.products li.product > a.product_type_external{
  margin:10px 16px 0 !important;
  padding:11px 14px !important;
  background:var(--wpcs-teal) !important;
  color:#fff !important;
  border:none !important;
  border-radius:4px !important;
  font-size:14px !important;
  font-weight:700 !important;
  text-align:center !important;
  text-decoration:none !important;
  text-transform:none !important;
  transition:background .15s;
}
ul.products li.product > a.button:hover{
  background:var(--wpcs-teal-dark) !important;
  color:#fff !important;
}
ul.products li.product .added_to_cart{
  margin:6px 16px 0;
  font-size:12.5px;
  color:var(--wpcs-teal);
}

@media(max-width:720px){
  ul.products li.product img{height:110px !important}
  ul.products li.product .woocommerce-loop-product__title{font-size:13px}
  ul.products li.product .price{font-size:15px}
}

/* =========================================================================
   Your theme (Bzotech) overrides WooCommerce's default loop markup and uses
   its own structure (.item-product / .product-thumb / .product-info) instead
   of ul.products li.product — this is why the rules above have no effect on
   your site. The rules below target the markup your theme actually outputs.
   ========================================================================= */

.bzotech-row .item-product{
  position:relative;
  background:#fff;
  border:1px solid var(--wpcs-border);
  border-radius:6px;
  overflow:hidden;
  transition:box-shadow .2s, transform .2s;
}
.bzotech-row .item-product:hover{
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  transform:translateY(-2px);
}

.bzotech-row .product-thumb{ position:relative; }

.bzotech-row .product-thumb-link img{
  width:100% !important;
  height:220px !important;
  object-fit:contain !important;
  background:#fff;
  padding:14px;
  box-sizing:border-box;
  display:block;
}

.bzotech-row .product-label{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
}
.bzotech-row .product-label span{
  display:inline-block;
  background:var(--wpcs-red);
  color:#fff;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.3px;
  padding:5px 10px;
  border-radius:3px;
}

.bzotech-row .product-title{
  margin:2px 16px 4px !important;
  font-size:14.5px;
  font-weight:700;
  line-height:1.4;
}
.bzotech-row .product-title a.color-title{
  color:var(--wpcs-link) !important;
  text-decoration:none;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.bzotech-row .product-title a.color-title:hover{ text-decoration:underline; }

.bzotech-row .product-price{
  margin:8px 16px 6px;
  font-size:17px;
  font-weight:700;
  color:var(--wpcs-ink);
}
.bzotech-row .product-price .woocommerce-Price-currencySymbol{
  font-size:12px;
  font-weight:600;
  color:var(--wpcs-muted);
  margin-inline-end:2px;
}

.bzotech-row .wrap-rating{
  margin:0 16px 12px;
  display:flex;
  align-items:center;
  gap:6px;
}
.bzotech-row .number-rate{
  color:var(--wpcs-muted) !important;
}

/* Hover action icons: wishlist / quick view / add to cart */
.bzotech-row .product-extra-link,
.bzotech-row .grid-product-layout.product{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.bzotech-row .yith-wcwl-add-to-wishlist-button,
.bzotech-row .product-quick-view,
.bzotech-row .addcart-link{
  width:38px;
  height:38px;
  border-radius:50% !important;
  background:#fff;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  color:var(--wpcs-ink);
  transition:background .15s, color .15s;
}
.bzotech-row .yith-wcwl-add-to-wishlist-button-icon{ width:17px; height:17px; }
.bzotech-row .product-quick-view span{ display:none; }
.bzotech-row .product-quick-view i,
.bzotech-row .addcart-link i{ font-size:16px; }

.bzotech-row .addcart-link{
  background:var(--wpcs-teal) !important;
  color:#fff !important;
}
.bzotech-row .addcart-link:hover{ background:var(--wpcs-teal-dark) !important; }
.bzotech-row .yith-wcwl-add-to-wishlist-button:hover,
.bzotech-row .product-quick-view:hover{
  background:var(--wpcs-teal) !important;
  color:#fff !important;
}

@media(max-width:720px){
  .bzotech-row .product-thumb-link img{height:150px !important}
  .bzotech-row .product-title{font-size:13px}
  .bzotech-row .product-price{font-size:15px}
}
