/* Modern Product Card - Global Styles برای Home & Related Products */

/* استایل‌های اصلی کارت */
.modern-product-card {
    background: white;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.modern-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Card Image Area */
.modern-product-card .item-header {
    width: 100%;
    padding-top: 66.67%; /* نسبت 3:2 */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.modern-product-card .item-header a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-product-card .item-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.modern-product-card:hover .item-header img {
    transform: scale(1.05);
}

/* VIP Badge */
.modern-product-card .item-header .vip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFD700;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
}

/* OFF Badge */
.modern-product-card .item-header .off {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

/* Product Title */
.modern-product-card .item-title {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.modern-product-card .item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-product-card .item-title a:hover {
    color: #FFA726;
}

/* Product Footer */
.modern-product-card .item-footer {
    padding: 20px;
    background: white;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0 0 15px 15px;
}

/* Meta Info */
.modern-product-card .item-meta-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.modern-product-card .item-meta {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.modern-product-card .item-meta.download {
    background: #e3f2fd;
    color: #1976d2;
}

.modern-product-card .item-meta.price {
    background: #fff3e0;
    color: #f57c00;
}

/* Vendor Section */
.modern-product-card .item-vendor-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.modern-product-card .item-vendor {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: color 0.3s ease;
}

.modern-product-card .item-vendor:hover {
    color: #FFA726;
}

.modern-product-card .item-vendor img {
    width: 17px;
    height: 17px;
    border-radius: 50%;
}

.modern-product-card .item-vendor.verified::after {
    content: '✓';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
    margin-right: 3px;
}

/* Hover Buttons */
.modern-product-card .hover-buttons {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.modern-product-card:hover .hover-buttons {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.modern-product-card .btn-add-to-cart,
.modern-product-card .btn-preview {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.modern-product-card .btn-add-to-cart {
    background: #FFA726;
    color: white;
}

.modern-product-card .btn-add-to-cart:hover {
    background: #FB8C00;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
    color: white;
}

.modern-product-card .btn-preview {
    background: #E0E0E0;
    color: #424242;
}

.modern-product-card .btn-preview:hover {
    background: #BDBDBD;
    color: #212121;
}

/* ========== Responsive ========== */

/* Tablet & Mobile - دکمه‌ها همیشه نمایش داده بشن */
@media (max-width: 1024px) {
    .modern-product-card {
        min-height: auto;
        overflow: hidden;
    }
    
    .modern-product-card .hover-buttons {
        position: relative;
        bottom: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
    }
}

/* Mobile - دکمه‌ها عمودی */
@media (max-width: 480px) {
    .modern-product-card .hover-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

