/* SIGMAN cart drawer — white panel from the right (live cart_type: drawer). */
.sgm-cartdrawer { position: fixed; inset: 0; z-index: 110; }
.sgm-cartdrawer[hidden] { display: none; }
.sgm-cartdrawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); border: 0; }
.sgm-cartdrawer__panel {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: min(92vw, 420px);
  background: var(--drawer-bg);
  color: var(--drawer-text);
  display: flex; flex-direction: column;
  box-shadow: var(--sgm-shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s var(--sgm-ease);
}
/* Open: panel slides in from the edge over a fading scrim; close is quicker. */
.sgm-cartdrawer__overlay { opacity: 0; transition: opacity 0.3s ease; }
.sgm-cartdrawer[data-open] .sgm-cartdrawer__overlay { opacity: 1; transition-duration: 0.4s; }
.sgm-cartdrawer[data-open] .sgm-cartdrawer__panel { transform: none; transition-duration: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .sgm-cartdrawer__panel, .sgm-cartdrawer__overlay { transition: none; }
}

.sgm-cartdrawer__inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.sgm-cd__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.sgm-cd__title { font-size: 1.2rem; margin: 0; }
.sgm-cd__count { opacity: 0.5; font-size: 0.9em; }
.sgm-cd__close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-inline-end: -10px; background: none; border: 0; font-size: 26px; cursor: pointer; line-height: 1; }

.sgm-cd__empty { padding: 40px 20px; text-align: center; display: grid; gap: 16px; justify-items: center; }

.sgm-cd__items { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.sgm-cd__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.sgm-cd__thumb img { width: 72px; height: 90px; object-fit: cover; display: block; background: #f6f6f6; }
.sgm-cd__name { font-weight: 600; font-size: 0.88rem; text-decoration: none; display: block; margin-bottom: 4px; }
.sgm-cd__meta { font-size: 0.75rem; opacity: 0.65; white-space: pre-line; margin-bottom: 6px; }
.sgm-cd__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sgm-cd__qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.sgm-cd__qty button { width: 36px; height: 36px; background: none; border: 0; cursor: pointer; font-size: 1rem; }
@media (pointer: coarse) { .sgm-cd__qty button { width: 44px; height: 44px; } }
.sgm-cd__qty span { min-width: 26px; text-align: center; font-size: 0.85rem; }
.sgm-cd__price { font-weight: 700; font-size: 0.88rem; }
.sgm-cd__remove { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -12px -12px 0 0; background: none; border: 0; cursor: pointer; font-size: 18px; opacity: 0.45; align-self: start; }
.sgm-cd__remove:hover { opacity: 1; }

.sgm-cd__foot { padding: 14px 20px 20px; border-top: 1px solid var(--color-border); display: grid; gap: 10px; }
.sgm-cd__coupon { display: flex; gap: 8px; }
.sgm-cd__coupon input { flex: 1; }
.sgm-cd__coupon .sgm-btn { padding: 10px 16px; }
.sgm-cd__coupon-msg { color: var(--color-sale); font-size: 0.78rem; margin: 0; }
.sgm-cd__applied { color: #1a7f37; font-size: 0.8rem; margin: 0; font-weight: 600; }
.sgm-cd__subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; }
.sgm-cd__note { font-size: 0.72rem; opacity: 0.6; margin: 0; }
.sgm-cd__freeship { display: grid; gap: 6px; }
.sgm-cd__freeship-text { margin: 0; font-size: 0.78rem; }
.sgm-cd__freeship-text .woocommerce-Price-amount { font-weight: 700; }
.sgm-cd__freeship-bar {
  display: block; height: 4px; border-radius: 999px;
  background: rgba(9, 36, 79, 0.12); overflow: hidden;
}
.sgm-cd__freeship-bar span { display: block; height: 100%; border-radius: 999px; background: var(--color-primary); transition: width 0.3s ease; }
.sgm-cd__freeship.is-unlocked .sgm-cd__freeship-text { color: #1a7f37; font-weight: 600; }
.sgm-cd__freeship.is-unlocked .sgm-cd__freeship-bar span { background: #1a7f37; }
.sgm-cd__checkout { width: 100%; }
.sgm-cd__cartlink { text-align: center; font-size: 0.8rem; }
.sgm-cd--loading { opacity: 0.5; pointer-events: none; }

/* Drawn icons, not glyphs: the text × sat off the CART cap-height. */
.sgm-cd__close svg { width: 20px; height: 20px; --icon-stroke-width: 1.5px; }
.sgm-cd__remove svg { width: 14px; height: 14px; --icon-stroke-width: 1.5px; }
/* Counts and totals don't jiggle as digits change. */
.sgm-cd__qty span, .sgm-cd__subtotal, .sgm-cd__price { font-variant-numeric: tabular-nums; }
