.hd{position:fixed;inset:0;z-index:9999;direction:rtl;font-family:'Heebo',sans-serif;color:#2B1E16}
.hd[hidden]{display:none}
.hd-overlay{position:absolute;inset:0;background:rgba(43,30,22,.45);opacity:0;transition:opacity .3s}
.hd-panel{position:absolute;top:0;bottom:0;right:0;width:min(420px,100%);background:#FBF6EF;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);box-shadow:-8px 0 30px rgba(0,0,0,.12);outline:none}
.hd.is-open .hd-overlay{opacity:1}
.hd.is-open .hd-panel{transform:none}
.hd-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #E8DCCD}
.hd-head h2{margin:0;font-family:'Rubik',sans-serif;font-weight:800;font-size:22px}
.hd-count{font-weight:500;color:#6B5A4E;font-size:16px}
.hd-x{width:44px;height:44px;border:0;background:transparent;border-radius:22px;cursor:pointer;color:#2B1E16;display:flex;align-items:center;justify-content:center}
.hd-x:hover{background:#EADFD2}
.hd-added{display:flex;align-items:center;gap:10px;margin:14px 20px 0;padding:12px 14px;border-radius:12px;background:#E3EADF;color:#2F4A2A;font-weight:700;animation:hdPop .45s cubic-bezier(.2,1.4,.4,1)}
@keyframes hdPop{from{transform:scale(.9);opacity:0}to{transform:none;opacity:1}}
.hd-free{margin:14px 20px 0;font-size:14px}
.hd-free p{margin:0 0 8px}
.hd-bar{height:8px;border-radius:4px;background:#EADFD2;overflow:hidden}
.hd-bar i{display:block;height:100%;background:#A84B24;border-radius:4px;transition:width .4s}
.hd-list{list-style:none;margin:0;padding:8px 20px;overflow-y:auto;flex:1}
.hd-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #E8DCCD}
.hd-item img{width:80px;height:80px;border-radius:12px;object-fit:cover;background:#EADFD2;flex:none}
.hd-info{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.hd-name{font-weight:700;color:#2B1E16;text-decoration:none}
.hd-opt{font-size:13px;color:#6B5A4E}
.hd-row{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.hd-row b{font-family:'Rubik',sans-serif;font-size:17px}
.hd-qty{display:flex;align-items:center;border:1.5px solid #E8DCCD;border-radius:999px;background:#fff}
.hd-qty button{width:36px;height:36px;border:0;background:none;font-size:18px;cursor:pointer;color:#2B1E16}
.hd-qty span{min-width:22px;text-align:center;font-weight:700}
.hd-rm{align-self:flex-start;border:0;background:none;padding:4px 0;color:#6B5A4E;font-size:13px;text-decoration:underline;cursor:pointer}
.hd-empty{padding:40px 0;text-align:center;color:#6B5A4E}
.hd-foot{padding:16px 20px 20px;border-top:1px solid #E8DCCD;background:#fff;display:flex;flex-direction:column;gap:10px}
.hd-total{display:flex;justify-content:space-between;align-items:center;font-size:18px}
.hd-total b{font-family:'Rubik',sans-serif;font-size:22px}
.hd-note{margin:0;font-size:13px;color:#6B5A4E}
.hd-checkout{display:flex;align-items:center;justify-content:center;min-height:56px;border-radius:14px;background:#A84B24;color:#fff!important;font-family:'Rubik',sans-serif;font-weight:700;font-size:18px;text-decoration:none}
.hd-checkout:hover{filter:brightness(.92)}
.hd-cont{min-height:44px;border:0;background:none;color:#2B1E16;text-decoration:underline;cursor:pointer;font:inherit}
.hd-trust{display:flex;justify-content:center;gap:14px;font-size:12px;color:#6B5A4E;flex-wrap:wrap}
.hd-trust span:before{content:"✓ ";color:#2F6B3A;font-weight:700}
.hd.is-busy .hd-list{opacity:.5;pointer-events:none}
.hd-err{margin:10px 0 0;color:#8A2D12;font-size:14px}
.is-loading{position:relative;color:transparent!important}
.is-loading:after{content:"";position:absolute;width:22px;height:22px;border:3px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:hdSpin .7s linear infinite}
@keyframes hdSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hd-panel,.hd-overlay,.hd-added{transition:none;animation:none}}