/* webcart 2026-11-17: header cart icon + badge, card "add to cart" button, product page button, toast. */
.cart-icon { position: relative; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
              background: hsl(var(--primary)); color: hsl(var(--primary-foreground, 0 0% 100%)); font-size: 11px; font-weight: 800;
              display: inline-grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px hsl(var(--background));
              font-variant-numeric: tabular-nums; pointer-events: none; }
.cart-badge[hidden] { display: none; }

.card-buy { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.sf3 .card-buy .view-btn { margin-top: 0; flex: 1; min-width: 0; }
.card-buy form { margin: 0; display: flex; }
.cart-add-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid hsl(var(--primary) / .45);
                background: hsl(var(--primary) / .08); color: hsl(var(--primary)); display: grid; place-items: center;
                cursor: pointer; flex: none; padding: 0; transition: background .15s, transform .15s; }
.cart-add-btn:hover { background: hsl(var(--primary) / .16); }
.cart-add-btn:focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: 2px; }
.cart-add-btn:disabled { opacity: .6; cursor: progress; }
.cart-add-btn svg { width: 20px; height: 20px; }
.cart-add-btn.is-added { background: hsl(var(--success, 142 71% 35%)); border-color: transparent; color: #fff; }
@media (max-width: 520px) { .cart-add-btn { width: 40px; height: 40px; } }

.pd-cart-form { margin: 0; display: contents; }
.pd-cart-btn { cursor: pointer; font: inherit; }
.pd-cart-btn.is-added { border-color: hsl(var(--success, 142 71% 35%)); color: hsl(var(--success, 142 71% 35%)); }

.cart-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999;
              background: hsl(var(--foreground)); color: hsl(var(--background)); padding: 12px 16px; border-radius: 12px;
              font-weight: 600; font-size: 14px; display: flex; gap: 14px; align-items: center;
              box-shadow: 0 12px 32px rgba(0, 0, 0, .28); max-width: calc(100vw - 32px); }
.cart-toast a { color: inherit; text-decoration: underline; font-weight: 800; white-space: nowrap; }
.cart-toast.is-error { background: hsl(var(--destructive)); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .cart-toast { animation: cartToastIn .2s ease-out; }
  @keyframes cartToastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
}

/* shopx 2026-11-17: wishlist heart */
.wish-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--background));
            color: hsl(var(--muted-foreground)); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0;
            transition: color .15s, border-color .15s, background .15s; }
.card-buy form[data-wish] { margin: 0; display: flex; }
.wish-btn svg { width: 20px; height: 20px; }
.wish-btn:hover { color: hsl(350 80% 52%); border-color: hsl(350 80% 52% / .5); }
.wish-btn:focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: 2px; }
.wish-btn.is-on { color: hsl(350 80% 52%); border-color: hsl(350 80% 52% / .45); background: hsl(350 80% 52% / .08); }
.wish-btn.is-on svg path { fill: currentColor; }
.pd-wish-btn { cursor: pointer; font: inherit; }
.pd-wish-btn.is-on { color: hsl(350 80% 52%); border-color: hsl(350 80% 52% / .5); }
@media (max-width: 520px) { .wish-btn { width: 40px; height: 40px; } }
