/* Melatone shop — cart drawer (Stripe Checkout backend, no Snipcart) */
.mlt-cart-count{position:absolute;top:-6px;right:-8px;min-width:17px;height:17px;padding:0 4px;background:#7A6138;color:#FAF7F2;font-size:10px;font-weight:600;line-height:17px;border-radius:999px;text-align:center;}
.mlt-cart-count:empty,.mlt-cart-count[data-empty="1"]{display:none;}

.mlt-cart-overlay{position:fixed;inset:0;background:rgba(26,26,26,.42);opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease;z-index:2147483000;}
.mlt-cart-overlay.open{opacity:1;visibility:visible;}

.mlt-cart{position:fixed;top:0;right:0;height:100%;width:min(420px,100%);background:#F9F1E3;box-shadow:-12px 0 40px rgba(60,45,25,.20);transform:translateX(100%);transition:transform .32s cubic-bezier(.4,0,.2,1);z-index:2147483001;display:flex;flex-direction:column;font-family:'Inter',system-ui,sans-serif;}
.mlt-cart.open{transform:translateX(0);}
.mlt-cart-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #EAE0CE;}
.mlt-cart-head h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:24px;font-weight:500;color:#1A1A1A;margin:0;letter-spacing:-.01em;}
.mlt-cart-close{background:none;border:0;cursor:pointer;color:#7A6138;padding:6px;line-height:0;border-radius:4px;}
.mlt-cart-close:hover{background:#F1E9D8;}

.mlt-cart-body{flex:1;overflow-y:auto;padding:8px 22px;}
.mlt-cart-empty{text-align:center;color:#9A9186;font-weight:300;font-size:14px;padding:56px 10px;}
.mlt-cart-empty a{color:#7A6138;font-weight:500;}

.mlt-ci{display:grid;grid-template-columns:56px 1fr auto;gap:13px;padding:15px 0;border-bottom:1px solid #EAE0CE;align-items:center;}
.mlt-ci-thumb{width:56px;height:56px;background:#EEE1C7;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.mlt-ci-thumb img{width:100%;height:100%;object-fit:contain;}
.mlt-ci-name{font-size:13.5px;font-weight:500;color:#1A1A1A;line-height:1.3;}
.mlt-ci-size{font-size:11px;color:#9A9186;letter-spacing:.03em;margin-top:1px;}
.mlt-ci-qty{display:inline-flex;align-items:center;gap:0;margin-top:7px;border:1px solid #EAE0CE;border-radius:2px;overflow:hidden;}
.mlt-ci-qty button{width:24px;height:24px;background:#FBF7EF;border:0;cursor:pointer;color:#7A6138;font-size:14px;line-height:1;}
.mlt-ci-qty button:hover{background:#F1E9D8;}
.mlt-ci-qty span{min-width:26px;text-align:center;font-size:12.5px;color:#1A1A1A;font-variant-numeric:tabular-nums;}
.mlt-ci-right{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:8px;}
.mlt-ci-price{font-size:13.5px;font-weight:500;color:#1A1A1A;font-variant-numeric:tabular-nums;}
.mlt-ci-rm{background:none;border:0;cursor:pointer;color:#9A9186;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;padding:2px;}
.mlt-ci-rm:hover{color:#BC5B39;}

.mlt-cart-foot{border-top:1px solid #EAE0CE;padding:18px 22px calc(18px + env(safe-area-inset-bottom));background:#F6EFE1;}
.mlt-cart-line{display:flex;justify-content:space-between;font-size:13px;color:#4A443C;margin-bottom:6px;}
.mlt-cart-line.total{font-size:16px;font-weight:600;color:#1A1A1A;margin:10px 0 4px;}
.mlt-cart-ship{font-size:11.5px;color:#7A6138;margin-bottom:14px;font-weight:400;}
.mlt-cart-checkout{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:15px;background:#1A1A1A;color:#FAF7F2;font-size:13px;font-weight:500;letter-spacing:.04em;border:0;cursor:pointer;transition:background .2s ease;}
.mlt-cart-checkout:hover{background:#7A6138;}
.mlt-cart-checkout[disabled]{opacity:.55;cursor:default;}
.mlt-cart-secure{text-align:center;font-size:10.5px;color:#9A9186;margin-top:10px;letter-spacing:.03em;}
.mlt-cart-err{background:#F7E4DC;border:1px solid #E0B9A8;color:#8A3B22;font-size:12px;padding:9px 12px;margin-bottom:12px;border-radius:2px;}
.mlt-cart-toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);background:#2B2723;color:#F6F0E2;font-size:13px;padding:12px 20px;border-radius:3px;box-shadow:0 10px 30px rgba(0,0,0,.25);opacity:0;transition:opacity .3s,transform .3s;z-index:2147483002;max-width:90vw;text-align:center;}
.mlt-cart-toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
