/* استایل حرفه‌ای برای کارت محصول */
.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #e0e0e0;
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #ef394e;
}

.product-price {
    color: #ef394e;
    font-weight: 600;
    font-size: 16px;
    margin: 10px 0;
}

.product-rating {
    direction: ltr;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.product-rating .stars {
    display: inline-block;
    unicode-bidi: bidi-override;
}

.product-rating .star {
    font-size: 14px;
    color: #ddd;
    margin: 0 1px;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    position: relative;
    color: #ddd;
}

.product-rating .star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e0e0e0 !important;
    color: #333;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #d0d0d0 !important;
}

.btn-primary {
    background: #ef394e;
    color: white;
}

.btn-primary:hover {
    background: #d62b3e;
}

/* استایل برای محصولات جدید یا پرفروش */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #333;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

/* استایل حرفه‌ای برای grid محصولات */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 16px 0;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
/* Reset & Base Styles */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #e0e0e0;
}

/* Product Image Section */
.product-image {
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    mix-blend-mode: multiply;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product Info Section */
.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #ef394e;
}

/* Price Section (حل مشکل قیمت‌های طولانی) */
.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #ef394e;
    margin: 10px 0;
    direction: rtl;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.product-price .currency {
    font-size: 12px;
    margin-right: 2px;
}

/* Rating Section (ستاره‌های منظم) */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0;
    direction: ltr;
}

.product-rating .stars {
    display: inline-flex;
    unicode-bidi: bidi-override;
}

.product-rating .star {
    font-size: 14px;
    color: #ddd;
    position: relative;
    margin: 0 1px;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    color: #ddd;
}

.product-rating .star.half::before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
}

/* Action Buttons (دکمه‌های حرفه‌ای) */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.product-actions .btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e0e0e0 !important;
    color: #555;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #d0d0d0 !important;
}

.btn-primary {
    background: #ef394e;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #d62b3e;
}

/* Badges (برای تخفیف‌ها یا محصولات جدید) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef394e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* Grid Layout (طراحی واکنش‌گرا) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 0;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* استایل‌های جدید برای کارت محصول */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    position: relative;
    isolation: isolate;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    mix-blend-mode: multiply;
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: white;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #222;
    font-family: 'Yekan', 'Segoe UI', Tahoma, sans-serif;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #ef394e;
}

.product-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.product-price {
    color: #ef394e;
    font-weight: 700;
    font-size: 16px;
    margin: 8px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-value {
    font-size: 18px;
    font-weight: bold;
    direction: rtl;
    display: block;
    text-align: left;
    letter-spacing: -0.5px;
}

.currency {
    font-size: 14px;
    margin-right: 5px;
}

.product-rating {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    background: rgba(255,193,7,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.product-rating .stars {
    display: flex;
    margin-left: 4px;
}

.product-rating .star {
    color: #ddd;
    font-size: 14px;
    margin: 0 1px;
    position: relative;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    color: #ddd;
}

.product-rating .star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.product-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-actions .btn:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ef394e !important;
    color: #ef394e;
}

.btn-outline:hover {
    background: #ef394e;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 57, 78, 0.2);
}

.btn-primary {
    background: #ef394e;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 57, 78, 0.25);
}

.btn-primary:hover {
    background: #d62b3e;
    box-shadow: 0 6px 16px rgba(239, 57, 78, 0.3);
    transform: translateY(-2px);
}

/* استایل‌های گرادیان پس‌زمینه */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0,0,0,0.25) 0%, 
        rgba(0,0,0,0.15) 30%, 
        rgba(255,255,255,0) 70%
    );
    pointer-events: none;
    z-index: 1;
    transition: all 0.5s ease;
    border-radius: 12px;
}

.product-card:hover::before {
    background: linear-gradient(
        135deg, 
        rgba(0,0,0,0.35) 0%, 
        rgba(0,0,0,0.2) 40%, 
        rgba(255,255,255,0) 70%
    );
    transform: scale(1.02);
}

/* افکت نور برای تصویر */
.product-image::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 160px;
        padding: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image {
        height: 140px;
        padding: 10px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .price-value {
        font-size: 16px;
    }
    
    .product-actions .btn {
        padding: 8px;
        font-size: 12px;
    }
}
/* طراحی جدید کارت محصول - کاملاً حرفه‌ای */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef394e;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-image-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    mix-blend-mode: multiply;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #222;
    height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #ef394e;
}

.product-rating-container {
    margin: 8px 0;
}

.product-rating {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

.product-rating .stars {
    display: flex;
    margin-left: 5px;
}

.product-rating .star {
    color: #ddd;
    font-size: 14px;
    margin: 0 1px;
    position: relative;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    color: #ddd;
}

.product-rating .star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.product-price-container {
    margin: 12px 0;
    direction: rtl;
    text-align: left;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: #ef394e;
    letter-spacing: -0.5px;
}

.currency {
    font-size: 13px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.view-btn {
    background: #f5f5f5;
    color: #424750;
    border: 1px solid #e0e0e0;
}

.view-btn:hover {
    background: #e0e0e0;
    color: #222;
}

.cart-btn {
    background: #ef394e;
    color: white;
    border: 1px solid #ef394e;
}

.cart-btn:hover {
    background: #d62b3e;
    border-color: #d62b3e;
}

/* افکت‌های ویژه */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 1;
    transition: all 0.4s ease;
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0) 70%);
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .product-image-container {
        height: 160px;
        padding: 15px;
    }
    
    .product-content {
        padding: 14px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .price-value {
        font-size: 15px;
    }
    
    .action-btn {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        height: 140px;
    }
    
    .product-content {
        padding: 12px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        width: 100%;
    }
}
/* طراحی کاملاً یکدست کارت محصولات */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    position: relative;
    font-family: 'Yekan', 'Tahoma', sans-serif;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef394e;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.product-image-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f9f9f9;
    position: relative;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #333;
    height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: right;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #ef394e;
}

.rating-wrapper {
    margin: 8px 0;
}

.product-rating {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    float: left;
}

.product-rating .star {
    color: #ddd;
    font-size: 14px;
    margin: 0 1px;
    position: relative;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    color: #ddd;
}

.product-rating .star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
    font-weight: 500;
}

.price-wrapper {
    margin: 10px 0;
    text-align: left;
    direction: rtl;
}

.price {
    font-size: 16px;
    font-weight: 700;
    color: #ef394e;
    display: inline-block;
}

.currency {
    font-size: 13px;
    color: #666;
    margin-right: 5px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

.view-btn {
    background: #f5f5f5;
    color: #4
/* طراحی کاملاً یکدست کارت محصولات */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    position: relative;
    font-family: 'Yekan', 'Tahoma', sans-serif;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef394e;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.product-image-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f9f9f9;
    position: relative;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #333;
    height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: right;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #ef394e;
}

.rating-wrapper {
    margin: 8px 0;
}

.product-rating {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    float: left;
}

.product-rating .star {
    color: #ddd;
    font-size: 14px;
    margin: 0 1px;
    position: relative;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    color: #ddd;
}

.product-rating .star.half:before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-value {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
    font-weight: 500;
}

.price-wrapper {
    margin: 10px 0;
    text-align: left;
    direction: rtl;
}

.price {
    font-size: 16px;
    font-weight: 700;
    color: #ef394e;
    display: inline-block;
}

.currency {
    font-size: 13px;
    color: #666;
    margin-right: 5px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

.view-btn {
    background: #f5f5f5;
    color: #424750;
    border: 1px solid #e0e0e0;
}

.view-btn:hover {
    background: #e9e9e9;
}

.buy-btn {
    background: #ef394e;
    color: white;
    border: 1px solid #ef394e;
}

.buy-btn:hover {
    background: #d62b3e;
    border-color: #d62b3e;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .product-image-wrapper {
        height: 160px;
        padding: 10px;
    }
    
    .product-details {
        padding: 12px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .price {
        font-size: 15px;
    }
    
    .btn {
        padding: 7px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-image-wrapper {
        height: 140px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}