/* Digital Products Section */
.digital-products {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
}

.products-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.2rem;
    color: #94a3b8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image-placeholder {
    font-size: 5rem;
    opacity: 0.3;
}

.product-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

[dir="rtl"] .product-category {
    right: auto;
    left: 1rem;
}

.category-plugin {
    background: rgba(99, 102, 241, 0.9);
    color: white;
}

.category-theme {
    background: rgba(139, 92, 246, 0.9);
    color: white;
}

.category-solution {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e4e7eb;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-details {
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-details::after {
    content: '→';
    transition: transform 0.3s ease;
}

[dir="rtl"] .view-details::after {
    content: '←';
}

.product-card:hover .view-details::after {
    transform: translateX(5px);
}

[dir="rtl"] .product-card:hover .view-details::after {
    transform: translateX(-5px);
};
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.product-card {
    cursor: pointer;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    color: #e4e7eb;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
}

/* Problem Request Popup */
.problem-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.problem-popup.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.problem-popup .form-group {
    margin-bottom: 1.5rem;
}

.problem-popup .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e4e7eb;
    font-weight: 600;
}

.problem-popup .form-group input,
.problem-popup .form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: rgba(10, 14, 26, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: #e4e7eb;
    font-size: 1rem;
    transition: all 0.3s;
}

.problem-popup .form-group input:focus,
.problem-popup .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.problem-popup .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.problem-popup .form-group input[type="file"] {
    padding: 0.5rem;
}

.file-info {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

#filePreview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.file-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .file-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    font-size: 2rem;
}

.file-preview-item .remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-problem {
    background: rgba(99, 102, 241, 0.1);
    color: #e4e7eb;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.btn-problem:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* Order Product Popup */
.order-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
    width: 90%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.order-popup.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .problem-popup,
    .order-popup {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-contact,
    .btn-problem {
        width: 100%;
        justify-content: center;
    }
}