/* Product Categories Banner */
.product-categories-banner {
    background: #da291c;
    padding: 7.5px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.category-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

/* Catalog Hero */
.catalog-hero {
    padding: 110px 0 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.catalog-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.catalog-hero-content p {
    font-size: 20px;
    color: #707372;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero text lines */
.hero-text-line1 {
    white-space: nowrap;
    margin-bottom: 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-text-line2 {
    text-align: center;
    white-space: nowrap;
    width: 100%;
    display: block;
    margin: 10px auto 0;
}

/* Filters */
.filters {
    padding: 10px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filters-info-banner {
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.filters-info-banner i {
    font-size: 20px;
    flex-shrink: 0;
}

.filters-content {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 колонки */
    gap: 40px;
    align-items: start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.filter-group select {
    padding: 15px 18px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: #f9fafb;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

/* Поле поиска */
#search-query {
    padding: 15px 18px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
    font-weight: 500;
}

#search-query:focus {
    outline: none;
    border-color: #da291c;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

#search-query.has-value {
    border-color: #da291c;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-group select:focus {
    outline: none;
    border-color: #da291c;
    background-color: white; /* fix: сохраняем фон без перерисовки background-image */
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-group select:hover:not(:focus) {
    border-color: #9ca3af;
    background-color: white; /* fix: не затираем background-image со стрелкой */
}

/* Сохраняем красную обводку при наведении во время фокуса/активации */
.filter-group select:focus:hover,
.filter-group select:active,
.filter-group select:focus-visible {
    border-color: #da291c;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Сохраняем красную обводку, если у селекта выбрано значение */
.filter-group select.has-value {
    border-color: #da291c;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Pressure Range Slider */
.pressure-range-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.range-slider {
    position: relative;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 15px 0; /* Уменьшено с 20px 0 на 15px 0 для более компактной высоты */
}

.range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    border: none;
    outline: none;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #da291c;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.range-input::-moz-range-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #da291c;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.range-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px; /* Фиксируем высоту как у select */
    padding: 0 18px; /* Без вертикальных отступов, как у ячейки */
    box-sizing: border-box;
    background: #f9fafb;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: #da291c;
    background: white;
}

.range-number-input {
    height: 40px; /* Было 100% — уменьшаем поле визуально */
    padding: 0 12px; /* Немного компактнее отступы */
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #da291c;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    min-width: 64px; /* Чуть меньше минимальная ширина */
}

.range-number-input:focus {
    outline: none;
    border-color: #da291c;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.range-number-input.error {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.input-separator {
    color: #707372;
    font-weight: 600;
    font-size: 18px;
}

.input-unit {
    color: #707372;
    font-weight: 500;
    font-size: 16px;
}

/* Стили для вкладок */
.catalog-tabs {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px;
    gap: 4px;
}

.tab-button {
    flex: 1;
    padding: 18px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #707372;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
}

.tab-button:hover {
    background: rgba(220, 38, 38, 0.05);
    color: #da291c;
    transform: translateY(-1px);
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.05));
    color: #da291c;
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), transparent);
    border-radius: 8px;
    pointer-events: none;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #da291c, transparent);
    border-radius: 2px;
}

.tab-button i {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(220, 38, 38, 0.1));
}

.tab-button.active i {
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

.tab-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    transform: none;
}

.tab-button:disabled:hover {
    background: #f8fafc;
    color: #707372;
    transform: none;
}

.tabs-content {
    position: relative;
    min-height: 200px;
    background: white;
}

.tab-content {
    display: none;
    padding: 0;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Обновляем стили контейнеров */
.catalog-table-container {
    margin-top: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

.catalog-cards-container {
    margin-top: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 30px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px 0;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #707372;
}

.loading-message i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #da291c;
}

.loading-message p {
    font-size: 16px;
    margin: 0;
}

/* Responsive для вкладок */
@media (max-width: 768px) {
    .tabs-header {
        padding: 3px;
        gap: 3px;
    }
    
    .tab-button {
        padding: 15px 20px;
        font-size: 14px;
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button i {
        font-size: 16px;
    }
    
    .catalog-cards-container {
        padding: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Убираем старые стили filters-action */
.filters-action {
    display: none;
}

/* Responsive Design */
@media (max-width: 1366px) {
    .filters-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 30px;
    }
    
    .filter-group label {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .catalog-hero-content h1 {
        font-size: 36px;
    }
    
    .catalog-hero-content p {
        font-size: 18px;
    }
    
    .filters-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }
    
    .filter-group select {
        min-width: auto;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 14px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .item-details {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .catalog-hero-content h1 {
        font-size: 28px;
    }
    
    .filters-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .filter-group label {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .filter-group select {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .item-content {
        padding: 20px;
    }
    
    .item-content h3 {
        font-size: 20px;
    }
    
    .item-image {
        padding: 30px 20px;
    }
    
    .item-image i {
        font-size: 36px;
    }
}

/* Filter animations */
.catalog-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.catalog-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Loading animation */
.catalog-item.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Filter button styles */
.filter-reset {
    background: #707372;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: #475569;
}

/* Category badges */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.category-badge.consulting {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-badge.marketing {
    background: #fef3c7;
    color: #d97706;
}

.category-badge.it {
    background: #dcfce7;
    color: #16a34a;
}

.category-badge.legal {
    background: #f3e8ff;
    color: #9333ea;
}

.category-badge.training {
    background: #fef2f2;
    color: #da291c;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #da291c;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #da291c;
}

.modal-content textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-content button {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, #da291c, #b8241a);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background: linear-gradient(135deg, #b8241a, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
} 

/* Catalog Table */
.catalog-table-container {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-header {
    display: grid;
    grid-template-columns: 2.4fr 0.8fr 1.1fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.6fr 1fr;
    background: linear-gradient(135deg, #707372, #4b5563);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 150px;
}

.header-cell {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    text-align: center;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    height: 150px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.header-cell:last-child {
    border-right: none;
}

/* Стили для ячеек с иконками */
.header-cell-with-icon {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    padding: 0;
    margin: 0;
    width: 100%;
    align-items: stretch;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    text-align: center;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    align-self: stretch;
}

.header-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    align-self: stretch;
}

.header-bottom-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    text-align: center;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    align-self: stretch;
}

/* Для случая когда в нижнем блоке несколько элементов */
.header-bottom-bottom .header-measure {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.header-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.header-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    display: block;
    padding: 0;
    margin: 0;
}

/* Увеличиваем иконку диаметр оплета на 20% */
img[src="public/icons_table/diameter-outer.svg"] {
    width: 38.4px; /* 32px * 1.2 */
    height: 38.4px; /* 32px * 1.2 */
}

/* Увеличиваем иконку наружный диаметр на 20% */
img[src="public/icons_table/diameter-braid.svg"] {
    width: 38.4px; /* 32px * 1.2 */
    height: 38.4px; /* 32px * 1.2 */
}

/* Увеличиваем иконку фитинги в 2 раза + еще 20% */
img[src="public/icons_table/fitting.svg"] {
    width: 76.8px; /* 64px * 1.2 */
    height: 76.8px; /* 64px * 1.2 */
}

.header-unit {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
    text-align: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.header-measure {
    font-size: 16px; /* Увеличено с 12px до 16px */
    font-weight: 500;
    color: #d1d5db;
    text-align: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Responsive design для таблицы */
@media (max-width: 1366px) {
    .table-header {
        grid-template-columns: repeat(11, minmax(120px, 1fr));
        overflow-x: auto;
    }
    
    .catalog-table-container {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .table-header {
        height: 120px;
    }
    
    .header-cell {
        height: 120px;
    }
    
    .header-top,
    .header-middle,
    .header-bottom-bottom {
        height: 40px;
    }
    
    .header-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Увеличиваем иконку диаметр оплета на 20% для мобильных */
    img[src="public/icons_table/diameter-outer.svg"] {
        width: 28.8px; /* 24px * 1.2 */
        height: 28.8px; /* 24px * 1.2 */
    }
    
    /* Увеличиваем иконку наружный диаметр на 20% для мобильных */
    img[src="public/icons_table/diameter-braid.svg"] {
        width: 28.8px; /* 24px * 1.2 */
        height: 28.8px; /* 24px * 1.2 */
    }
    
    /* Увеличиваем иконку фитинги в 2 раза + еще 20% для мобильных */
    img[src="public/icons_table/fitting.svg"] {
        width: 57.6px; /* 48px * 1.2 */
        height: 57.6px; /* 48px * 1.2 */
    }
    
    .header-title {
        font-size: 12px;
    }
    
    .header-unit {
        font-size: 14px;
    }
    
    .header-measure {
        font-size: 14px; /* Увеличено с 10px до 14px для мобильных */
    }
} 

/* Responsive для кнопок */
@media (max-width: 768px) {
    .filters-action {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .btn-download-catalog,
    .btn-show-cards {
        justify-content: center;
        width: 100%;
    }
} 

/* Стили для тела таблицы */
.table-body {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
}

.table-row {
    display: grid;
    grid-template-columns: 2.4fr 0.8fr 1.1fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.6fr 1fr;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
    min-height: 45px;
    align-items: center;
}

.table-row:hover {
    background-color: #f9fafb;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 8px 8px; /* Уменьшено с 12px до 8px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
    min-height: 45px; /* Уменьшено с 60px до 45px */
    box-sizing: border-box;
}

.table-cell:last-child {
    border-right: none;
}

/* Специальные стили для ячеек с диаметром */
.diameter-info {
    display: none;
}

.diameter-mm {
    font-weight: 600;
    color: #1f2937;
}

.diameter-in {
    font-size: 12px;
    color: #707372;
}

/* Стили для кодов и названий */
.hose-type {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.3;
}

.hose-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #da291c;
    font-size: 13px;
}

/* Стили для числовых значений */
.braid-diameter,
.outer-diameter,
.working-pressure,
.burst-pressure,
.bend-radius,
.weight {
    font-weight: 600;
    color: #1f2937;
}

.temperature-values-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
}

.temperature-values-wrapper .temperature-min-value,
.temperature-values-wrapper .temperature-max-value {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
}

.temperature-values-wrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
    transform: translateX(-50%);
}

/* Стили для фитингов */
.fitting-code {
    font-family: inherit; /* Убираем Courier New, используем основной шрифт */
    font-size: 14px; /* Увеличиваем с 12px до 14px как у остальных */
    color: #1f2937; /* Меняем с #707372 на #1f2937 как у остальных */
    font-weight: 600; /* Увеличиваем с 500 до 600 как у остальных */
}

/* Сообщение об отсутствии данных */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #707372;
}

.no-results-message i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #d1d5db;
}

.no-results-message h3 {
    color: #374151;
    margin-bottom: 10px;
    font-size: 18px;
}

.no-results-message p {
    color: #707372;
    font-size: 14px;
    margin: 0;
}

/* Responsive для таблицы */
@media (max-width: 1366px) {
    .table-header,
    .table-row {
        grid-template-columns: 2fr 0.8fr 1.1fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.6fr 1fr;
    }
    
    .header-title {
        font-size: 12px;
    }
    
    .table-cell {
        font-size: 13px;
        padding: 10px 6px;
    }
}

@media (max-width: 768px) {
    .table-header {
        height: 120px;
    }
    
    .header-cell {
        height: 120px;
    }
    
    .header-top,
    .header-middle,
    .header-bottom-bottom {
        height: 40px;
    }
    
    .header-title {
        font-size: 11px;
    }
    
    .table-cell {
        font-size: 12px;
        padding: 6px 4px; /* Уменьшено с 8px до 6px */
        min-height: 35px; /* Уменьшено с 50px до 35px */
    }
    
    .table-row {
        min-height: 35px; /* Уменьшено с 50px до 35px */
    }
    
    /* Мобильные стили для фитингов */
    .fitting-code {
        font-size: 12px; /* Соответствует размеру шрифта других колонок на мобильных */
    }
} 

/* Разделитель между min/max только в колонке "Температура" */
.table-header > .header-cell:nth-child(3) .header-bottom-bottom {
    position: relative;
}

.table-header > .header-cell:nth-child(3) .header-bottom-bottom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

/* Выравнивание min/max по центру своих половин */
.table-header > .header-cell:nth-child(3) .header-bottom-bottom .header-measure {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-header > .header-cell:nth-child(3) .header-bottom-bottom .header-measure:first-child {
    justify-content: center;
    width: 50%;
}

.table-header > .header-cell:nth-child(3) .header-bottom-bottom .header-measure:last-child {
    justify-content: center;
    width: 50%;
}

/* Разделитель между DN и in только в колонке "Внутрен. диаметр" */
.table-header > .header-cell:nth-child(4) .header-bottom-bottom {
    position: relative;
}

.table-header > .header-cell:nth-child(4) .header-bottom-bottom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.table-header > .header-cell:nth-child(4) .header-bottom-bottom .header-measure {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-header > .header-cell:nth-child(4) .header-bottom-bottom .header-measure:first-child {
    justify-content: center;
    width: 50%;
}

.table-header > .header-cell:nth-child(4) .header-bottom-bottom .header-measure:last-child {
    justify-content: center;
    width: 50%;
}

/* Стили для контейнера значений диаметра в строках таблицы */
.diameter-values-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
}

.diameter-values-wrapper .diameter-dn-value,
.diameter-values-wrapper .diameter-in-value {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
}

/* Разделитель между DN и in в строках таблицы */
.diameter-values-wrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
    transform: translateX(-50%);
} 

/* noUiSlider styles override */
#pressure-range{ margin: 18px 0 6px; }
.noUi-target{ border:none; box-shadow:none; }
.noUi-connects{ background:#e5e7eb; height:6px; border-radius:3px; }
.noUi-connect{ background:#da291c; }
.noUi-horizontal .noUi-handle{ width:20px; height:20px; border-radius:50%; border:2px solid #fff; background:#da291c; box-shadow:0 2px 8px rgba(0,0,0,0.15); top:-8px; }
.noUi-handle:before,.noUi-handle:after{ display:none; }
.noUi-touch-area{ cursor:grab; }
.noUi-handle:active .noUi-touch-area{ cursor:grabbing; }

/* Inline pressure values */
.pressure-values-inline{ display:flex; align-items:center; gap:8px; padding:10px 12px; background:#f9fafb; border:2px solid #d1d5db; border-radius:8px; font-weight:600; color:#374151; width:max-content; }
.pressure-values-inline #pressure-min-display,
.pressure-values-inline #pressure-max-display{ color:#da291c; min-width:48px; text-align:center; }
.pressure-values-inline .range-unit{ color:#707372; font-weight:500; } 

/* Стили для карточек товаров */
.catalog-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #da291c;
}

.card-header {
    background: linear-gradient(135deg, #da291c 0%, #b8241a 100%);
    color: white;
    padding: 15px;
    position: relative;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.card-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #707372;
    font-size: 48px;
    height: 100%;
}

.card-image-placeholder i {
    margin-bottom: 10px;
    opacity: 0.5;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item i {
    width: 18px;
    color: #da291c;
    font-size: 13px;
    flex-shrink: 0;
}

.spec-item span {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    flex-grow: 1;
}

.spec-value {
    font-weight: 700;
    color: #1e293b;
}

.card-footer {
    padding: 15px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.card-footer .btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #da291c 0%, #b8241a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-footer .btn:hover {
    background: linear-gradient(135deg, #b8241a 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Модальное окно для деталей товара */
.product-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.product-modal-content {
    background-color: white;
    margin: 2% auto 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 85%;
    max-width: 1200px;
    max-height: 96vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-modal-header {
    background: linear-gradient(135deg, #da291c 0%, #b8241a 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.product-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.product-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.product-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.product-modal-body {
    padding: 20px;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.product-image-section {
    text-align: center;
}

.product-image {
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-detail {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #da291c;
}

.spec-detail h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #707372;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-detail p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.product-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.product-description-column {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.product-description-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #da291c 0%, #b8241a 100%);
}

.product-description-column h3 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

/* Убираем красную линию под заголовками */
/* .product-description-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #da291c 0%, #b8241a 100%);
    border-radius: 2px;
} */

.product-description-column div {
    margin: 0;
    color: #374151;
    line-height: 1.7;
    font-size: 14px;
}

.product-description-column div strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsive для двухколоночной структуры */
@media (max-width: 992px) {
    .product-description {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-description-column {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .product-description-column {
        padding: 18px;
    }
    
    .product-description-column h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .product-description-column div {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Responsive для карточек */
@media (max-width: 1366px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-section img,
    .card-image-placeholder {
        height: 250px !important;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-card {
        margin-bottom: 20px;
    }
    
    .product-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .product-modal-header {
        padding: 20px;
    }
    
    .product-modal-body {
        padding: 20px;
    }
    
    .product-specs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
} 

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.product-basic-info h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
}

.product-code,
.product-category {
    margin: 5px 0;
    color: #707372;
    font-size: 14px;
}

.product-specifications-table {
    margin-top: 20px;
}

.product-specifications-table h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.specs-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.specs-header {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    background: linear-gradient(135deg, #707372, #4b5563);
    color: white;
    font-weight: 600;
    height: 100px;
}

.specs-header-cell {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    text-align: center;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.specs-header-cell:last-child {
    border-right: none;
}

.specs-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    text-align: center;
    height: 32px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-header-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    height: 32px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.specs-header-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    text-align: center;
    height: 32px;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #d1d5db;
}

.specs-header-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    display: block;
}

.specs-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border-bottom: 1px solid #e5e7eb;
    min-height: 50px;
    align-items: center;
    background: white;
}

.specs-cell {
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    min-height: 50px;
    box-sizing: border-box;
}

.specs-cell:last-child {
    border-right: none;
}

.specs-cell .diameter-values-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
}

.specs-cell .diameter-values-wrapper .diameter-dn-value,
.specs-cell .diameter-values-wrapper .diameter-in-value {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
}

/* Разделитель между DN и in в заголовке */
.specs-header-cell:first-child .specs-header-bottom {
    position: relative;
}

.specs-header-cell:first-child .specs-header-bottom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.specs-header-cell:first-child .specs-header-bottom span {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive для таблицы спецификаций */
@media (max-width: 768px) {
    .specs-header {
        grid-template-columns: repeat(4, 1fr);
        height: 180px;
    }
    
    .specs-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .specs-header-top {
        font-size: 10px;
        height: 60px;
    }
    
    .specs-header-middle {
        height: 60px;
    }
    
    .specs-header-bottom {
        height: 60px;
        font-size: 11px;
    }
    
    .specs-header-icon {
        width: 20px;
        height: 20px;
    }
    
    .specs-cell {
        font-size: 12px;
        padding: 8px 4px;
        min-height: 40px;
    }
} 

/* Category Cards */
.category-cards {
    padding: 30px 0;
    background: #f8fafc;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 10px;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #da291c;
}

.category-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-content {
    padding: 0;
    position: relative;
}

.category-card-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
    text-align: center;
}

.category-card-content p {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.category-card-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Блок под текст — продолжение изображения: размытие + градиент */
.category-card-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 70%, rgba(255,255,255,0.85) 100%);
    filter: blur(2px);
    z-index: 0;
}

.category-card-content > * {
    position: relative;
    z-index: 1;
}

/* Внутренние отступы для текста внизу */
.category-card-content { padding-bottom: 16px; }
.category-card-content p { padding: 16px 20px 16px; }

/* Иконка скачивания в правом нижнем углу - удалена */

/* Ссылки в карточке категории */
.category-selection-link {
    text-align: center;
    padding: 0 20px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selection-table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #da291c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(218, 41, 28, 0.1);
    border: 1px solid rgba(218, 41, 28, 0.2);
    transition: all 0.3s ease;
}

.selection-table-link:hover {
    background: #da291c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 41, 28, 0.3);
}

.selection-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #707372;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(112, 115, 114, 0.1);
    border: 1px solid rgba(112, 115, 114, 0.2);
    transition: all 0.3s ease;
}

.selection-filter-link:hover {
    background: #707372;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 115, 114, 0.3);
}

/* Ряд кнопок Просмотреть/Скачать в карточке */
.category-actions-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0 20px 16px 20px;
}
.category-actions-row .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.category-actions-row .btn i { font-size: 14px; }
.category-actions-row .btn.btn-secondary { 
    background: rgba(112, 115, 114, 0.1);
    color: #707372;
    border: 1px solid rgba(112, 115, 114, 0.2);
    transition: all 0.3s ease;
}
.category-actions-row .btn.btn-secondary:hover { 
    background: #707372;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 115, 114, 0.3);
}
.category-actions-row .btn.btn-primary { 
    background: rgba(218, 41, 28, 0.1);
    color: #da291c;
    border: 1px solid rgba(218, 41, 28, 0.2);
    transition: all 0.3s ease;
}
.category-actions-row .btn.btn-primary:hover { 
    background: #da291c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 41, 28, 0.3);
}

/* Responsive для карточек категорий */
@media (max-width: 1024px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-cards {
        padding: 20px 0;
    }
    
    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card-image {
        height: 150px;
    }
    
    .category-card-content {
        padding: 20px;
    }
    
    .category-card-content h4 {
        font-size: 18px;
    }
    
    .category-card-content p {
        font-size: 13px;
    }
    
    .selection-table-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .selection-filter-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}