/* ============================================
   CATÁLOGO TESSIA — etiquetas de producto
   ============================================ */

.single-product > a {
    position: relative;
    display: block;
}

/* ============================================
   "SIN STOCK" — pastilla arriba a la derecha
   ============================================ */
.single-product .product-image .badge-danger {
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 7 !important;

    background-color: rgb(140, 80, 94) !important;
    color: #ffffff !important;

    padding: 7px 15px !important;
    border-radius: 999px !important;
    border: none !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.3px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.3) !important;
}

/* Foto atenuada en productos agotados */
.single-product:has(.badge-danger) .product-image img {
    opacity: 0.55;
    filter: grayscale(0.4);
}

.single-product:has(.badge-danger):hover .product-image img {
    opacity: 0.7;
}

/* ============================================
   "NUEVO" — círculo arriba a la izquierda
   ============================================ */

/* El contenedor del tag deja de ocupar espacio en el flujo */
.single-product .col-xl-12.py-1:has(> .badge) {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 6;
}

.single-product .badge:not(.badge-danger) {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;

    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    background-color: rgb(173, 96, 112) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    border: none !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;

    box-shadow: 0 5px 14px -5px rgba(173, 96, 112, 0.7) !important;
}

/* ============================================
   Tarjeta con un poco más de vida
   ============================================ */
.single-product {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.single-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.22);
}

.single-product .product-image img {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.single-product:hover .product-image img {
    transform: scale(1.05);
}

/* ============================================
   Móvil
   ============================================ */
@media (max-width: 767px) {
    .single-product .badge:not(.badge-danger) {
        width: 46px !important;
        height: 46px !important;
        font-size: 9px !important;
        top: 8px !important;
        left: 8px !important;
    }

    .single-product .product-image .badge-danger {
        top: 8px !important;
        right: 8px !important;
        font-size: 9px !important;
        padding: 6px 12px !important;
    }
}