/* SecureGuard cart */
.sg-cart-trigger{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:42px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:10px;
  background:#fff;color:#0f172a;font-weight:700;font-size:14px;line-height:1;
  cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.06);transition:.2s ease;
}
.sg-cart-trigger:hover{border-color:#2563eb;color:#1d4ed8;transform:translateY(-1px)}
.sg-cart-trigger svg{width:20px;height:20px;flex:none}
.sg-cart-count{
  display:inline-flex;min-width:20px;height:20px;padding:0 5px;align-items:center;justify-content:center;
  border-radius:999px;background:#2563eb;color:#fff;font-size:11px;font-weight:800;
}
.sg-cart-fab{display:none}
.sg-add-cart{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  margin:0 0 22px;padding:12px 18px;border:0;border-radius:10px;
  background:#0f172a;color:#fff;font-weight:700;cursor:pointer;transition:.2s ease;
}
.sg-add-cart:hover{background:#1d4ed8;transform:translateY(-1px)}
.sg-add-cart:focus-visible,.sg-cart-trigger:focus-visible,.sg-cart-action:focus-visible,.sg-cart-qty button:focus-visible,.sg-cart-close:focus-visible{
  outline:3px solid rgba(37,99,235,.35);outline-offset:2px
}
.sg-add-cart.sg-added{background:#15803d}
.sg-cart-backdrop{
  position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:9998;
  opacity:0;pointer-events:none;transition:opacity .2s ease
}
.sg-cart-backdrop.sg-open{opacity:1;pointer-events:auto}
.sg-cart-drawer{
  position:fixed;top:0;right:0;width:min(430px,100%);height:100dvh;z-index:9999;
  display:flex;flex-direction:column;background:#fff;box-shadow:-16px 0 40px rgba(15,23,42,.18);
  transform:translateX(105%);transition:transform .24s ease
}
.sg-cart-drawer.sg-open{transform:translateX(0)}
.sg-cart-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e2e8f0}
.sg-cart-head h2{margin:0;font-size:22px;font-weight:800;color:#0f172a}
.sg-cart-close{border:0;background:#f1f5f9;width:40px;height:40px;border-radius:10px;font-size:25px;line-height:1;cursor:pointer;color:#334155}
.sg-cart-body{flex:1;overflow:auto;padding:16px 20px}
.sg-cart-empty{padding:44px 10px;text-align:center;color:#64748b}
.sg-cart-item{padding:14px 0;border-bottom:1px solid #e2e8f0}
.sg-cart-item-top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.sg-cart-item-name{font-weight:750;color:#0f172a;line-height:1.35;text-decoration:none}
.sg-cart-item-name:hover{color:#2563eb}
.sg-cart-price-note{font-size:12px;color:#64748b;margin-top:4px}
.sg-cart-remove{border:0;background:none;color:#94a3b8;cursor:pointer;font-size:20px;padding:0 2px}
.sg-cart-remove:hover{color:#dc2626}
.sg-cart-item-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.sg-cart-qty{display:flex;align-items:center;gap:8px}
.sg-cart-qty button{width:32px;height:32px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font-size:18px;cursor:pointer}
.sg-cart-qty span{min-width:22px;text-align:center;font-weight:700}
.sg-cart-footer{border-top:1px solid #e2e8f0;padding:16px 20px 20px;background:#f8fafc}
.sg-cart-summary{display:flex;justify-content:space-between;gap:16px;margin-bottom:14px;color:#334155;font-weight:700}
.sg-cart-actions{display:grid;gap:10px}
.sg-cart-action{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;border:0;border-radius:10px;padding:12px 14px;font-weight:800;cursor:pointer}
.sg-cart-action-primary{background:#16a34a;color:#fff}
.sg-cart-action-primary:hover{background:#15803d}
.sg-cart-action-secondary{background:#2563eb;color:#fff}
.sg-cart-action-secondary:hover{background:#1d4ed8}
.sg-cart-clear{margin-top:10px;width:100%;border:0;background:none;color:#64748b;font-size:13px;cursor:pointer;padding:7px}
.sg-cart-clear:hover{color:#dc2626}
.sg-cart-toast{
  position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);z-index:10001;
  background:#0f172a;color:#fff;padding:11px 16px;border-radius:10px;font-size:14px;font-weight:700;
  opacity:0;pointer-events:none;transition:.2s ease;box-shadow:0 10px 30px rgba(15,23,42,.22)
}
.sg-cart-toast.sg-show{opacity:1;transform:translate(-50%,0)}
body.sg-cart-lock{overflow:hidden}
@media (max-width:767px){
  .sg-cart-trigger .sg-cart-label{display:none}
  .sg-cart-trigger{width:42px;padding:8px}
  .sg-cart-fab{
    display:flex;position:fixed;right:16px;bottom:18px;z-index:9990;width:56px;height:56px;
    border:0;border-radius:50%;background:#2563eb;color:#fff;align-items:center;justify-content:center;
    box-shadow:0 10px 26px rgba(37,99,235,.35);cursor:pointer
  }
  .sg-cart-fab svg{width:24px;height:24px}
  .sg-cart-fab .sg-cart-count{position:absolute;right:-2px;top:-3px;background:#dc2626}
}
