/* EV Parts catalog - Narang Exports theme */
.ev-parts-area {
    font-family: 'Poppins', sans-serif;
}

.ev-banner img {
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ev-catalog-layout {
    align-items: flex-start;
}

.ev-cat-panels {
    overflow: visible;
    max-height: none;
    height: auto;
}

/* Left sidebar - vertical scroll list */
.ev-category-wrap {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-height: 430px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #c40000 #f0f0f0;
}

.ev-category-wrap::-webkit-scrollbar {
    width: 8px;
}

.ev-category-wrap::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.ev-category-wrap::-webkit-scrollbar-thumb {
    background: #c40000;
    border-radius: 4px;
}

.ev-cat-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.ev-cat-tab {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    cursor: pointer;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #e2e2e2;
    border-radius: 2px;
    background: #fff;
    color: #333 !important;
    -webkit-text-fill-color: #333;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    text-align: left;
    line-height: 1.35;
    word-break: break-word;
}

.ev-cat-tab:hover {
    border-color: #c40000;
    background: #fffafa;
    color: #c40000 !important;
    -webkit-text-fill-color: #c40000;
}

.ev-cat-tab.active {
    background: #f5f0e8;
    border-color: #e2e2e2;
    color: #333 !important;
    -webkit-text-fill-color: #333;
    font-weight: 600;
}

/* Sub-category tabs - horizontal pill style */
.ev-sub-tabs-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: #c40000 #eee;
}

.ev-sub-tabs-wrap::-webkit-scrollbar {
    height: 6px;
}

.ev-sub-tabs-wrap::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 3px;
    margin-top: 10px;
}

.ev-sub-tabs-wrap::-webkit-scrollbar-thumb {
    background: #c40000;
    border-radius: 3px;
}

.ev-sub-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
    width: max-content;
    min-width: 100%;
}

.ev-sub-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 44px;
    padding: 12px 28px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

.ev-sub-tab:hover {
    border-color: #c40000;
    color: #c40000 !important;
    -webkit-text-fill-color: #c40000;
}

.ev-sub-tab.active {
    background: #c40000;
    border-color: #c40000;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-weight: 600;
}

.ev-cat-panel,
.ev-sub-panel {
    display: none;
    overflow: visible;
}

.ev-cat-panel.active,
.ev-sub-panel.active {
    display: block;
}

.ev-product-card {
    margin-bottom: 30px;
    height: calc(100% - 30px);
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ev-product-card:hover {
    box-shadow: 0 8px 25px rgba(196, 0, 0, 0.12);
    transform: translateY(-3px);
}

.ev-product-thumb {
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 15px;
    overflow: hidden;
}

.ev-product-thumb img {
    width: 100%;
    max-width: 220px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
}

.ev-product-card .single_blog_content {
    padding: 18px 20px 22px;
}

.ev-product-card .blog_page_title h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.ev-product-card:hover .blog_page_title h4 {
    color: #c40000;
}

@media (max-width: 991px) {
    .ev-category-wrap {
        max-height: 520px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .ev-parts-area {
        padding-top: 60px !important;
    }

    .ev-cat-tab {
        justify-content: center;
        text-align: center;
        font-size: 13px;
        padding: 12px 14px;
        min-height: 48px;
    }

    .ev-sub-tabs-wrap {
        padding-bottom: 18px;
        margin-bottom: 20px;
    }

    .ev-sub-tabs {
        padding-bottom: 12px;
    }

    .ev-sub-tab {
        font-size: 14px;
        padding: 10px 20px;
        min-height: 42px;
    }

    .ev-product-thumb {
        min-height: 150px;
    }

    .ev-product-card .blog_page_title h4 {
        font-size: 15px;
    }
}
