/**
 * Product Card Quick Actions - Fix Circle Buttons
 * راه‌حل قطعی برای دایره کامل کردن دکمه‌ها
 */

/* حذف تمام استایل‌های قبلی و شروع از صفر */
.product-quick-actions {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    opacity: 0 !important;
    transform: translateX(-10px) !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
}

.product-card:hover .product-quick-actions {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* دکمه‌های کاملاً دایره */
.quick-action,
button.quick-action,
.quick-action.wishlist-btn,
.quick-action.quick-view-btn,
button.wishlist-btn,
button.quick-view-btn {
    /* اندازه دقیق */
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    
    /* شکل دایره */
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    
    /* Flexbox برای مرکز کردن آیکون */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* پاک کردن padding و margin */
    padding: 0 !important;
    margin: 0 !important;
    
    /* مرز و پس‌زمینه */
    border: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    
    /* سایه و cursor */
    box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    
    /* انیمیشن */
    transition: all 0.3s ease !important;
    
    /* جلوگیری از کشیده شدن */
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    
    /* اطمینان از box-sizing */
    box-sizing: border-box !important;
    
    /* جلوگیری از text wrapping */
    white-space: nowrap !important;
    overflow: hidden !important;
    
    /* اطمینان از line-height */
    line-height: 1 !important;
    
    /* حذف font-size اگر مشکل ایجاد می‌کند */
    font-size: 0 !important;
}

/* Hover effect */
.quick-action:hover,
button.quick-action:hover {
    background: #1a1a1a !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
}

/* SVG Icons */
.quick-action svg,
button.quick-action svg {
    /* اندازه دقیق آیکون */
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    
    /* استایل SVG */
    stroke: #333 !important;
    stroke-width: 2 !important;
    fill: none !important;
    
    /* نمایش */
    display: block !important;
    flex-shrink: 0 !important;
    
    /* انیمیشن */
    transition: all 0.3s ease !important;
    
    /* اطمینان از مرکز بودن */
    margin: 0 auto !important;
}

.quick-action:hover svg,
button.quick-action:hover svg {
    stroke: #ffffff !important;
}

/* Active states */
.quick-action.active,
button.quick-action.active,
.wishlist-btn.active {
    background: #ff6b6b !important;
}

.quick-action.active svg,
button.quick-action.active svg,
.wishlist-btn.active svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* موبایل */
@media (max-width: 768px) {
    .product-quick-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    .quick-action,
    button.quick-action {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
    
    .quick-action svg,
    button.quick-action svg {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
}

@media (max-width: 480px) {
    .product-quick-actions {
        flex-direction: row !important;
        left: 10px !important;
        top: auto !important;
        bottom: 10px !important;
        gap: 6px !important;
    }
    
    .quick-action,
    button.quick-action {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    
    .quick-action svg,
    button.quick-action svg {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }
}

/* اطمینان از نمایش درست */
.product-card {
    position: relative !important;
}

.product-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
}

/* جلوگیری از conflicting styles */
.products .product-card .quick-action,
.products-grid .product-card .quick-action,
ul.products .product-card .quick-action {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

