:root {
    --cwl-accent: #1fb271;
    --cwl-text: #1a1a1a;
    --cwl-muted: #757575;
    --cwl-border: #ececec;
    --cwl-card-bg: #fafafa;
    --cwl-radius: 12px;
    --cwl-radius-sm: 8px;
    --cwl-danger: #d32f2f;
}

/* ── Heart icon (shop loop + single product) ── */
ul.products li.product { position: relative; }

.cwl-heart {
    background: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, color 0.15s ease;
    z-index: 5;
}
.cwl-heart:hover { transform: scale(1.08); }
.cwl-heart .cwl-heart-fill { opacity: 0; transform: scale(0.6); transform-origin: center; transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cwl-heart.is-active { color: #e0245e; }
.cwl-heart.is-active .cwl-heart-fill { opacity: 1; transform: scale(1); }
.cwl-heart.cwl-pulse .cwl-heart-fill { animation: cwl-pop 0.35s ease; }
@keyframes cwl-pop {
    0% { transform: scale(0.6); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.cwl-heart-top-right { position: absolute; top: 10px; right: 10px; }
.cwl-heart-top-left { position: absolute; top: 10px; left: 10px; }

.cwl-single-heart-wrap { margin: 10px 0; display: inline-block; }
.cwl-single-heart-wrap .cwl-heart { width: 40px; height: 40px; }

/* ── Overlay + drawer (shared visual language with the slide cart) ── */
.chillgoza-wl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99996;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}
.chillgoza-wl-overlay.is-open { opacity: 1; visibility: visible; }

.chillgoza-wl-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(420px, 100vw);
    background: #fff;
    z-index: 99997;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--cwl-text);
}
.chillgoza-wl-drawer.is-open { transform: translateX(0); }

#chillgoza-wl-drawer-inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.cwl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--cwl-border);
    flex-shrink: 0;
}
.cwl-title { margin: 0; font-size: 17px; font-weight: 700; }
.cwl-close { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--cwl-muted); padding: 4px 8px; }
.cwl-close:hover { color: var(--cwl-text); }

.cwl-body { flex: 1 1 auto; overflow-y: auto; padding: 20px 22px; }

.cwl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    gap: 14px;
    color: var(--cwl-muted);
}
.cwl-empty p { margin: 0; font-size: 14px; }
.cwl-empty-btn {
    display: inline-block;
    background: var(--cwl-accent);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}
.cwl-empty-btn:hover { opacity: 0.9; }

.cwl-items { display: flex; flex-direction: column; gap: 14px; }
.cwl-item {
    display: flex;
    gap: 14px;
    position: relative;
    padding: 14px 36px 14px 14px;
    background: var(--cwl-card-bg);
    border-radius: var(--cwl-radius);
}
.cwl-item-image { width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--cwl-radius-sm); overflow: hidden; background: #fff; display: block; }
.cwl-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cwl-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.cwl-item-name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--cwl-text); text-decoration: none; }
.cwl-item-name:hover { color: var(--cwl-accent); }

.cwl-item-price { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 700; }
.cwl-price-regular { text-decoration: line-through; color: var(--cwl-muted); font-weight: 500; font-size: 11.5px; }
.cwl-item-price.is-on-sale .cwl-price-sale { color: var(--cwl-accent); }

.cwl-item-oos { font-size: 12px; color: var(--cwl-danger); font-weight: 600; }

.cwl-move-to-cart {
    align-self: flex-start;
    background: var(--cwl-accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.cwl-move-to-cart:hover { opacity: 0.88; }
.cwl-move-to-cart:disabled { opacity: 0.5; cursor: default; }

.cwl-item-remove {
    position: absolute; top: 10px; right: 10px;
    background: none; border: none; font-size: 18px; color: var(--cwl-muted); cursor: pointer;
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.cwl-item-remove:hover { color: var(--cwl-danger); background: #fdeaea; }

.cwl-footer { flex-shrink: 0; padding: 16px 22px 20px; border-top: 1px solid var(--cwl-border); }
.cwl-footer-text { text-align: center; font-size: 12px; color: var(--cwl-muted); margin: 0; }

/* ── Sticky floating icon ── */
.chillgoza-wl-sticky {
    position: fixed;
    bottom: 24px;
    z-index: 99995;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--cwl-accent);
    border: 1px solid var(--cwl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.chillgoza-wl-sticky.bottom-right { right: 24px; }
.chillgoza-wl-sticky.bottom-left { left: 24px; }
.chillgoza-wl-sticky .chillgoza-wl-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--cwl-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.chillgoza-wl-sticky .chillgoza-wl-count:empty,
.chillgoza-wl-sticky .chillgoza-wl-count[data-zero="true"] { display: none; }

/* ── Toast ── */
.cwl-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #222;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}
.cwl-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
    .chillgoza-wl-drawer { width: 100vw; }
    .cwl-header { padding: 18px; }
    .cwl-body { padding: 18px; }
}
