.cart-trigger{background:transparent;border:1px solid var(--bd);border-radius:9px;padding:10px 12px;color:var(--fg);font:600 13px var(--ff);cursor:pointer;white-space:nowrap}
.cart-trigger span{display:inline-block;min-width:20px;margin-left:5px;padding:0 5px;border-radius:5px;background:#35373d;font-size:11px}
#cart-dialog{width:min(600px,calc(100vw - 28px));max-height:90dvh;padding:0;border:1px solid #42444a;border-radius:18px;background:#1b1d21;color:var(--fg);overflow:auto;box-shadow:0 28px 90px #0008}
#cart-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
.cart-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:26px 28px;border-bottom:1px solid var(--bd)}
.cart-header h2{font-size:28px;margin:0}.cart-close{width:40px;height:40px;background:transparent;color:var(--fg);border:1px solid #55575e;border-radius:8px;font-size:24px;cursor:pointer}
.cart-body{padding:24px 28px}.cart-items{list-style:none;padding:0;margin:0}
.cart-item{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--bd)}
.cart-item>div{min-width:0}.cart-item h3{font-size:18px;line-height:1.35;margin:0 0 6px}.cart-item p{color:var(--mut);font-size:12px;margin:0 0 18px}.cart-item>strong{white-space:nowrap;font-size:17px}
.cart-item-controls{display:flex;align-items:flex-end;gap:18px}.cart-item label{color:#c9cbd1;max-width:90px;font-size:12px}.cart-item input{min-height:40px;padding:8px 10px}
.cart-remove{border:0;background:transparent;color:#ff9b92;font:13px var(--ff);padding:10px 0;cursor:pointer;text-decoration:underline}
.cart-subtotal{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:18px}.cart-subtotal strong{font-size:29px;letter-spacing:-.04em}
.cart-note{font-size:12px;color:var(--mut);line-height:1.6;margin:10px 0 20px}.cart-note a{color:#ffb4ab}
#cart-dialog .dialog-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin-top:20px}#cart-dialog .dialog-do{display:flex;gap:8px;margin-left:auto}#cart-dialog .dialog-actions .btn{width:auto;white-space:nowrap}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
#cart-message{color:#ffb4ab;font-size:13px;margin:14px 0;line-height:1.6}#cart-message:empty{display:none}
@media(max-width:500px){.cart-header{padding:20px}.cart-body{padding:22px 20px}.cart-item{gap:12px}.cart-item h3{font-size:16px}.cart-trigger{padding:10px 8px;font-size:12px}header nav{gap:8px}header nav .btn{padding:8px 12px;min-height:38px;font-size:14px}header img{width:112px}}

.cart-items input[readonly] { background:transparent; color:inherit; cursor:not-allowed; opacity:.7; }

.cart-trigger{display:inline-flex;align-items:center;gap:6px;padding:9px 11px}.cart-trigger svg{display:block}
.cart-trigger span{background:var(--ac);color:#fff;margin-left:0}.cart-trigger span:empty{display:none}
.cart-trigger.bump{animation:cart-bump .5s ease}@keyframes cart-bump{30%{transform:scale(1.18)}60%{transform:scale(.96)}}
@media(prefers-reduced-motion:reduce){.cart-trigger.bump{animation:none}}
@media(max-width:340px){header .wrap{padding:0 14px}header img{width:92px}header nav .btn{padding:8px 9px;font-size:13px}.nav-menu summary{padding:10px 2px}}
#cart-checkout[hidden]{display:none}
