/* Slide-in cart drawer (kit CartDrawer.jsx). Standalone file — kept out of the
   minified customer.css blob. Light + dark, RTL-aware via logical properties. */
.sf-drawer { position: fixed; inset: 0; z-index: 1200; visibility: hidden; pointer-events: none; }
.sf-drawer.is-open { visibility: visible; pointer-events: auto; }
.sf-drawer__veil { position: absolute; inset: 0; background: rgba(5,5,7,.5); opacity: 0; transition: opacity .25s; }
.sf-drawer.is-open .sf-drawer__veil { opacity: 1; }
.sf-drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(400px, 92vw);
    background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(15,23,42,.18);
    transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); }
[dir=rtl] .sf-drawer__panel { transform: translateX(-100%); box-shadow: 8px 0 30px rgba(15,23,42,.18); }
.sf-drawer.is-open .sf-drawer__panel { transform: none; }

.sf-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 1.25rem; border-bottom: 1px solid #eef1f5; }
.sf-drawer__head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #0B0E14; }
.sf-drawer__x { border: none; background: none; font-size: 1.35rem; line-height: 1; cursor: pointer; color: #64748B; width: 32px; height: 32px; border-radius: 8px; }
.sf-drawer__x:hover { background: #f1f5f9; color: #0B0E14; }

.sf-drawer__body { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.sf-drawer__loading { padding: 2rem; text-align: center; color: #94A3B8; }

.sf-drawer__items { flex: 1; overflow-y: auto; padding: .25rem 1.25rem; min-height: 0; }
.sf-citem { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid #f1f5f9; align-items: start; }
.sf-citem__thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #f8fafc; }
.sf-citem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-citem__info { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.sf-citem__name { font-size: .88rem; font-weight: 600; color: #0F172A; text-decoration: none; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-citem__var { font-size: .75rem; color: #64748B; }
.sf-citem__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .15rem; }
.sf-qty--sm { display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.sf-qty--sm button { width: 26px; height: 26px; border: none; background: #fff; cursor: pointer; font-size: 1rem; color: #0F172A; line-height: 1; }
.sf-qty--sm button:hover { background: #f1f5f9; }
.sf-qty__n { min-width: 28px; text-align: center; font-size: .85rem; font-weight: 600; }
.sf-citem__price { font-size: .9rem; font-weight: 700; color: #0B0E14; white-space: nowrap; }
.sf-citem__rm { border: none; background: none; cursor: pointer; color: #94A3B8; padding: .2rem; align-self: center; }
.sf-citem__rm:hover { color: #ef4444; }

.sf-drawer__foot { border-top: 1px solid #eef1f5; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; background: #fff; }
.sf-drawer__sub { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; color: #475569; }
.sf-drawer__sub b { font-size: 1.1rem; color: #0B0E14; }
.sf-drawer__note { margin: 0; font-size: .78rem; font-weight: 600; color: #047857; text-align: center; } /* a11y: #10B981 (2.54:1) → #047857 (4.8:1) AA */
.sf-drawer__x:focus-visible, .sf-qty--sm button:focus-visible, .sf-citem__rm:focus-visible, .sf-drawer__cta:focus-visible, .sf-drawer__link:focus-visible { outline: 2px solid var(--violet-600); outline-offset: 2px; } /* a11y: visible keyboard focus on drawer controls */
.sf-drawer__cta { display: block; text-align: center; background: var(--violet-600); color: #fff; padding: .8rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-size: .95rem; width: 100%; }
.sf-drawer__cta:hover { background: var(--violet-700); color: #fff; }
.sf-drawer__link { text-align: center; color: #64748B; font-size: .85rem; text-decoration: none; }
.sf-drawer__link:hover { color: var(--violet-600); }
.sf-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; color: #64748B; }
.sf-drawer__empty svg { width: 44px; height: 44px; color: #cbd5e1; }

/* Dark */
html.dark .sf-drawer__panel { background: #0f172a; box-shadow: -8px 0 30px rgba(0,0,0,.5); }
[dir=rtl] html.dark .sf-drawer__panel { box-shadow: 8px 0 30px rgba(0,0,0,.5); }
html.dark .sf-drawer__head { border-bottom-color: #1e293b; }
html.dark .sf-drawer__head h3 { color: #f1f5f9; }
html.dark .sf-drawer__x { color: #94A3B8; }
html.dark .sf-drawer__x:hover { background: #1e293b; color: #f1f5f9; }
html.dark .sf-citem { border-bottom-color: #1e293b; }
html.dark .sf-citem__thumb { background: #14161E; }
html.dark .sf-citem__name { color: #f1f5f9; }
html.dark .sf-citem__var { color: #94A3B8; }
html.dark .sf-qty--sm { border-color: #334155; }
html.dark .sf-qty--sm button { background: #1e293b; color: #f1f5f9; }
html.dark .sf-qty--sm button:hover { background: #334155; }
html.dark .sf-citem__price { color: #f1f5f9; }
html.dark .sf-drawer__foot { border-top-color: #1e293b; background: #0f172a; }
html.dark .sf-drawer__sub { color: #cbd5e1; }
html.dark .sf-drawer__sub b { color: #f1f5f9; }
html.dark .sf-drawer__loading, html.dark .sf-drawer__empty { color: #94A3B8; }
html.dark .sf-drawer__empty svg { color: #334155; }
