.favorites-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.favorites-panel-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.favorites-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh; /* Ocupa como máximo el 80% de la altura */
    background-color: var(--color-cart-panel-bg, rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #f0f0f0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateY(100%); /* Inicia oculto abajo */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.favorites-panel.open {
    transform: translateY(0); /* Se desliza hacia arriba */
}

.favorites-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.favorites-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.favorites-panel-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.favorites-panel-close-btn:hover {
    color: #fff;
}

.favorites-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-favorites-message {
    text-align: center;
    color: #a0a0a0;
    padding: 4rem 1rem;
}

.empty-favorites-message p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: #fff;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #fff;
}

.favorite-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.favorite-item-info {
    flex-grow: 1;
    overflow: hidden;
}

.favorite-item-info .name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-item-info .price {
    color: #eee;
    margin-top: 0.25rem;
}

.favorite-item-action {
    font-size: 1.2rem;
    color: #aaa;
}