/*==================================================
COMPONENT: PRODUCT WISHLIST
==================================================*/

.sidv-product-wishlist {
    display: flex;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidv-product-wishlist.is-ready {
    opacity: 1;
}

/*==================================================
BUTTON STYLING
==================================================*/

.sidv-product-wishlist__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 54px;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--sidv-color-border, #E2E8F0);
    border-radius: var(--sidv-radius-lg, 14px);
    background-color: var(--sidv-color-surface, #FFFFFF);
    color: var(--sidv-color-heading, #0D2137);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13, 33, 55, 0.02);
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sidv-product-wishlist__button:hover {
    background-color: var(--sidv-color-primary-light, #FFF7ED);
    border-color: var(--sidv-color-primary, #FF9800);
    color: var(--sidv-color-primary, #FF9800);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.12);
}

.sidv-product-wishlist__button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.08);
}

.sidv-product-wishlist__button:focus-visible {
    outline: none;
    border-color: var(--sidv-color-primary, #FF9800);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

/*==================================================
ICON & SVG ANIMATION
==================================================*/

.sidv-product-wishlist__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidv-product-wishlist__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: transparent;
    transition: fill 0.25s ease, stroke 0.25s ease;
}

.sidv-product-wishlist__button:hover .sidv-product-wishlist__icon {
    transform: scale(1.15);
}

/*==================================================
ACTIVE STATE (FAVORITO ACTIVADO)
==================================================*/

.sidv-product-wishlist__button.is-active {
    background-color: var(--sidv-color-danger-bg, #FEF2F2);
    border-color: var(--sidv-color-danger, #EF4444);
    color: var(--sidv-color-danger, #EF4444);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

.sidv-product-wishlist__button.is-active:hover {
    background-color: #FEE2E2;
    border-color: #DC2626;
    color: #DC2626;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.2);
}

.sidv-product-wishlist__button.is-active .sidv-product-wishlist__icon {
    animation: sidv-heart-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidv-product-wishlist__button.is-active .sidv-product-wishlist__icon svg {
    fill: currentColor;
    stroke: currentColor;
}

/*==================================================
KEYFRAMES
==================================================*/

@keyframes sidv-heart-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.35);
    }
    100% {
        transform: scale(1);
    }
}

/*==================================================
RESPONSIVE DESIGN
==================================================*/

@media (max-width: 768px) {
    .sidv-product-wishlist__button {
        min-height: 50px;
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}