/* ===========================================
RESPONSIVE DESIGN FOR CART
=========================================== */
span.price_old, #floating-contact{
    display: none !important;
}
/* TABLET (iPad) - max-width: 1024px */
@media (max-width: 1024px) {
    .cart_page {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 15px !important;
        background: #fff !important;
        color: #000 !important;
        min-height: auto !important;
    }

    .cart_left {
        width: 100% !important;
    }

    .cart_right {
        width: 100% !important;
        margin-top: 20px !important;
        border-left: none !important;
        padding-left: 0 !important;
        background: #f8f9fa !important;
        padding: 20px !important;
        border-radius: 8px !important;
        border: 1px solid #dee2e6 !important;
    }

    .cart_head {
        font-size: 14px !important;
        padding-bottom: 8px !important;
        grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr !important; /* Thêm cột cho nút xóa */
    }

    .cart_left div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 12px 0 !important;
        align-items: flex-start !important;
        border-bottom: 1px solid #ccc !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(1) {
        flex: 0 0 60px !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(2) {
        flex: 1 !important;
        min-width: 120px !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(3) {
        flex: 0 0 80px !important;
        text-align: center !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(4) {
        flex: 0 0 80px !important;
        text-align: center !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(5) {
        flex: 0 0 90px !important;
        text-align: center !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(6) {
        flex: 0 0 40px !important;
        text-align: center !important;
    }

    .cart_right {
        padding: 20px !important;
        border-radius: 8px !important;
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        color: #000 !important;
    }

    .cart_right h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        color: #000 !important;
    }

    .summary_row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        font-size: 16px !important;
        border-bottom: 1px solid #dee2e6 !important;
        color: #000 !important;
    }

    .summary_row:last-child {
        border-bottom: none !important;
        font-weight: bold !important;
        font-size: 18px !important;
        color: #dc3545 !important;
    }

    .total_row {
        border-bottom: none !important;
        font-weight: bold !important;
        font-size: 18px !important;
        color: #dc3545 !important;
        background: #fff3cd !important;
        padding: 12px 0 !important;
        margin: 8px 0 !important;
        border-radius: 4px !important;
    }
}

/* MOBILE (iPhone) - max-width: 768px */
@media (max-width: 768px) {
    .cart_page {
        display:block !important;
        padding: 10px !important;
        gap: 15px !important;
        background: #fff !important;
        color: #000 !important;
    }

    .cart_head {
        display: grid !important;
        grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr !important;
        gap: 10px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #eee !important;
        font-size: 14px !important;
        color: #000 !important;
    }

    .cart_left div[style*="display: flex"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px 10px !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
        margin-bottom: 10px !important;
        background: #fafafa !important;
        border-bottom: none !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(1) {
        flex: 0 0 70px !important;
        text-align: center !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(1) img {
        max-width: 70px !important;
        height: auto !important;
        border-radius: 6px !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(2) {
        flex: 1 1 140px !important;
        text-align: left !important;
        min-width: 120px !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(3),
    .cart_left div[style*="display: flex"] > div:nth-child(4),
    .cart_left div[style*="display: flex"] > div:nth-child(5) {
        flex: 0 0 70px !important;
        text-align: center !important;
        display: block !important;
        order: initial !important;
        padding: 0 !important;
        color: #000 !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(3)::before,
    .cart_left div[style*="display: flex"] > div:nth-child(4)::before,
    .cart_left div[style*="display: flex"] > div:nth-child(5)::before {
        content: none !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(6) {
        flex: 0 0 40px !important;
        text-align: center !important;
        margin-top: 0 !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(6) button {
        width: 100% !important;
        padding: 8px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
        background: #ff4444 !important;
        color: white !important;
        border: none !important;
        cursor: pointer !important;
        font-weight: bold !important;
    }

    .cart_right {
        padding: 15px !important;
        border-radius: 8px !important;
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        color: #000 !important;
    }

    .cart_right h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        color: #000 !important;
    }

    .summary_row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        font-size: 16px !important;
        border-bottom: 1px solid #dee2e6 !important;
        color: #000 !important;
    }

    .summary_row:last-child {
        border-bottom: none !important;
        font-weight: bold !important;
        font-size: 18px !important;
        color: #dc3545 !important;
    }

    .total_row {
        border-bottom: none !important;
        font-weight: bold !important;
        font-size: 18px !important;
        color: #dc3545 !important;
        background: #fff3cd !important;
        padding: 12px 0 !important;
        margin: 8px 0 !important;
        border-radius: 4px !important;
    }

    .checkout_btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        margin-top: 15px !important;
        border-radius: 6px !important;
        background: #28a745 !important;
        color: white !important;
        border: none !important;
        cursor: pointer !important;
        font-weight: bold !important;
        transition: background 0.3s !important;
        text-decoration: none !important;
        display: inline-block !important;
        text-align: center !important;
    }

    .checkout_btn:hover {
        background: #218838 !important;
    }

    .coupon_section {
        margin: 10px 0 !important;
        padding: 8px !important;
        background: #f8f9fa !important;
        border-radius: 6px !important;
        border: 1px solid #dee2e6 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .coupon_section label {
        font-weight: bold !important;
        color: #000 !important;
        display: block !important;
        margin-bottom: 3px !important;
        font-size: 13px !important;
    }

    .coupon_section form {
        margin: 0 !important;
        padding: 0 !important;
    }

    .coupon_section div[style*="display: flex"] {
        gap: 5px !important;
        margin-top: 3px !important;
    }

    .coupon_section input[type="text"] {
        box-sizing: border-box !important;
        padding: 6px 8px !important;
        font-size: 13px !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }

    .coupon_btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .discount_row {
        color: #28a745 !important;
        font-weight: bold !important;
    }
}

/* SMALL MOBILE - max-width: 480px */
@media (max-width: 480px) {
    .cart_page {
        padding: 8px !important;
    }

    .cart_left div[style*="display: flex"] {
        padding: 12px 8px !important;
        margin-bottom: 8px !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(1) img {
        max-width: 80px !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(2) h3 {
        font-size: 14px !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(3),
    .cart_left div[style*="display: flex"] > div:nth-child(4),
    .cart_left div[style*="display: flex"] > div:nth-child(5) {
        font-size: 13px !important;
        padding: 1px 0 !important;
    }

    .cart_right {
        padding: 12px !important;
    }

    .cart_right h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    .summary_row {
        font-size: 14px !important;
        padding: 6px 0 !important;
    }

    .summary_row:last-child {
        font-size: 16px !important;
    }

    .total_row {
        font-size: 16px !important;
        padding: 10px 0 !important;
        margin: 6px 0 !important;
    }

    .checkout_btn {
        padding: 10px !important;
        font-size: 14px !important;
        margin-top: 12px !important;
    }

    .coupon_section {
        margin: 8px 0 !important;
        padding: 6px !important;
        box-sizing: border-box !important;
    }

    .coupon_section label {
        margin-bottom: 2px !important;
        font-size: 12px !important;
    }

    .coupon_section input[type="text"] {
        padding: 5px 6px !important;
        font-size: 12px !important;
    }

    .coupon_btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
   
}

/* COUPON STYLES FOR ALL BREAKPOINTS */
.coupon_section {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-sizing: border-box;
    overflow: hidden;
}

.coupon_section label {
    font-weight: bold;
    color: #000;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.coupon_section form {
    margin: 0;
    padding: 0;
}

.coupon_section input[type="text"] {
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 1;
}

.coupon_btn {
    white-space: nowrap;
    flex-shrink: 0;
}

    .total_row span:last-child {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .total_row span:last-child div {
        width: 100%;
        text-align: right;
    }
/* screen min width 1024px */
@media Screen and (min-width: 1024px) {

    ul.list_cart {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    li.list_product {
        display: flex;
        width: 32.33%;
        gap: 15px;
        padding: 12px 0;
        /* border-bottom: 1px solid #eee; */
    }
}
/* ===========================================
SITE-WIDE RESPONSIVE BASE
=========================================== */
html, body {
    overflow-x: hidden;
    min-width: 320px;
    background: #faf8f5;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, svg, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    max-width: 100%;
}

#wrapper_full, #wp_content, #content, #menu_phone, .checkout_page, .cart_page {
    width: 100%;
}

#wp_header {
    padding: 0 15px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.slick-slider, .owl-carousel, .row, .container.row {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1024px) {
    #wp_header {
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        min-height: auto;
        padding: 10px 15px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: linear-gradient(177deg, #ffec33f7, #eeeeeeb0);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .home_icon_left {
        margin-right: 0;
    }

    .logo_center {
        order: 2;
        flex: 1 1 100%;
        justify-content: center;
        padding: 0;
    }

    .cart_right {
        order: 3;
        width: auto;
        justify-content: flex-end;
        padding: 0;
    }

    #menu_phone {
        width: min(320px, 90%);
    }

    #wp_sidebar, #content {
        width: 100%;
    }

    #wp_sidebar {
        margin-bottom: 20px;
    }

    .checkout_page,
    .cart_page {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        padding: 0 5px;
    }

    .cart_right,
    .total_box,
    .payment_box,
    .order_table {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .h4_name{
        font-size: large !important;
    }
    .price_subb{
        color:red;  
          background: #ffffff9e;
            margin-bottom: 8px; 
            border-bottom: 4px solid blue;
             border-radius: 10px;
            }
    .order_img{
        display: none !important;
    }
    .checkout_left h2, .checkout_right h2 {
            font-size: larger;
        }
    #wp_header {
        padding: 10px 12px;
    }

    .logo_center img {
        height: 48px;
    }

    .cart_right {
        font-size: 18px;
    }

    .checkout_btn {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        margin-top: 15px !important;
        border-radius: 8px !important;
    }

    .order_table,
    .total_box,
    .payment_box,
    .coupon_section,
    .cart_left div[style*="display: flex"] {
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
        border-radius: 16px;
        border: none !important;
    }

    .cart_left div[style*="display: flex"] {
        padding: 14px !important;
        margin-bottom: 12px !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(2) {
        min-width: 100px !important;
    }

    .order_item,
    .cart_left div[style*="display: flex"] {
        align-items: flex-start !important;
    }

    #menu_phone {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .checkout_left h2,
.checkout_right h2 {
       
    font-size: x-large !important;
    
}
    #wp_header {
        padding: 8px 10px;
        gap: 10px;
    }

    .home_icon_left {
        font-size: 22px !important;
    }

    .logo_center {
        order: 2;
        flex: 1 1 100%;
        justify-content: center;
    }

    .cart_right {
        position: absolute;
        /* top: 12px; */
        right: 12px;
    }
 .h4_name{
        font-size: large !important;
    }
   
    .order_img{
        display: none !important;
    }
    .checkout_btn {
        font-size: 15px !important;
        padding: 14px 16px !important;
    }

    .cart_left div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(1),
    .cart_left div[style*="display: flex"] > div:nth-child(2),
    .cart_left div[style*="display: flex"] > div:nth-child(3),
    .cart_left div[style*="display: flex"] > div:nth-child(4),
    .cart_left div[style*="display: flex"] > div:nth-child(5),
    .cart_left div[style*="display: flex"] > div:nth-child(6) {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .cart_left div[style*="display: flex"] > div:nth-child(1) img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .coupon_section {
        padding: 10px !important;
    }
}

/* BACK TO HOME BUTTON RESPONSIVE */
@media (max-width: 768px) {
    #back-to-home {
        right: 15px !important;
        bottom: 80px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 14px !important;
    }

    #back-to-home i {
        font-size: 18px !important;
    }

    #back-to-home span {
        font-size: 9px !important;
    }
    .product-banner h1{
    color:#fff;
    font-size:55px;
        position: absolute;
    top: 25%;
    /* left: 15%; */
}
}

@media (max-width: 480px) {
    #back-to-home {
        right: 10px !important;
        bottom: 70px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 12px !important;
    }

    #back-to-home i {
        font-size: 16px !important;
    }

    #back-to-home span {
        font-size: 8px !important;
    }
}

/* DESKTOP LAYOUT - min-width: 1025px */
@media (min-width: 1025px) {
    #wp_sidebar {
        /* position: fixed; */
        /* left: 0; */
        /* top: 70px; Header height */
        width: 18%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        background: #e6cf09;
        z-index: 100;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
                border-radius: 20px;
    }

    #content {
        
        width: 81%;
                margin: 0px auto;
        min-height: calc(100vh - 70px);
    }

    footer {
        
        width: 100%;
    }
}
