.parts_header{
    position: relative;
    text-align: center;
}
.parts_header_img{
    width: 100%;
    height: 240px;
}
.parts_header_desc{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: Source Han Sans CN;
}
.parts_header_title{
    font-weight: 500;
    font-size: 34px;
    color: #FFFFFF;
}
.parts_header_p{
    font-weight: 400;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 30px;
    margin-top: 20px;
}
.parts_process{
    width: 100%;
    height: auto;
    background-color: #F5F5F5;
    padding: 20px 0;
}
.parts_process_box{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.parts_box_desc{
    text-align: center
}
.parts_process_title{

    font-family: Source Han Sans CN;
    font-weight: 500;
    font-size: 16px;
    color: #666666;
    line-height: 20px;
}
.parts_box{
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0px;
}
.header {
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}
.search-container {
    display: flex;
    align-items: center;
    width: 80%;
}
html[lang="en-us"] .search-container{
    width: 74%;
}
.search-input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}
.search-btn {
    height: 38px;
    padding: 0 20px;
    background-color: #B43033;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.cart-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-btn {
    position: relative;
    padding: 0px 20px;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 37px;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #B43033;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}
.checkout-btn {
    padding: 0px 20px;
    background-color: #B43033;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 38px;
    line-height: 38px;
}
.checkout-btn:hover {
    color: #fff;
}
.categories {
    background-color: #fff;
    padding: 15px 20px;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.category-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.category-item {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 0px;
    transition: all 0.3s;
}
.category-item.active {
    color: #B43033;
    font-weight: bold;
    border-bottom: 2px solid #B43033;
}
.products-container {
    padding: 20px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    transition: all 0.3s;
}
.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}
.product-info {
    margin-bottom: 15px;
}
.product-oem-price{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-oem {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}
.product-price {
    font-size: 18px;
    color: #B43033;
    font-weight: bold;
    margin-bottom: 5px;
}
.product-name {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    min-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-model {
    font-size: 12px;
    color: #666;
}
.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.stepper {
    display: flex;
    align-items: center;
}
.stepper-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    background-color: #f2f2f2;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.stepper-input {
    width: 40px;
    height: 24px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
}
.add-cart-btn {
    padding: 6px 15px;
    background-color: #B43033;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cart-dropdown.show {
    display: block;
}

.cart-header {
    padding: 10px;
    border-bottom: 1px solid #e6e6e6;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    padding: 10px;
    max-height: 500px;
    overflow-y: auto; 
}
.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
    align-items: center;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 10px;
    border:1px solid #ddd;
    border-radius: 5px;
    padding: 0px 4px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}
.cart-item-oem {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    border-radius: 3px;
    display: inline-block;
}
.cart-item-price {
    font-size: 14px;
    color: #B43033;
}
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-stepper {
    display: flex;
    align-items: center;
}
.cart-stepper-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background-color: #f2f2f2;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}
.cart-stepper-input {
    width: 35px;
    height: 22px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 12px;
}
.cart-delete-btn {
    width: 24px;
    height: 24px;
    border: none;
    background-color: transparent;
    color: #f00;
    cursor: pointer;
    font-size: 26px !important;
    transition: color 0.3s;
    margin-left: 20px;
}
.cart-delete-btn:hover {
    color: #B43033;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
}
.cart-summary .total-sum{
    padding: 0px 5px;
    color: #B43033;
}
.cart-summary .total-num{
    padding: 0px 5px;
    color: #B43033;
}
.cart-total {
    font-weight: bold;
    text-align: right;
}
.cart-total .cart-total-text{
    color: #B43033;
}
.cart-footer {
    padding: 15px 5px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-weight: bold;
    font-size: 14px;
}
.cart-footer.fixed {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
    padding: 15px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}
.cart-empty {
    padding: 30px;
    text-align: center;
    color: #999;
}
.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#clearCartBtn {
    font-size: 14px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

#clearCartBtn:hover {
    background-color: #f5f5f5;
    color: #ff4444;
}

/* 响应式设计 - 断点1024px */
@media (max-width: 1024px) {
    .parts_header_desc{
        top: 50%;
        left: 8%;
        transform: translate(-5%, -50%);
    }
    html[lang="en-us"] .parts_header_desc{
      
    }
    .parts_header_title{
        font-size: 28px;
        font-weight: bold;
        padding: 0px 45px;
    }
    .parts_header_p{
        margin-top: 10px;
        font-size: 16px;
        line-height: 25px;
    }
    html[lang="en-us"] .parts_header_p{
        line-height: 20px;
    }
    .search-container{
        width: 78%;
    }
    html[lang="en-us"] .search-container{
        width: 69%;
    }
}

/* 响应式设计 - 断点768px */
@media (max-width: 768px) {
     .parts_header_img{
        /* width: auto; */
    }
    .parts_header_desc{
        top: 50%;
        left: 8%;
        transform: translate(-5%, -50%);
    }
    html[lang="en-us"] .parts_header_desc{
      
    }
    .parts_header_title{
        font-size: 20px;
        font-weight: bold;
        padding: 0px 45px;
    }
    .parts_header_p{
        margin-top: 10px;
        font-size: 15px;
        line-height: 25px;
    }
    html[lang="en-us"] .parts_header_p{
        line-height: 20px;
    }
    .parts_process{
        padding: 15px 0px;
    }
    .parts_box_desc img{
        width: 50px;
    }

    .parts_process_title{
        font-size: 15px;
    }
    html[lang="en-us"] .parts_process_title{
        font-size: 14px;
    }
    .products-container{
        padding: 15px 10px;
        margin-bottom: 2rem;
    }

    .product-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    html[lang="en-us"] .search-container{
        width: 59%;
    }
    .header{
        padding: 15px 10px;
        gap: 15px;
        justify-content: center;
    }
    .search-container{
        width: 70%;
    }
    .pagination-container{
        margin-top: 10px;
    }
    .categories{
        padding: 15px 10px;
    }
    .category-list{
        flex-wrap: wrap;
        gap: 5px;
    }
    .category-item{
        padding: 5px 8px;
    }
    html[lang="en-us"] .cart-dropdown{
        left: -37px;
    }
    .cart-dropdown{
        width: 380px;
    
    }
    .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
}

/* 响应式设计 - 断点480px */
@media (max-width: 480px) {
     .parts_header_img{
        /* width: auto; */
    }
    .parts_header_desc{
        top: 50%;
        left: 8%;
        transform: translate(-5%, -50%);
    }
    html[lang="en-us"] .parts_header_desc{
      
    }
    .parts_header_title{
        font-size: 20px;
        font-weight: bold;
        padding: 0px 45px;
    }
    .parts_header_p{
        margin-top: 10px;
        font-size: 15px;
        line-height: 25px;
    }
    html[lang="en-us"] .parts_header_p{
        line-height: 20px;
    }
    .parts_process{
        padding: 15px 0px;
    }
    .parts_box_desc img{
        width: 50px;
    }

    .parts_process_title{
        font-size: 15px;
    }
    html[lang="en-us"] .parts_process_title{
        font-size: 14px;
    }
    .products-container{
        padding: 15px 10px;
        margin-bottom: 2rem;
    }

    .product-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .search-container{
        width: 100%;
    }
    html[lang="en-us"] .search-container{
        width: 100%;
    }
    html[lang="en-us"] .search-container{
        width: 100%;
    }
    .header{
        flex-wrap: wrap;
        padding: 15px 10px;
        gap: 15px;
        justify-content: center;
    }
    .pagination-container{
        margin-top: 10px;
    }
    .categories{
        padding: 15px 10px;
    }
    .category-list{
        flex-wrap: wrap;
        gap: 5px;
    }
    html[lang="en-us"] .cart-dropdown{
        left: -37px;
    }
    .cart-dropdown{
        width: 350px;
        left: -76px;
    }
    .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
}
/* 响应式设计 - 断点425px */
@media (max-width: 425px) {
    .parts_header_img{
        /* width: auto; */
    }
    .parts_header_desc{
        top: 50%;
        left: 8%;
        transform: translate(-5%, -50%);
    }
    html[lang="en-us"] .parts_header_desc{
      
    }
    .parts_header_title{
        font-size: 20px;
        font-weight: bold;
        padding: 0px 45px;
    }
    .parts_header_p{
        margin-top: 10px;
        font-size: 15px;
        line-height: 25px;
    }
    html[lang="en-us"] .parts_header_p{
        line-height: 20px;
    }
    .parts_process{
        padding: 15px 0px;
    }
    .parts_box_desc img{
        width: 50px;
    }

    .parts_process_title{
        font-size: 15px;
    }
    html[lang="en-us"] .parts_process_title{
        font-size: 14px;
    }
    .products-container{
        padding: 15px 10px;
        margin-bottom: 2rem;
    }
    .search-container{
        width: 100%;
    }
    .product-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    html[lang="en-us"] .search-container{
        width: 100%;
    }
    .header{
        flex-wrap: wrap;
        padding: 15px 10px;
        gap: 15px;
        justify-content: center;
    }
    .pagination-container{
        margin-top: 10px;
    }
    .categories{
        padding: 15px 10px;
    }
    .category-item{
        padding: 5px 8px;
    }
    .category-list{
        flex-wrap: wrap;
        gap: 5px;
    }
    html[lang="en-us"] .cart-dropdown{
        left: -37px;
    }
    .cart-dropdown{
        width: 350px;
        left: -76px;
    }
    .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
}
/* 响应式设计 - 断点375px */
@media (max-width: 375px) {
    .parts_header_img{
        /* width: auto; */
    }
    .parts_header_desc{
        top: 50%;
        left: 8%;
        transform: translate(-5%, -50%);
    }
    html[lang="en-us"] .parts_header_desc{
      
    }
    .parts_header_title{
        font-size: 20px;
        font-weight: bold;
        padding: 0px 45px;
    }
    .parts_header_p{
        margin-top: 10px;
        font-size: 15px;
        line-height: 25px;
    }
    html[lang="en-us"] .parts_header_p{
        line-height: 20px;
    }
    .parts_process{
        padding: 15px 0px;
    }
    .parts_box_desc img{
        width: 50px;
    }

    .parts_process_title{
        font-size: 15px;
    }
    html[lang="en-us"] .parts_process_title{
        font-size: 14px;
    }
    .products-container{
        padding: 15px 10px;
        margin-bottom: 2rem;
    }

    .product-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    html[lang="en-us"] .search-container{
        width: 100%;
    }
    .header{
        flex-wrap: wrap;
        padding: 15px 10px;
        gap: 15px;
        justify-content: center;
    }
    .pagination-container{
        margin-top: 10px;
    }
    .categories{
        padding: 15px 10px;
    }
    .category-list{
        flex-wrap: wrap;
        gap: 5px;
    }
    html[lang="en-us"] .cart-dropdown{
        left: -37px;
    }
    .cart-dropdown{
        width: 350px;
        left: -76px;
    }
    .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
}

/* 响应式设计 - 断点320px */
@media (max-width: 320px) {
    
}
