/* Storefront bookmarks list — packshot + row layout (cart thumb size). */

.sf-bm-page {
    width: 100%;
}

.sf-bm-page__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    color: var(--sf-heading-text, #3b4056);
}

.sf-bm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sf-bm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--sf-surface, #fff);
    border: 1px solid var(--border, #d9dee3);
    border-radius: 10px;
}

.sf-bm-row__product {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    min-width: 0;
}

.sf-bm-thumb {
    width: 84px;
    height: auto;
    aspect-ratio: 3 / 2;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border, #d9dee3);
    background: #f1f5f9;
}

.sf-bm-row__text {
    min-width: 0;
}

.sf-bm-row__title {
    font-weight: 700;
    text-decoration: none;
    color: var(--sf-heading-text, #3b4056);
    display: block;
    overflow-wrap: anywhere;
}

.sf-bm-row__title:hover {
    text-decoration: underline;
}

.sf-bm-row__seller {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: var(--muted, #8592a3);
}

.sf-bm-row__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.sf-bm-sale {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
}

.sf-bm-heart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(249, 115, 22, 0.45);
    border-radius: 999px;
    background: transparent;
    color: var(--sf-logo-orange, #f97316);
    cursor: pointer;
}

.sf-bm-heart-btn:hover {
    background: rgba(249, 115, 22, 0.12);
}

.sf-bm-heart-btn:focus-visible {
    outline: 2px solid var(--sf-logo-orange, #f97316);
    outline-offset: 2px;
}

.sf-bm-heart-btn svg {
    transition: transform 0.15s ease;
}

.sf-bm-heart-btn[aria-pressed="true"] svg {
    transform: scale(1.06);
}

.sf-bm-heart-btn[aria-busy="true"] {
    opacity: 0.65;
    pointer-events: none;
}

.sf-bm-page__pager {
    margin-top: 1.25rem;
}

.sf-bm-heart-form {
    display: inline-flex;
    margin: 0;
}

a.sf-bm-heart-btn {
    text-decoration: none;
    color: var(--sf-logo-orange, #f97316);
}

.parity-product-title-row,
.sf-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.65rem;
}

.parity-product-title-row .parity-product-title,
.sf-product-title-row h1 {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.parity-product-title-row .sf-bm-heart-btn,
.sf-product-title-row .sf-bm-heart-btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sf-bm-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sf-bm-row__price {
        grid-column: 1;
        align-items: flex-start;
    }

    .sf-bm-row__unsave {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }
}
