/* image fix */
.splide__slide .merineo-slide-img,
.splide__slide .attachment-woocommerce_thumbnail {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.splide__slide a {
    text-decoration: none;
}

.splide__slide .merineo-block-slider-post-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.325;
    text-align: center;
    color: var(--wp--preset--color--brown);
}

/* fade fix */
.splide__track--fade > .splide__list > .splide__slide {
    left: 50%;
    transform: translateX(-50%) !important;
}

/** arrows navigation */
.splide__arrow[disabled] {
    opacity: 0.3;
}

.ah-d .splide__arrow,
.ah-t .splide__arrow {
    transition: all 250ms ease-in-out;
}

.ah-d .splide__arrow--prev,
.ah-t .splide__arrow--prev {
    left: -3em;
    opacity: 0;
    pointer-events: none;
}

.ah-d .splide__arrow--next,
.ah-t .splide__arrow--next {
    right: -3em;
    opacity: 0;
    pointer-events: none;
}

.ah-d:hover .splide__arrow--prev,
.ah-t:hover .splide__arrow--prev {
    left: 1em;
    opacity: 1;
    pointer-events: auto;
}

.ah-d:hover .splide__arrow[disabled],
.ah-t:hover .splide__arrow[disabled] {
    opacity: 0.3;
}

.ah-d:hover .splide__arrow--next,
.ah-t:hover .splide__arrow--next {
    right: 1em;
    opacity: 1;
    pointer-events: auto;
}

.splide__pagination .splide__pagination__page {
    border: 1px solid #1a1a1a;
}

/* Product slider */
.splide__slide .merineo-block-slider-product-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.325;
    text-align: center;
    color: var(--wp--preset--color--deep-purple);
    max-width: 300px;
    margin: 0 auto;
}

.splide__slide .product-price {
    align-items: center;
    color: var(--wp--preset--color--brown);
    display: flex;
    font-size: 22px;
    font-weight: 700;
    justify-content: center;
    margin: auto auto 10px;
}

.splide__slide .product-price del {
    margin-right: 10px;
    opacity: .6;
}

.splide__slide {
    display: flex;
    flex-direction: column;
}

.splide__slide .product-add-to-cart-wrap {
    text-align: center;
}

.splide__track .splide__slide .add_to_cart_button {
    margin: 0 auto;
    text-align: center;
    display: inline-flex;
    align-content: center;
    line-height: 1.6;
    padding-bottom: 2px;
}

.splide__slide .add_to_cart_button svg {
    fill: #fff;
    margin-right: 5px;
}

.splide__slide .add_to_cart_button:hover svg {
    fill: var(--wp--preset--color--primary);
}

/* image size */
.splide__slide.product_slide .merineo-slide-img-wrap {
    position: relative;
    aspect-ratio: 1/1;
    width: 100%;
    overflow: hidden;
}

.merineo-slide-img-wrap img {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
}

.merineo-slide-img-wrap:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.03);
}

.splide__slide.post_slide .merineo-slide-img-wrap {
    aspect-ratio: 3/2;
}
.splide__slide.post_slide .merineo-slide-img-wrap:before {
    background-color: transparent;
}
.splide__slide.post_slide .merineo-slide-img-wrap img {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media ( max-width: 580px ) {
    .merineo-slider {
        margin-left: -15px;
        margin-right: -15px;
    }
}