/* تصميم قسم أحدث الأجهزة */

.latest-products-section {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
}

.latest-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    text-align: center;
}

.product-category {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #667eea;
}

.old-price {
    font-size: 1.1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    text-align: right;
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.product-feature i {
    color: #10b981;
    font-size: 12px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.installment-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 12px;
    margin-top: 15px;
    text-align: center;
}

.installment-info .installment-text {
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}

.installment-info .installment-logo {
    color: #f59e0b;
    font-size: 16px;
    margin-left: 5px;
}

/* التصميم المتجاوب */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .latest-products-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-name {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .product-category {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .current-price {
        font-size: 1rem;
        font-weight: 700;
    }
    
    .old-price {
        font-size: 0.8rem;
    }
    
    .discount {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .product-features {
        display: none;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .action-btn i {
        font-size: 12px;
    }
    
    .installment-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .latest-products-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-name {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    
    .product-category {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
    
    .current-price {
        font-size: 0.9rem;
    }
    
    .old-price {
        font-size: 0.7rem;
    }
    
    .discount {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 6px;
    }
    
    .action-btn i {
        font-size: 10px;
    }
} 