/**
 * Product Card Quick Actions Fix
 * برطرف کردن مشکل نمایش آیکون‌های اکشن
 */

/* ========================================
   Quick Actions - اکشن‌های سریع
======================================== */
.product-quick-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

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

.quick-action {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 0 !important;
    margin: 0;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.quick-action:hover {
    background: #1a1a1a;
    transform: scale(1.1);
}

.quick-action:hover svg {
    stroke: #ffffff;
}

.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;
    stroke: #333;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
}

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

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

.quick-action.compare-btn.active {
    background: #4CAF50;
}

.quick-action.compare-btn.active svg {
    stroke: #ffffff;
}

/* موبایل - همیشه نمایش داده شود */
@media (max-width: 768px) {
    .product-quick-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .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 {
        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;
        left: 10px;
        top: auto;
        bottom: 10px;
        gap: 6px;
    }
    
    .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 {
        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;
}

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

/* دکمه افزودن به سبد */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-footer .button,
.product-footer .add_to_cart_button,
.product-footer .added_to_cart,
.product-footer .product_type_simple {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.product-footer .button:hover,
.product-footer .add_to_cart_button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-footer .added_to_cart {
    background: #4CAF50;
}

/* دسته‌بندی محصول */
.product-category {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-category a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-category a:hover {
    color: #1a1a1a;
}

/* عنوان محصول */
.product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #666;
}

/* قیمت محصول */
.price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}

.price ins {
    text-decoration: none;
    color: #ff6b6b;
}

/* امتیاز محصول */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    color: #ffc107;
    margin: 8px 0;
}

.star-rating::before {
    color: #ffc107;
}

.star-rating span {
    overflow: visible !important;
}

