/* ===== UCATALOG – СОВРЕМЕННЫЙ ДИЗАЙН ===== */

#UCatalog_container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
}

/* ===== ТИПЫ ТРАНСПОРТА (3 плитки) ===== */
.ucatalog-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.ucatalog-type-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.ucatalog-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: #f59e0b;
}
.ucatalog-type-card .bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transition: all 0.4s ease;
}
.ucatalog-type-card:hover .bg {
    opacity: 0.25;
    transform: scale(1.05);
}
.ucatalog-type-card .icon {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    color: #f59e0b;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.ucatalog-type-card .label {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.ucatalog-type-card .action {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    background: #f59e0b;
    color: #0a0f16;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.ucatalog-type-card:hover .action {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ВКЛАДКИ (типы) ===== */
.UCatalog_nav_tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(255,255,255,0.06);
    padding-bottom: 4px;
    flex-wrap: wrap;
}
.UCatalog_nav_tabs li {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    border: 1px solid transparent;
    list-style: none;
}
.UCatalog_nav_tabs li:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}
.UCatalog_nav_tabs .active {
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
    border-color: rgba(245,158,11,0.2);
}

/* ===== БУКВЕННАЯ НАВИГАЦИЯ ===== */
.UCatalog_nav_letters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
}
.UCatalog_nav_letters li {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 30px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    list-style: none;
}
.UCatalog_nav_letters li:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}
.UCatalog_nav_letters .active {
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
    border-color: rgba(245,158,11,0.2);
}
.UCatalog_nav_letters #UCatalog_nav_letter_popular,
.UCatalog_nav_letters #UCatalog_nav_letter_all {
    padding: 6px 18px;
    font-weight: 600;
}

/* ===== ФИЛЬТР ПО ГОДАМ ===== */
.UCatalog_nav_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}
.UCatalog_nav_filters li {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 30px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    list-style: none;
}
.UCatalog_nav_filters li:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}
.UCatalog_nav_filters .active {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
    border-color: rgba(245,158,11,0.15);
}

/* ===== СЕТКА МАРОК / МОДЕЛЕЙ ===== */
#UCatalog_container .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    width: 100%;
    margin-top: 20px
}
.UCatalog_tab_element {
    flex: 0 0 25%;
  
    padding: 6px;
    box-sizing: border-box;
}
.UCatalog_tab_element > div {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 20px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.UCatalog_tab_element > div:hover {
    background: rgba(255,255,255,0.06);
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.UCatalog_tab_element > div > div {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.UCatalog_tab_element > div > div small {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    display: block;
    margin-top: 4px;
}

/* ===== МОДИФИКАЦИИ (карточки) ===== */
.UCatalog_modifications {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.25s;
    background: rgba(255,255,255,0.02);
    width: 100%;
    justify-content: flex-start;
}
.UCatalog_modifications:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(245,158,11,0.15);
}
.UCatalog_modifications .col-md-6,
.UCatalog_modifications .col-md-3 {
    text-align: left !important;
}
.UCatalog_modifications .btn_property,
.UCatalog_modifications .btn_primary {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 4px;
}
.UCatalog_modifications .btn_property:hover,
.UCatalog_modifications .btn_primary:hover {
    background: #f59e0b;
    color: #0a0f16;
    border-color: #f59e0b;
}
.UCatalog_modifications .btn_property {
    font-size: 1.2rem;
    padding: 2px 10px;
}
.UCatalog_modifications_property {
    display: none;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    border-radius: 0 0 16px 16px;
    margin-top: -12px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.02);
    width: 100%;
    text-align: left;
}
.UCatalog_modifications_property > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* ===== ДЕРЕВО (группы) ===== */
.UCatalog_tree {
    padding-right: 16px;
}
.UCatalog_tree ul {
    margin-left: 1.2em;
}
.UCatalog_tree > li:not(:only-child),
.UCatalog_tree li li {
    padding: 0.2em 0 0 1.2em;
    position: relative;
    cursor: pointer;
}
.UCatalog_tree li:not(:last-child) {
    border-left: 1px solid rgba(255,255,255,0.06);
}
.UCatalog_tree li li:before,
.UCatalog_tree > li:not(:only-child):before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1.1em;
    height: 0.7em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.UCatalog_tree li:last-child:before {
    width: calc(1.1em - 1px);
    border-left: 1px solid rgba(255,255,255,0.06);
}
.UCatalog_tree .UCatalog_tree_drop {
    position: absolute;
    left: -0.6em;
    top: 0.3em;
    width: 1em;
    height: 1em;
    line-height: 1em;
    text-align: center;
    background: #0a0f16;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.UCatalog_tree .UCatalog_tree_drop:hover {
    background: rgba(245,158,11,0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}
.UCatalog_tree .UCatalog_tree_drop + div + ul {
    display: none;
}
.UCatalog_tree .UCatalog_tree_drop_open + div + ul {
    display: block;
}
.UCatalog_tree .UCatalog_tree_caption {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s;
}
.UCatalog_tree .UCatalog_tree_caption:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* ===== ТАБЛИЦА ЗАПЧАСТЕЙ ===== */
#UCatalog_parts .table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 !important;
}
#UCatalog_parts .table th {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}
#UCatalog_parts .table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    vertical-align: middle;
    text-align: left;
}
#UCatalog_parts .table tr:hover td {
    background: rgba(255,255,255,0.03);
}
#UCatalog_parts .table td:last-child {
    text-align: right;
    white-space: nowrap;
}
#UCatalog_parts .btn_primary {
    display: inline-block;
    padding: 4px 14px;
    margin: 0 2px;
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 30px;
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
#UCatalog_parts .btn_primary:hover {
    background: #f59e0b;
    color: #0a0f16;
    border-color: #f59e0b;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.UCatalog_breadcrumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px 8px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.UCatalog_breadcrumbs > div {
    display: inline-block !important;
    padding: 6px 0 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.6) !important;
    transition: color 0.2s !important;
}
.UCatalog_breadcrumbs > div:hover {
    color: #f59e0b !important;
}
.UCatalog_breadcrumbs > div:not(:last-child)::after {
    content: '/' !important;
    margin: 0 8px !important;
    color: rgba(255,255,255,0.15) !important;
}
.UCatalog_breadcrumbs .btn_primary {
    margin-left: auto !important;
    display: inline-block !important;
    padding: 4px 16px !important;
    border: 1px solid rgba(245,158,11,0.15) !important;
    border-radius: 30px !important;
    background: rgba(245,158,11,0.08) !important;
    color: #f59e0b !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.UCatalog_breadcrumbs .btn_primary:hover {
    background: #f59e0b !important;
    color: #0a0f16 !important;
}

/* ===== КНОПКА ГАРАЖА ===== */
.UCatalog_garage_btn {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 30px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.UCatalog_garage_btn:hover {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
    border-color: #f59e0b;
}
.UCatalog_garage_btn + div {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: #0d1420;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 6px 0;
    display: none;
    z-index: 10;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.UCatalog_garage_btn + div > div {
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}
.UCatalog_garage_btn + div > div:last-child {
    border-bottom: none;
}
.UCatalog_garage_btn + div > div:hover {
    background: rgba(255,255,255,0.04);
    color: #f59e0b;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
#UCatalog_modal_products_info .modal-content,
#UCatalog_modal_garage .modal-content {
    background: #0d1420;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    color: #f0f4f8;
}
#UCatalog_modal_products_info .modal-body,
#UCatalog_modal_garage .modal-body {
    padding: 0;
}
#UCatalog_modal_garage .form-control {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
}
#UCatalog_modal_garage .btn_primary {
    background: #f59e0b;
    color: #0a0f16;
    border: none;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
#UCatalog_modal_garage .btn_primary:hover {
    background: #d97706;
}

/* ===== СООБЩЕНИЕ "НИЧЕГО НЕ НАЙДЕНО" ===== */
.ucatalog-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.5);
}
.ucatalog-empty-state i {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 16px;
    display: block;
}
.ucatalog-empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 8px 0;
}
.ucatalog-empty-state p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.ucatalog-empty-state .btn_back {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 30px;
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.ucatalog-empty-state .btn_back:hover {
    background: #f59e0b;
    color: #0a0f16;
    border-color: #f59e0b;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 991px) {
    .UCatalog_tab_element {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    .ucatalog-type-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .ucatalog-type-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .UCatalog_tab_element {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .UCatalog_nav_tabs li {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .UCatalog_nav_letters li {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .UCatalog_tab_element {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .UCatalog_nav_tabs {
        flex-wrap: wrap;
    }
    .UCatalog_nav_tabs li {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .UCatalog_modifications .row {
        flex-direction: column;
        align-items: stretch;
    }
    .UCatalog_modifications .col-md-6,
    .UCatalog_modifications .col-md-3,
    .UCatalog_modifications .col-md-2 {
        padding: 2px 0;
        text-align: left;
    }
}



/* Фикс для дерева и списка запчастей – размещение в одну строку на десктопе */
#UCatalog_container .row.tree-layout {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
}

#UCatalog_container .row.tree-layout > .col-md-5 {
    flex: 0 0 41.66666667% !important;
    max-width: 41.66666667% !important;
    padding-left: 0 !important;
    padding-right: 10px !important;
}

#UCatalog_container .row.tree-layout > .col-md-7 {
    flex: 0 0 58.33333333% !important;
    max-width: 58.33333333% !important;
    padding-left: 10px !important;
    padding-right: 0 !important;
}

#UCatalog_parts {
    width: 100% !important;
    overflow-x: auto !important;
}

/* На мобильных – в столбик */
@media (max-width: 991px) {
    #UCatalog_container .row.tree-layout {
        flex-wrap: wrap !important;
    }
    #UCatalog_container .row.tree-layout > .col-md-5,
    #UCatalog_container .row.tree-layout > .col-md-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #UCatalog_parts {
        margin-top: 20px !important;
    }
}





/* Сообщение об ошибке */
.ucatalog-error-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.6);
}
.ucatalog-error-state i {
    font-size: 3.5rem;
    color: #dc3545;
    margin-bottom: 16px;
    display: block;
}
.ucatalog-error-state h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 8px 0;
}
.ucatalog-error-state p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}
.ucatalog-error-state .btn_retry {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid #f59e0b;
    border-radius: 30px;
    background: #f59e0b;
    color: #0a0f16;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.ucatalog-error-state .btn_retry:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    
    
    
    
}