.cart-drawer{position:fixed;inset-block:0;inset-inline-start:auto;inset-inline-end:0;width:min(460px,100vw);max-width:100vw;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--bg);color:var(--ink);box-shadow:-12px 0 48px #0002;overflow:hidden;font:inherit}
.cart-drawer::backdrop{background:rgba(15,24,23,.4);animation:cart-shade .2s ease-out}
.cart-drawer[open]{animation:cart-enter .25s ease-out}
[dir=rtl] .cart-drawer[open]{animation-name:cart-enter-rtl}
.cart-drawer .drawer-panel{height:100%;display:flex;flex-direction:column;text-align:start}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line);flex:none}
.drawer-head h2{font-size:21px;font-weight:600;line-height:1.3;letter-spacing:-.03em;margin:0 0 5px}
.drawer-head .drawer-count{font-size:12px;color:var(--muted)}
.cart-drawer .drawer-close{flex:none;border:1px solid var(--line);border-radius:50%;width:38px;height:38px;color:var(--ink);background:transparent;display:grid;place-items:center}
.cart-drawer .drawer-close:hover{background:var(--surface)}
.drawer-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px}
.cart-drawer .li{grid-template-columns:84px minmax(0,1fr);gap:12px 16px;align-items:start;padding-block:22px}
.cart-drawer .li:first-child{padding-top:0}
.cart-drawer .li:last-child{padding-bottom:0}
.cart-drawer .li .th{width:84px;grid-row:span 2}
.cart-drawer .li h3{margin:0 0 5px;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.cart-drawer .li .spec{line-height:1.7}
.cart-drawer .li .right{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.cart-drawer .li .right>b{width:100%;font-size:14px;font-weight:600}
.cart-drawer .li .qty{height:36px}
.cart-drawer .li .qty button{width:32px}
.drawer-footer{padding:22px 24px max(22px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);flex:none;background:var(--surface)}
.drawer-footer .sum{font-size:13px;gap:10px}
.drawer-footer .sum .total{font-size:18px}
.drawer-footer .freebar{font-size:12px}
.drawer-footer .btn{min-height:48px;width:100%;margin-top:12px}
.cart-drawer .drawer-footer .drawer-checkout{background:linear-gradient(115deg,#103e43,#176b63 55%,#124b50);color:#fff;border-color:#14544f}
.drawer-footer .drawer-checkout:hover{filter:brightness(1.08)}
.drawer-continue{display:block;margin:15px auto 0;border:0;background:transparent;color:var(--muted);font-size:12px;padding:5px 8px}
.drawer-continue:hover{color:var(--ink)}
.drawer-reassurance{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:var(--muted);margin-top:14px}
.drawer-reassurance svg{width:16px;height:16px}
.cart-drawer :focus-visible{outline:2px solid var(--petrole);outline-offset:3px}
.cart-drawer .empty{padding:28px 0;text-align:center}
@keyframes cart-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes cart-enter-rtl{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@keyframes cart-shade{from{opacity:0}to{opacity:1}}
@media(max-width:480px){.cart-drawer{width:100vw}.drawer-head{padding:18px}.drawer-head h2{font-size:20px}.drawer-body{padding:20px 18px}.drawer-footer{padding:18px 18px max(18px,env(safe-area-inset-bottom,0px))}}
@media(max-height:650px){.drawer-head{padding-block:12px}.drawer-footer{padding-block:12px}.drawer-footer .btn{margin-top:8px;min-height:42px}.drawer-footer .sum{gap:7px}.drawer-continue{margin-top:6px}.drawer-footer .freebar .track{display:none}}
@media(max-height:480px){.cart-drawer .drawer-panel{overflow-y:auto}.drawer-body{flex:none;overflow:visible}}
@media(prefers-reduced-motion:reduce){.cart-drawer[open],.cart-drawer::backdrop{animation:none}}