@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --color-blue: var(--cp-primary, #2b7de9);
    --color-blue-dark: var(--cp-primary-2, #1a65d0);
    --color-green: var(--cp-accent, #00c47d);
    --color-dark: var(--cp-text, #0f1c2e);
    --color-light: var(--cp-surface-soft, #ecf0f1);
    --color-white: #ffffff;
    --color-gray: var(--cp-muted, #6b7a8d);
    --color-gray-light: var(--cp-bg, #f7faff);
    --bg-light: var(--cp-bg, #f7faff);
    --shadow: var(--cp-shadow-soft, 0 4px 16px rgba(15, 28, 46, 0.08), 0 1px 4px rgba(15, 28, 46, 0.05));
    --shadow-hover: var(--cp-shadow-card, 0 12px 32px rgba(43, 125, 233, 0.18), 0 4px 12px rgba(15, 28, 46, 0.1));
    --shadow-lg: 0 24px 48px rgba(15, 28, 46, 0.15);
    --border-radius: var(--cp-radius, 10px);
    --border-radius-sm: 6px;
    --border-radius-lg: var(--cp-radius-lg, 18px);
    --gradient-blue: linear-gradient(135deg, var(--cp-primary, #2563eb) 0%, var(--cp-primary-2, #1d4ed8) 100%);
    --gradient-dark: linear-gradient(135deg, var(--cp-text, #0f1c2e) 0%, #1e2d40 100%);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-dark);
    background: #f7faff;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хлебные крошки */
/* Hero секция */
.hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0 30px;
    min-height: 280px;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 50px 40px;
    color: white;
}

.hero__title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero__count {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
}

/* Основной контент */
.catalog {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 0 0 50px;
}

/* Сайдбар */
.sidebar {
    width: 280px;
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 24px;
    align-self: start;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: sticky;
    top: 20px;
    min-width: 0;
}

.sidebar__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-blue);
    color: var(--color-dark);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Секции фильтров */
.filter-section {
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.filter-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(14, 165, 164, 0.04));
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.filter-section__header:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 164, 0.08));
}

.filter-section__header.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 164, 0.08));
}

.filter-section__title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-dark);
}

.filter-section__title i {
    color: var(--color-blue);
    width: 16px;
    font-size: 14px;
}

.toggle-icon {
    font-size: 12px;
    color: var(--color-gray);
    transition: transform 0.3s ease;
    width: 16px;
    text-align: center;
}

.filter-section__header.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--color-blue);
}

.filter-section__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.filter-section__content.expanded {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
}

/* Чекбоксы и радио-кнопки */
.manufacturer-item {
    margin-bottom: 10px;
}

.manufacturer-item input[type="checkbox"],
.manufacturer-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.manufacturer-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 8px 32px;
    position: relative;
    cursor: pointer;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.manufacturer-item label:hover {
    background: rgba(37, 99, 235, 0.08);
}

.manufacturer-item label::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    background: white;
    transition: all 0.2s ease;
}

.manufacturer-item input[type="checkbox"] + label::before {
    border-radius: 4px;
}

.manufacturer-item input[type="radio"] + label::before {
    border-radius: 50%;
}

.manufacturer-item input[type="checkbox"]:checked + label::before {
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    border-color: var(--color-blue);
}

.manufacturer-item input[type="radio"]:checked + label::before {
    border-color: var(--color-blue);
    background: white;
    box-shadow: inset 0 0 0 3px var(--color-blue);
}

.manufacturer-item input[type="checkbox"]:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 10px;
}

.count {
    color: var(--color-gray);
    font-size: 12px;
    background: rgba(149, 165, 166, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Фильтр цены */
.price-filter {
    padding: 5px 0;
}

.price-range-slider {
    position: relative;
    height: 32px;
    margin: 24px 0 20px;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 5px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 32px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--color-blue);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--color-blue);
}

.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--color-blue);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--color-blue);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 8px;
}

.price-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(14, 165, 164, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
}

.price-input span {
    color: var(--color-gray);
    font-size: 12px;
    margin-right: 6px;
    font-weight: 600;
}

.price-field {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    outline: none;
}

.price-separator {
    color: var(--color-gray);
    font-size: 14px;
    font-weight: 600;
}

/* Кнопки фильтров */
.apply-filter-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.apply-filter-btn:hover {
    background: linear-gradient(135deg, #2980b9, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.apply-filter-btn:last-child {
    background: white;
    color: var(--color-gray);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: none;
}

.apply-filter-btn:last-child:hover {
    background: var(--color-gray-light);
    color: var(--color-dark);
    transform: translateY(-2px);
    border-color: var(--color-blue);
}

/* Навигация по категориям */
.catalog-nav {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.catalog-nav__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.catalog-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-nav__links a {
    padding: 6px 16px;
    background: var(--color-gray-light);
    border-radius: 30px;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.catalog-nav__links a:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--color-blue);
}

.catalog-nav__links a.active {
    background: var(--color-blue);
    color: white;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

/* Карточка товара */
.product-card {
    background: var(--cp-surface, #fff);
    border-radius: var(--cp-radius, 12px);
    overflow: hidden;
    box-shadow: var(--cp-shadow-soft);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cp-primary), var(--cp-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cp-shadow-card);
    border-color: rgba(37, 99, 235, 0.35);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card__image {
    height: 240px;
    background: linear-gradient(135deg, var(--cp-surface-soft), var(--cp-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.product-card:hover .product-card__image::after {
    background: rgba(37, 99, 235, 0.06);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__image .no-image-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cp-surface-soft), var(--cp-bg));
    color: var(--cp-primary);
    font-size: 48px;
    position: relative;
    z-index: 1;
}

.product-card__category {
    padding: 14px 16px 6px;
    font-size: 11px;
    color: var(--cp-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.product-card__title {
    padding: 0 16px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--cp-text);
    line-height: 1.45;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.product-card:hover .product-card__title {
    color: var(--cp-primary);
}

.product-card__status {
    margin: 0 16px 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-weight: 500;
}

.product-card__status.in-stock {
    background: rgba(14, 165, 164, 0.12);
    color: #0f766e;
    border: 1px solid rgba(14, 165, 164, 0.35);
}

.product-card__status.out-of-stock {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.28);
}

.product-card__specs {
    padding: 12px 16px;
    list-style: none;
    border-top: 1px solid var(--cp-border);
    border-bottom: 1px solid var(--cp-border);
    margin: 0 0 15px 0;
    background: rgba(37, 99, 235, 0.03);
}

.product-card__specs li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(219, 227, 239, 0.8);
}

.product-card__specs li:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--cp-muted);
    font-weight: 500;
}

.spec-value {
    font-weight: 600;
    color: var(--cp-text);
    text-align: right;
}

.product-card__price {
    padding: 0 16px 14px;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.5px;
}

.product-card__price small {
    font-size: 12px;
    font-weight: 500;
    -webkit-text-fill-color: var(--cp-muted);
    background: none;
}

.product-card__btn {
    display: block;
    margin: 0 12px 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-primary-2));
    color: white;
    text-decoration: none;
    border-radius: var(--cp-radius, 10px);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.product-card__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.product-card:hover .product-card__btn::before {
    left: 100%;
}

.product-card:hover .product-card__btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

/* Пустое состояние */
.no-products {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 40px;
    background: var(--cp-surface);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow-soft);
    border: 2px dashed rgba(37, 99, 235, 0.2);
}

.no-products i {
    font-size: 64px;
    color: rgba(37, 99, 235, 0.2);
    margin-bottom: 20px;
}

.no-products p {
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.no-products-hint {
    font-size: 14px;
    color: var(--color-gray);
}

/* Информационный блок */
.info-block {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green));
}

.info-block__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-dark);
    line-height: 1.3;
}

.info-block__text {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.8;
}

.info-block__highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(14, 165, 164, 0.06));
    border-left: 4px solid var(--color-blue);
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.info-block__highlight p {
    margin-bottom: 0;
    font-weight: 500;
    color: #555;
}

/* Загрузка */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--color-blue);
}

.loading-spinner i {
    margin-right: 10px;
}

/* Анимации */
.fade-enter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .catalog {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .info-block__title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .catalog {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero__content {
        padding: 30px 20px;
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .info-block {
        padding: 25px;
    }
    
    .info-block__title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-nav__links {
        flex-direction: column;
        gap: 8px;
    }
    
    .catalog-nav__links a {
        text-align: center;
    }
    
    .hero__title {
        font-size: 1.5rem;
    }
    
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
/* Главные вкладки */
.main-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    flex-wrap: wrap;
}

.main-tab {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    background: var(--color-gray-light);
    border-radius: 8px;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    min-width: 140px;
}

.main-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.1);
    transition: left 0.3s ease;
    z-index: 0;
}

.main-tab:hover::before {
    left: 100%;
}

.main-tab i {
    margin-right: 8px;
    color: var(--color-blue);
    position: relative;
    z-index: 1;
}

.main-tab {
    position: relative;
    z-index: 1;
}

.main-tab:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--color-blue);
    transform: translateY(-2px);
}

.main-tab.active {
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    color: white;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.main-tab.active i {
    color: white;
}

/* Подвкладки для запчастей */
.sub-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0 16px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(14, 165, 164, 0.04));
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.sub-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.sub-tab:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--color-blue);
    transform: translateY(-1px);
}

.sub-tab.active {
    background: var(--color-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ── Parts category tree ── */
#parts-category-tree {
    background: #fff;
    border: 1px solid rgba(37, 99, 235,0.12);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ptree__item--all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid rgba(37, 99, 235,0.08);
}
.ptree__item--all i { color: var(--color-blue); font-size: 12px; }
.ptree__item--all:hover { background: rgba(37, 99, 235,0.06); }
.ptree__item--all.active { background: var(--color-blue); color: #fff; }
.ptree__item--all.active i { color: #fff; }

.ptree__manufacturer { border-bottom: 1px solid rgba(37, 99, 235,0.08); }
.ptree__manufacturer:last-child { border-bottom: none; }

.ptree__mfr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-dark);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}
.ptree__mfr-header:hover { background: rgba(37, 99, 235,0.06); }
.ptree__mfr-header.active { background: rgba(37, 99, 235,0.1); color: var(--color-blue); }

.ptree__arrow {
    font-size: 10px;
    color: var(--color-gray);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.ptree__manufacturer.expanded .ptree__arrow { transform: rotate(90deg); }

.ptree__subcats {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.ptree__manufacturer.expanded .ptree__subcats { max-height: 600px; }

.ptree__subcat {
    padding: 7px 14px 7px 32px;
    font-size: 12px;
    color: var(--color-gray);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
    word-break: break-word;
}

.ptree__mfr-header {
    word-break: break-word;
}
.ptree__subcat:hover { background: rgba(37, 99, 235,0.05); color: var(--color-dark); }
.ptree__subcat.active {
    background: rgba(37, 99, 235,0.08);
    color: var(--color-blue);
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-tabs {
        flex-direction: column;
        padding: 10px;
    }
    
    .main-tab {
        padding: 12px;
    }
    
    .sub-tabs {
        flex-wrap: wrap;
    }
    
    .sub-tab {
        flex: 1 1 calc(50% - 4px);
    }
}
.product-card__model {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: var(--cp-muted);
    margin-top: 4px;
}
/* Бейджи (хит, новинка, рекомендуем) */
.product-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-hit {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-new {
    background: linear-gradient(135deg, var(--cp-accent), #0d9488);
}

.badge-recommended {
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-primary-2));
}