
/* ==========================================
   COMBOS EKSEL
   PASO 8.9.18
   DESCUENTOS EN DETALLE DE PRODUCTO
========================================== */

/* ETIQUETA DE DESCUENTO SOBRE LA IMAGEN */

.detalle-producto-foto {
    position: relative;
}

.detalle-etiqueta-oferta {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    background: #e52b39;
    color: #ffffff;

    border-radius: 9px;

    font-size: 16px;
    font-weight: 900;

    box-shadow: 0 5px 15px rgba(229, 43, 57, 0.25);
}

.detalle-etiqueta-agotado {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;

    padding: 8px 13px;

    background: #334155;
    color: #ffffff;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 900;
}

/* MENSAJE DE OFERTA */

.detalle-oferta-mensaje {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 14px 0;
    padding: 12px 15px;

    background: #fff1f2;
    color: #9f1239;

    border: 1px solid #fecdd3;
    border-radius: 10px;

    font-size: 13px;
}

.detalle-oferta-mensaje strong {
    font-weight: 900;
}

/* PRECIO ANTERIOR */

.detalle-oferta-precio-anterior {
    margin-bottom: 8px;

    color: #64748b;

    font-size: 14px;
    font-weight: 600;
}

.detalle-oferta-precio-anterior del {
    text-decoration: line-through;
    text-decoration-color: #e52b39;
    text-decoration-thickness: 2px;
}

/* AHORRO */

.detalle-oferta-ahorro {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 12px;
    padding: 12px 15px;

    background: #ecfdf5;
    color: #047857;

    border: 1px solid #a7f3d0;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;
}

.detalle-oferta-ahorro strong {
    font-weight: 900;
}

.detalle-oferta-porcentaje {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;

    background: #047857;
    color: #ffffff;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 900;
}

/* PRODUCTOS RELACIONADOS CON OFERTA */

.detalle-relacionado-descuento {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    padding: 8px 12px;

    background: #e52b39;
    color: #ffffff;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 900;

    box-shadow: 0 4px 12px rgba(229, 43, 57, 0.2);
}

.detalle-relacionado-agotado {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;

    padding: 7px 10px;

    background: #334155;
    color: #ffffff;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 800;
}

.detalle-relacionado-anterior {
    margin: 0 0 6px;

    color: #64748b;

    font-size: 12px;
}

.detalle-relacionado-anterior del {
    text-decoration-color: #e52b39;
}

.detalle-relacionado-ahorro {
    display: inline-block;

    margin: 9px 0 0;
    padding: 6px 9px;

    background: #ecfdf5;
    color: #047857;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 800;
}

/* ENLACE A MAS OFERTAS */

.detalle-volver-ofertas {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 12px;
    padding: 11px 16px;

    background: #e52b39;
    color: #ffffff;

    border-radius: 9px;

    text-decoration: none;
    font-size: 13px;
    font-weight: 900;

    transition: background 0.2s ease;
}

.detalle-volver-ofertas:hover {
    background: #b91c1c;
    color: #ffffff;
}

/* CELULARES */

@media (max-width: 600px) {

    .detalle-etiqueta-oferta {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .detalle-oferta-ahorro {
        align-items: flex-start;
        font-size: 13px;
    }

    .detalle-volver-ofertas {
        margin: 12px 0 0;
    }

}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .detalle-volver-ofertas {
        transition: none;
    }

}
