/* ==============================> CLASTER DE PRODUCTOS */

.wd-hover-with-fade.hover-ready:is(:hover, .state-hover) .content-product-imagin {
    visibility: hidden !important;
}

.wd-product {
    border-radius: var(--wd-form-brd-radius);
    padding: 12px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease-in-out !important;
    background: #fff;
}

.wd-product:hover {
    border-color: var(--e-global-color-primary) !important;
    background: #fff !important;
    transform: scale(1.03);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.16);
}

.wd-product:hover .product-wrapper {
    transform: translatey(0);
    transform: translatex(0);
}

.wd-product .price {
    width: -webkit-fill-available;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}

.wd-product .price del {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.wd-product .price del:before {
    content: "Precio normal";
}

.wd-product .price ins {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.wd-product .price ins:before {
    content: "Precio rebajado";
    font-size: 15px;
}

.wd-product .product-element-top img {
    height: 200px;
    object-fit: contain;
}

@media(max-width:768px) {
    .wd-product {
        padding: 8px;
    }

    .wd-product .price {
        display: flex !important;
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==============================> CONTENEDOR ATRIBUTOS PERSONALIZADOS */

.product-custom-attributes {
    display: flex;
    flex-direction: row;
    gap: 16px;
    animation: fadeInUp 0.4s ease-out;
}

.product-custom-attributes span {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    transition: all 0.3s ease;
    opacity: 1;
}

.product-custom-attributes span strong {
    color: var(--e-global-color-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}


/* -> ATRIBUTO AÑO */

.atributo-ano {
    display: block;
    padding: 4px 6px;
    border-radius: 4px;
    background: #f0f0f0;
}

.atributo-ano:hover {
    color: #fff;
    background-color: var(--e-global-color-primary);
    transform: translateX(2px);
}


/* -> ATRIBUTO EDICION */

.atributo-edicion {
    display: block;
    padding: 4px 6px;
    border-radius: 4px;
    background: #f0f0f0;
}

.atributo-edicion:hover {
    color: #fff;
    background-color: var(--e-global-color-primary);
    transform: translateX(2px);
}



/* ==============================> RESPONSIVE TABLET (768px) */

@media (max-width: 768px) {
    .product-custom-attributes {
        gap: 4px;
        margin-top: 6px;
        margin-bottom: 10px;
    }
    
    .product-custom-attributes span {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .atributo-ano,
    .atributo-edicion {
        padding: 3px 4px;
        padding-left: 6px;
        border-left-width: 1.5px;
    }
    
    .atributo-ano:hover,
    .atributo-edicion:hover {
        transform: translateX(1px);
    }
}


/* ==============================> RESPONSIVE MOVIL */

@media (max-width: 480px) {
    .product-custom-attributes {
        gap: 2px;
        margin-top: 4px;
        margin-bottom: 8px;
    }
    
    .product-custom-attributes span {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .atributo-ano,
    .atributo-edicion {
        padding: 2px 3px;
        padding-left: 5px;
        border-left-width: 1px;
    }
}


/* ==============================> ANIMACIONES */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}