@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&display=swap');

.section-listaDeDeseos {
    margin-top: 1dvh;
    display: flex;
    flex-direction: column;
    font-size: inherit;
    background-color: #F1EFEC;
}

.subtitleListaDeDeseos {
    text-align: center;
    padding: 5dvh 2dvh;
    width: 100%;
    font-size: 2rem;
    color: #4B352A;
    background-color: #EAE3D2;
}

.listDeseos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 80%;
    margin: 5dvh auto;
    gap: 5dvh;
}

.itemListDeseos {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    background: #F1EFEC;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.itemListDeseos:hover {
    transform: scale(1.01);
}

.itemListDeseos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.des_ItemListaDeseo {
    padding: 2dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1dvh;
    font-family: 'Alegreya Sans SC', sans-serif;
    color: #4B352A;
}

.tituloDeseo {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #4B352A;
}

.des_ItemListaDeseo p:first-child {
    font-size: 1.1rem;
    font-weight: bold;
}

.des_ItemListaDeseo p:last-child {
    font-size: 1rem;
    color: #1e1e1e;
}

.wishlist-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1dvh;
    padding: 2dvh;
}

.btnItemListDeseo {
    padding: 10px 16px;
    background-color: #123458;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btnItemListDeseo:hover {
    background-color: #323839;
}

.btnRemoveFromWishlist {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #c92a2a;
    transition: color 0.2s ease;
}

.btnRemoveFromWishlist:hover {
    color: #8a1c1c;
}

.spanDeseos.activo svg path {
    stroke: red;
    fill: red;
}

/* 📱 Responsive para tablets */
@media (max-width: 1023px) {
    .listDeseos {
        grid-template-columns: 1fr;
        width: 95%;
        gap: 4dvh;
    }

    .itemListDeseos {
        grid-template-columns: 1fr 2fr auto;
    }

    .itemListDeseos img {
        height: 100%;
        border-radius: 0;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    .des_ItemListaDeseo {
        align-items: flex-start;
    }

    .wishlist-actions {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* 📱 Responsive para móviles: mantener estilo horizontal */
@media (max-width: 599px) {
    .itemListDeseos {
        flex-direction: column;
        display: flex;
        align-items: center;
        text-align: center;
        padding: 2vh;
        gap: 1.5vh;
    }

    .itemListDeseos img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 12px;
    }

    .des_ItemListaDeseo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 1rem;
    }

    .wishlist-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1vh;
    }

    .btnItemListDeseo {
        width: 80%;
        max-width: 300px;
        padding: 12px 0;
        font-size: 1rem;
        border-radius: 12px;
    }

    .btnRemoveFromWishlist {
        font-size: 1.3rem;
        background: none;
        border: none;
    }
}
