/* طراحی مدرن کارت‌های محصول */
.nakhl-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.nakhl-product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.nakhl-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.nakhl-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.05);
}

.nakhl-product-card:hover::before {
    transform: scaleX(1);
}

.nakhl-product-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.nakhl-product-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.nakhl-product-card:hover .nakhl-product-image {
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.nakhl-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.nakhl-product-card:hover .nakhl-product-image img {
    transform: scale(1.1);
}

.nakhl-product-info {
    flex: 1;
}

.nakhl-product-name {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nakhl-product-name a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.nakhl-product-name a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nakhl-product-desc {
    margin: 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.nakhl-product-desc::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: #cbd5e0;
    border-radius: 50%;
}

/* بخش قیمت‌ها */
.nakhl-product-prices {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.nakhl-product-prices::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
}

.nakhl-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.nakhl-price-row:last-child {
    margin-bottom: 0;
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
    margin-top: 8px;
}

.nakhl-price-label {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nakhl-price-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.nakhl-price-consumer {
    font-size: 15px;
    color: #e53e3e;
    text-decoration: line-through;
    opacity: 0.8;
}

.nakhl-price-nakhl {
    font-size: 22px;
    color: #38a169;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(56, 161, 105, 0.2);
}

.nakhl-price-wholesale {
    font-size: 18px;
    color: #2b6cb0;
    font-weight: 600;
}

/* دکمه‌ها */
.nakhl-product-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.nakhl-order-btn {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.nakhl-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.nakhl-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(72, 187, 120, 0.4);
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.nakhl-order-btn:hover::before {
    left: 100%;
}

.nakhl-wholesale-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    min-width: 0;
}

.nakhl-wholesale-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.nakhl-wholesale-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.nakhl-wholesale-btn:hover::before {
    left: 100%;
}

/* استایل‌های ویژه */
.nakhl-province-badge {
    display: inline-block;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    border: 1px solid #cbd5e0;
}

.nakhl-stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    z-index: 2;
}

.nakhl-out-of-stock {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
}

/* ریسپانسیو برای تبلت */
@media (max-width: 1024px) {
    .nakhl-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 25px;
        padding: 20px;
    }
    
    .nakhl-product-card {
        padding: 25px;
    }
    
    .nakhl-product-image {
        width: 100px;
        height: 100px;
    }
    
    .nakhl-product-name {
        font-size: 18px;
    }
    
    .nakhl-price-nakhl {
        font-size: 20px;
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .nakhl-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .nakhl-product-card {
        padding: 20px;
        margin: 0;
    }
    
    .nakhl-product-card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nakhl-product-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .nakhl-product-info {
        width: 100%;
    }
    
    .nakhl-price-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .nakhl-product-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .nakhl-order-btn,
    .nakhl-wholesale-btn {
        flex: none;
        width: 100%;
        padding: 18px 20px;
        font-size: 16px;
    }
}

/* ریسپانسیو برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .nakhl-products-grid {
        padding: 10px;
        gap: 15px;
    }
    
    .nakhl-product-card {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    .nakhl-product-name {
        font-size: 18px;
    }
    
    .nakhl-product-desc {
        font-size: 13px;
    }
    
    .nakhl-price-nakhl {
        font-size: 20px;
    }
    
    .nakhl-price-wholesale {
        font-size: 16px;
    }
}

/* انیمیشن‌های ظریف */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nakhl-product-card {
    animation: fadeInUp 0.6s ease-out;
}

/* افکت‌های مدرن */
/*.nakhl-product-card::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: -50%;*/
/*    left: -50%;*/
/*    width: 200%;*/
/*    height: 200%;*/
/*    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);*/
/*    opacity: 0;*/
/*    transition: opacity 0.4s ease;*/
/*}*/

.nakhl-product-card:hover::after {
    opacity: 1;
}