/* 购物车样式 */
.header-right .cart-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right .cart-btn {
    position: relative;
    padding: 0px 15px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.header-right .cart-count {
    /* position: absolute;
    top: -5px;
    right: -5px; */
    /* background-color: #000; */
    color: #000;
    font-size: 14px;
    /* padding: 2px 6px; */
    /* border-radius: 10px; */
    /* min-width: 20px; */
    text-align: center;
}

.header-right .cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 420px;
    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;
    margin-top: 10px;
}

.header-right .cart-dropdown.show {
    display: block;
}

.header-right .cart-header {
    padding: 10px;
    border-bottom: 1px solid #e6e6e6;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right .cart-items {
    padding: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.header-right .cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
    align-items: center;
}

.header-right .cart-item:last-child {
    border-bottom: none;
}

.header-right .cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0px 4px;
}

.header-right .cart-item-info {
    flex: 1;
}

.header-right .cart-item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.header-right .cart-item-oem {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    border-radius: 3px;
    display: inline-block;
}

.header-right .cart-item-price {
    font-size: 14px;
    color: #B43033;
}

.header-right .cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right .cart-stepper {
    display: flex;
    align-items: center;
}

.header-right .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;
}

.header-right .cart-stepper-input {
    width: 35px;
    height: 22px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 12px;
}

.header-right .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;
}

.header-right .cart-delete-btn:hover {
    color: #B43033;
}

.header-right .cart-summary {
    display: flex;
    justify-content: space-between;
}

.header-right .cart-summary .total-sum {
    padding: 0px 5px;
    color: #B43033;
}

.header-right .cart-summary .total-num {
    padding: 0px 5px;
    color: #B43033;
}

.header-right .cart-total {
    text-align: right;
}

.header-right .cart_subtotal_gst .cart-subtotal-text,
.header-right .cart_subtotal_gst .cart-gst-text,
.header-right .cart-total .cart-total-text {
    color: #B43033;
    font-weight: bold;
}

.header-right .cart-footer {
    padding: 15px 10px;
    border-top: 1px solid #eee;
    color: #000;
    font-weight: 500;
    font-size: 14px;
}

.header-right .cart_subtotal_gst {
    display: flex;
    justify-content: space-between;
}

.header-right .cart-empty {
    padding: 30px;
    text-align: center;
    color: #999;
}

.header-right .car_checkout {
    text-align: right;
    margin-bottom: 10px;
    margin-right: 10px;
}

.header-right .checkout-btn {
    padding: 10px 30px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.header-right .checkout-btn:hover {
    color: #fff;
}

.header-right #clearCartBtn {
    font-size: 14px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.header-right #clearCartBtn:hover {
    background-color: #f5f5f5;
    color: #ff4444;
}

.layui-icon{
    font-size: 20px !important;
    color: #000;
}

/* 响应式设计 - 断点1024px */
@media (max-width: 1024px) {
    html[lang="en-us"] .header-right .cart-dropdown{
        right: 0px;
    }
    .header-right .cart-dropdown{
        width: 380px;
    
    }
    .header-right .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
    .layui-icon{
        font-size: 20px !important;
    }
    .header-right .checkout-btn{
        padding: 0px 40px;
        font-size: 14px;
        height: 38px;
    }
}
/* 响应式设计 - 断点768px */
@media (max-width: 768px) {
     html[lang="en-us"] .header-right .cart-dropdown{
        right: 0px;
    }
    .header-right .cart-dropdown{
        width: 380px;
    
    }
    .header-right .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
    .layui-icon{
        font-size: 20px !important;
    }
    .header-right .checkout-btn{
        padding: 0px 40px;
        font-size: 14px;
        height: 38px;
    }
}
/* 响应式设计 - 断点480px */
@media (max-width: 480px) {
    html[lang="en-us"] .header-right .cart-dropdown{
        left: -90px;
    }
    .header-right .cart-dropdown{
        width: 350px;
        left: -139px;
    }
    .header-right .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
   
    .layui-icon{
        font-size: 20px !important;
    }
    .header-right .checkout-btn{
        padding: 0px 10px;
        font-size: 14px;
        height: 38px;
    }
    .header-right .cart-items{
        max-height: 300px;
    }
    .header-right .checkout-btn{
        padding: 0px 45px;
        font-size: 14px;
        height: 38px;
    }
}

/* 响应式设计 - 断点425px */
@media (max-width: 425px) {
    html[lang="en-us"] .header-right .cart-dropdown{
        left: -137px;
    }
    .header-right .cart-dropdown{
        width: 320px;
        left: -184px;
    }
    .header-right .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
    
    .layui-icon{
        font-size: 20px !important;
    }
    .header-right .checkout-btn{
        padding: 0px 40px;
        font-size: 14px;
        height: 38px;
    }
}

/* 响应式设计 - 断点375px */
@media (max-width: 375px) {
    html[lang="en-us"] .header-right .cart-dropdown{
        left: -139px;
    }
    .cart-dropdown{
        width: 350px;
        left: -139px;
    }
    .cart-footer{
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 10px;
    }
    .cart-btn{
        padding: 0px 10px;
        font-size: 14px;
        height: 38px;
    }
    .layui-icon{
        font-size: 20px !important;
    }
    .checkout-btn{
        padding: 0px 10px;
        font-size: 14px;
        height: 38px;
    }
}
