/* ── Custom Wishlist Styles ── */

/* ── Button reset ── */
.cwl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    position: relative;
    z-index: 10;
}

.cwl-wrap.cwl-context-single button.cwl-btn {
    position: relative !important;
}
.cwl-btn:hover, .cwl-btn:active, .cwl-btn:focus {
    background: white !important;
}
/* ── Icon ── */
.cwl-icon {
    display: block;
    width: 22px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.cwl-btn:hover .cwl-icon {
    transform: scale(1);
}
.cwl-wrap.cwl-context-loop button.cwl-btn {
    position: absolute;
    right: 20px;
    top: 20px;
}
/* ── Pulse on click ── */
@keyframes cwl-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.cwl-icon.cwl-pulse {
    animation: cwl-pulse 0.35s ease forwards;
}

/* ── On product cards (shop/archive loop) ── */
.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product .cwl-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

/* ── Wishlist page grid ── */
.cwl-wishlist-page {
    width: 100%;
}

.cwl-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 1rem;
}

.cwl-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.cwl-wishlist-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.cwl-wishlist-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cwl-card-img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cwl-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cwl-card-title {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.cwl-card-title:hover {
    text-decoration: underline;
}

.cwl-price {
    font-size: 0.9rem;
}

/* Wishlist btn on wishlist page cards — top right */
.cwl-wishlist-card > .cwl-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ── Count badge ── */
.cwl-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #000;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    line-height: 1;
}
