/* =========================================================
   FAVORITOS - BOTON
   ========================================================= */
/* Solo en páginas de productos, ocultar la etiqueta */
body.single-product a.tinvwl_add_to_wishlist_button::after {
    display: none;
}

/* Estilo botón agregar a Lista de Deseos */
/* Botón wishlist en cards/listado de productos */
a.tinvwl_add_to_wishlist_button.no-txt.tinvwl-position-above_thumb {
    background-color: #ff4078;
    color: #fff;
    width: 40px !important;
    height: 40px !important;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Tamaño del corazón en el listado */
a.tinvwl_add_to_wishlist_button.no-txt.tinvwl-position-above_thumb::before {
    font-size: 18px;
}

/* Badge contador */
a.tinvwl_add_to_wishlist_button.no-txt.tinvwl-position-above_thumb .tinvwl-product-stats {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ff4078 !important;
    color: #fff !important;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Botón wishlist en página individual */
body.single-product a.tinvwl_add_to_wishlist_button.tinvwl-position-after {
    background-color: #ff4078; 
    color: #fff; 
    font-weight: bold; 
    width: auto;
    height: auto;
    padding: 5px 20px; 
    border-radius: 25px; 
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    box-shadow: none;
}

a.tinvwl_add_to_wishlist_button:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-20%);
    bottom: -20%;
}

a.tinvwl_add_to_wishlist_button {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

a.tinvwl_add_to_wishlist_button:hover {
    transform: scale(1.1);
}

/* Ocultar favoritos en subastas */
.tinvwl_add_to_wishlist_button[data-tinv-wl-producttype="auction"] {
    display: none !important;
}

/* Espaciado general */
.ywcact-add-to-watchlist-container {
    margin-top: 14px;
}

/* Ocultar icono original del plugin */
.yith-wcact-add-to-watchlist-icon {
    display: none !important;
}

/* =========================================================
   SUBASTAS - WATCHLIST
   ========================================================= */
/* Botón principal */
.yith-wcact-add-to-watchlist-button .add_to_watchlist,
.yith-wcact-add-to-watchlist-button .remove_from_watchlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #273444, #1b2430);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.yith-wcact-add-to-watchlist-button .add_to_watchlist:hover,
.yith-wcact-add-to-watchlist-button .remove_from_watchlist:hover {
    transform: translateY(-1px);
    color: #fff !important;
}

/* Icono generado */
.yith-wcact-add-to-watchlist-button .add_to_watchlist::before,
.yith-wcact-add-to-watchlist-button .remove_from_watchlist::before {
    content: "♡";
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

.yith-wcact-add-to-watchlist-button .remove_from_watchlist::before {
    content: "♥";
}

/* Texto auxiliar */
.yith-wcact-add-to-watchlist-button-message > span:last-child {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #7a7a7a;
    line-height: 1.4;
}

/* Estado agregado */
.yith-wcact-add-to-watchlist-button-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.yith-wcact-add-to-watchlist-button-message a {
    text-decoration: none !important;
}

/* Asegura referencia para posicionamiento */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

/* Contenedor del badge */
.nv-auction-loop-watchers {
    position: absolute;
    top: 14px;
    left: 14px; /* cámbialo a right: 14px si lo quieres al otro lado */
    z-index: 8;
    margin: 0;
}

/* Botón circular */
.nv-auction-loop-watchers__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #273444, #1b2430);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(27, 36, 48, 0.22);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.nv-auction-loop-watchers__btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 14px 26px rgba(27, 36, 48, 0.28);
    color: #fff !important;
}

/* Icono */
.nv-auction-loop-watchers__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nv-auction-loop-watchers__icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

/* Burbuja contador */
.nv-auction-loop-watchers__count {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #273444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(76, 111, 255, 0.28);
}

/* Ajuste opcional en móvil */
@media (max-width: 768px) {
    .nv-auction-loop-watchers {
        top: 10px;
        left: 10px;
    }

    .nv-auction-loop-watchers__btn {
        width: 42px;
        height: 42px;
    }

    .nv-auction-loop-watchers__icon svg {
        width: 17px;
        height: 17px;
    }
}

/* Contenedor general */
.yith-wcact-add-to-watchlist-browse {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Ocultamos el icono original para reemplazarlo visualmente con CSS */
.yith-wcact-add-to-watchlist-browse > .yith-wcact-add-to-watchlist-icon {
    display: none;
}

/* El bloque de texto */
.yith-wcact-add-to-watchlist-browse-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Botón principal */
.yith-wcact-add-to-watchlist-browse-message > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #162338;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    padding: 16px 26px;
    border-radius: 999px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Ícono corazón */
.yith-wcact-add-to-watchlist-browse-message > a::before {
    content: "♥";
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

/* Hover */
.yith-wcact-add-to-watchlist-browse-message > a:hover {
    background: #1c2d47;
    transform: translateY(-1px);
}

/* Texto interior del enlace */
.yith-wcact-add-to-watchlist-browse-message > a span {
    color: inherit;
    font: inherit;
}

/* Texto inferior pequeño */
.yith-wcact-add-to-watchlist-browse .add-to-watchlist-number-of-users {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: #8a8f98;
    margin-left: 8px;
}