/* Potlok Wishlist — Step 308B */

.potlok-product__name {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.potlok-product__name > a {
    min-width: 0;
}

.potlok-wishlist-heart {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin: 0;
    padding: 1px;
    border: 0;
    background: transparent;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.potlok-wishlist-heart svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.potlok-wishlist-heart.is-saved {
    color: #d62839;
}

.potlok-wishlist-heart.is-saved svg {
    fill: currentColor;
}

.potlok-wishlist-heart:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* POTLOK_WISHLIST_STEP330 */
.potlok-wishlist-heart:disabled,
.potlok-wishlist-heart[aria-busy="true"] {
    cursor: pointer;
    opacity: 1;
}

.potlok-wishlist-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.58);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.potlok-wishlist-login-dialog {
    position: relative;
    width: 100%;
    max-width: 390px;
    background: #fff;
    color: #222;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,.2);
}

.potlok-wishlist-login-dialog h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.potlok-wishlist-login-dialog p {
    margin: 0 0 18px;
    font-size: 14px;
}

.potlok-wishlist-login-dialog a {
    display: inline-block;
    padding: 11px 18px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.potlok-wishlist-login-close {
    position: absolute;
    top: 9px;
    right: 11px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: #444;
}

/* POTLOK_WISHLIST_STEP320 */

.product.type-product .product-details .product-title:has(> .potlok-wishlist-heart) {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
}

.product.type-product .product-details .product-title > a {
    min-width: 0;
}

.product.type-product .product-details .product-title > .potlok-wishlist-heart {
    flex: 0 0 19px;
}

/* END POTLOK_WISHLIST_STEP320 */

/* POTLOK_WISHLIST_STEP326 */

.potlok-brand-card__content h2:has(> .potlok-wishlist-heart) {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.potlok-brand-card__content h2 > a {
    min-width: 0;
}

.potlok-brand-card__content h2 > .potlok-wishlist-heart {
    flex: 0 0 19px;
}

/* END POTLOK_WISHLIST_STEP326 */

/* POTLOK_WISHLIST_STEP328 */

/* Smooth heart interaction */
.potlok-wishlist-heart {
    cursor: pointer;
    transform-origin: center;
    transition:
        transform 220ms ease,
        color 220ms ease,
        background-color 220ms ease;
    -webkit-tap-highlight-color: transparent;
}

/* Animate only on devices with hover */
@media (hover: hover) and (pointer: fine) {
    .potlok-wishlist-heart:hover {
        color: #d62828;
        transform: scale(1.16);
        animation: potlok-heartbeat 650ms ease-in-out;
    }

    .potlok-wishlist-heart:hover svg {
        stroke: currentColor;
    }
}

/* Subtle feedback when clicked */
.potlok-wishlist-heart:active {
    transform: scale(0.9);
}

/* Accessible keyboard focus */
.potlok-wishlist-heart:focus-visible {
    outline: 2px solid #d62828;
    outline-offset: 3px;
    border-radius: 50%;
}

/* Heartbeat motion */
@keyframes potlok-heartbeat {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.22); }
    55%  { transform: scale(1.08); }
    75%  { transform: scale(1.17); }
    100% { transform: scale(1.16); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .potlok-wishlist-heart {
        animation: none !important;
        transition: none !important;
    }
}

/* END POTLOK_WISHLIST_STEP328 */
