/* web52 v2 — thiết kế mới: ngăn kéo giỏ hàng + trang /gio-hang kiểu checkout. Chỉ CSS (theme). Nạp SAU styles.css và CSS inline của layout/cart.
   Màu: nền thẻ #f5f5f7, bo 16px, xanh chính #00A3FF, chữ #1d1d1f / #6e6e73. Không đổi name/ID/class của form, thanh toán, mã khuyến mãi. */

/* ================= A. NGĂN KÉO GIỎ HÀNG (popup) ================= */
.mmc-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(15,18,25,.38);opacity:0;pointer-events:none;transition:opacity .22s ease}
.mmc-backdrop.on{opacity:1;pointer-events:auto}
html.mmc-lock{overflow:hidden}
html.mmc-page-cart .mmc-backdrop,html.mmc-page-cart .cart_sidebar{display:none!important}
html.mmc-page-cart.mmc-lock{overflow:auto}

html body .cart_sidebar{
  position:fixed;top:0;right:0;bottom:0;left:auto;width:456px;max-width:100vw;min-width:0;height:100vh!important;height:100dvh!important;max-height:none;
  padding:0!important;display:flex;flex-direction:column;overflow:hidden;z-index:10001;
  background:#fff!important;border-radius:20px 0 0 20px;box-shadow:-12px 0 48px rgba(0,0,0,.18);
  -webkit-backdrop-filter:none;backdrop-filter:none;color:#1d1d1f;letter-spacing:0;
  animation:mmc-drawer-in .28s cubic-bezier(.2,.8,.2,1);
}
.cart_sidebar.hidden{display:none!important}
@keyframes mmc-drawer-in{from{transform:translateX(36px);opacity:0}to{transform:none;opacity:1}}
@keyframes mmc-sheet-in{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}

/* header */
.cart_sidebar .cart_sidebar-title{display:flex;align-items:center;gap:14px;margin:0;padding:24px 72px 18px 24px;text-align:left;font-size:20px;line-height:1.25;font-weight:700;flex:0 0 auto;border:0}
.cart_sidebar .mmc-ok{flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:#e6f7ee;color:#1a9f5c;display:flex;align-items:center;justify-content:center}
.cart_sidebar .mmc-ttl{display:block;min-width:0}
.cart_sidebar .mmc-count{display:block;margin-top:2px;font-size:13px;font-weight:400;color:#6e6e73}
.cart_sidebar .cart_sidebar-close{position:absolute;top:20px;right:20px;width:36px;height:36px;border-radius:50%;background:#f5f5f7;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;transition:background .15s}
.cart_sidebar .cart_sidebar-close img{width:12px;height:12px;max-width:none;opacity:.7;display:block}
.cart_sidebar .cart_sidebar-close:hover{background:#e8e8ed}

/* danh sách */
.cart_sidebar .cart-info{margin:0;padding:6px 24px 16px;overflow-y:auto;flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch}
.cart_sidebar .clearfix{display:none}
.cart_sidebar .cart-info .mmc-item{display:flex;gap:16px;align-items:flex-start;margin:0 0 12px;padding:16px;border-radius:16px;background:#f5f5f7;box-shadow:none}
.mmc-item .mmc-thumb{flex:0 0 96px;width:96px;height:96px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.mmc-item .mmc-thumb img{width:100%;height:100%;max-width:none;object-fit:contain;display:block}
.mmc-item .mmc-body{flex:1 1 auto;min-width:0;position:relative}
.mmc-item .mmc-name{display:block;font-size:16px;line-height:1.3;font-weight:700;color:#1d1d1f;text-decoration:none;margin:0 0 2px}
.mmc-item .mmc-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}
.mmc-item .mmc-step{display:inline-flex;align-items:center;height:36px;padding:0 3px;border-radius:999px;background:#fff;border:1px solid #e3e3e8}
.mmc-item .mmc-step button{width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#1d1d1f;font-size:18px;line-height:1;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mmc-item .mmc-step button:hover{background:#f0f0f3;color:#00A3FF}
.mmc-item .mmc-step .mmc-q{min-width:28px;text-align:center;font-size:15px;font-weight:700}
.mmc-item .mmc-price{text-align:right;font-size:17px;line-height:1.2;font-weight:700;color:#1d1d1f;white-space:nowrap}
.mmc-item .mmc-price small{display:block;margin-top:2px;font-size:12px;font-weight:400;color:#6e6e73}
.mmc-item .mmc-del{margin:10px 0 0;padding:0;border:0;background:none;font-size:13px;color:#6e6e73;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.mmc-item .mmc-del:hover{color:#e5484d}
.mmc-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:60px 0;color:#9a9aa1}
.mmc-empty p{margin:0;font-size:15px;color:#6e6e73}

/* chân: tổng + nút (dính đáy) */
.cart_sidebar>.row{margin:0;flex:0 0 auto;padding:16px 24px 24px;border-top:1px solid #ececf0;background:#fff;box-shadow:0 -8px 24px rgba(0,0,0,.04)}
.cart_sidebar>.row>.col-8,.cart_sidebar>.row>.col-12{flex:0 0 100%;max-width:100%;padding:0}
.cart_sidebar>.row>.mt-3{margin-top:14px!important}
.cart_sidebar .cart_sidebar-total{font-size:14px!important;display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.cart_sidebar .cart_sidebar-total br{display:none}
.cart_sidebar .cart_sidebar-total p,.cart_sidebar .cart_sidebar-total p:first-of-type{float:none!important;margin:0;font-size:15px;color:#6e6e73;font-weight:500}
.cart_sidebar .cart_sidebar-total .cart_sidebar-price{font-size:24px;line-height:1.2;font-weight:800;color:#1d1d1f;white-space:nowrap}
.cart_sidebar .cart-info-actions{gap:0}
.cart_sidebar a.cart-info-btn-secondary{display:none!important}
.cart_sidebar a.cart-info-btn{display:flex;align-items:center;justify-content:center;width:100%;height:54px;padding:0 20px;border-radius:14px;font-size:16px;font-weight:700;line-height:1.2;text-decoration:none;background:#00A3FF;color:#fff;border:0;transition:filter .15s,transform .05s}
.cart_sidebar a.cart-info-btn:hover{filter:brightness(.94)}
.cart_sidebar a.cart-info-btn:active{transform:scale(.99)}
/* site có a:hover{color:#777!important} → giữ màu chữ */
.cart_sidebar a.cart-info-btn:hover,.cart_sidebar a.cart-info-btn:hover *,.cart_sidebar a.cart-info-btn:focus{color:#fff!important}
.cart_sidebar .mmc-item a.mmc-name:hover,.cart_sidebar .mmc-item a.mmc-name:hover *{color:#00A3FF!important}

/* mobile: bottom sheet */
@media(max-width:767.98px){
  html body .cart_sidebar{top:auto;left:0;right:0;bottom:0;width:100%;height:auto!important;max-height:88vh;max-height:88dvh;border-radius:22px 22px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.2);animation:mmc-sheet-in .28s cubic-bezier(.2,.8,.2,1)}
  .cart_sidebar::before{content:"";flex:0 0 auto;display:block;width:40px;height:4px;border-radius:2px;background:#d1d1d6;margin:10px auto 0}
  .cart_sidebar .cart_sidebar-title{padding:14px 64px 14px 20px;font-size:18px}
  .cart_sidebar .cart_sidebar-close{top:16px;right:16px}
  .cart_sidebar .cart-info{padding:0 16px 8px}
  .cart_sidebar .cart-info .mmc-item{padding:14px;gap:14px}
  .mmc-item .mmc-thumb{flex-basis:80px;width:80px;height:80px}
  .cart_sidebar>.row{padding:14px 16px calc(16px + env(safe-area-inset-bottom))}
}

/* chip cấu hình — dùng chung popup và /gio-hang */
.mmc-meta{margin-top:6px}
.mmc-meta:empty{display:none}
.mmc-meta .mmc-cfg{margin:0;font-size:13px;line-height:1.4;color:#515154;font-weight:500}
.mmc-meta .mmc-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.mmc-meta .mmc-tag{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;line-height:1.2;font-weight:600;color:#1d1d1f;background:#fff;border:1px solid #e3e3e8}
.cart_sidebar .mmc-meta .mmc-tag{background:#fff}
.mmc-meta .mmc-tag--w{color:#0082c8;background:#eaf6ff;border-color:#cfeaff}

/* ================= B. TRANG /gio-hang ================= */
.cart_page:not(.mmc-ready){visibility:hidden;animation:mmc-show 0s 1.6s forwards}
@keyframes mmc-show{to{visibility:visible}}
html.mmc-page-cart .cart_page{padding-bottom:56px;letter-spacing:0;color:#1d1d1f}
.cart_page h1{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;margin:28px 0 22px;font-size:32px;font-weight:800;letter-spacing:-.015em;color:#1d1d1f}
.cart_page h1 .mmc-h1-count{font-size:15px;font-weight:500;letter-spacing:0;color:#6e6e73}
.cart_page>.row{margin:0}
.cart_page>.row>.row{margin:0;display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:28px;align-items:start}
@media(max-width:1199.98px){.cart_page>.row>.row{grid-template-columns:minmax(0,1fr) 340px;gap:22px}}
@media(max-width:991.98px){.cart_page>.row>.row{grid-template-columns:minmax(0,1fr);gap:16px}}
.cart_page>.row>.row>*{padding-left:0;padding-right:0;max-width:100%;width:auto}
.cart_page .mmc-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.cart_page .mmc-main>*{flex:none}
.cart_page .mmc-sec>*{width:100%;max-width:100%;flex:none;padding-left:0;padding-right:0;margin-left:0;margin-right:0}
.cart_page .mmc-sec{background:#f5f5f7;border-radius:16px;padding:24px}
.cart_page .mmc-sec .mmc-sec-title,.cart_page .mmc-sec .cart_page-info-wrap h3,.cart_page .mmc-sec .cart_page-payment-wrap h3{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:0;font-size:20px;font-weight:700;line-height:1.2;letter-spacing:0;color:#1d1d1f}
.cart_page .mmc-sec .cart_page-info-wrap,.cart_page .mmc-sec .cart_page-payment-wrap{margin:0!important;padding:0;max-width:none;width:auto;flex:none}
.cart_page .mmc-sec .cart_page-info-wrap h3::before,.cart_page .mmc-sec .cart_page-payment-wrap h3::before{flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#00A3FF;color:#fff;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center}
.cart_page .mmc-sec .cart_page-info-wrap h3::before{content:"1"}
.cart_page .mmc-sec .cart_page-payment-wrap h3::before{content:"2"}

/* --- sản phẩm: dùng khối .cart-info cho mọi cỡ màn hình, ẩn bảng cũ --- */
.cart_page #cart-table{display:none!important}
.cart_page .cart-info.d-sm-none{display:flex!important;flex-direction:column;gap:12px;border:0;padding:0;margin:0}
.cart_page .cart-info .cart-info-item{
  display:grid;grid-template-columns:116px minmax(0,1fr) auto;grid-template-areas:"img name total" "img meta total" "img unit unit" "img act act";
  column-gap:20px;row-gap:3px;align-items:start;align-content:start;position:relative;margin:0;padding:16px;border-radius:14px;background:#fff;box-shadow:none;
}
.cart_page .cart-info .cart-info-item>.clearfix{display:none}
.cart_page .cart-info .cart-info-item>img{grid-area:img;flex:none;width:116px;height:116px;max-width:none;object-fit:contain;background:#f5f5f7;border-radius:12px;padding:6px;box-sizing:border-box}
.cart_page .cart-info-item-info,.cart_page .cart-info-item-text,.cart_page .cart-info-item-meta{display:contents}
.cart_page .cart-info-item-text h5{grid-area:name;margin:2px 0 0;font-size:18px;line-height:1.3;font-weight:700;color:#1d1d1f;letter-spacing:0}
.cart_page .cart-info-item .mmc-meta{grid-area:meta;margin-top:4px}
.cart_page .cart-info-item .mmc-unit{grid-area:unit;font-size:13px;color:#6e6e73;margin-top:6px}
.cart_page .cart-info-item-meta>span{display:none}
.cart_page .cart-info-item-meta b.js-item-line-total{grid-area:total;justify-self:end;align-self:start;margin-top:2px;font-size:20px;font-weight:800;color:#1d1d1f;white-space:nowrap}
.cart_page .cart-info-item-actions{grid-area:act;display:flex;align-items:center;gap:18px;margin-top:10px;flex-wrap:nowrap}
.cart_page .cart-info .input-add-remove-product{display:inline-flex;flex-wrap:nowrap;align-items:center;width:auto;height:40px;margin:0;padding:0 3px;border-radius:999px;background:#f5f5f7;border:0}
.cart_page .cart-info .input-add-remove-product .input-group-prepend,.cart_page .cart-info .input-add-remove-product .input-group-append{flex:0 0 auto;margin:0}
.cart_page .cart-info .input-add-remove-product button{display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin:0;padding:0;border:0!important;border-radius:50%!important;background:transparent;color:#1d1d1f;font-size:20px;line-height:1;box-shadow:none}
.cart_page .cart-info .input-add-remove-product button:hover{background:#e8e8ed;color:#00A3FF}
.cart_page .cart-info .input-add-remove-product input{flex:0 0 38px;width:38px!important;min-width:0;height:34px;margin:0!important;padding:0;border:0;background:transparent;box-shadow:none;text-align:center;font-size:16px;font-weight:700;color:#1d1d1f}
.cart_page .cart-info-item-actions a.remove-item{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:14px;color:#6e6e73;text-decoration:none;white-space:nowrap}
.cart_page .cart-info-item-actions a.remove-item::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12h10l1-12M9 7V4h6v3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12h10l1-12M9 7V4h6v3'/%3E%3C/svg%3E") center/contain no-repeat}
.cart_page .cart-info-item-actions a.remove-item:hover{color:#e5484d}

/* --- bước 1: thông tin giao hàng --- */
.cart_page .cart_page-info{background:transparent;box-shadow:none;border-radius:0;padding:0;margin:0}
.cart_page .cart_page-info>.row{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cart_page .cart_page-info>.row>[class*=col-],.cart_page .cart_page-info .form-row{display:contents}
.cart_page .cart_page-info .form-row>[class*=col-]{display:contents}
.cart_page .cart_page-info input.form-control,.cart_page .cart_page-info textarea.form-control{
  display:block;width:100%;height:52px;margin:0!important;padding:0 16px;border:1.5px solid #e3e3e8;border-radius:12px;background:#fff;box-shadow:none;
  font-size:16px;color:#1d1d1f;letter-spacing:0;transition:border-color .15s,box-shadow .15s;
}
.cart_page .cart_page-info input.form-control::placeholder,.cart_page .cart_page-info textarea.form-control::placeholder{color:#8e8e93}
.cart_page .cart_page-info input.form-control:focus,.cart_page .cart_page-info textarea.form-control:focus{outline:0;border-color:#00A3FF;box-shadow:0 0 0 4px rgba(0,163,255,.16)}
.cart_page .cart_page-info input[name=name],.cart_page .cart_page-info input[name=address],.cart_page .cart_page-info textarea.form-control{grid-column:1/-1}
.cart_page .cart_page-info textarea.form-control{height:112px;padding:14px 16px;resize:vertical}
@media(max-width:575.98px){.cart_page .cart_page-info>.row{grid-template-columns:1fr}}

/* --- bước 2: thanh toán — thẻ chọn kiểu radio --- */
.cart_page .mmc-pay{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cart_page .mmc-pay>[class*=col-]{flex:none;max-width:100%;width:auto;padding:0;margin:0}
@media(max-width:767.98px){.cart_page .mmc-pay{grid-template-columns:1fr}}
.cart_page .cart_page-payment{position:relative;height:100%;margin:0!important;padding:20px 20px 20px 60px;border:2px solid #e3e3e8;border-radius:14px;background:#fff;box-shadow:none;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.cart_page .cart_page-payment:hover{border-color:#b9e3ff}
.cart_page .cart_page-payment::before{content:"";position:absolute;left:20px;top:22px;width:22px;height:22px;border-radius:50%;border:2px solid #c7c7cc;background:#fff;box-sizing:border-box;transition:all .15s}
.cart_page .cart_page-payment::after{content:"";position:absolute;right:18px;top:16px;width:36px;height:36px;border-radius:10px;background:#f5f5f7 center/20px no-repeat}
.cart_page .cart_page-payment[data-value=bank]::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E")}
.cart_page .cart_page-payment[data-value=cod]::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 6.5h12v10h-12zM13.5 10h4.5l3.5 3.5v3h-8M5.5 19a1.8 1.8 0 100-3.6 1.8 1.8 0 000 3.6zM17 19a1.8 1.8 0 100-3.6 1.8 1.8 0 000 3.6z'/%3E%3C/svg%3E")}
.cart_page .cart_page-payment.active{border-color:#00A3FF;background:#f2faff;box-shadow:0 0 0 4px rgba(0,163,255,.1)}
.cart_page .cart_page-payment.active::before{border-color:#00A3FF;background:radial-gradient(circle,#00A3FF 0 4.5px,#fff 5px)}
.cart_page .cart_page-payment.active[data-value=bank]::after{background-color:#dff2ff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A3FF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E")}
.cart_page .cart_page-payment.active[data-value=cod]::after{background-color:#dff2ff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A3FF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 6.5h12v10h-12zM13.5 10h4.5l3.5 3.5v3h-8M5.5 19a1.8 1.8 0 100-3.6 1.8 1.8 0 000 3.6zM17 19a1.8 1.8 0 100-3.6 1.8 1.8 0 000 3.6z'/%3E%3C/svg%3E")}
.cart_page .cart_page-payment>p{margin:0 54px 8px 0;font-size:17px;font-weight:700;line-height:1.4;color:#1d1d1f;letter-spacing:0;text-align:left}
.cart_page .cart_page-payment div p{margin:0;font-size:14px;font-weight:500;line-height:1.55;color:#515154;text-align:left;letter-spacing:0}
.cart_page .cart_page-payment[data-value=bank] div p:nth-child(2){margin:6px 0 2px;font-size:22px;font-weight:800;letter-spacing:.05em;color:#1d1d1f}
.cart_page .cart_page-payment[data-value=bank] div p:nth-child(3){font-weight:700;color:#1d1d1f}

/* --- cột phải: tóm tắt đơn hàng (dính) --- */
.cart_page .mmc-aside{display:flex;flex-direction:column;gap:12px;min-width:0}
@media(min-width:992px){.cart_page .mmc-aside{position:sticky;top:84px}}
.cart_page .mmc-aside>[class*=col-]{flex:none;max-width:100%;width:auto;padding:0;margin:0}
.cart_page .cart_page-block-price{background:#f5f5f7;border-radius:16px;padding:24px}
.cart_page .cart_page-block-price::before{content:"Tóm tắt đơn hàng";display:block;margin-bottom:16px;font-size:20px;font-weight:700;color:#1d1d1f}
.cart_page .cart_page-block-price-row1,.cart_page .cart_page-block-price-row2{margin:0;padding:0;background:transparent;box-shadow:none;border-radius:0}
.cart_page .cart_page-block-price-row1>.col-12{display:flex;flex-direction:column;padding:0}
.cart_page .cart_page-block-price-item{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:7px 0}
.cart_page .cart_page-block-price-item .clearfix{display:none}
.cart_page .cart_page-block-price-item p{float:none!important;margin:0;font-size:15px;line-height:1.4;color:#515154;letter-spacing:0;text-align:right}
.cart_page .cart_page-block-price-item p:first-child{text-align:left;text-transform:lowercase}
.cart_page .cart_page-block-price-item p:first-child::first-letter{text-transform:uppercase}
.cart_page .cart_page-block-price-item p.text-black{color:#1d1d1f}
.cart_page .cart_page-block-price-item:nth-child(1){order:1}
.cart_page .cart_page-block-price-item:nth-child(3){order:2}
.cart_page .cart_page-block-price-item:nth-child(4){order:3}
.cart_page .cart_page-block-price-item:nth-child(2){order:4;margin-top:8px;padding-top:16px;border-top:1px dashed #cfcfd4}
.cart_page .cart_page-block-price-item:nth-child(2) p{font-size:16px;font-weight:700;color:#1d1d1f}
.cart_page .cart_page-block-price-item:nth-child(2) p.js-cart-grand-total{font-size:26px;font-weight:800;color:#00A3FF;line-height:1.15}
.cart_page .cart_page-block-price-row2{margin-top:16px;padding-top:16px;border-top:1px solid #e3e3e8}
.cart_page .input-group-coupon{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
.cart_page .input-group-coupon .input-group-prepend{display:none}
.cart_page .input-group-coupon input.form-control{flex:1 1 auto;min-width:0;height:48px;margin:0;padding:0 14px;border:1.5px solid #e3e3e8!important;border-radius:12px!important;background:#fff;box-shadow:none!important;font-size:15px;letter-spacing:0}
.cart_page .input-group-coupon input.form-control:focus{border-color:#00A3FF!important;box-shadow:0 0 0 4px rgba(0,163,255,.16)!important;outline:0}
.cart_page .input-group-coupon .input-group-append{margin:0}
.cart_page .input-group-coupon button.btn-submit-coupon{width:48px;height:48px;margin:0!important;padding:0;border:0;border-radius:12px;background:#00A3FF;box-shadow:none;display:flex;align-items:center;justify-content:center}
.cart_page .input-group-coupon button.btn-submit-coupon img{width:20px;filter:brightness(0) invert(1)}

/* nút xác nhận */
.cart_page .cart_page-checkout-wrap{margin:0!important;padding:0;max-width:100%;width:auto;flex:none}
.cart_page .cart_page-checkout-wrap .mmc-bar-total{display:none}
.cart_page .btn-checkout.cart_page-checkout{display:block;width:100%;height:58px;margin:0!important;padding:0 20px;border:0;border-radius:14px;background:#00A3FF;color:#fff;box-shadow:none;font-size:16px;font-weight:800;letter-spacing:.02em;transition:filter .15s}
.cart_page .btn-checkout.cart_page-checkout:hover{filter:brightness(.94);background:#00A3FF;color:#fff}

/* mobile / tablet: một cột + thanh tổng dính đáy */
@media(max-width:991.98px){
  html.mmc-page-cart .cart_page{padding-bottom:104px}
  .cart_page .mmc-aside{gap:0}
  .cart_page .cart_page-checkout-wrap{position:fixed;left:0;right:0;bottom:0;z-index:1040;display:flex!important;align-items:center;gap:14px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -8px 28px rgba(0,0,0,.12)}
  .cart_page .cart_page-checkout-wrap .mmc-bar-total{display:flex;flex-direction:column;flex:0 0 auto;text-align:left;line-height:1.2}
  .cart_page .cart_page-checkout-wrap .mmc-bar-total small{font-size:12px;color:#6e6e73}
  .cart_page .cart_page-checkout-wrap .mmc-bar-total b{font-size:19px;font-weight:800;color:#1d1d1f;white-space:nowrap}
  .cart_page .btn-checkout.cart_page-checkout{flex:1 1 auto;width:auto;height:50px;font-size:15px}
}
@media(max-width:575.98px){
  .cart_page h1{font-size:26px;margin:20px 0 16px}
  .cart_page .mmc-sec{padding:18px 16px;border-radius:16px}
  .cart_page .mmc-sec .mmc-sec-title,.cart_page .mmc-sec .cart_page-info-wrap h3,.cart_page .mmc-sec .cart_page-payment-wrap h3{font-size:18px;margin-bottom:14px}
  .cart_page .cart-info .cart-info-item{grid-template-columns:84px minmax(0,1fr) auto;grid-template-areas:"img name name" "img meta meta" "img unit unit" "act act total";column-gap:14px;padding:14px}
  .cart_page .cart-info .cart-info-item>img{width:84px;height:84px}
  .cart_page .cart-info-item-text h5{font-size:16px}
  .cart_page .cart-info-item-meta b.js-item-line-total{font-size:18px;align-self:center;margin:0}
  .cart_page .cart-info-item-actions{margin-top:12px;gap:12px}
  .cart_page .cart_page-block-price{padding:20px 16px}
  .cart_page .cart_page-payment{padding:18px 16px 18px 54px}
  .cart_page .cart_page-payment::before{left:16px;top:20px}
}

/* canh mã khuyến mãi theo mép khối tóm tắt */
.cart_page .cart_page-block-price-row2>.col-12,.cart_page .cart_page-block-price-row2>[class*=col-]{padding:0;max-width:100%;flex:0 0 100%}
.cart_page .input-group-coupon{width:100%;margin:0}


/* ================= C. /gio-hang khi GIỎ TRỐNG (không đụng layout khi còn hàng) ================= */
html.mmc-page-cart .cart_page.mmc-is-empty{padding-bottom:48px;letter-spacing:0;color:#1d1d1f}
html.mmc-page-cart .cart_page.mmc-is-empty > .row{margin:0;display:block;max-width:none}
.mmc-empty-page{display:flex;flex-direction:column;gap:20px;padding-bottom:8px}
.mmc-empty-hero{display:flex;align-items:center;gap:28px;padding:28px 32px;border-radius:16px;background:#f5f5f7}
.mmc-empty-ico{flex:0 0 88px;width:88px;height:88px;border-radius:50%;background:#fff;color:#00A3FF;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 1px rgba(0,0,0,.04)}
.mmc-empty-ico svg{width:44px;height:44px}
.mmc-empty-copy{flex:1 1 auto;min-width:0}
.mmc-empty-copy h2{margin:0 0 6px;font-size:26px;line-height:1.25;font-weight:800;letter-spacing:-.015em;color:#1d1d1f}
.mmc-empty-copy p{margin:0;font-size:16px;line-height:1.5;color:#515154;max-width:36em}
.mmc-empty-hero .mmc-empty-cta{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:52px;padding:0 28px;border-radius:14px;background:#00A3FF;color:#fff;font-size:16px;font-weight:700;text-decoration:none;white-space:nowrap;letter-spacing:0;transition:filter .15s}
.mmc-empty-hero .mmc-empty-cta:hover{filter:brightness(.94)}
.mmc-empty-hero .mmc-empty-cta:hover,.mmc-empty-hero .mmc-empty-cta:hover *,.mmc-empty-hero .mmc-empty-cta:focus{color:#fff!important;text-decoration:none}

.mmc-empty-block{background:#f5f5f7;border-radius:16px;padding:24px}
.mmc-empty-block h2{margin:0 0 16px;font-size:20px;font-weight:700;line-height:1.2;color:#1d1d1f;letter-spacing:0}
.mmc-empty-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.mmc-empty-tile{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 14px 18px;border-radius:14px;background:#fff;text-decoration:none;color:#1d1d1f;transition:transform .15s,box-shadow .15s}
.mmc-empty-tile:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.06)}
.mmc-empty-tile:hover,.mmc-empty-tile:hover *{color:#1d1d1f!important;text-decoration:none}
.mmc-empty-tile:hover .mmc-empty-go,.mmc-empty-tile:hover .mmc-empty-go *{color:#00A3FF!important}
.mmc-empty-tile .mmc-empty-timg{width:132px;height:132px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.mmc-empty-tile .mmc-empty-timg img{width:100%;height:100%;object-fit:contain;display:block}
.mmc-empty-tile .mmc-empty-glyph{width:132px;height:132px;margin-bottom:10px;border-radius:16px;background:#f5f5f7;color:#1d1d1f;display:flex;align-items:center;justify-content:center}
.mmc-empty-tile .mmc-empty-glyph svg{width:36px;height:36px}
.mmc-empty-tile h3{margin:0;font-size:17px;font-weight:700;line-height:1.3;letter-spacing:0;color:#1d1d1f}
.mmc-empty-tile .mmc-empty-desc{margin:4px 0 0;font-size:13px;line-height:1.4;color:#6e6e73;font-weight:400}
.mmc-empty-tile .mmc-empty-go{margin-top:10px;font-size:13px;font-weight:600;color:#00A3FF}

.mmc-empty-contact{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;padding:18px 24px;border-radius:16px;background:#f5f5f7}
.mmc-empty-contact a,.mmc-empty-contact span{display:inline-flex;align-items:center;gap:10px;font-size:14px;line-height:1.4;font-weight:500;color:#1d1d1f;text-decoration:none;letter-spacing:0}
.mmc-empty-contact a:hover,.mmc-empty-contact a:hover *{color:#00A3FF!important;text-decoration:none}
.mmc-empty-contact svg{flex:0 0 18px;width:18px;height:18px;color:#00A3FF}

@media(max-width:991.98px){
  html.mmc-page-cart .cart_page.mmc-is-empty{padding-bottom:32px}
  .mmc-empty-hero{flex-wrap:wrap;align-items:center;gap:14px 16px;padding:20px 16px}
  .mmc-empty-hero .mmc-empty-copy{flex:1 1 180px}
  .mmc-empty-hero .mmc-empty-cta{flex:1 1 100%;width:100%}
  .mmc-empty-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mmc-empty-block{padding:18px 16px}
  .mmc-empty-tile{padding:16px 10px 14px}
  .mmc-empty-tile .mmc-empty-timg,.mmc-empty-tile .mmc-empty-glyph{width:108px;height:108px}
  .mmc-empty-contact{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}
}
@media(max-width:575.98px){
  .mmc-empty-copy h2{font-size:22px}
  .mmc-empty-copy p{font-size:15px}
  .mmc-empty-ico{flex-basis:72px;width:72px;height:72px}
  .mmc-empty-ico svg{width:36px;height:36px}
  .mmc-empty-tile h3{font-size:16px}
  .mmc-empty-tile .mmc-empty-timg,.mmc-empty-tile .mmc-empty-glyph{width:96px;height:96px}
}
