/* ---------- Shop features ---------- */
.kw-wish { position: absolute; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--kw-surface) 92%, transparent); color: var(--kw-text); box-shadow: var(--kw-shadow-sm); cursor: pointer; transition: transform .15s ease, color .15s ease; }
.kw-wish:hover { transform: scale(1.08); }
.kw-wish .kw-icon { fill: transparent; transition: fill .15s ease; }
.kw-wish.is-on { color: var(--kw-sale); }
.kw-wish.is-on .kw-icon { fill: currentColor; }
.kw-wish--card { top: 16px; right: 16px; }
.kw-wish--single { position: static; margin-bottom: 8px; width: auto; height: 38px; padding: 0 14px 0 10px; gap: 6px; border: 1px solid var(--kw-border); border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: none; }
.kw-wish--single::after { content: "Wishlist"; }
.wish-link { position: relative; }
.kw-wish-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--kw-accent); color: var(--kw-on-accent, #fff); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.kw-wish-count[hidden] { display: none; }
.kw-wish-empty { padding: 40px 0; text-align: center; color: var(--kw-muted); }

li.product { container-type: inline-size; }
.kw-qv { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--kw-surface); color: var(--kw-text); font-weight: 700; font-size: 13px; box-shadow: var(--kw-shadow-md); cursor: pointer; }
.kw-qv .kw-icon { flex: none; }
@media (hover: hover) {
	li.product .kw-qv { left: 50%; transform: translate(-50%, 6px); top: calc(10px + (100cqw - 20px) * 1.25 - 52px); opacity: 0; padding: 9px 16px; border-radius: 999px; transition: opacity .2s ease, transform .2s ease; }
	li.product:hover .kw-qv { opacity: 1; transform: translate(-50%, 0); }
}
@media (hover: none) {
	li.product .kw-qv { right: 16px; top: calc(10px + (100cqw - 20px) * 1.25 - 46px); width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
	li.product .kw-qv span { display: none; }
}

.kw-badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.kw-badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; color: #fff; }
.kw-badge--sale { background: var(--kw-sale); }
.kw-badge--new { background: var(--kw-accent); color: var(--kw-on-accent, #fff); }
.kw-badge--low { background: #b45309; }
.single-product div.product .kw-badges { top: 14px; left: 14px; }

.kw-size-filter { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.kw-size-filter::-webkit-scrollbar { display: none; }
.kw-sf-label { flex: none; font-weight: 800; font-size: 14px; }
.kw-sf-chips { display: flex; gap: 8px; }
.kw-chip { flex: none; padding: 7px 16px; border: 1px solid var(--kw-border); border-radius: 999px; background: var(--kw-surface); color: var(--kw-text); font-size: 13px; font-weight: 700; text-decoration: none; }
.kw-chip:hover { border-color: var(--kw-accent); }
.kw-chip.is-active { background: var(--kw-accent); border-color: var(--kw-accent); color: var(--kw-on-accent, #fff); }

.kw-freeship { margin: 0 0 20px; padding: 14px 18px; background: var(--kw-surface); border: 1px solid var(--kw-border); border-radius: var(--kw-radius); }
.kw-freeship p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 700; font-size: 14px; color: var(--kw-text); }
.kw-freeship .kw-icon { color: var(--kw-accent); }
.kw-fs-track { height: 8px; border-radius: 999px; background: var(--kw-border); overflow: hidden; }
.kw-fs-track span { display: block; height: 100%; border-radius: 999px; background: var(--kw-accent); transition: width .4s ease; }
.kw-freeship.is-done .kw-fs-track span { background: #1a7f37; }

.kw-gift { margin: 16px 0; }
.kw-gift-check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.kw-gift-box { margin-top: 10px; }
.kw-gift-box textarea { width: 100%; }

.kw-btn--wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; background: #1f9d55; color: #fff; border-color: #1f9d55; }
.kw-btn--wa:hover { background: #178046; color: #fff; }

.kw-recent { padding-top: 10px; }

.kw-sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; background: var(--kw-surface); border-top: 1px solid var(--kw-border); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); padding: 10px 0; }
.kw-sticky-atc[hidden] { display: none; }
.kw-sticky-inner { display: flex; align-items: center; gap: 12px; }
.kw-sticky-thumb img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block; }
.kw-sticky-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.kw-sticky-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-sticky-name .price { font-size: 13px; }
.kw-sticky-atc .kw-btn { flex: none; min-height: 44px; padding: 10px 20px; }
@media (max-width: 899px) { .kw-sticky-atc { bottom: calc(72px + env(safe-area-inset-bottom)); } }

/* modal */
.kw-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.kw-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 24, 20, .55); }
.kw-modal-box { position: relative; width: min(100%, 860px); max-height: 90vh; overflow: auto; background: var(--kw-surface); color: var(--kw-text); border-radius: 22px; padding: 26px; box-shadow: var(--kw-shadow-md); }
.kw-modal--sg .kw-modal-box { width: min(100%, 640px); }
.kw-modal-x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--kw-bg); color: var(--kw-text); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.kw-modal-open { overflow: hidden; }
.kw-qv-body { display: grid; gap: 20px; }
@media (min-width: 700px) { .kw-qv-body { grid-template-columns: 1fr 1fr; align-items: start; } }
.kw-qv-media img { width: 100%; height: auto; border-radius: 16px; display: block; }
.kw-qv-title { font-size: 22px; margin: 0 0 6px; }
.kw-qv-price { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.kw-qv-desc { color: var(--kw-muted); font-size: 14px; margin-bottom: 14px; }
.kw-qv-full { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--kw-accent); }
.kw-qv-loading { padding: 40px; text-align: center; }
.kw-sg-modal #kw-size-guide { display: none; }

.kw-bis { margin: 16px 0; padding: 18px; background: var(--kw-surface); border: 1px dashed var(--kw-border); border-radius: var(--kw-radius); }
.kw-bis h3 { margin: 0 0 4px; font-size: 17px; }
.kw-bis p { margin: 0 0 12px; color: var(--kw-muted); font-size: 14px; }
.kw-bis-form { display: flex; gap: 8px; flex-wrap: wrap; }
.kw-bis-form input[type="email"] { flex: 1 1 180px; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--kw-border); border-radius: 999px; background: var(--kw-bg); color: var(--kw-text); font: inherit; }
.kw-bis-msg { margin: 10px 0 0 !important; font-weight: 700; }
.kw-bis-msg.is-ok { color: #1a7f37 !important; } .kw-bis-msg.is-err { color: var(--kw-sale) !important; }
