/* استایل‌های مدرن برای بخش محصولات */
.products-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.products-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.products-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.products-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.products-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* فیلترهای مدرن */
.products-filter-section {
    margin-bottom: 3rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: var(--lighter);
    padding: 1rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    max-width: 800px;
    margin: 0 auto;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-tab.active {
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.filter-tab.active::before {
    opacity: 1;
}

.filter-tab:not(.active):hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
    color: var(--primary);
}

.filter-tab i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.filter-tab.active i {
    transform: scale(1.1);
}

/* گرید محصولات مدرن */
.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card-modern {
    background: var(--lighter);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(30px);
}

.product-card-modern[data-aos] {
    opacity: 1;
    transform: translateY(0);
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* نشان محصول ویژه */
.product-badge-modern {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--secondary), var(--warning));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* بخش تصویر محصول */
.product-image-modern {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

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

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

.category-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.1) 0%,
        rgba(30, 64, 175, 0.05) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-overlay i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.7;
}

.product-card-modern:hover .category-overlay {
    opacity: 1;
}

/* اورلی تعاملی */
.product-overlay-modern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.9) 0%,
        rgba(30, 64, 175, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card-modern:hover .product-overlay-modern {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.product-card-modern:hover .overlay-actions {
    transform: translateY(0);
}

.overlay-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
}

.overlay-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.overlay-btn.primary {
    background: var(--secondary);
}

.overlay-btn.primary:hover {
    background: var(--secondary-dark);
}

/* محتوای محصول */
.product-content-modern {
    padding: 2rem;
}

.product-category-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    width: fit-content;
}

.product-title-modern {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description-modern {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* مشخصات فنی */
.product-specs-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.85rem;
}

.spec-item i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* فوتر محصول */
.product-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.product-price-modern {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-currency {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.product-actions-modern {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.action-btn.secondary {
    background: var(--text-light);
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* پیام عدم وجود محصول */
.no-products-modern {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-products-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--border-light), var(--border));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--text-lighter);
    font-size: 2.5rem;
}

.no-products-modern h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.no-products-modern p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* دکمه مشاهده همه */
.products-cta {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: right 0.5s ease;
}

.view-all-btn:hover::before {
    right: 100%;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    gap: 1.25rem;
}

/* رسپانسیو */
@media (max-width: 1024px) {
    .products-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .product-specs-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-title {
        font-size: 2rem;
    }
    
    .products-subtitle {
        font-size: 1.1rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .products-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-footer-modern {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .product-actions-modern {
        justify-content: center;
    }
    
    .product-content-modern {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-header {
        margin-bottom: 2rem;
    }
    
    .products-title {
        font-size: 1.8rem;
    }
    
    .product-image-modern {
        height: 200px;
    }
    
    .overlay-actions {
        flex-direction: column;
    }
    
    .view-all-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* پشتیبانی از تم تاریک */
@media (prefers-color-scheme: dark) {
    .products-section {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .products-title {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .filter-tabs {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .filter-tab {
        color: #e2e8f0;
    }
    
    .filter-tab:not(.active):hover {
        color: #60a5fa;
    }
    
    .product-card-modern {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .product-title-modern {
        color: #f1f5f9;
    }
    
    .product-description-modern {
        color: #cbd5e1;
    }
    
    .spec-item {
        color: #e2e8f0;
    }
    
    .no-products-modern h3 {
        color: #f1f5f9;
    }
    
    .no-products-modern p {
        color: #94a3b8;
    }
}


/* استایل دکمه تماس برای استعلام قیمت */
.contact-action {
    width: 100%;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: linear-gradient(135deg, var(--success), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    min-height: 70px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.contact-text {
    font-size: 0.95rem;
    display: block;
}

.contact-sub {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
    display: block;
}

/* افکت شناور */
.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.contact-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--success));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

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

.contact-btn:hover i {
    transform: scale(1.1);
    animation: ring 0.5s ease;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(15deg) scale(1.1); }
    75% { transform: rotate(-15deg) scale(1.1); }
}

/* استایل قیمت لبل */
.price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .contact-btn {
        padding: 0.6rem 0.4rem;
        min-height: 65px;
    }
    
    .contact-text {
        font-size: 0.85rem;
    }
    
    .contact-sub {
        font-size: 0.65rem;
    }
    
    .contact-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-btn {
        min-height: 60px;
        padding: 0.5rem 0.3rem;
    }
    
    .contact-text {
        font-size: 0.8rem;
    }
}

/* پشتیبانی از تم تاریک */
@media (prefers-color-scheme: dark) {
    .contact-btn {
        background: linear-gradient(135deg, #10b981, #059669);
    }
    
    .contact-btn:hover {
        background: linear-gradient(135deg, #059669, #10b981);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    
    .price-label {
        color: #94a3b8;
    }
}