/* nagrev.css - Стили для калькулятора нагрева */

.calculator-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.calculator-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.calculator-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.calculator-form .form-group {
    margin-bottom: 16px;
}

.calculator-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.calculator-form label small {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.calculator-form .form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.calculator-form .form-control:focus {
    outline: none;
    border-color: #007aff;
}

.calculator-form .form-control[style*="width:100px;"] {
    width: 100px !important;
}

.validation-error {
    color: #dc3545;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
}

.loader {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007aff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Результат */
.calculator-result {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #007aff20;
}

.result-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.result-power {
    font-size: 56px;
    font-weight: 700;
    color: #007aff;
    text-align: center;
    padding: 16px 0;
    line-height: 1;
}

.result-details {
    margin: 16px 0;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.result-details p {
    margin: 4px 0;
}

.result-details strong {
    color: #333;
}

.result-details span {
    font-weight: 600;
    color: #007aff;
}

.result-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Товары после расчета */
.products-section {
    margin-top: 24px;
}

.products-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-results p {
    margin-bottom: 16px;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Карточка товара */
.product-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.product-item .product-image {
    text-align: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-item .product-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.product-item .product-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.product-item .product-title a {
    color: #333;
    text-decoration: none;
}

.product-item .product-title a:hover {
    color: #007aff;
}

.product-item .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 8px 0;
    font-size: 13px;
}

.product-item .product-meta .model {
    color: #666;
}

.product-item .product-meta .availability {
    color: #34c759;
    font-weight: 600;
    font-size: 12px;
}

.product-item .product-specs {
    font-size: 13px;
}

.product-item .product-specs p {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
}

.product-item .product-specs p span:first-child {
    color: #666;
}

.product-item .product-specs p span:last-child {
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

.product-item .product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.product-item .product-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}

@media (max-width: 480px) {
    .calculator-header h1 { font-size: 22px; }
    .result-power { font-size: 40px; }
    .product-item .product-actions { flex-direction: column; }
    .calculator-form .form-control[style*="width:100px;"] {
        width: 100% !important;
    }
}