.category-hero {
    position: relative;
}

.category-hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: unset !important;
}

.category-hero img.category-thumb-full {
    width: 100%;
    height: auto;
    display: block;
}

.woocommerce-loop-product__title {
    color: black !important;
}

.woocommerce-loop-product__link img {
    aspect-ratio: 3/3.5;
    object-fit: cover;
}

.price {
    font-family: "kaisei-decol", sans-serif;
    font-weight: bold !important;
    color: black !important;
}

.price ins {
    font-weight: bold !important;
}

ul.products.masonry-grid {
    width: 100% !important;
}

.products.masonry-grid {
    display: inline-flex;
    /* column-count: 4; */
    column-gap: 20px;
    row-gap: 20px;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-basis: 25%;
}

.woocommerce ul.products li.product {
    width: calc(25% - 20px) !important;
    float: none !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

ul.products li.product {
    margin-bottom: 0 !important;
}

.product-inner {
  position: relative; /* Needed for absolute positioning */
  overflow: hidden;   /* Ensure overlay doesn't spill out */
}
ul.products li.product {
  position: relative;
  overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.woocommerce ul.products li.product .onsale,
.woocommerce-page .onsale {
    display: none !important;
}

.products {
    position: relative;
}

.products.masonry-grid .product-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid; 
    background: #fff;
    box-sizing: border-box;
}

.products.masonry-grid {
    padding-right: 40px;
    padding-left: 40px;
}

.product-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 auto 1.618em;
}

.product-inner .woocommerce-loop-product__title {
    color: black !important;
    font-size: 1rem !important;
    text-align: center;
}

.product-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
}

.product-actions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, 20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s; /* visibility delayed */
    visibility: hidden;
}

.product-thumbnail-wrapper:hover .product-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* slide up */
  visibility: visible;
  transition-delay: 0s; /* immediately visible on hover */
}

a.button.add_to_cart_button,
button.icon-button.favourite-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
    min-width: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Buttons inside */
.product-actions .button,
.product-actions .favourite-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

img.icon-heart {
    margin: unset !important;
}


@media (max-width: 1200px) {
    .products.masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .products.masonry-grid {
        column-count: 2;
    }
    .product-cart-icon,
    .product-heart-icon {
        width: 30px;
        height: 30px;
    }
    .product-icons {
        top: 5px;
        right: 5px;
        gap: 5px;
    }
    .product-cart-icon svg,
    .product-heart-icon svg {
        width: 15px;
        height: 15px;
    }
}


@media (max-width: 480px) {
    .products.masonry-grid {
        column-count: 1;
    }
}

@media (min-width: 768px) {
    .site-main ul.products li.product {
        float: left;
        margin-right: 5.8823529412%;
    }
}


.woocommerce-LoopProduct-link:hover .product-cart-icon, .product-heart-icon {
    opacity: 1;
    pointer-events: auto;
}

.woocommerce ul.products {
    position: relative;
    -webkit-transition: height 0.5s;
    transition: height 0.5s;
}

@media (max-width: 600px) {
  .woocommerce ul.products {
    display: flex;
  }
}

.woocommerce ul.products li.product {
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

ul.products::before,
ul.products::after {
    content: none !important;
}
  





/*
.buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #000; 
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.buttons a svg {
    width: 20px;
    height: 20px;
    margin-right: 5px; 
}

.buttons a:hover {
    background: #222;
    transform: scale(1.05);
}

.buttons {
    display: flex;
    justify-content: center; 
    gap: 10px; 
    margin-top: 10px; 
    flex-wrap: wrap; 
}

.product-cart-icon {
    position: absolute;
    bottom: 20px;   
    right: 100px;    
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 10;
    cursor: pointer;
}

.product-heart-icon {
    position: absolute;
    bottom: 20px;   
    left: 100px;     
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 10;
    cursor: pointer;
}

.product-icons {
    position: absolute;
    top: 10px; 
    right: 10px; 
    display: flex;
    gap: 10px; 
}
*/

