/* Slide-over cart drawer (assets/site/cart-drawer.js) - liquid glass, matches the shop page drawer */
.zg-cd { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.zg-cd.is-open { pointer-events: auto; }
.zg-cd__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.zg-cd.is-open .zg-cd__backdrop { opacity: 1; }
.zg-cd__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; display: flex; flex-direction: column; outline: none;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(32px) saturate(190%); -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-left: 1px solid rgba(255, 255, 255, .95); box-shadow: -15px 0 50px -5px rgba(15, 23, 42, .18), inset 1px 0 2px rgba(255, 255, 255, 1);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.zg-cd.is-open .zg-cd__panel { transform: none; }
html.zg-cd-lock, html.zg-cd-lock body { overflow: hidden; }

.zg-cd__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(226, 232, 240, .8); background: rgba(255, 255, 255, .6); }
.zg-cd__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zg-cd__title h3 { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.zg-cd__bag { width: 36px; height: 36px; border-radius: 999px; background: #eff6ff; color: #2563eb; display: grid; place-items: center; flex: none; }
.zg-cd__bag svg { width: 18px; height: 18px; }
.zg-cd__count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.zg-cd__x { width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(241, 245, 249, .9); color: #334155; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .15s; }
.zg-cd__x:hover { background: #e2e8f0; transform: rotate(90deg); }
.zg-cd__x svg { width: 16px; height: 16px; }

.zg-cd__list { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.zg-cd__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 6px 20px -12px rgba(15, 23, 42, .25); }
.zg-cd__item.is-gone { opacity: .6; }
.zg-cd__thumb { width: 62px; height: 62px; flex: none; border-radius: 12px; overflow: hidden; background: #f1f5f9; display: grid; place-items: center; font-size: 28px; }
.zg-cd__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zg-cd__info { flex: 1; min-width: 0; }
.zg-cd__name { font-size: 13.5px; font-weight: 600; color: #0f172a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zg-cd__name a { color: inherit; text-decoration: none; }
.zg-cd__name a:hover { color: #2563eb; }
.zg-cd__meta { font-size: 11.5px; color: #64748b; margin-top: 2px; }
.zg-cd__meta em { font-style: normal; color: #dc2626; font-weight: 600; }
.zg-cd__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.zg-cd__qty { display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; overflow: hidden; }
.zg-cd__qty button { width: 28px; height: 28px; border: 0; background: transparent; color: #0f172a; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1; }
.zg-cd__qty button:hover:not(:disabled) { background: #f1f5f9; }
.zg-cd__qty button:disabled { opacity: .35; cursor: not-allowed; }
.zg-cd__qty b { min-width: 22px; text-align: center; font-size: 13px; color: #0f172a; }
.zg-cd__price { font-size: 14px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.zg-cd__rm { width: 30px; height: 30px; flex: none; border: 0; border-radius: 999px; background: transparent; color: #94a3b8; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.zg-cd__rm:hover { background: #fef2f2; color: #dc2626; }
.zg-cd__rm svg { width: 16px; height: 16px; }

.zg-cd__empty { text-align: center; padding: 56px 16px; color: #64748b; }
.zg-cd__empty-ic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 999px; background: rgba(241, 245, 249, .9); display: grid; place-items: center; font-size: 32px; }
.zg-cd__empty b { display: block; font-size: 15px; color: #0f172a; }
.zg-cd__empty p { margin: 6px 0 18px; font-size: 13px; }
.zg-cd__shop { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 26px; border-radius: 999px; background: #111; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s; }
.zg-cd__shop:hover { background: #e3242b; }

.zg-cd__foot { padding: 16px 20px 20px; border-top: 1px solid rgba(226, 232, 240, .8); background: rgba(255, 255, 255, .75); display: flex; flex-direction: column; gap: 10px; }
.zg-cd__foot[hidden] { display: none; }
.zg-cd__sub { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; color: #475569; font-weight: 500; }
.zg-cd__sub b { font-size: 19px; font-weight: 700; color: #0f172a; }
.zg-cd__note { margin: -4px 0 2px; font-size: 11.5px; color: #64748b; }
.zg-cd .zg-cart-checkout { text-decoration: none; }
.zg-cd__more { border: 0; background: transparent; color: #475569; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.zg-cd__more:hover { color: #0f172a; }

@media (max-width: 480px) {
  .zg-cd__panel { max-width: none; }
  .zg-cd__foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .zg-cd__panel, .zg-cd__backdrop { transition: none; } }
