.products-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.products-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #1f2937;
}

.products-title i {
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.product-card:not(.purchased) {
    cursor: pointer;
}

.product-card:not(.purchased):hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: #8b5cf6;
}

.product-card.selected {
    border: 2px solid #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(16, 185, 129, 0.05));
}

.product-card.purchased {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    cursor: default;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-icon i {
    font-size: 28px;
    color: white;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
    margin: 12px 0;
}

.product-price span {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
}

.product-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.product-features li {
    padding: 6px 0;
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li i {
    color: #10b981;
    font-size: 12px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.product-checkbox {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.product-card.selected .product-checkbox {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.product-card.selected .product-checkbox i {
    color: white;
    font-size: 12px;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-result-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    width: 100%;
}

.view-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.btn-continue {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.skip-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.skip-link:hover {
    color: #8b5cf6;
}

.total-price {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 18px;
}

.total-price span {
    font-weight: 700;
    color: #8b5cf6;
    font-size: 24px;
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 20px;
    }
}

.product-result-header {
    text-align: center;
    margin-bottom: 30px;
}

.product-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.product-icon-large i {
    font-size: 48px;
    color: white;
}

.product-result-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.product-result-header p {
    color: #6b7280;
}

.product-result-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f3f4f6;
    border: none;
    border-radius: 12px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Кнопка "К основным результатам" - более темный фон */
.btn-secondary.btn-back {
    background: #4b5563;
    color: white;
}

.btn-secondary.btn-back:hover {
    background: #374151;
    transform: translateY(-2px);
}

/* Альтернативный вариант с градиентом */
.btn-secondary.btn-back-gradient {
    background: linear-gradient(135deg, #4b5563, #374151);
    color: white;
}

.btn-secondary.btn-back-gradient:hover {
    background: linear-gradient(135deg, #374151, #1f2937);
    transform: translateY(-2px);
}

@media print {
    .result-actions {
        display: none;
    }
    .product-result-content {
        box-shadow: none;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .result-actions {
        flex-direction: column;
    }

    .btn-secondary {
        justify-content: center;
    }
}

.processing-products {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.product-progress {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.product-progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.product-progress-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-progress-icon i {
    color: white;
    font-size: 20px;
}

.product-progress-name {
    font-size: 18px;
    font-weight: 600;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.product-status {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-status i {
    font-size: 16px;
}

.status-success {
    color: #10b981;
}

.status-error {
    color: #ef4444;
}

.status-loading {
    color: #8b5cf6;
    animation: spin 1s linear infinite;
}

.complete-message {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #d1fae5;
    border-radius: 16px;
    color: #065f46;
}

.btn-complete {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}