.stl-loop-card-badges {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 44px;
    width: auto;
    position: absolute;
    z-index: 5;
}

.stl-loop-card-badges__flash {
    align-items: center;
    background: #e82828;
    border-radius: 4px;
    color: #ffffff;
    display: flex;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    height: 20px;
    justify-content: center;
    line-height: 1.2;
    padding: 4px 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.stl-loop-card-badges__flash-icon {
    display: block;
    flex: 0 0 9px;
    height: 12px;
    width: 9px;
}

.stl-loop-card-badges__new {
    align-items: center;
    background: rgba(103, 196, 55, 0.8);
    border-radius: 4px;
    color: #104037;
    display: flex;
    font-size: 9px;
    font-weight: 500;
    height: 16px;
    justify-content: center;
    line-height: 1.2;
    padding: 4px 10px;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 55px;
}

.wc-product-image {
    position: relative;
}

.iconosLoop {
    width: auto;
    display: flex;
    gap: 8px;
    padding: 0px;
    position: absolute;
    top: 13px;
    right: 11px;
    z-index: 10;
}

.iconoLoop {
    flex: 0 0 45px;
    width: 45px;
    height: 44px;
    background-color: #0e342b;
    color: #ffffff;
    border-radius: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.05;
    text-align: center;
}

body.single-product .iconosLoop {
    top: inherit;
    bottom: 0px;
}

body.single-product .iconoLoop {
    width: 60px;
}

.iconoLoop img {
    max-width: 27px;
    max-height: 27px;
    object-fit: contain;
    filter: invert(100%) sepia(100%) saturate(38%) hue-rotate(321deg) brightness(110%) contrast(110%);
}

.iconoLoopFeatured img {
    max-width: 27px;
    max-height: 27px;
    filter: none;
}

.rolloLoop {
    display: block;
    margin: 0px !important;
    font-size: 11px;
    color: #6A6A6A;
    font-weight: normal;
    width: 100%;
}

.stl-loop-flash-price {
    background: #ffefef;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-end;
    margin: 0;
    padding: 10px;
    width: 100%;
}

.stl-loop-flash-price__label {
    align-items: flex-start;
    color: #e02525;
    display: flex;
    font-size: 10px;
    font-weight: 400;
    gap: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.stl-loop-flash-price__icon {
    display: block;
    flex: 0 0 9px;
    height: 12px;
    margin: 0;
    width: 9px;
}

.stl-loop-flash-price__from {
    color: #000000;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
}

.stl-loop-flash-price__row {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: flex-start;
}

.stl-loop-flash-price__amount {
    align-items: flex-end;
    display: flex;
}

.stl-loop-flash-price__number {
    color: #e02525;
    font-size: 24px;
    font-weight: 700;
    line-height: 22px;
}

.stl-loop-flash-price__unit,
.stl-loop-flash-price__tax {
    color: #000000;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

h2.woocommerce-loop-product__title {
    text-transform: capitalize;
}

ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0 !important;
}
.woocommerce .elementor-products-grid ul.products.elementor-grid li.product,
.elementor-products-grid ul.products.elementor-grid li.product {
    padding: 12px;
}
ul.products li.product,
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    position: relative;
}

.loopCardButton {
    display: contents;
}

.loopCardButton a.button {
    order: 2;
}

.woocommerce-products-compare-compare-button {
    order: 2;
    margin: 0px;
    text-align: center;
    color: #C7C7C7;
    font-size: 15px;
}
.woocommerce-products-compare-compare-link{
    color: #C7C7C7;
}
.woocommerce-products-compare-compare-button .dashicons-external {
    top: 0px;
}

.agotado {
    position: absolute;
    padding: 5px;
    background: #0e342bc4;
    color: #efefef;
    font-size: 15px;
    display: block;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: inherit;
    transition: opacity .2s cubic-bezier(.7, 0, .3, 1), transform .2s cubic-bezier(.7, 0, .3, 1);
    text-align: center;
}

li.product_cat-cesped-artificial div.loopCardButton .woocommerce-products-compare-compare-button {
    display: block;
}

.ultimos {
    position: absolute;
    padding: 5px;
    background: rgb(255 4 0 / 77%);
    color: #ffffff;
    font-size: 15px;
    display: block;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: inherit;
    transition: opacity .2s cubic-bezier(.7, 0, .3, 1), transform .2s cubic-bezier(.7, 0, .3, 1);
    text-align: center;
}

.woocommerce ul.products li.product.type-product .button {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    margin: 10px 0px 5px 0px;
    width: 100%;
    text-align: center;
    padding-block: 7px;
    font-size: 15px;
}

.woocommerce ul.products li.product.type-product .button.add_to_cart_button::before {
    background-image: url("../img/icono-carrito.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: inline-block;
    flex: 0 0 13px;
    height: 13px;
    width: 13px;
}

.woocommerce div.product p.price,
.woocommerce ul.products li.product .price {
    margin: 0px;
    margin-top: 25px !important;
}

@media (max-width: 480px) {
    .iconoLoopFeatured img {
        width: 85% !important;
        height: 85% !important;
    }
}

@media (max-width: 600px) {
    .stl-loop-flash-price {
        align-items: flex-start;
        gap: 4px;
        padding: 10px;
    }

    .stl-loop-flash-price__label {
        align-items: center;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 10px;
        justify-content: flex-start;
        width: auto;
    }

    .woocommerce ul.products li.product .stl-loop-flash-price__icon {
        display: block !important;
        flex: 0 0 9px !important;
        height: 12px !important;
        margin: 0 !important;
        max-height: 12px !important;
        max-width: 9px !important;
        width: 9px !important;
    }

    .stl-loop-flash-price__row {
        align-items: flex-end;
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: flex-start;
        width: 100%;
    }

    .stl-loop-flash-price__number {
        font-size: 24px;
        line-height: 22px;
    }

    .stl-loop-flash-price__tax {
        margin-left: auto;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 80%;
        margin: 0 auto !important;
    }

    .woocommerce .elementor-element.elementor-products-grid ul.products li.product,
    .woocommerce div.product .elementor-element.elementor-products-grid .related.products ul.products li.product,
    .woocommerce div.product .elementor-element.elementor-products-grid .upsells.products ul.products li.product {
        width: 100%;
    }
}

/*
Cuenta atrás
*/
.staren-flash-countdown {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 10px;
    border-radius: 2px;
    background: #FFEFEF;
    color: #E02525;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
}

.staren-flash-countdown__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.staren-flash-countdown__label {
    font-weight: 600;
}

.staren-flash-countdown__time {
    font-weight: 800;
}

.staren-flash-countdown.is-finished {
    opacity: 0.65;
}

.woocommerce ul.products li.product.producto-con-rollo .price {
    font-size: 16px;
}

/* Base para productos sin precio_m2_rollo */
.woocommerce ul.products li.product.producto-sin-rollo .price {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 25px 0 0px;
    padding: 22px 12px;
    border-radius: 0;
    line-height: 1.2;
    color: #02362A;
}

/* Producto sin precio_m2_rollo y EN OFERTA */
.woocommerce ul.products li.product.producto-sin-rollo-oferta .price {
    background: #FFEFEF;
}

/* Producto sin precio_m2_rollo y SIN OFERTA */
.woocommerce ul.products li.product.producto-sin-rollo-normal .price {
    background: #F0F9EC;
}

/* Cabecera PRECIO OFERTA FLASH */
.woocommerce ul.products li.product.producto-sin-rollo .price .stl-loop-price-heading {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #E02525;
    text-transform: uppercase;
}

.woocommerce ul.products li.product.producto-sin-rollo .price .stl-loop-price-heading img {
    width: 10px;
    height: 10px;
    display: block;
}

/* Línea principal del precio */
.woocommerce ul.products li.product.producto-sin-rollo .price .stl-loop-price-main-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

/* Precio actual */
.woocommerce ul.products li.product.producto-sin-rollo .price .stl-loop-price-main-row > .amount,
.woocommerce ul.products li.product.producto-sin-rollo .price ins .amount {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    color: #02362A;
}

/* Color rojo para precio en oferta */
.woocommerce ul.products li.product.producto-sin-rollo-oferta .price .woocommerce-price-suffix,
.woocommerce ul.products li.product.producto-sin-rollo-oferta .price ins .amount {
    color: #E02525 !important;
}

/* Añade /m² después del precio principal */
.woocommerce ul.products li.product.producto-sin-rollo.producto-cesped-artificial .price .stl-loop-price-main-row > .amount::after,
.woocommerce ul.products li.product.producto-sin-rollo.producto-cesped-artificial .price ins .amount::after {
    content: "/m²";
    margin-left: 3px;
    font-size: 12px;
    font-weight: 700;
    color: inherit;
}

/* IVA incl. */
.woocommerce ul.products li.product.producto-sin-rollo .price .woocommerce-price-suffix {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #02362A;
}

/* Precio anterior tachado */
.woocommerce ul.products li.product.producto-sin-rollo .price del {
    display: inline-block;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    color: #6A6A6A;
    opacity: 1;
}

.woocommerce ul.products li.product.producto-sin-rollo .price del .amount {
    font-size: 11px;
    font-weight: 400;
    color: #6A6A6A;
}

.woocommerce ul.products li.product.producto-sin-rollo .price del .amount::after {
    display: none;
    content: "";
}

/* WooCommerce mete el precio rebajado dentro de ins */
.woocommerce ul.products li.product.producto-sin-rollo .price ins {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
}

/* Texto inferior: Precio por m² al corte */
.woocommerce ul.products li.product.producto-sin-rollo .price .rolloLoop {
    display: block;
    width: 100%;
    margin-top: 5px !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    color: #6A6A6A;
}

ul.products li.product .price{position: relative}
ul.products li.product .price::before{
    content: "";
    display: block;
    width: 100%;
    border-top: 1px solid #efefef;
    position: absolute;
    top: -15px;
    left: 0px;
    height: 10px;
}

.woocommerce ul.products li.product .stl-loop-flash-price {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.woocommerce ul.products li.product .stl-loop-flash-price *,
.woocommerce ul.products li.product .stl-loop-flash-price *::before,
.woocommerce ul.products li.product .stl-loop-flash-price *::after {
    box-sizing: border-box;
}

.woocommerce ul.products li.product .stl-loop-flash-price__label,
.woocommerce ul.products li.product .stl-loop-flash-price__row,
.woocommerce ul.products li.product .stl-loop-flash-price__amount {
    max-width: 100%;
    min-width: 0;
}

.woocommerce ul.products li.product .stl-loop-flash-price__row {
    flex-wrap: wrap;
    gap: 6px 10px;
}

.woocommerce ul.products li.product .stl-loop-flash-price__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.woocommerce ul.products li.product .stl-loop-flash-price__tax {
    white-space: nowrap;
}