/**
 * Wishlist
 * Astra Child Theme
 *
 * Loaded site-wide (see inc/shop/product-enhancements.php).
 * Depends on the --ps-green/--ps-black/--ps-white variables declared in
 * quick-view.css.
 */

.ps-wishlist {
    transition: transform .15s ease;
}

.ps-wishlist svg {
    stroke: var(--ps-black);
    fill: none;
    transition: fill .15s ease, stroke .15s ease;
}

.ps-wishlist:hover svg {
    stroke: var(--ps-green);
}

.ps-wishlist.active svg {
    fill: var(--ps-green);
    stroke: var(--ps-green);
}

.ps-wishlist.loading {
    opacity: .5;
    pointer-events: none;
}

/* Single product page heart, placed beside the title */
.ps-single-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1vw;
}

.ps-single-wishlist {
    width: 2.2vw;
    height: 2.2vw;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid var(--ps-gray-300);
    background: var(--ps-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.ps-single-wishlist svg {
    width: 1.1vw;
    height: 1.1vw;
    min-width: 16px;
    min-height: 16px;
}

/* Quick view heart, placed beside the title */
.ps-qv-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1vw;
}

.ps-qv-wishlist {
    width: 1.8vw;
    height: 1.8vw;
    min-width: 30px;
    min-height: 30px;
    border: 1px solid var(--ps-gray-300);
    background: var(--ps-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.ps-qv-wishlist svg {
    width: 1vw;
    height: 1vw;
    min-width: 14px;
    min-height: 14px;
}

/* ===== My Account > Wishlist page ===== */

.ps-wishlist-page {
    font-family: 'DIN Condensed', 'Arial Narrow', Arial, sans-serif;
}

.ps-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.7vw;
    list-style: none;
    padding: 0;
}

.ps-wishlist-empty {
    padding: 3vw 0;
    text-align: center;
    color: var(--ps-black);
}

.ps-wishlist-empty p {
    font-size: 1.1vw;
    opacity: .7;
    margin-bottom: 1vw;
}

.ps-wishlist-shop-link {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ps-green);
    text-decoration: none;
    border-bottom: 1px solid var(--ps-green);
}

@media (max-width: 1024px) {
    .ps-wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ps-single-wishlist {
        width: 9vw;
        height: 9vw;
    }

    .ps-single-wishlist svg,
    .ps-qv-wishlist svg {
        width: 4vw;
        height: 4vw;
    }

    .ps-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.6vw;
    }

    .ps-wishlist-empty p {
        font-size: 3.6vw;
    }
}