/* Контейнер картинки товара — для абсолютного позиционирования иконки */
.product-small .box-image {
    position: relative !important;
}

/* Контейнер иконки на фото */
.wishlist-icon-container {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 20 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка сердечко */
.wishlist-icon-btn {
    background: transparent !important;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
}

/* Hover эффект */
.wishlist-icon-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.2) !important;
}

/* SVG сердечка */
.wishlist-icon-svg {
    pointer-events: none;
    stroke: white !important; /* Контур сердечка */
    fill: none; /* По умолчанию только контур */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Если товар добавлен в вишлист, ставим класс .in-wishlist */
.wishlist-icon-btn.in-wishlist .wishlist-icon-svg {
    fill: #d26e4b !important;   /* Полностью закрашенное сердце */
    stroke: #d26e4b !important; /* Контур красный */
}

/* Кнопка на странице товара (не в карточке) */
.wishlist-product-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* SVG в кнопке на странице товара */
.wishlist-product-btn svg {
    stroke: #d26e4b;
    fill: none;
}

.wishlist-product-btn.in-wishlist svg {
    fill: #d26e4b;
}

/* Уведомления */
.wishlist-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Кнопка удалить в списке */
.wishlist-remove-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 5px 10px;
}

.wishlist-remove-btn:hover {
    color: #d26e4b;
}

/* Disabled состояния */
.wishlist-icon-btn:disabled,
.wishlist-product-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Временные иконки */
.wishlist-icon-temp { display: none; }