/* ==============================> CLASTER DE PRODUCTOS */

.wd-hover-with-fade.hover-ready:is(:hover, .state-hover) .content-product-imagin {
    visibility: hidden !important;
}

.wd-product {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease-in-out !important;
    background: #fff;
}

.wd-product:hover {
}

.wd-product .product-wrapper {
    gap: 0;
}

.wd-product .wd-product-thumb img {
    aspect-ratio: 1;
    object-fit: contain;
}

.wd-product .product-element-bottom>.star-rating {
    display: none !important;
}

.wd-product:hover .product-wrapper {
    transform: translatey(0) !important;
    transform: translatex(0) !important;
}

.wd-product .price {
    display: flex !important;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 12px;
}

@media(max-width:768px) {
    .wd-product {
        
    }

    .wd-product .price {
        display: flex !important;
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==============================> CLUSTER DE PRODUCTO - ETIQUETA */


/* -> Etiqueta superior centrada */
.wd-product .etiqueta-producto {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 100;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 14px 6px;
    border-radius: 4px 0px 4px 4px;
    border: 0px;
    white-space: nowrap;
    opacity: 0;
    animation: etiqueta-entrada 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    -webkit-animation: etiqueta-entrada 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    will-change: transform, opacity;
}

.etiqueta-producto:before {
    top: 0px;
    right: -9px;
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 0 9px;
    border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #000;
}

@keyframes etiqueta-entrada {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@-webkit-keyframes etiqueta-entrada {
    from { opacity: 0; -webkit-transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; -webkit-transform: translateX(-50%) translateY(0); }
}


/* ==============================> CLUSTER DE PRODUCTO - CARD */


/* -> Imagen */
.wd-product .wd-product-thumb {
    background: #fff;
    padding: 12px;
}

.wd-product .wd-product-thumb img {
    transition: transform 0.4s ease;
    -webkit-transition: -webkit-transform 0.4s ease;
}

.wd-product .wd-product-wrapper:hover .wd-product-thumb img {
    transform: scale(1.04);
    -webkit-transform: scale(1.04);
}

/* -> Bloque inferior */
.wd-product .product-element-bottom {
    gap: 0;
}

/* -> Titulo */
.wd-product .wd-entities-title {
    margin: 0;
    padding: 0px 13px 13px 13px;
    text-align: center;
}

.wd-product .wd-entities-title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--e-global-color-text);
    text-decoration: none;
    line-height: 17px;
    display: block;
    transition: opacity 0.2s ease;
    -webkit-transition: opacity 0.2s ease;
}

.wd-product .wd-entities-title a:hover {
    opacity: 0.8;
}

/* -> Stock */
.wd-product .pdc-stock {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    transition: background .4s ease;
    -webkit-transition: background .4s ease;
}


/* -> Precio */
.wd-product .wrap-price {
    height: -webkit-fill-available;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    gap: 8px !important;
    background: var(--e-global-color-primary);
}

.wd-product .pdc-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    width: -webkit-fill-available;
    padding: 8px;
    background: #FFFFFF36;
    border-radius: 8px;
}

.wd-product .pdc-actual,
.wd-product .pdc-tachado {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.wd-product .pdc-tachado {
    opacity: 0.55;
    text-decoration: line-through;
    font-size: 11px;
    font-weight: 400;
}

.wd-product .pdc-sep {
    opacity: 0.5;
    font-weight: 300;
}


/* -> Estrellas */
.wd-product .pdc-estrellas {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    background: #36afff;
    border-radius: 0 0 8px 8px;
    transition: background 0.25s ease;
    -webkit-transition: background 0.25s ease;
}

.wd-product .pdc-estrellas .estrella {
    font-size: 20px;
    line-height: 1;
    transition: color 0.25s ease, transform 0.2s ease;
    -webkit-transition: color 0.25s ease, -webkit-transform 0.2s ease;
}

.wd-product .pdc-estrellas .estrella.llena {
    color: #f5c518;
}

.wd-product .pdc-estrellas .estrella.media {
    color: #f5c518;
    opacity: 0.6;
}

.wd-product .pdc-estrellas .estrella.vacia {
    color: rgba(255,255,255,0.8);
}

.wd-product .pdc-estrellas.sin-valoracion {
    background: #36afff;
    border-radius: 0 0 8px 8px;
}

.wd-product .pdc-estrellas.sin-valoracion .estrella.vacia {
    color: rgba(255,255,255,0.4);
}

.wd-product .pdc-estrellas:hover .estrella {
    transform: scale(1.15);
    -webkit-transform: scale(1.15);
}


/* CLUSTER DE PRODUCTO - RESPONSIVE */

/* -> Tablet 768px */
@media (max-width: 768px) {
    .wd-product .etiqueta-producto {
        font-size: 10px;
        padding: 4px 10px 5px;
    }

    .wd-product .product-element-bottom {
    }

    .wd-product .wd-entities-title a {
        font-size: 12px;
    }

    .wd-product .pdc-actual,
    .wd-product .pdc-tachado {
        font-size: 12px;
    }
}


/* ==============================> TIPO DE CAMBIO BADGE */

.tipo-de-cambio-badge {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    display: flex;
    padding: 4px 12px;
    background: #FFFFFF36;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-4px);
    animation: tdc-entrada 0.35s ease forwards;
    -webkit-animation: tdc-entrada 0.35s ease forwards;
    align-items: center;
    justify-content: center;
}

@keyframes tdc-entrada {
    to { opacity: 1; transform: translateY(0); }
}
@-webkit-keyframes tdc-entrada {
    to { opacity: 1; -webkit-transform: translateY(0); }
}


/* ==============================> CLUSTER / LOOP DE PRODUCTOS */

.product-template-default .wd-single-price .elementor-widget-container>p:last-child {
	display: none;
}

/* -> Contenedor */
.pdc-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(6px);
    animation: pdc-entrada 0.3s ease forwards;
    -webkit-animation: pdc-entrada 0.3s ease forwards;
}

@keyframes pdc-entrada {
    to { opacity: 1; transform: translateY(0); }
}
@-webkit-keyframes pdc-entrada {
    to { opacity: 1; -webkit-transform: translateY(0); }
}

/* -> Fila de precio */
.pdc-wrap .pdc-actual,
.pdc-wrap .pdc-tachado {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.3;
    transition: color 0.2s ease;
    -webkit-transition: color 0.2s ease;
}

/* -> Precio en soles */
.pdc-wrap .pdc-actual .pdc-pen {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s ease;
    -webkit-transition: color 0.2s ease;
}

/* -> Separador */
.pdc-wrap .pdc-sep {
    font-size: 12px;
    color: #fff;
    font-weight: 400;
}

/* -> Precio en d贸lares */
.pdc-wrap .pdc-actual .pdc-usd {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    color: #fff;
}

/* -> Precio tachado */
.pdc-wrap .pdc-tachado .pdc-pen,
.pdc-wrap .pdc-tachado .pdc-usd {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
}

/* -> Hover en tarjeta de producto */
.wc-block-grid__product:hover .pdc-wrap .pdc-actual .pdc-pen,
.product-inner:hover .pdc-wrap .pdc-actual .pdc-pen,
ul.products li.product:hover .pdc-wrap .pdc-actual .pdc-pen {
    color: var(--e-global-color-primary);
    filter: brightness(1.1);
}

.wd-product .pdc-wrap .pdc-pen,
.wd-product .pdc-wrap .pdc-usd {
	color: #fff;
}

.wd-product .pdc-wrap .pdc-tachado .pdc-pen,
.wd-product .pdc-wrap .pdc-tachado .pdc-usd {
	color: #fff;
	opacity: .8;
}

/* Boton de Cantidad */

.wd-product div.quantity input[type] {
    background-color: #fff !important;
    color: var(--e-global-color-text) !important;
}

/* Boton de Añadir al producto */

.wd-product .wd-add-btn {
    height: 52px;
    display: flex;
    flex-direction: row;
    padding: 0 10px 10px 10px;
    gap: 4px;
    background: var(--e-global-color-primary);
}

.wd-product .wd-add-btn .quantity {
    position: relative;
}

.wd-product div.quantity:not(.hidden)+.button:before {
    inset-inline-start: 0 !important;
}

.wd-product .wd-add-btn>a{
    padding: 4px !important;
    background-color: var(--e-global-color-accent) !important;
}

/* ==============================> PLANTILLA DE PRODUCTO INDIVIDUAL */

/* -> Contenedor */
.pdp-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* -> Bloque soles / d贸lares */
.pdp-bloque {
    display: flex;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    transform: translateX(-8px);
    animation: pdp-entrada 0.35s ease forwards;
    -webkit-animation: pdp-entrada 0.35s ease forwards;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    -webkit-transition: background 0.25s ease, box-shadow 0.25s ease;
    align-items: center;
    justify-content: center;
}

.pdp-bloque:nth-child(2) {
    animation-delay: 0.08s;
    -webkit-animation-delay: 0.08s;
}

@keyframes pdp-entrada {
    to { opacity: 1; transform: translateX(0); }
}
@-webkit-keyframes pdp-entrada {
    to { opacity: 1; -webkit-transform: translateX(0); }
}

/* -> Precio en soles */
.pdp-pen {
    font-size: 36px;
 	line-height: 40px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 4px 6px rgba(0, 0, 0, .32);
    transition: color 0.2s ease;
    -webkit-transition: color 0.2s ease;
}

/* -> Precio en d贸lares */
.pdp-usd {
    font-size: 36px;
	line-height: 40px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 4px 6px rgba(0, 0, 0, .32);
    transition: color 0.2s ease;
    -webkit-transition: color 0.2s ease;
}

/* -> Precio oferta */
.pdp-oferta {
    color: #fff;
}

/* -> Tachados */
.pdp-pen-tachado {
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    opacity: 0.75;
    color: #fff;
    text-decoration: line-through;
}

.pdp-usd-tachado {
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    opacity: 0.75;
    color: #fff;
    text-decoration: line-through;
}

/* -> Variaciones (precio actualizado por JS) */
.pdp-variacion .pdp-bloque {
    animation: none;
    -webkit-animation: none;
    opacity: 1;
    transform: none;
    -webkit-transform: none;
}


/* RESPONSIVE */

/* -> Movil */
@media (max-width: 768px) {
    .pdp-bloque {
        flex-direction: column;
        padding: 8px;
    }

    .pdc-wrap .pdc-actual .pdc-pen {
        font-size: 14px;
    }

    .pdc-wrap .pdc-actual .pdc-usd {
        font-size: 12px;
    }

    .pdc-wrap .pdc-tachado .pdc-pen,
    .pdc-wrap .pdc-tachado .pdc-usd {
        font-size: 11px;
    }

    .pdp-pen {
        font-size: 20px;
        line-height: 24px;
    }

    .pdp-usd {
        font-size: 20px;
        line-height: 24px;
    }
}