/* Cart drawer — designed from the mockup system (cart card from Cart.dc.html, cream canvas, gold checkout). */
.scrim{ position:fixed; inset:0; z-index:90; background:rgba(22,35,30,.45); opacity:0; transition:opacity .25s; }
.scrim.open{ opacity:1; }
.drawer{ position:fixed; top:0; bottom:0; inset-inline-end:0; z-index:100; width:min(440px,100%); display:flex; flex-direction:column; background:#FBFAF6; color:#1C2620; font-family:var(--body); box-shadow:-20px 0 40px rgba(22,35,30,.18); transform:translateX(100%); visibility:hidden; transition:transform .3s ease, visibility 0s .3s; }
html[dir="rtl"] .drawer{ transform:translateX(-100%); box-shadow:20px 0 40px rgba(22,35,30,.18); }
.drawer.open, html[dir="rtl"] .drawer.open{ transform:none; visibility:visible; transition:transform .3s ease; }
html.drawer-open{ overflow:hidden; }
.drawer-head{ display:flex; align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid #ECE7DB; }
.drawer-head h2{ margin:0; font-family:var(--heading); font-weight:800; font-size:22px; }
.drawer .icon-btn{ width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #C9C3B3; border-radius:10px; background:#FFFFFF; color:#1C2620; cursor:pointer; }
.drawer-meter{ padding:14px 24px; border-bottom:1px solid #ECE7DB; font-size:14px; color:#33403A; background:#FFFFFF; }
.drawer-meter p{ margin:0 0 8px; }
.drawer-track{ height:6px; border-radius:3px; background:#ECE7DB; overflow:hidden; }
.drawer-track i{ display:block; height:100%; background:#1E5B4F; transition:width .3s; }
.drawer-body{ flex:1; overflow-y:auto; padding:8px 24px; }
.drawer-line{ display:grid; grid-template-columns:72px 1fr auto; gap:14px; padding:16px 0; border-bottom:1px solid #EEEBE2; }
.drawer-thumb{ width:72px; height:72px; border-radius:12px; overflow:hidden; background:#E4ECE6; }
.drawer-thumb img{ width:100%; height:100%; object-fit:cover; }
.drawer-thumb span{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:12px; color:#1E5B4F; }
.drawer-info a{ color:#1C2620; font-weight:600; font-size:15px; line-height:1.4; text-decoration:none; }
.drawer-info a:hover{ color:#1E5B4F; }
.drawer-controls{ display:flex; align-items:center; gap:14px; margin-top:10px; }
.drawer-qty{ display:inline-flex; align-items:center; border:1px solid #CFCABB; border-radius:10px; overflow:hidden; }
.drawer-qty button{ width:36px; height:36px; border:0; background:#F8F6EF; color:#1C2620; font-size:18px; cursor:pointer; }
.drawer-qty span{ min-width:32px; text-align:center; font-weight:700; }
.drawer-remove{ border:0; background:none; padding:6px 0; color:#56605A; text-decoration:underline; font:inherit; font-size:14px; cursor:pointer; }
.drawer-price{ font-weight:800; font-size:16px; color:#1E5B4F; white-space:nowrap; }
.drawer-empty{ padding:40px 0; text-align:center; }
.drawer-empty p{ font-size:17px; margin:0 0 18px; }
.drawer-foot{ padding:20px 24px; border-top:1px solid #ECE7DB; background:#FFFFFF; }
.drawer-foot:empty{ display:none; }
.drawer-total{ display:flex; justify-content:space-between; font-weight:800; font-size:20px; }
.drawer-note{ font-size:13px; color:#56605A; margin:6px 0 14px; }
.drawer-checkout{ width:100%; }
.toast{ position:fixed; bottom:24px; left:50%; transform:translate(-50%, 20px); background:#16231E; color:#FFFFFF; padding:12px 20px; border-radius:999px; font-size:14px; font-weight:600; opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; z-index:120; max-width:calc(100% - 32px); text-align:center; }
.toast.on, .toast.show{ opacity:1; transform:translate(-50%, 0); }
@media (prefers-reduced-motion:reduce){ .drawer, .scrim{ transition:none; } }
