/**
 * Liste / anasayfa ürün kartı — sağ üst favori (grid_favorite_toggle + category_product_grid_item)
 */

.product-img-action-wrap.has-grid-fav-wrap {
    position: relative;
}

.pdt2-fav-floating-wrap--grid {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    max-width: min(220px, calc(100% - 20px));
    pointer-events: none;
}

.pdt2-fav-floating-wrap--grid form,
.pdt2-fav-floating-wrap--grid a {
    pointer-events: auto;
}

.pdt2-fav-floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pdt2-fav-floating-btn:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.pdt2-fav-floating-btn--busy {
    opacity: 0.65;
    pointer-events: none;
}

.pdt2-fav-floating-btn:focus {
    outline: none;
}

.pdt2-fav-floating-btn:focus-visible {
    outline: 2px solid #e8063c;
    outline-offset: 2px;
}

.pdt2-fav-floating-btn.is-on {
    border-color: #e8063c;
}

.pdt2-fav-floating-btn .pdt2-fav-svg {
    display: block;
}

.pdt2-fav-infobox--grid {
    font-size: 11px;
    line-height: 1.35;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    text-align: center;
    word-break: break-word;
    max-width: 100%;
}

.pdt2-fav-infobox--grid.pdt2-fav-infobox--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.pdt2-fav-infobox--grid.pdt2-fav-infobox--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.pdt2-fav-infobox--grid.pdt2-fav-infobox--dismiss {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
