/* ===== PRODUCT CARD (SAFE, doesn't change columns) ===== */
.woocommerce ul.products li.product{
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
	/* padding: 18px 18px 16px;*/
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
	/*box-shadow: 0 -1px 10px #2190c21a;*/
}

.woocommerce ul.products li.product:hover{
  transform: translateY(-3px);
  border-color: #2190c2;
  background: rgba(255,255,255,.045);
}
/*Title*/
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size: 18px !important;
	padding-left:9px;
	padding-right:9px;
	text-align: center;
}


/* Price */
.woocommerce ul.products li.product .price{
  font-size: 18px;
  font-weight: 600;
  color: #2190c2;
  margin: 0 0 12px 0;
  display: block;
	padding-left:9px;
	padding-right:9px;
	text-align: center;
}
.woocommerce ul.products li.product .price ins
{text-decoration: none;}

/* 4 columns with controlled gaps */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  float: left;
  margin: 0 10px 20px 0 !important;
  width: calc(25% - 10px) !important; 
  position: relative;
}

/* remove right margin on every 4th item */
.woocommerce ul.products li.product:nth-child(4n),
.woocommerce-page ul.products li.product:nth-child(4n){
  margin-right: 0 !important;
}

/* All categories line above title  (OPTIONAL)*/
/*
  .woocommerce ul.products li.product .hm-prod-cats{
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 6px 0;

  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: calc(1.2em * 5);
}

.woocommerce ul.products li.product .hm-prod-cats__link{
  color: #fff;
  text-decoration: none;
}
.woocommerce ul.products li.product .hm-prod-cats__link:hover{
  color: #2190C2;
  text-decoration: none;
}

.woocommerce ul.products li.product .hm-prod-cats__sep{
  color: rgba(255,255,255,.55);
}*/


/* === Equal-height product cards === */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  display: flex;
  flex-direction: column;
  /* optional: sets a consistent minimum card height */
  min-height: 420px;
}

/* Make the main link fill remaining space */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Fixed image height (so all cards align) */
.woocommerce ul.products li.product a img{
  width: 100% !important;
  height: 300px!important;     /*220*/
  object-fit: contain !important;
	/*background-color: #ededed4d;*/
}

/* Hard clamp title so it never changes card height */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  line-height: 1.25;
  font-size: 16px;  
  margin: 0 0 8px 0;

  /* reserve exactly 3 lines*/
  height: calc(1.4em * 3);
  overflow: hidden;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Safety fallback for browsers that don't support line-clamp */
@supports not (-webkit-line-clamp: 2){
  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    display: block;
    white-space: normal;
  }
}

/* Keep price from shifting layout */
.woocommerce ul.products li.product .price{
  margin-top: 6px;
}

/* Button overlay: hidden by default */
.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product > a.button{
  position: absolute;
  left: 2px;
  right: 2px;
	color:#fff !important;
	background-color: rgba(33, 144, 194, .55) !important;	
	
  /* Put it at the bottom of the IMAGE area */
  top: calc(300px - 42px - 12px);  /* 300px is thumbnail height */
  /* If your image height differs, adjust 300px to match */

  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;

  z-index: 5;
	
	 /* fade in */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity .22s ease,
    transform .22s ease,
    visibility 0s linear .22s;
}
/* Show on hover of the whole card */
.woocommerce ul.products li.product:hover > .button,
.woocommerce ul.products li.product:hover > a.button{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
	transition:
    opacity .22s ease,
    transform .22s ease,
    visibility 0s; /* show immediately */
}

/* Change colors ONLY when hovering the button itself */
.woocommerce ul.products li.product > .button:hover,
.woocommerce ul.products li.product > a.button:hover,
.woocommerce ul.products li.product > .button:focus,
.woocommerce ul.products li.product > a.button:focus{
  color: #000 !important;
  background-color: rgba(33, 144, 194, .7) !important;
}

/*darken image a bit on hover */
.woocommerce ul.products li.product:hover img{
  filter: brightness(.92);
  transition: filter .15s ease;
}

/*-------------------wishlist icon-----------------------*/
/* If wishlist icon sits in normal flow, keep it from affecting height */
.woocommerce ul.products li.product .tinvwl-loop-button-wrapper{
  margin-top: 8px !important;
}

/* Make product card a positioning context (if not already) */
.woocommerce ul.products li.product{
  position: relative;
}

/* Move wishlist icon to top-right */
.woocommerce ul.products li.product .tinvwl-loop-button-wrapper{
  position: absolute !important;
  top: 0px;
  left: 10px;
  right: auto !important;
  bottom: auto !important;
  z-index: 20;
  margin: 0 !important;
}

/* Optional: make it look like a neat button */
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button{
  width: 34px;
  height: 34px;
  border-radius: 5px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.3);
}

/* Ensure the heart is visible */
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button:before{
  color: #2190c2 !important;
  font-size: 18px !important;
}

/* hover */
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button:hover{
  background: rgba(33,144,194,.18);
  border-color: rgba(33,144,194,.55);
}

/*----------akcija---------------------*/
.woocommerce ul.products li.product .onsale{
    margin-right: 8px !important;
    border-radius: 0 !important;
    background-color: rgba(33, 144, 194, .6) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    min-height: 60px;
    padding: 0px 2px 8px !important;
    line-height: 1 !important;
}


/*ivertinimas*/
/* Hide rating stars on shop/category/product listing cards */
.woocommerce ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating {
  display: none !important;
}
