/* OMC Wishlist v1.0.0 — Frontend */

/* Heart button on product cards */
.omcwl-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #d1d5db;
    transition: color .2s, transform .15s, background .2s;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    line-height: 1;
}
.omcwl-heart svg {
    width: 17px;
    height: 17px;
    pointer-events: none;
}
.omcwl-heart:hover {
    color: #ef4444;
    transform: scale(1.12);
    background: #fff;
}
.omcwl-heart.active {
    color: #ef4444;
}
.omcwl-heart.active:hover {
    color: #dc2626;
}

/* Pulse animation on toggle */
@keyframes omcwl-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.omcwl-heart.pulsing { animation: omcwl-pulse .3s ease; }

/* Make product loop items relative for positioning */
.products .product,
ul.products li.product {
    position: relative;
}

/* Single product heart button */
.omcwl-heart-single {
    position: static !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    transition: border-color .2s, color .2s, background .2s;
    box-shadow: none;
    width: auto;
}
.omcwl-heart-single:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
    transform: none;
}
.omcwl-heart-single.active {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

/* Wishlist nav link */
.omcwl-nav-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.omcwl-nav-count {
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Login tooltip */
.omcwl-login-tip {
    position: absolute;
    top: 44px;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.omcwl-heart:hover + .omcwl-login-tip,
.omcwl-heart:focus + .omcwl-login-tip {
    opacity: 1;
}

/* Flatsome theme compatibility */
.products .product-small .omcwl-heart,
.products li.product .omcwl-heart {
    z-index: 20;
}

/* Flatsome positions the button inside col-inner — adjust for its padding */
.product-small.box .omcwl-heart {
    top: 8px;
    right: 8px;
}

/* Flatsome hover overlay fix — keep heart visible on hover */
.products li.product:hover .omcwl-heart {
    opacity: 1 !important;
}

/* Flatsome UX Builder product grid */
.ux-products .omcwl-heart {
    z-index: 20;
}
