/**
 * Shopify-Style Cart Synchronized with Diennuoc360 Design System
 * Theme: diennuoc360-theme
 * Canvas: #f1f4f9 | Primary: #002f5c | CTA: #b8621b | Secondary: #0284c7
 * 100% Free of System Emojis - Powered by Lucide SVGs
 * STRICTLY SCOPED UNDER body.woocommerce-cart TO PREVENT ANY REGRESSION
 */

/* ==========================================================================
   1. CANVAS & PAGE WRAPPER
   ========================================================================== */
body.woocommerce-cart {
    background-color: #f1f4f9 !important;
    color: #1e293b;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.woocommerce-cart .dn360-cart-main-page {
    padding-top: 24px !important;
    padding-bottom: 96px !important;
    margin-bottom: 60px !important;
}

body.woocommerce-cart .shopify-cart-page-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   2. TOP CART HERO BANNER (DESIGN SYSTEM V3)
   ========================================================================== */
body.woocommerce-cart .dn360-cart-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 36px;
    margin-bottom: 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #002f5c 0%, #001e3d 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 47, 92, 0.15);
}

body.woocommerce-cart .dn360-cart-banner .dn360-checkout-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    flex-shrink: 0;
}

body.woocommerce-cart .dn360-cart-banner .dn360-commerce-eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 4px;
}

body.woocommerce-cart .dn360-cart-banner h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
    line-height: 1.2;
}

body.woocommerce-cart .dn360-cart-banner p {
    margin: 0;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
}

/* ==========================================================================
   3. EMPTY CART STATE
   ========================================================================== */
body.woocommerce-cart .shopify-cart-empty-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    margin-bottom: 40px;
}

body.woocommerce-cart .shopify-cart-empty-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #eff6ff;
    color: #002f5c;
    margin-bottom: 24px;
    border: 2px solid #dbeafe;
}

body.woocommerce-cart .shopify-cart-empty-title {
    font-size: 22px;
    font-weight: 800;
    color: #002f5c;
    margin: 0 0 10px 0;
}

body.woocommerce-cart .shopify-cart-empty-desc {
    max-width: 580px;
    margin: 0 auto 32px auto;
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
}

body.woocommerce-cart .shopify-cart-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

body.woocommerce-cart .btn-shopify-cart-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #b8621b;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(184, 98, 27, 0.3);
    transition: all 0.2s ease;
}

body.woocommerce-cart .btn-shopify-cart-shop:hover {
    background: #9f4f11;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 98, 27, 0.4);
}

body.woocommerce-cart .btn-shopify-cart-quote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: #ffffff;
    color: #002f5c !important;
    border: 1.5px solid #002f5c;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.woocommerce-cart .btn-shopify-cart-quote:hover {
    background: #002f5c;
    color: #ffffff !important;
}

body.woocommerce-cart .shopify-cart-empty-shortcuts {
    border-top: 1px solid #f1f5f9;
    padding-top: 28px;
    max-width: 680px;
    margin: 0 auto;
}

body.woocommerce-cart .shortcuts-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
}

body.woocommerce-cart .shortcuts-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.woocommerce-cart .shortcut-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

body.woocommerce-cart .shortcut-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #0284c7 !important;
}

/* ==========================================================================
   4. MAIN 2-COLUMN SHOPIFY CART LAYOUT
   ========================================================================== */
body.woocommerce-cart .shopify-cart-container {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 40px;
}

/* LEFT COLUMN */
body.woocommerce-cart .shopify-cart-main {
    min-width: 0;
}

body.woocommerce-cart .shopify-cart-items-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

body.woocommerce-cart .shopify-cart-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

body.woocommerce-cart .shopify-cart-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.woocommerce-cart .shopify-cart-header-title svg {
    color: #002f5c;
}

body.woocommerce-cart .shopify-cart-header-title h2 {
    font-size: 18px;
    font-weight: 800;
    color: #002f5c;
    margin: 0;
}

body.woocommerce-cart .shopify-item-count-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

body.woocommerce-cart .shopify-cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0284c7 !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

body.woocommerce-cart .shopify-cart-continue-link:hover {
    color: #0369a1 !important;
    text-decoration: underline;
}

/* ==========================================================================
   5. CART PRODUCTS TABLE (DESKTOP)
   ========================================================================== */
body.woocommerce-cart .shopify-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
}

body.woocommerce-cart .shopify-cart-table thead {
    display: table-header-group !important;
}

body.woocommerce-cart .shopify-cart-table thead tr,
body.woocommerce-cart .shopify-cart-table tr.shopify-cart-table-head {
    display: table-row !important;
}

body.woocommerce-cart .shopify-cart-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

body.woocommerce-cart .shopify-cart-table thead th.product-thumb-col {
    width: 76px;
    padding: 12px 6px 12px 16px;
}

body.woocommerce-cart .shopify-cart-table thead th.product-name-col {
    text-align: left;
    padding: 12px 14px;
}

body.woocommerce-cart .shopify-cart-table thead th.product-price-col {
    width: 105px;
    text-align: center;
    padding: 12px 10px;
}

body.woocommerce-cart .shopify-cart-table thead th.product-quantity-col {
    width: 130px;
    text-align: center;
    padding: 12px 10px;
}

body.woocommerce-cart .shopify-cart-table thead th.product-subtotal-col {
    width: 115px;
    text-align: right;
    padding: 12px 16px;
}

body.woocommerce-cart .shopify-cart-table thead th.product-remove-col {
    width: 44px;
    text-align: center;
    padding: 12px 6px;
}

body.woocommerce-cart .shopify-cart-item-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

body.woocommerce-cart .shopify-cart-item-row:hover {
    background: #fafcff;
}

body.woocommerce-cart .shopify-cart-item-row td {
    padding: 16px 14px;
    vertical-align: middle;
    text-align: left !important;
}

/* THUMBNAIL */
body.woocommerce-cart .shopify-cart-thumb-cell {
    width: 76px;
    padding: 16px 6px 16px 16px !important;
}

body.woocommerce-cart .shopify-cart-thumb-box {
    width: 68px;
    height: 68px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.woocommerce-cart .shopify-cart-thumb-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* NAME & DETAILS */
body.woocommerce-cart .shopify-cart-name-cell {
    min-width: 180px;
}

body.woocommerce-cart .shopify-cart-product-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.woocommerce-cart .shopify-cart-product-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a !important;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

body.woocommerce-cart .shopify-cart-product-title:hover {
    color: #0284c7 !important;
}

body.woocommerce-cart .shopify-cart-meta-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

body.woocommerce-cart .shopify-cart-sku-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

body.woocommerce-cart .shopify-cart-bulk-badge {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* UNIT PRICE */
body.woocommerce-cart .shopify-cart-price-cell {
    width: 105px;
    text-align: center !important;
    white-space: nowrap;
    padding: 16px 10px !important;
}

body.woocommerce-cart .shopify-cart-unit-price {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

/* QUANTITY STEPPER */
body.woocommerce-cart .shopify-cart-qty-cell {
    text-align: center !important;
    width: 130px;
    padding: 16px 10px !important;
}

body.woocommerce-cart .shopify-cart-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    height: 38px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

body.woocommerce-cart .shopify-cart-qty-wrap:focus-within {
    border-color: #002f5c;
    box-shadow: 0 0 0 2px rgba(0, 47, 92, 0.1);
}

body.woocommerce-cart .shopify-cart-qty-btn {
    width: 32px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.15s ease;
    user-select: none;
}

body.woocommerce-cart .shopify-cart-qty-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

body.woocommerce-cart .shopify-qty-input {
    width: 44px;
    height: 38px;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}

body.woocommerce-cart .shopify-qty-input::-webkit-outer-spin-button,
body.woocommerce-cart .shopify-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* SUBTOTAL */
body.woocommerce-cart .shopify-cart-subtotal-cell {
    width: 115px;
    text-align: right !important;
    white-space: nowrap;
    padding: 16px 16px !important;
}

body.woocommerce-cart .shopify-cart-row-subtotal {
    font-size: 15px;
    font-weight: 800;
    color: #002f5c;
}

/* REMOVE BUTTON */
body.woocommerce-cart .shopify-cart-remove-cell {
    text-align: center !important;
    width: 44px;
    padding: 16px 6px !important;
}

body.woocommerce-cart .shopify-cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #94a3b8 !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

body.woocommerce-cart .shopify-cart-remove-btn:hover {
    background: #fef2f2;
    color: #ef4444 !important;
}

/* ==========================================================================
   6. BOTTOM ACTIONS ROW (COUPON & UPDATE CART)
   ========================================================================== */
body.woocommerce-cart .shopify-cart-actions-row td {
    padding: 0;
}

body.woocommerce-cart .shopify-cart-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

body.woocommerce-cart .shopify-coupon-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.woocommerce-cart .shopify-coupon-input-wrap input.input-text {
    width: 220px;
    height: 40px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13.5px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
}

body.woocommerce-cart .shopify-coupon-input-wrap input.input-text:focus {
    border-color: #002f5c;
}

body.woocommerce-cart .btn-apply-coupon {
    height: 40px;
    padding: 0 18px;
    background: #002f5c;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

body.woocommerce-cart .btn-apply-coupon:hover {
    background: #001e3d;
}

body.woocommerce-cart .btn-shopify-update-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

body.woocommerce-cart .btn-shopify-update-cart:hover,
body.woocommerce-cart .btn-shopify-update-cart.is-active {
    border-color: #002f5c;
    color: #002f5c;
    background: #f1f5f9;
}

/* ==========================================================================
   7. RIGHT COLUMN: STICKY SUMMARY CARD
   ========================================================================== */
body.woocommerce-cart .shopify-cart-sidebar {
    min-width: 0;
}

body.woocommerce-cart .shopify-sidebar-sticky {
    position: sticky;
    top: 90px;
}

body.woocommerce-cart .shopify-cart-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    padding: 24px;
}

body.woocommerce-cart .shopify-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

body.woocommerce-cart .shopify-summary-heading h2 {
    font-size: 18px;
    font-weight: 800;
    color: #002f5c;
    margin: 0;
}

body.woocommerce-cart .shopify-summary-heading svg {
    color: #0284c7;
}

/* WOOCOMMERCE TOTALS HOOK STYLING */
body.woocommerce-cart .shopify-cart-summary-content .cart_totals {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals h2 {
    display: none !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals table.shop_table_responsive tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    width: 100% !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals table.shop_table_responsive tr th {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    text-transform: none !important;
    margin: 0 !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals table.shop_table_responsive tr th::after {
    display: none !important;
    content: none !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals table.shop_table_responsive tr td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: right !important;
    margin: 0 !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals table.shop_table_responsive tr td::before {
    display: none !important;
    content: none !important;
}

/* SHIPPING ROW BADGE */
body.woocommerce-cart .shopify-cart-summary-content .cart_totals tr.shipping td {
    font-size: 12px !important;
}

body.woocommerce-cart .shopify-shipping-badge,
body.woocommerce-cart .shopify-cart-summary-content .cart_totals tr.shipping .woocommerce-shipping-destination {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 11.5px;
    font-weight: 600;
}

/* GRAND TOTAL ROW */
body.woocommerce-cart .shopify-cart-summary-content .cart_totals tr.order-total {
    padding-top: 16px !important;
    border-top: 2px solid #e2e8f0 !important;
    border-bottom: none !important;
    margin-top: 6px !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals tr.order-total th {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #002f5c !important;
}

body.woocommerce-cart .shopify-cart-summary-content .cart_totals tr.order-total td,
body.woocommerce-cart .shopify-cart-summary-content .cart_totals tr.order-total td strong {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #b8621b !important;
}

/* PROCEED TO CHECKOUT BUTTON */
body.woocommerce-cart .shopify-cart-summary-content .wc-proceed-to-checkout {
    padding: 20px 0 0 0 !important;
    margin: 0 !important;
}

body.woocommerce-cart .shopify-cart-summary-content .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    background: #b8621b !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(184, 98, 27, 0.3) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

body.woocommerce-cart .shopify-cart-summary-content .wc-proceed-to-checkout .checkout-button:hover {
    background: #9f4f11 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(184, 98, 27, 0.4) !important;
}

/* SECONDARY ZALO BUTTON */
body.woocommerce-cart .shopify-cart-zalo-wrap {
    margin-top: 10px;
}

body.woocommerce-cart .btn-shopify-cart-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7 !important;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.woocommerce-cart .btn-shopify-cart-zalo:hover {
    background: #e0f2fe;
    color: #0369a1 !important;
    border-color: #7dd3fc;
}

/* GUARANTEE BADGES */
body.woocommerce-cart .shopify-cart-guarantee {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.woocommerce-cart .shopify-cart-guarantee .guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #475569;
}

body.woocommerce-cart .shopify-cart-guarantee .guarantee-item svg {
    color: #0284c7;
    flex-shrink: 0;
    margin-top: 1px;
}

body.woocommerce-cart .shopify-cart-guarantee .guarantee-item a {
    color: #002f5c;
    text-decoration: none;
}

body.woocommerce-cart .shopify-cart-guarantee .guarantee-item a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* ==========================================================================
   8. RESPONSIVE OPTIMIZATIONS (LAPTOP, TABLET & MOBILE)
   ========================================================================== */

/* MOBILE STICKY BOTTOM CHECKOUT TRIGGER BAR (HIDDEN BY DEFAULT ON DESKTOP & TABLET) */
body.woocommerce-cart .shopify-cart-mobile-sticky-bar {
    display: none !important;
}

/* LAPTOP / TABLET LANDSCAPE (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    body.woocommerce-cart .shopify-cart-container {
        grid-template-columns: minmax(0, 1fr) 340px !important;
        gap: 20px !important;
        padding: 0 16px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th {
        padding: 12px 8px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-thumb-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-thumb-cell {
        width: 66px !important;
        padding: 14px 4px 14px 12px !important;
    }

    body.woocommerce-cart .shopify-cart-thumb-box {
        width: 58px !important;
        height: 58px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-name-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-name-cell {
        text-align: left !important;
        padding: 14px 10px !important;
    }

    body.woocommerce-cart .shopify-cart-product-title {
        font-size: 13.5px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-price-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-price-cell {
        width: 90px !important;
        text-align: center !important;
        padding: 14px 6px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-quantity-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-qty-cell {
        width: 115px !important;
        text-align: center !important;
        padding: 14px 6px !important;
    }

    body.woocommerce-cart .shopify-cart-qty-wrap {
        height: 36px !important;
    }

    body.woocommerce-cart .shopify-cart-qty-btn {
        width: 28px !important;
        height: 36px !important;
    }

    body.woocommerce-cart .shopify-qty-input {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-subtotal-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-subtotal-cell {
        width: 100px !important;
        text-align: right !important;
        padding: 14px 12px !important;
    }

    body.woocommerce-cart .shopify-cart-row-subtotal {
        font-size: 14px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-remove-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-remove-cell {
        width: 38px !important;
        text-align: center !important;
        padding: 14px 4px !important;
    }

    body.woocommerce-cart .btn-shopify-update-cart {
        padding: 0 14px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart .shopify-coupon-input-wrap input.input-text {
        width: 170px !important;
    }
}

/* IPAD & TABLET PORTRAIT (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    body.woocommerce-cart .shopify-cart-container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 0 16px !important;
    }

    body.woocommerce-cart .shopify-sidebar-sticky {
        position: static !important;
    }

    /* Đảm bảo bảng hiển thị dạng table sang trọng, không bị vỡ hàng bởi WooCommerce CSS */
    body.woocommerce-cart .shopify-cart-table {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    body.woocommerce-cart .shopify-cart-table thead {
        display: table-header-group !important;
    }

    body.woocommerce-cart .shopify-cart-table thead tr,
    body.woocommerce-cart .shopify-cart-table tr.shopify-cart-table-head {
        display: table-row !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th {
        display: table-cell !important;
        font-size: 11.5px !important;
        padding: 12px 8px !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-thumb-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-thumb-cell {
        width: 66px !important;
        padding: 12px 6px 12px 14px !important;
    }

    body.woocommerce-cart .shopify-cart-thumb-box {
        width: 58px !important;
        height: 58px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-name-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-name-cell {
        text-align: left !important;
        padding: 12px 10px !important;
    }

    body.woocommerce-cart .shopify-cart-product-title {
        font-size: 13.5px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-price-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-price-cell {
        width: 90px !important;
        text-align: center !important;
        padding: 12px 6px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-quantity-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-qty-cell {
        width: 110px !important;
        text-align: center !important;
        padding: 12px 6px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-subtotal-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-subtotal-cell {
        width: 100px !important;
        text-align: right !important;
        padding: 12px 14px !important;
    }

    body.woocommerce-cart .shopify-cart-row-subtotal {
        font-size: 14px !important;
    }

    body.woocommerce-cart .shopify-cart-table thead th.product-remove-col,
    body.woocommerce-cart .shopify-cart-table td.shopify-cart-remove-cell {
        width: 40px !important;
        text-align: center !important;
        padding: 12px 6px !important;
    }

    body.woocommerce-cart .shopify-cart-table tbody {
        display: table-row-group !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .shopify-cart-item-row {
        display: table-row !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .shopify-cart-table td {
        display: table-cell !important;
        text-align: left !important;
        vertical-align: middle !important;
        padding: 12px 8px !important;
    }

    body.woocommerce-cart .shopify-cart-table td::before {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart .shopify-cart-qty-wrap {
        height: 34px !important;
    }

    body.woocommerce-cart .shopify-cart-qty-btn {
        width: 26px !important;
        height: 34px !important;
    }

    body.woocommerce-cart .shopify-qty-input {
        width: 34px !important;
        height: 34px !important;
        font-size: 12.5px !important;
    }

    body.woocommerce-cart .shopify-cart-actions-row {
        display: table-row !important;
    }

    body.woocommerce-cart .shopify-cart-actions-cell {
        display: table-cell !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .shopify-cart-bottom-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 18px !important;
        gap: 12px !important;
    }

    body.woocommerce-cart .shopify-coupon-input-wrap input.input-text {
        width: 200px !important;
        height: 38px !important;
        font-size: 13px !important;
    }

    body.woocommerce-cart .btn-apply-coupon,
    body.woocommerce-cart .btn-shopify-update-cart {
        height: 38px !important;
        padding: 0 14px !important;
        font-size: 12.5px !important;
    }
}

/* SMARTPHONE & MOBILE SCREENS (< 768px) */
@media (max-width: 767px) {
    body.woocommerce-cart {
        padding-bottom: 75px !important;
    }

    body.woocommerce-cart .dn360-cart-main-page {
        padding-top: 14px !important;
        padding-bottom: 40px !important;
        margin-bottom: 30px !important;
    }

    body.woocommerce-cart .shopify-cart-page-wrap {
        padding: 0 12px !important;
    }

    body.woocommerce-cart .shopify-cart-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    body.woocommerce-cart .dn360-cart-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 18px 16px !important;
        gap: 14px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-cart .dn360-cart-banner h1 {
        font-size: 20px !important;
    }

    body.woocommerce-cart .dn360-cart-banner p {
        font-size: 13px !important;
    }

    /* CARD HEADER TRÊN MOBILE */
    body.woocommerce-cart .shopify-cart-items-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        gap: 8px !important;
    }

    body.woocommerce-cart .shopify-cart-items-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px !important;
        gap: 8px !important;
    }

    body.woocommerce-cart .shopify-cart-header-title {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 8px !important;
    }

    body.woocommerce-cart .shopify-cart-header-title svg {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0 !important;
        color: #002f5c !important;
    }

    body.woocommerce-cart .shopify-cart-header-title h2 {
        font-size: 14.5px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        color: #002f5c !important;
        margin: 0 !important;
        flex: 1 !important;
        margin-left: 6px !important;
    }

    body.woocommerce-cart .shopify-item-count-badge {
        font-size: 11px !important;
        padding: 2px 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        line-height: 1.2 !important;
        background: #f1f5f9 !important;
        color: #475569 !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
    }

    body.woocommerce-cart .shopify-cart-continue-link {
        font-size: 12px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: #0284c7 !important;
        font-weight: 700 !important;
        align-self: flex-start !important;
        padding-top: 2px !important;
    }

    /* DANH SÁCH SẢN PHẨM DẠNG CARD CHUẨN NATIVE APP */
    body.woocommerce-cart .shopify-cart-table {
        display: block !important;
        width: 100% !important;
    }

    body.woocommerce-cart .shopify-cart-table thead {
        display: none !important;
    }

    body.woocommerce-cart .shopify-cart-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    body.woocommerce-cart .shopify-cart-table td::before {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart .shopify-cart-item-row {
        display: grid !important;
        grid-template-columns: 68px 1fr auto !important;
        grid-template-rows: auto auto !important;
        gap: 8px 12px !important;
        padding: 12px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        position: relative !important;
        align-items: start !important;
    }

    body.woocommerce-cart .shopify-cart-table td.product-thumbnail,
    body.woocommerce-cart .shopify-cart-thumb-cell {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 68px !important;
        height: 68px !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .shopify-cart-thumb-box {
        width: 68px !important;
        height: 68px !important;
        border-radius: 8px !important;
    }

    body.woocommerce-cart .shopify-cart-name-cell {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    body.woocommerce-cart .shopify-cart-product-title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    body.woocommerce-cart .shopify-cart-bulk-badge {
        white-space: nowrap !important;
        display: inline-block !important;
        font-size: 10.5px !important;
        padding: 2px 6px !important;
        line-height: 1.2 !important;
    }

    body.woocommerce-cart .shopify-cart-remove-cell {
        grid-column: 3 !important;
        grid-row: 1 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    body.woocommerce-cart .shopify-cart-remove-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        color: #94a3b8 !important;
    }

    body.woocommerce-cart .shopify-cart-remove-btn:hover {
        background: #fef2f2 !important;
        color: #ef4444 !important;
    }

    body.woocommerce-cart .shopify-cart-price-cell {
        display: none !important;
    }

    /* HÀNG DƯỚI CARD: BỘ TĂNG GIẢM BÊN TRÁI & TỔNG TIỀN BÊN PHẢI CÙNG ROW 2 */
    body.woocommerce-cart .shopify-cart-qty-cell {
        grid-column: 1 / span 2 !important;
        grid-row: 2 !important;
        width: auto !important;
        text-align: left !important;
        padding: 10px 0 0 0 !important;
        margin-top: 2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        border-top: 1px dashed #f1f5f9 !important;
    }

    body.woocommerce-cart .shopify-cart-qty-wrap {
        height: 36px !important;
    }

    body.woocommerce-cart .shopify-cart-qty-btn {
        width: 32px !important;
        height: 36px !important;
    }

    body.woocommerce-cart .shopify-qty-input {
        width: 40px !important;
        height: 36px !important;
        font-size: 13.5px !important;
    }

    body.woocommerce-cart .shopify-cart-subtotal-cell {
        grid-column: 3 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        text-align: right !important;
        padding: 10px 0 0 0 !important;
        margin-top: 2px !important;
        border-top: 1px dashed #f1f5f9 !important;
    }

    body.woocommerce-cart .shopify-cart-row-subtotal {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #002f5c !important;
        white-space: nowrap !important;
    }

    /* ACTIONS ROW MOBILE */
    body.woocommerce-cart .shopify-cart-actions-row {
        display: block !important;
        border: none !important;
    }

    body.woocommerce-cart .shopify-cart-actions-row td {
        display: block !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .shopify-cart-bottom-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 12px !important;
        gap: 10px !important;
    }

    body.woocommerce-cart .shopify-coupon-input-wrap {
        width: 100% !important;
    }

    body.woocommerce-cart .shopify-coupon-input-wrap input.input-text {
        flex: 1 !important;
        width: 100% !important;
        height: 42px !important;
        font-size: 13px !important;
    }

    body.woocommerce-cart .btn-apply-coupon {
        height: 42px !important;
        padding: 0 16px !important;
    }

    body.woocommerce-cart .btn-shopify-update-cart {
        width: 100% !important;
        height: 42px !important;
        justify-content: center !important;
    }

    /* TÓM TẮT ĐƠN HÀNG MOBILE */
    body.woocommerce-cart .shopify-cart-summary-card {
        padding: 18px 16px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-cart .shopify-summary-heading {
        margin-bottom: 14px !important;
        padding-bottom: 10px !important;
    }

    body.woocommerce-cart .shopify-cart-summary-content .wc-proceed-to-checkout .checkout-button {
        height: 48px !important;
        font-size: 14.5px !important;
    }

    body.woocommerce-cart .btn-shopify-cart-zalo {
        height: 42px !important;
        font-size: 13px !important;
    }

    /* EMPTY CART MOBILE */
    body.woocommerce-cart .shopify-cart-empty-card {
        padding: 36px 16px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-cart .btn-shopify-cart-shop,
    body.woocommerce-cart .btn-shopify-cart-quote {
        width: 100% !important;
        justify-content: center !important;
    }

    /* MOBILE STICKY BOTTOM CHECKOUT TRIGGER BAR */
    body.woocommerce-cart .shopify-cart-mobile-sticky-bar {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
        padding: 10px 16px !important;
        z-index: 9999 !important;
    }

    body.woocommerce-cart .shopify-mobile-bar-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        max-width: 480px !important;
        margin: 0 auto !important;
    }

    body.woocommerce-cart .shopify-mobile-bar-total {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
    }

    body.woocommerce-cart .mobile-bar-label {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        letter-spacing: 0.03em !important;
    }

    body.woocommerce-cart .mobile-bar-price {
        font-size: 17px !important;
        font-weight: 800 !important;
        color: #b8621b !important;
    }

    body.woocommerce-cart .btn-shopify-mobile-checkout {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 44px !important;
        padding: 0 20px !important;
        background: #b8621b !important;
        color: #ffffff !important;
        font-size: 14.5px !important;
        font-weight: 800 !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        box-shadow: 0 2px 10px rgba(184, 98, 27, 0.3) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    body.woocommerce-cart .btn-shopify-mobile-checkout:hover {
        background: #9f4f11 !important;
    }
}
