/* ---- Heart toggle ---- */
.cb-wl-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255, 255, 255, .94); color: #64748b; cursor: pointer; padding: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; transition: color .2s, box-shadow .2s, transform .2s; }
.cb-wl-btn:hover { color: #e11d48; transform: translateY(-1px); }
.cb-wl-btn:focus-visible { outline: 2px solid #e11d48; outline-offset: 2px; }
.cb-wl-btn.is-busy { opacity: .6; pointer-events: none; }
.cb-wl-heart-wrap { position: relative; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; }
.cb-wl-btn svg { width: 22px; height: 22px; overflow: visible; }
.cb-wl-btn .cb-wl-heart { fill: transparent; transition: fill .2s; }
.cb-wl-btn.is-on { color: #e11d48; }
.cb-wl-btn.is-on .cb-wl-heart { fill: currentColor; }
.cb-wl-btn.pop .cb-wl-heart-wrap { animation: cb-wl-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
.cb-wl-burst { position: absolute; inset: 4px; border-radius: 50%; pointer-events: none; opacity: 0; }
.cb-wl-btn.pop .cb-wl-burst { animation: cb-wl-burst .6s ease-out; }
.cb-wl-label { padding-right: 14px; }
.cb-wl-btn.cb-wl-lg { padding: 0 0 0 4px; border: 1px solid #e2e8f0; background: #fff; height: 44px; }
.cb-wl-btn.cb-wl-lg.is-on { border-color: #fecdd3; background: #fff1f2; }

/* On a product card: floats over the corner of the photo */
.cb-product-card { position: relative; }
.cb-wl-card { position: absolute; top: 10px; right: 10px; z-index: 3; box-shadow: 0 2px 8px rgba(15, 23, 42, .14); }
.cb-wl-card .cb-wl-heart-wrap { width: 36px; height: 36px; }

@keyframes cb-wl-pop { 0% { transform: scale(.6); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes cb-wl-burst { 0% { opacity: .7; transform: scale(.4); box-shadow: 0 0 0 0 rgba(225, 29, 72, .45); } 100% { opacity: 0; transform: scale(1.7); box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); } }

/* ---- Header icon ---- */
.cb-wl-link { position: relative; display: inline-flex; align-items: center; padding: 6px; color: inherit; text-decoration: none; }
.cb-wl-icon { display: inline-flex; width: 26px; height: 26px; transform-origin: 50% 60%; }
.cb-wl-icon svg { width: 26px; height: 26px; overflow: visible; }
.cb-wl-icon .cb-wl-heart { fill: transparent; }
.cb-wl-count { position: absolute; top: -3px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.cb-wl-count[data-count="0"] { display: none; }
.cb-wl-link:hover .cb-wl-icon { color: #e11d48; }
.cb-wl-link.is-in .cb-wl-icon { animation: cb-wl-beat .8s ease; color: #e11d48; }
.cb-wl-link.is-in .cb-wl-icon .cb-wl-heart { fill: currentColor; }
.cb-wl-link.is-in .cb-wl-count { animation: cb-count-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
.cb-wl-link.is-out .cb-wl-icon { animation: cb-cart-out .6s ease; }
.cb-wl-link.is-out .cb-wl-count { animation: cb-count-drop .5s ease; }
@keyframes cb-wl-beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.35); } 40% { transform: scale(.95); } 60% { transform: scale(1.22); } }

/* ---- Wishlist page ---- */
.cb-wl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.cb-wl-head h2 { margin: 0; }
.cb-wl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-wl-actions form { margin: 0; }
.cb-btn-ghost { background: #fff !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; }
.cb-btn-ghost:hover { border-color: #e11d48 !important; color: #e11d48 !important; }
.cb-wl-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: #f1f5f9; color: #475569; font-size: 14px; }
.cb-wl-item { position: relative; transition: opacity .35s ease, transform .35s ease; }
.cb-wl-item.is-leaving { opacity: 0; transform: scale(.94); }
.cb-wl-drop { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 3px 9px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(22, 163, 74, .35); }
.cb-wl-empty { text-align: center; padding: 56px 16px; border: 1px dashed #cbd5e1; border-radius: 16px; background: #fff; }
.cb-wl-empty h2 { margin: 12px 0 6px; }
.cb-wl-empty p { margin: 0 0 20px; color: #64748b; }
.cb-wl-empty-icon { display: inline-flex; width: 72px; height: 72px; color: #fda4af; }
.cb-wl-empty-icon svg { width: 72px; height: 72px; }
.cb-wl-empty-icon .cb-wl-heart { fill: #ffe4e6; animation: cb-wl-beat 2.4s ease-in-out infinite; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
	.cb-wl-btn *, .cb-wl-link *, .cb-wl-empty-icon *, .cb-wl-item { animation: none !important; transition: none !important; }
}


/* The theme styles every button inside a product card / the add-to-cart form as a wide primary button; the heart is not one. */
.cb-product-card .cb-wl-btn,
.cb-add-to-cart-form .cb-wl-btn { width: auto; min-height: 0; margin: 0; padding: 0; display: inline-flex; text-align: left; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #64748b; font-weight: 600; box-shadow: none; }
.cb-product-card .cb-wl-btn:hover,
.cb-add-to-cart-form .cb-wl-btn:hover { background: #fff; color: #e11d48; }
.cb-product-card .cb-wl-btn.is-on,
.cb-add-to-cart-form .cb-wl-btn.is-on { color: #e11d48; }
.cb-product-card .cb-wl-card { position: absolute; top: 10px; right: 10px; box-shadow: 0 2px 8px rgba(15, 23, 42, .14); }
.cb-add-to-cart-form .cb-wl-btn.cb-wl-lg { padding: 0 0 0 4px; border: 1px solid #e2e8f0; background: #fff; height: 44px; }
.cb-add-to-cart-form .cb-wl-btn.cb-wl-lg.is-on { border-color: #fecdd3; background: #fff1f2; }
.cb-add-to-cart-form { flex-wrap: wrap; }
