/* Reset visiems elementams */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Užkerta kelią horizontaliam slinkimui */
}

.rotating-image {
    transition: opacity 1.6s ease-in-out;
}

.rotating-image.active {
    opacity: 1;
    z-index: 2;
}

.rotating-image.inactive {
    opacity: 0;
    z-index: 1;
}

.elementor-widget-container,
.elementor-section {
    overflow: hidden; /* riboja išsiliejimą Elementor konteineriuose */
}

/* Produktų konteineris */
.products, 
.woocommerce ul.products {
    max-width: 100%;
    overflow: hidden;
}

/* Produktų sąrašo layout */
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* tarpai tarp kortelių */
    justify-content: flex-start;
    padding: 0;
    margin: 0;
}

/* Produktų kortelės */
.bluejuice-product-card {
    /*flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);*/
    background: #fff;
    border-radius: 12px;
    /*padding: 12px;*/
    /*box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);*/
    color: #222;
    text-decoration: none;
    position: relative;
    overflow: visible; /* Svarbu, kad žymės būtų matomos */
    font-family: 'Montserrat', sans-serif;
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
    display: block;
	margin:15px;
	border: 0.5px solid #CDCDCD;
}

/* Naujas vidinis konteineris fonui ir paddingui *//*
.bluejuice-product-card .card-inner {
    background: red; 
    border-radius: 12px;
    padding: 12px;
    height: 100%;
    width: 100%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    transition: box-shadow 0.3s ease;
}*/

/* Hover efektas perkeliamas į .card-inner */
.bluejuice-product-card:hover {
    box-shadow: 0 6px 15px rgb(0 0 0 / 0.15);
}

/* Vaizdo konteineris */
.bluejuice-product-card .image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /*overflow: hidden;*/ 
    border-radius: 12px;
    margin-bottom: 10px;
    z-index: 10;
    background-color: #fff; /* arba page background, kad nebūtų permatomumo */
}

/* Paveiksliukai */
.bluejuice-product-card .rotating-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 12px;
    z-index: 10;
    will-change: opacity;
}

.bluejuice-product-card .rotating-image.active {
    opacity: 1;
    position: relative;
    z-index: 10;
    aspect-ratio: 1 / 1;
}

/* Žymės */
.bluejuice-product-card .badge {
    position: absolute;
    top: -10px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: #b36b0bf2;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
}

.bluejuice-product-card .badge.sale {
    left: -10px;
    transform: none;
}

.bluejuice-product-card .badge.sold-out {
    right: -10px;
    transform: none;
}

/* Produkto pavadinimas ir kaina */
.bluejuice-product-card .product-title {
    font-size: 1.1rem;
    margin-left: 12px;
    font-weight: 700;
    color: #222;
    position: relative;
    z-index: 20;
}

.bluejuice-product-card .product-price {
    font-size: 1rem;
    color: #444;
    font-weight: 600;
    position: relative;
    z-index: 20;
	padding: 0px 0px 0px 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .bluejuice-product-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .bluejuice-product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {margin:12px!important;}