body.cart-page { --cart-orange: var(--site-color-primary, #FF6B35); --cart-ink: var(--site-color-text, #1A1A2E); margin: 0; background: #fff; color: var(--cart-ink); font-family: 'Noto Sans Lao', sans-serif; line-height: 1.5; padding: 0 0 100px; }
.cart-page *, .cart-page *::before, .cart-page *::after { box-sizing: border-box; }
.cart-page :is(h1,h2,p,ol,dl,dd) { margin: 0; }
.cart-page a { text-decoration: none; }
.cart-page :is(button,a,input):focus-visible { outline: 3px solid #ff9c60; outline-offset: 4px; }
body.cart-page { padding-top: 64px; }
.cart-page .profile-sheet { z-index: 310; }
.cart-page .profile-overlay { z-index: 309; }
.cart-topbar { height: 82px; padding: 0 max(24px, calc((100% - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1e4e9; background: white; }
.cart-brand { display: flex; align-items: center; gap: 14px; color: var(--cart-ink); font-size: 29px; font-weight: 800; letter-spacing: -.8px; }
.cart-brand > svg { width: 32px; height: 38px; color: #ff650f; }
.cart-notifications { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--cart-ink); }
.cart-notifications svg { width: 29px; height: 29px; }
.cart-notifications i { position: absolute; width: 10px; height: 10px; background: #ff650f; border: 2px solid white; border-radius: 50%; top: 4px; right: 6px; }
.cart-main { max-width: 1120px; margin: auto; padding: 24px; }
.cart-agent { display: inline-flex; align-items: center; gap: 12px; padding: 6px 9px 6px 14px; border-radius: 15px; background: #e9f2ff; font-size: 14px; font-weight: 700; }
.cart-agent b { padding: 4px 10px; background: #cfe2ff; border-radius: 9px; font-size: 17px; }
.cart-heading { text-align: center; padding: 16px 0 20px; }
.cart-heading h1 { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 40px; font-weight: 800; line-height: 1.5; }
.cart-heading h1 span { font-size: 40px; }
.cart-heading h1 svg { width: 44px; height: 44px; color: var(--cart-orange); }
.cart-heading p { color: #737c88; font-size: 18px; margin-top: 2px; }
.cart-steps { position: sticky; top: var(--cart-header-height,64px); z-index: 40; list-style: none; display: flex; padding: 10px 0; max-width: 690px; margin: 0 auto 18px !important; background: white; border-bottom: 1px solid #eceff3; box-shadow: 0 5px 12px #1a1a2e06; }
.cart-steps li { position: relative; width: 25%; text-align: center; color: #7c8592; font-size: 15px; }
.cart-steps li:not(:last-child)::after { content: ''; position: absolute; height: 1px; background: #c4ccd6; left: calc(50% + 24px); right: calc(-50% + 24px); top: 15px; }
.cart-steps li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; margin: 0 auto 8px; border: 1px solid #c9ced7; border-radius: 50%; background: white; font-size: 15px; font-weight: 600; }
.cart-steps b { font-weight: 500; }
.cart-steps .current { color: var(--cart-orange); }
.cart-steps .current > span { background: linear-gradient(120deg,#ff7224,#f34815); border-color: #f45a20; color: white; font-size: 24px; }
.cart-steps .current b { font-weight: 700; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cart-items { display: grid; gap: 18px; min-width: 0; }
.cart-product, .cart-summary, .cart-empty { border: 1px solid #e4e7eb; border-radius: 20px; background: white; box-shadow: 0 5px 16px #1429460b; }
.cart-product { display: grid; grid-template-columns: 108px minmax(0,1fr) 24px; grid-template-rows: auto auto; gap: 14px; padding: 20px; align-items: center; }
.cart-product-photo { grid-row: 1 / 3; width: 108px; height: 108px; background: #f7f9fc; border-radius: 17px; overflow: hidden; display: grid; place-items: center; }
.cart-product-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-photo-fallback { font-size: 46px; }
.cart-photo-fallback[hidden] { display: none; }
.cart-product h2 { align-self: start; font-size: 18px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.cart-remove { width: 30px; height: 38px; border: 0; padding: 3px; background: transparent; color: #7a828d; cursor: pointer; align-self: start; }
.cart-remove svg { width: 24px; height: 26px; }
.cart-remove:hover { color: #e54832; }
.cart-product-controls { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cart-quantity { display: flex; align-items: center; gap: 12px; }
.cart-quantity :is(a,button), .cart-quantity-limit { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #214d7f; border-radius: 10px; color: var(--cart-ink); font-size: 23px; line-height: 1; background: linear-gradient(120deg, #fff,#f6f8fc); box-shadow: inset 0 0 0 2px #f4f7fb; }
.cart-quantity > span:not(.cart-quantity-limit) { min-width: 18px; text-align: center; font-weight: 700; font-size: 19px; }
.cart-quantity-limit { opacity: .35; }
.cart-product-price { color: var(--cart-orange); font-size: 19px; white-space: nowrap; }
.cart-summary { padding: 22px 18px 18px; }
.cart-summary h2 { font-size: 23px; font-weight: 800; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cart-summary h2 span { color: var(--cart-orange); font-size: 27px; }
.cart-summary h2 svg { width: 25px; height: 30px; color: #ff650f; }
.cart-shipping-notice { display: flex; align-items: center; gap: 9px; padding: 12px 14px; color: #f16b08; border: 1px solid #ff920d; border-radius: 11px; background: #fff5e7; font-size: 14px; font-weight: 600; line-height: 1.8; margin-bottom: 10px; }
.cart-shipping-notice > span { font-size: 21px; }
.cart-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; border-bottom: 1px solid #e1e5ea; font-size: 16px; }
.cart-totals > div:last-child { border: 0; }
.cart-totals dt { color: #354052; }
.cart-totals dd { text-align: right; white-space: nowrap; }
.cart-totals .cart-muted { color: #858d99; }
.cart-grand-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 12px; background: #fff2ec; border-radius: 14px; margin: 2px -4px 16px; }
.cart-grand-total b { font-size: 15px; }
.cart-grand-total strong { color: var(--cart-orange); font-size: 24px; white-space: nowrap; }
.cart-checkout, .cart-continue { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 13px; font-size: 20px; font-weight: 700; }
.cart-checkout { background: linear-gradient(115deg,#ff611a,#f44917); color: white; border: 1px solid #ee5b24; }
.cart-checkout:hover { filter: brightness(.96); }
body.cart-page.cart-has-items { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.cart-checkout-amount { padding-left: 12px; border-left: 1px solid #ffffff70; font-size: .8em; white-space: nowrap; }
.cart-continue { margin-top: 12px; border: 1px solid #cdd3dc; color: #5d6876; font-size: 17px; font-weight: 500; }
.cart-continue span { font-size: 29px; }
.cart-bottom-nav { position: fixed; z-index: 300; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; border-top: 1px solid #d9dee6; padding: 6px max(12px, calc((100% - 700px)/2)) max(6px,env(safe-area-inset-bottom)); background: #fffffffa; backdrop-filter: blur(12px); }
.cart-bottom-nav > * { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; max-width: 100px; min-height: 58px; background: none; border: 0; font: inherit; font-size: 13px; color: #777f8a; border-radius: 17px; cursor: pointer; }
.cart-bottom-nav > * > span { position: relative; font-size: 28px; line-height: 1.2; }
.cart-bottom-nav svg { width: 31px; height: 33px; display: block; }
.cart-bottom-nav .selected { background: #fff0e9; color: var(--cart-orange); }
.cart-bottom-nav b { position: absolute; right: -12px; top: -5px; background: #fb5617; color: white; border: 2px solid white; border-radius: 50%; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; }
.cart-empty { padding: 44px 24px; text-align: center; max-width: 560px; margin: auto; }
.cart-empty > span { font-size: 60px; }
.cart-empty p { color: #737c88; margin: 14px 0 24px; }
.cart-notice { position: fixed; z-index: 400; top: 72px; right: 18px; max-width: min(360px,calc(100vw - 36px)); padding: 12px; background: #fff5e7; border: 1px solid #fed7aa; box-shadow: 0 4px 20px #14294615; border-radius: 10px; font-size: 14px; }
.cart-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.cart-intro .cart-agent { max-width: 50%; min-width: 0; }
.cart-intro .cart-agent > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-intro .cart-agent b { flex-shrink: 0; }
.cart-intro .cart-heading { padding: 0; flex-shrink: 0; text-align: center; }
.cart-intro .cart-heading h1 { font-size: 30px; gap: 8px; white-space: nowrap; }
.cart-intro .cart-heading h1 svg { width: 32px; height: 32px; flex-shrink: 0; }
.cart-intro .cart-heading p { font-size: 15px; }
@media(max-width: 900px) {
    .cart-main { max-width: 650px; padding: 18px; }
    .cart-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .cart-topbar { height: 62px; padding: 0 24px; }
    .cart-brand { font-size: 27px; }
    .cart-brand > svg { width: 27px; height: 34px; }
    .cart-heading { padding-top: 10px; }
    .cart-heading h1 { font-size: 36px; }
    .cart-product { grid-template-columns: 108px minmax(0,1fr) 24px; padding: 18px; }
    .cart-intro .cart-heading h1 { font-size: clamp(20px,5.5vw,28px); gap: 6px; }
    .cart-intro .cart-heading h1 svg { width: 26px; height: 26px; }
    .cart-intro .cart-agent { gap: 6px; padding: 6px 7px; font-size: 12px; }
    .cart-intro .cart-agent b { padding: 4px 7px; font-size: 15px; }
}
@media(max-width: 390px) {
    .cart-main { padding: 14px; }
    .cart-brand { font-size: 24px; }
    .cart-product { grid-template-columns: 82px minmax(0,1fr) 22px; gap: 10px; padding: 14px; }
    .cart-product-photo { width: 82px; height: 96px; }
    .cart-product h2 { font-size: 16px; }
    .cart-product-price { font-size: 17px; }
    .cart-quantity { gap: 10px; }
    .cart-quantity :is(a,button), .cart-quantity-limit { width: 34px; height: 36px; }
    .cart-steps li { font-size: 12px; }
    .cart-grand-total b { font-size: 13px; }
    .cart-grand-total strong { font-size: 22px; }
}

/* Checkout actions replace bottom navigation while the cart contains items. */
.cart-page.cart-has-items .bottom-nav{display:none!important}
.cart-action-bar{position:fixed;z-index:301;bottom:0;left:0;right:0;display:flex;align-items:stretch;gap:10px;padding:10px max(12px,calc((100% - 760px)/2)) calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e2e5ea;box-shadow:0 -4px 20px #14294610}
.cart-action-back{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:88px;min-height:54px;padding:10px 12px;border:1px solid #dbe1e8;border-radius:13px;background:#fff;color:#59636f;font-size:16px;font-weight:600}
.cart-action-bar .cart-checkout{flex:1;min-width:0;width:auto;min-height:54px;gap:10px;padding:10px 12px;font-size:clamp(14px,3.8vw,19px);white-space:nowrap}
.cart-action-bar .cart-checkout-amount{font-size:inherit;padding-left:10px}
@media(max-width:360px){.cart-action-bar{gap:7px;padding-left:8px;padding-right:8px}.cart-action-back{min-width:72px;padding:8px;font-size:14px}.cart-action-bar .cart-checkout{gap:7px;padding:9px}.cart-action-bar .cart-checkout-amount{padding-left:7px}}
