/* Product Actions Styles (Favorites, Share) */
.product-card {
    position: relative;
}

.product-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.favorite-btn,
.share-btn,
.compare-btn-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    color: var(--text-color);
}

.favorite-btn:hover,
.share-btn:hover,
.compare-btn-item:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.favorite-btn.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.favorite-btn.active svg {
    fill: #ef4444;
}

.compare-btn-item.active {
    color: var(--primary-600);
    background: rgba(2, 132, 199, 0.1);
}

[data-theme="dark"] .favorite-btn,
[data-theme="dark"] .share-btn,
[data-theme="dark"] .compare-btn-item {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

[data-theme="dark"] .favorite-btn:hover,
[data-theme="dark"] .share-btn:hover,
[data-theme="dark"] .compare-btn-item:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Share Menu */
.share-menu {
    position: absolute;
    bottom: 50px;
    left: 0;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
    z-index: 1000;
}

.share-menu.active {
    display: flex;
}

.share-menu-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: right;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
    font-family: 'Tajawal', sans-serif;
}

.share-menu-btn:hover {
    background: var(--bg-secondary);
}

.share-menu-icon {
    font-size: 1.25rem;
}

/* Favorites Count Badge */
.favorites-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .product-actions {
        opacity: 1;
    }
}

