/* طراحی دقیق مطابق نمونه تصویر */
.exact-product-card {
    width: 240px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    font-family: 'Yekan', 'Tahoma', sans-serif;
    margin: 10px;
}

.product-image-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f8f8;
    position: relative;
}

.product-main-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-info-section {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    text-align: right;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating-box {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    direction: ltr;
    justify-content: flex-end;
}

.stars-rating {
    display: inline-flex;
    align-items: center;
}

.stars-rating span {
    font-size: 16px;
    margin: 0 1px;
}

.full-star {
    color: #ffb503;
}

.half-star {
    position: relative;
    color: #e0e0e0;
}

.half-star:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffb503;
}

.empty-star {
    color: #e0e0e0;
}

.rating-number {
    font-size: 12px;
    color: #666666;
    margin-right: 8px;
    font-weight: 500;
}

.product-price-tag {
    margin: 10px 0 15px 0;
    text-align: left;
    direction: rtl;
}

.price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #e12d2d;
    display: inline-block;
}

.price-currency {
    font-size: 13px;
    color: #666666;
    margin-right: 5px;
}

.product-actions-bar {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.detail-button, .add-to-cart-button {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.detail-button {
    background: #f0f0f0;
    color: #444444;
    border: 1px solid #d0d0d0;
}

.detail-button:hover {
    background: #e0e0e0;
}

.add-to-cart-button {
    background: #e12d2d;
    color: white;
    border: 1px solid #e12d2d;
}

.add-to-cart-button:hover {
    background: #c02525;
}

/* افکت‌های ویژه برای مطابقت با نمونه */
.exact-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .exact-product-card {
        width: 220px;
    }
    
    .product-image-container {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .exact-product-card {
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
    }
}
.product-card-modern {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-5px);
}

.product-card-modern a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 6px;
    color: #333;
    line-height: 1.4;
}

.product-rating {
    font-size: 14px;
    color: #f39c12;
    margin-bottom: 8px;
}

.product-price {
    font-size: 15px;
    color: #e74c3c;
    margin-bottom: 12px;
}

.add-to-cart {
    background-color: #00b894;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #019875;
}

@media (max-width: 600px) {
    .product-card-modern {
        border-radius: 12px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 14px;
    }

    .add-to-cart {
        font-size: 13px;
        padding: 8px;
    }
}
