/* Cart Drawer (side cart) */
.cart-drawer { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 20000; pointer-events: none; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(13,39,87,.35); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cart-drawer.open { pointer-events: auto; }
.cart-drawer.open .cart-drawer-backdrop { opacity: 1; pointer-events: auto; }
.cart-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 400px; background: #fff;
    display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 30px rgba(0,0,0,.15);
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
html[dir="rtl"] .cart-drawer-panel { right: auto; left: 0; transform: translateX(-100%); }
html[dir="rtl"] .cart-drawer.open .cart-drawer-panel { transform: translateX(0); border-left: none; }

.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid #eef1f5; background: #fbfcfe; }
.cart-drawer-title { font-size: 1.05rem; font-weight: 800; color: #0d2757; margin: 0; display: flex; align-items: center; gap: .5rem; }
.cart-drawer-title i { color: #55b326; }
.cart-drawer-count { background: #55b326; color: #fff; font-size: .72rem; font-weight: 700; border-radius: 20px; padding: .18rem .55rem; min-width: 24px; text-align: center; }
.cart-drawer-close { background: none; border: none; font-size: 1.7rem; color: #94a3b8; cursor: pointer; line-height: 1; padding: 0 .2rem; }
.cart-drawer-close:hover { color: #0d2757; }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-empty { text-align: center; color: #94a3b8; padding: 2.5rem 1rem; }
.cart-empty i { font-size: 2.6rem; display: block; margin-bottom: .7rem; color: #cbd5e1; }
.cart-empty p { font-size: .95rem; margin: 0 0 1.1rem; }
.cart-browse-btn { display: inline-block; padding: .6rem 1.4rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .9rem; }

.cart-item { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid #f1f4f8; }
.cart-item-img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 700; color: #1e293b; font-size: .88rem; margin: 0 0 .25rem; }
.cart-item-price { color: #0a4294; font-weight: 700; font-size: .85rem; }
.cart-item-price .na { color: #94a3b8; font-weight: 500; }
.cart-item-controls { display: flex; align-items: center; gap: .5rem; margin-top: .45rem; }
.cart-qty-btn { width: 25px; height: 25px; border-radius: 6px; border: 1px solid #dbe4ef; background: #fff; color: #0d2757; font-weight: 800; cursor: pointer; line-height: 1; }
.cart-qty-btn:hover { background: #eef4ff; }
.cart-qty-val { font-weight: 700; color: #0d2757; min-width: 20px; text-align: center; }
.cart-item-remove { margin-left: auto; background: none; border: none; color: #e11d48; cursor: pointer; font-size: 1.05rem; padding: .2rem; }

.cart-drawer-footer { border-top: 1px solid #eef1f5; padding: 1rem 1.25rem 1.25rem; background: #fff; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.cart-summary-label { color: #64748b; font-size: .9rem; font-weight: 600; }
.cart-summary-value { color: #0a4294; font-size: 1.15rem; font-weight: 800; }
.cart-note { display: flex; gap: .4rem; align-items: flex-start; color: #94a3b8; font-size: .75rem; margin: 0 0 .9rem; }
.cart-submit-btn { display: flex; width: 100%; justify-content: center; align-items: center; gap: .5rem; padding: .9rem; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: .95rem; }
.cart-full-link { display: block; text-align: center; color: #0a4294; font-size: .82rem; font-weight: 600; margin-top: .7rem; text-decoration: none; }
.cart-full-link:hover { text-decoration: underline; }
@media (max-width: 420px) { .cart-drawer-panel { max-width: 100%; } }