/* Estilos existentes para el botón de corazón */
li.product, .woocommerce-product-gallery { position: relative; }
.minimal-wishlist-button-wrapper {
    position: absolute; top: 15px; left: 15px; z-index: 11;
    border-radius: 50%; background-color: rgba(255, 255, 255, 0.5);
    padding: 8px; display: flex; align-items: center; justify-content: center;
}
.minimal-wishlist-button {
    background: transparent; border: none; cursor: pointer; z-index: 12;
    color: #ff0000; transition: color 0.3s, transform 0.3s;
    font-size: 1.2em; line-height: 1; padding: 0;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.minimal-wishlist-button.added { color: #007bff; }
.minimal-wishlist-button:hover { transform: scale(1.1); }
@keyframes heartbeat { 0% {transform: scale(1);} 10% {transform: scale(1.2);} 20% {transform: scale(1);} 100% {transform: scale(1);} }
.minimal-wishlist-button.heartbeat { animation: heartbeat 5s infinite ease-in-out; }

/* ------------------------------------------- */
/* --- ESTILOS PARA LA TABLA WISHLIST --- */
/* ------------------------------------------- */

.minimal-wishlist-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.minimal-wishlist-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    font-size: 1em;
    border: none;
}

.minimal-wishlist-table thead {
    border-bottom: 1px solid #e0e0e0;
}

.minimal-wishlist-table th {
    text-align: left;
    padding: 12px 10px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    border: none;
}

.minimal-wishlist-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.minimal-wishlist-table tbody tr:last-child {
    border-bottom: none;
}

.minimal-wishlist-table td {
    padding: 20px 10px;
    vertical-align: middle;
}

.product-remove .minimal-wishlist-remove {
    background: transparent;
    border: none;
    color: #ff0000;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}
.product-remove .minimal-wishlist-remove:hover {
    transform: scale(1.2);
}

.product-thumbnail img {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.product-name a {
    color: #0073aa;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1em;
}
.product-name a:hover {
    color: #0099d4;
}
.product-price {
    font-size: 1.1em;
    font-weight: 500;
    color: #444;
}

.product-add-to-cart .button {
    background-color: #38d4f2 !important;
    color: #fff !important;
    border-radius: 5px !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    white-space: nowrap;
    border: none !important;
    transition: background-color 0.2s;
    width: 100%;
}
.product-add-to-cart .button:hover {
    background-color: #27c5e4;
}

.wishlist-actions {
    text-align: right;
    margin-top: 1em;
}
.add-all-to-cart-button {
    background-color: #f5ba40 !important;
    color: #444!important;
    font-weight: 600!important;
    font-size: 1.1em!important;
    padding: 12px 25px!important;
    border-radius: 5px!important;
    border: none!important;
    width: auto!important; /* Ajustado para que se adapte al texto */
    float: right!important;
}
.add-all-to-cart-button:hover {
    background-color: #dda839!important;
}

/* ------------------------------------------- */
/* --- NUEVOS ESTILOS PARA ICONO HEADER --- */
/* ------------------------------------------- */

.header-wishlist-icon {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff; /* Color del icono */
    text-decoration: none;
    margin: 0 15px; /* Espacio alrededor */
}

.header-wishlist-icon .fa-heart {
    font-size: 23px; /* Tamaño del corazón */
}

/* Estilo del contador, similar al del carrito */
.header-wishlist-icon .wishlist-count {
    position: absolute;
    top: -8px;
    right: -12px;
    color: white;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 1px rgba(0,0,0,0.5);
}
.wishlist-count:hover {
color: white;
}