/* Cart drawer (opened from the header cart icon and "Add to Cart" buttons) */
.cd-overlay{position:fixed;inset:0;background:rgba(46,22,8,.45);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;z-index:1100}
.cd-overlay.is-open{opacity:1;visibility:visible}

.cd{position:fixed;top:0;right:0;bottom:0;width:min(470px,100vw);z-index:1101;display:flex;flex-direction:column;
  background:#FEFBF7;color:#3A2A1E;text-align:left;font-family:'DM Sans','Poppins',sans-serif;
  box-shadow:-24px 0 48px -20px rgba(58,26,8,.35);transform:translateX(100%);visibility:hidden;transition:transform .3s ease,visibility .3s}
.cd.is-open{transform:none;visibility:visible}
.cd *{box-sizing:border-box}

.cd-head{display:flex;align-items:center;justify-content:space-between;padding:26px 28px 22px;border-bottom:1px solid #F0E4D0}
.cd-head h2{font-size:22px;font-weight:700;line-height:1;color:#5F2012}
.cd-x{width:42px;height:42px;border-radius:50%;border:0;background:#F8EADB;color:#7C1D0D;display:grid;place-items:center;cursor:pointer;transition:background .2s}
.cd-x:hover{background:#F1DCC3}
.cd-x:focus-visible{outline:2px solid #EE6A12;outline-offset:2px}

.cd-body{flex:1;min-height:0;overflow-y:auto;padding:0 28px}
.cd-empty{text-align:center;padding:72px 0;font-size:16px;color:#7b6a5a}

.cd-list{list-style:none}
.cd-item{display:flex;gap:16px;padding:22px 0;border-bottom:1px solid #F0E4D0}
.cd-thumb{flex:none;width:88px;height:88px;border-radius:12px;overflow:hidden;background:#FBEFE0}
.cd-thumb svg{display:block;width:100%;height:100%}
.cd-info{flex:1;min-width:0}
.cd-name{font-size:15.5px;font-weight:600;line-height:1.35;color:#3A2A1E}
.cd-size{margin-top:4px;font-size:13.5px;color:#8a7a68}
.cd-qty{display:inline-flex;align-items:center;margin-top:12px;background:#FBEFE0;border-radius:8px;overflow:hidden}
.cd-qty button{width:34px;height:34px;border:0;background:none;color:#5F2012;font-size:18px;cursor:pointer;transition:background .2s}
.cd-qty button:hover{background:#F5DDBE}
.cd-qty span{min-width:32px;text-align:center;font-size:15px;font-weight:600}

.cd-right{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.cd-price{font-size:16px;font-weight:600;color:#2b1a12;white-space:nowrap}
.cd-del{width:34px;height:34px;border:0;border-radius:50%;background:#FBE6E3;color:#c62828;display:grid;place-items:center;cursor:pointer;transition:background .2s}
.cd-del:hover{background:#F8D2CC}

.cd-foot{padding:20px 28px 24px;background:#FBF3E8;border-top:1px solid #F0E4D0}
.cd-sub{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;font-size:16px;font-weight:600;color:#5F2012}
.cd-sub strong{font-size:17px;color:#2b1a12}
.cd-btns{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cd-btn{display:flex;align-items:center;justify-content:center;height:52px;border-radius:10px;font:600 15px/1 'DM Sans','Poppins',sans-serif;text-decoration:none;cursor:pointer;transition:background .2s,color .2s}
.cd-btn--ghost{background:#fff;border:1.5px solid #6b2a17;color:#5F2012}
.cd-btn--ghost:hover{background:#fdf6ee}
.cd-btn--solid{background:#6b2a17;border:1.5px solid #6b2a17;color:#fff6e9}
.cd-btn--solid:hover{background:#5a2012}
.cd-btn:focus-visible{outline:2px solid #EE6A12;outline-offset:2px}

body.cd-lock{overflow:hidden}
@media (max-width:420px){
  .cd-head,.cd-body,.cd-foot{padding-left:18px;padding-right:18px}
  .cd-btns{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.cd,.cd-overlay{transition:none}}
.cd-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.cd-qty button[disabled]{opacity:.4;cursor:not-allowed}
