:root {
    --ec-green: #00a650;
    --ec-black: #000000;
    --ec-white: #ffffff;
    --ec-text: #121212;
    --ec-muted: #63706a;
    --ec-surface: #f3f8f4;
    --ec-border: rgba(0, 0, 0, 0.08);
}

.woocommerce-result-count{
    color: #99a1af;
    font-size: 14px;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none;
}

.ec-loop-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 24px;
}

.woocommerce ul.products li.product.ec-loop-product,
.woocommerce-page ul.products li.product.ec-loop-product {
    float: none;
    width: auto;
    margin: 0;
}

.ec-loop-card {
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(0, 166, 80, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.ec-loop-card__media-shell {
    position: relative;
    padding: 20px;
    background: linear-gradient(180deg, #09110d 0%, #0f1814 100%);
}

.ec-loop-card__brand {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6D7971;
}

.ec-loop-card__brand-logo {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    opacity: 25%;
    filter: blur(5px);
    object-fit: cover;
}

.ec-loop-carousel {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ec-loop-carousel__track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.ec-loop-carousel__slide {
    flex: 0 0 100%;
}

.ec-loop-carousel__slide img {
    width: auto !important;
    height: auto !important;
    max-height: 280px;
    max-width: 80%;
    object-fit: contain;
    margin: auto !important;
}

.ec-loop-carousel__image-link,
.ec-loop-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
}

.ec-loop-carousel__image {
    object-fit: cover;
}

.ec-loop-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    padding: 0!important;
}

.ec-loop-carousel__nav svg {
    fill: #fff;
}

.ec-loop-carousel__nav--prev {
    left: 14px;
}

.ec-loop-carousel__nav--next {
    right: 14px;
}

.ec-loop-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 2;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.ec-loop-carousel__dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50% !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
}

.ec-loop-carousel__dot.is-active {
    background: var(--ec-green);
}

.ec-loop-card__body {
    padding: 24px 24px 26px;
}

.ec-loop-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;


}

.ec-loop-card__chip,
.ec-loop-card__litraggio {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: #00a650;
    background-color: #f0fdf4;
    font-size: 13px;
    font-weight: 700;
}

.ec-loop-card__litraggio {
    width: fit-content;
    margin-bottom: 14px;
    background: rgba(0, 166, 80, 0.12);
    color: var(--ec-green);
}

.ec-loop-card__title {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.ec-loop-card__title a {
    color: var(--ec-black);
    text-decoration: none;
}

.ec-loop-card__description {
    color: var(--ec-muted);
    font-size: 15px;
    line-height: 1.8;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ec-loop-card__description p {
    margin: 0;
}

.ec-loop-card__footer {
    margin-top: auto;
    padding-top: 22px;
}

.ec-loop-card__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 16px;
    background: var(--ec-black);
    font-size: 14px;
    color: var(--ec-white);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.ec-loop-card__button:hover {
    transform: translateY(-2px);
    background: var(--ec-green);
    box-shadow: 0 18px 28px rgba(0, 166, 80, 0.24);
}

.ec-loop-card__button-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* background: rgba(255, 255, 255, 0.12); */
}

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

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    display: none !important;
}

@media (max-width: 1180px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
    }
    .ec-loop-card {
        grid-template-columns: 1fr;
    }

    .ec-loop-card__media-shell,
    .ec-loop-card__body {
        padding: 18px;
    }

    .ec-loop-carousel {
        min-height: 260px;
    }

    .ec-loop-card__button {
        width: 100%;
        justify-content: center;
    }
}