.content{
    background-image: url(../images/products/cart_bg.png);
    background-repeat: no-repeat;
    background-size: 100% 780px;
    position: relative;
}
.navigationBar{
    display: none !important;
}
.content:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url(../images/shoppingCart/cart_foot_bg.svg);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 100% auto;
}

.content .my-container{
    max-width:1680px;
}

.location {
    display: flex;
    align-items: center;
    padding-top: 23px;
}

.location a {
    color: rgba(0, 0, 0, 0.3);
    font-size: 16px;
    font-weight: 400;
}

.location a:nth-child(n + 2)::before {
    content: '/';
    padding: 0 8px;
}


.location a:hover {
    color: var(--dark-color);
}

.cart_title{
    color: #333;
    font-family: "Titillium Web";
    font-weight: 600;
    margin-top: 20px;
}
.cart_title_line{
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.cart_content {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-bottom: 104px;
}

.cart_list {
    flex: 1;
}

.cart_summary {

    background: #F7F8FA;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart_summary_view{
    max-width: 496px;
    flex: 1;
    min-width: 300px;
    display: inline-block
}

/* Cart List Styles */
.cart_group {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.cart_group:last-child {
    margin-bottom: 0;
}

.cart_group_title {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.group_title_left {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.group_checkbox {
    margin-right: 12px;
}

.group_checkbox input[type="checkbox"],.cart_item_checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
}

.group_checkbox input[type="checkbox"]:checked,.cart_item_checkbox input[type="checkbox"]:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.group_checkbox input[type="checkbox"]:checked::after,.cart_item_checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/*.cart_group_title span {*/
/*    background: #f5f5f5;*/
/*    padding: 4px 8px;*/
/*    border-radius: 12px;*/
/*    font-size: 14px;*/
/*    font-weight: normal;*/
/*    margin-left: 8px;*/
/*}*/

/* 分组之间的间隔线 */
/*.cart_group:not(:last-child)::after {*/
/*    content: '';*/
/*    display: block;*/
/*    height: 1px;*/
/*    background: #eee;*/
/*    margin: 20px 0;*/
/*}*/

.cart_item {
    display: flex;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid #eee;
    transition: opacity 0.3s, height 0.3s, padding 0.3s, margin 0.3s;
    color: #333;
    font-weight: 400;
    flex-wrap: nowrap;
}

.cart_item:last-child {
    border-bottom: none;
}

.cart_item_checkbox {
    margin-right: 16px;
}

/*.cart_item_checkbox input {*/
/*    width: 18px;*/
/*    height: 18px;*/
/*    border: 2px solid var(--main-color);*/
/*    border-radius: 4px;*/
/*    cursor: pointer;*/
/*}*/

.cart_item_image {
    width: 100px;
    height: 100px;
    margin-right: 24px;
}

.cart_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart_item_value{
    display: flex;
    align-items: center;
    flex: 1
}

.cart_item_info {
    flex: 1;
}

.cart_item_title {
    margin-bottom: 8px;
    margin-right: 20px;
    font-size: 16px;
}

.cart_item_brand {
    color: #666;
    font-size: 16px;
}

.cart_item_price {
    max-width: 140px;
    flex: 1;
}
.cart_item_quantity-view{
    max-width: 140px;
    flex: 1;
    margin: 0 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cart_item_quantity {
    display: flex;
    align-items: center;
    /*border: 1px solid #E5E7EB;*/
    border-radius: 4px;
    padding: 4px;
    background: #F7F8FA;

}

.cart_item_quantity button {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.cart_item_quantity input {
    border: none;
    width: 41px;
    background: transparent;
    font-family: "Titillium";
}

.cart_item_quantity input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    text-align: center;
}

.cart_item_quantity input[type="number"]::-webkit-inner-spin-button,
.cart_item_quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart_item_total {
    max-width: 140px;
    flex: 1;
    font-family: "Titillium Web";
}

.cart_item_remove {
    cursor: pointer;
    width: 100px;
    height: 24px;
    transition: opacity 0.3s;
    transition: transform 0.2s;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.cart_item_remove div{
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.cart_item_remove img{
    width: 18px;
    height: 18px;
}

.cart_item_remove:hover div {
    background: #F7F8FA;
}

/* Cart Summary Styles */
.cart_summary_title {
    font-weight: 700;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    font-family: "Titillium Web";
    color: #333;
}

.cart_summary_row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart_summary_row.total {
    font-weight: 600;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    color: #333;
}

.cart_summary_row.total-row {
    /*border-top: 1px solid rgba(0,0,0,0.4);*/
    /*padding-top: 24px;*/
    margin-top: 24px;
    margin-bottom: 16px;
}

.cart_summary_label {
    font-weight: 600;
}

.cart_summary_value {
    font-weight: 500;
    display: flex;
    align-items: center;
    /*gap: 4px;*/
}

.cart_summary_value .currency {
    color: #666;
}
.currency-f {
    margin: 0 2px 0 4px;
}

/*.cart_summary_value .amount {*/
/*    font-family: "Titillium Web";*/
/*}*/

.cart_summary_value.discount .amount {
    color: #ff4d4f;
}

/* 总价金额特殊样式 */
.cart_summary_row.total .cart_summary_value .currency {
    font-size: 16px;
}

.cart_summary_row.total .cart_summary_value .amount {
    font-weight: 600;
}

.cart_summary_note{
    color: #999;
    /*line-height: 20px;*/
    display: flex;
    align-items: center;
}
.cart_summary_note .notice_icon{
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.checkout_button {
    width: 100%;
    height: 70px;
    background: linear-gradient(247deg, #0C0DCA 0%, #86CCEA 100%);
    color: white;
    border: none;
    border-radius: 48px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: opacity 0.3s;
    font-family: "Titillium";
}

.checkout_button:hover {
    opacity: 0.9;
}

.continue_shopping {
    text-align: center;
    margin-top: 24px;
    font-weight: 600;
}

.continue_shopping a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.continue_shopping a:hover {
    opacity: 0.8;
}

/* 空购物车样式 */
.empty-cart {
    text-align: center;
    padding: 40px 40px 250px;
    /*background: #fff;*/
    /*border-radius: 12px;*/
    margin: 40px auto;
    max-width: 600px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-cart img {
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

.empty-cart p {
    color: #333;
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.5;
}

.empty-cart .continue-shopping {
    display: inline-flex;
    align-items: center;
    padding: 0 68px;
    height: 60px;
    background: linear-gradient(247deg, var(--main-color) 0%, #86CCEA 100%);
    color: white;
    border-radius: 48px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    /*box-shadow: 0 4px 12px rgba(68, 97, 242, 0.2);*/
}

/*.empty-cart .continue-shopping:hover {*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 6px 16px rgba(68, 97, 242, 0.3);*/
/*    opacity: 0.95;*/
/*}*/

/* 添加浮动动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
    .empty-cart {
        margin: 20px;
        padding: 60px 20px;
    }

    .empty-cart img {
        width: 140px;
        height: 140px;
        margin-bottom: 32px;
    }

    .empty-cart p {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .empty-cart .continue-shopping {
        padding: 0 36px;
        height: 48px;
    }
    .checkout_button{
        margin-top: 0;
    }
}

/* 添加删除按钮的悬停效果 */
.cart_item_remove {
    transition: transform 0.2s;
}

/*.cart_item_remove:hover {*/
/*    transform: scale(1.1);*/
/*}*/

/* 添加商品数量变化的过渡效果 */
.cart_item {
    transition: opacity 0.3s, height 0.3s, padding 0.3s, margin 0.3s;
}

/* 确认删除对话框样式 */
.delete-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.delete-confirm-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 420px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 40px 32px 0;
    /*border-bottom: 1px solid #eee;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.modal-body {
    padding: 8px 32px 32px;
    color: #666;
}

.modal-footer {
    padding: 0 32px 40px;
    /*border-top: 1px solid #eee;*/
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal-footer button {
    padding: 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    transition: opacity 0.3s;
    font-family: "Titillium";
    font-size: 16px;

}

.cancel-delete {
    background: #fff;
    color: #0F16CB;
    border: 1px solid #0F16CB !important;

}

.confirm-delete {
    background:  linear-gradient(247deg, #0C0DCA 0%, #86CCEA 100%);
    color: white;
}

.modal-footer button:hover {
    opacity: 0.8;
}

@media screen and (max-width: 1579px) {
    .cart_content {
        flex-direction: column;
    }
    .cart_summary_view{
        max-width: none;
    }
}

/* 响应式样式 */
@media screen and (max-width: 1440px) {
    .cart_summary {
        padding: 30px;
    }
}

@media screen and (max-width: 1200px) {
    /*.cart_list {*/
    /*    padding: 30px;*/
    /*}*/



}

@media screen and (max-width: 992px) {
    .cart_content {
        flex-direction: column;
    }

    .cart_summary {
        width: 100%;
        margin-top: 24px;
    }

    /*.cart_item {*/
    /*    flex-wrap: wrap;*/
    /*    padding: 24px 0;*/
    /*    position: relative;*/
    /*}*/

    .cart_item_checkbox {
        margin-right: 12px;
    }

    .cart_item_image {
        width: 80px;
        height: 80px;
        margin-right: 16px;
    }

    .cart_item_info {
        flex: 1;
        min-width: 200px;
    }

    /*.cart_item_price {*/
    /*    width: auto;*/
    /*    margin-left: auto;*/
    /*    margin-right: 16px;*/
    /*}*/

    /*.cart_item_quantity {*/
    /*    margin: 16px 0 0 52px;*/
    /*}*/

    /*.cart_item_total {*/
    /*    margin: 16px 0 0 auto;*/
    /*}*/

    /*.cart_item_remove {*/
    /*    position: absolute;*/
    /*    top: 24px;*/
    /*    right: 0;*/
    /*}*/
}

@media screen and (max-width: 768px) {
    .location {
        padding: 0 20px;
        display: none;
    }
    .cart_title_line{
        display: none;
    }

    .cart_list {
        padding: 20px;
    }

    .cart_summary {
        padding: 20px;
    }

    .cart_group_title {
        padding: 16px 0;
    }

    .cart_item_info {
        min-width: 150px;
    }

    .cart_summary_content{
        padding-bottom: 16px !important;
        margin-bottom: 24px;
    }
    .cart_summary_title {
        margin-bottom: 19px;
        /*padding-bottom: 16px;*/
    }

    /*.cart_summary_row {*/
    /*    margin-bottom: 16px;*/
    /*}*/

    .checkout_button {
        height: 48px;
        font-size: 16px;
    }

    .cart_summary_row.total-row{
        /*margin-top: 16px;*/
        margin-bottom: 19px;
    }
    .continue_shopping{
        display: none;
    }
    .cart_summary_row.total-row {
        margin-top: 0;
        padding-bottom: 0;
    }


    .content .my-container{
        padding: 0;
        /*background: #F7F8FA;*/
    }
    .content{
        background: #F7F8FA;
    }

    .cart_title,.cart_item_header{
        display: none !important;
    }
    .cart_content{
        margin-top: 0;
    }
    .cart_list{
        padding: 0;
        background: #F7F8FA;
    }
    .cart_group{
        padding: 16px;
        border: none;
        background: #fff;
        border-radius: 0;
    }

    .cart_item {
        align-items: flex-start;
    }

    .cart_item_value{
        position: relative;
    }


    .cart_item_quantity-view{
        order: 2;
    }
    .cart_item_remove{
        position: absolute;
        bottom: 4px;
        right: 0;
    }

    .cart_item_title{
        font-weight: 600;
        font-size: 14px;
        font-family: "Titillium Web";
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .cart_item_brand{
        font-size: 14px;
    }

    .cart_item_value{
        flex-direction: column;
    }
    .cart_item_total{
        display: none;
    }
    .cart_item_info,.cart_item_price,.cart_item_total,.cart_item_quantity-view{
        max-width: none;
        width: 100%;
    }
    .cart_item_price{
        margin: 17px 0 14px;
        color: var(--dark-color);
        font-weight: 600;
        font-size: 14px;
        font-family: "Titillium Web";

    }
    .cart_item_quantity button{
        width:24px;
        height: 24px;
    }


    .cart_summary_view {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        /*top: 0;*/
        background: rgba(0,0,0,0.2);
        display: flex;
        z-index: -100;
        transition: transform 0.3s ease;
    }
    .cart_summary_view.expandedM {
        z-index: 100;
    }
    .cart_summary_note{
        margin-bottom: 24px;
    }

    .cart_summary{
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: 0;
        border: none;
        transform: translateY(100%);
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border-radius: 8px 8px 0 0;
    }
    .cart_summary_view.expandedMBG{
        top: 0;
    }
    .cart_summary_view.expandedM .cart_summary {
        transform: translateY(0);
    }

    .cart_summary_title {
        position: relative;
        cursor: pointer;
    }

    .cart_summary_title::after {
        content: '';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-100%) rotate(-135deg);
        width: 10px;
        height: 10px;
        margin-top: -2px;
        border-right: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        transition: all 0.3s ease;
    }

    .cart_summary_view.expanded .cart_summary_title::after {
        transform: translateY(-50%) rotate(45deg);
    }

    .cart_summary_bg {
        height: 0;
        overflow-y: auto;
    }

    .cart_summary_view.expanded .cart_summary_bg {
        height: max-content; /* 展开后的高度，根据实际内容调整 */
    }
    .cart_summary_note{
        display: none;
    }

    .cart_summary_view.expanded .cart_summary_note{
        display: block;
    }

    .cart_summary_label{
        font-weight: 400;
    }

}

/*@media screen and (max-width: 576px) {*/

/*    .cart_list,*/
/*    .cart_summary {*/
/*        padding: 16px;*/
/*    }*/

/*    .cart_item {*/
/*        padding: 16px 0;*/
/*    }*/

/*    .cart_item_image {*/
/*        width: 60px;*/
/*        height: 60px;*/
/*    }*/

/*    .cart_item_quantity {*/
/*        margin: 12px 0 0 44px;*/
/*    }*/

/*    .cart_item_quantity button {*/
/*        width: 24px;*/
/*        height: 24px;*/
/*        font-size: 14px;*/
/*    }*/

/*    .cart_item_quantity input {*/
/*        width: 40px;*/
/*    }*/

/*    .cart_item_remove {*/
/*        top: 16px;*/
/*        width: 20px;*/
/*        height: 20px;*/
/*    }*/

/*    .group_checkbox input[type="checkbox"],*/
/*    .cart_item_checkbox input {*/
/*        width: 14px;*/
/*        height: 14px;*/
/*    }*/
/*}*/

.cart_item_header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #F7F8FA;
}

.cart_item_checkbox_header {
    width: 30px;
}

.cart_item_image_header {
    width: 120px;
    padding: 0 10px;
}

.cart_item_info_header {
    flex: 2;
    padding: 0 10px;
}

.cart_item_price_header,
.cart_item_quantity_header,
.cart_item_total_header {
    max-width: 140px;
    flex: 1;
}
.cart_item_quantity_header{
    margin: 0 32px;
}

.cart_item_remove_header {
    width: 100px;
}

.checkout_button:disabled {
    background-color: #E5E5E5;
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.20);
}

.cart_summary_content {
    transition: opacity 0.3s ease;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.cart_no_items .cart_summary_row {
    color: #666;
}

.cart_no_items .amount {
    color: #666;
}

.checkout_button[disabled] {
    background: #E5E5E5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 移除禁用状态下的悬停效果 */
.checkout_button[disabled]:hover {
    opacity: 0.7;
}


