/* =====================================================================
   electro_storefront — account surfaces (phase 2)

   Wishlist page shell + recently-viewed rail (rendered client-side
   by creative.store.js / components/recently-viewed.js).
   Card look itself is owned by cards.css (.sf-card).
   ===================================================================== */

.sf-wishlist-page {
    padding-block: 1.4em 3em;
}

.sf-wishlist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-block-end: 1.3em;
}

.sf-wishlist-subtitle {
    margin: .3em 0 0;
    font-size: 13px;
    color: var(--sf-text-muted);
}

.sf-wishlist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-wishlist-actions .sf-btn {
    min-height: 42px;
    font-size: 13px;
}

.sf-wishlist-empty {
    border-style: dashed;
}

.sf-wishlist-grid {
    margin-block-start: 6px;
}

/* wishlist cards keep a square media and a single action row */
.sf-wishlist-card .sf-card__actions {
    margin-block-start: auto;
}

.sf-wishlist-card .sf-btn--outline {
    min-height: 44px;
    font-size: 13px;
    padding-inline: 14px;
}

/* ------------------------------------------------------------ recently viewed */
.sf-recent {
    margin-block: 10px;
}

.sf-recent__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-block-end: .9em;
}

.sf-recent__title {
    font-size: 1.05em;
    font-weight: 500;
    color: var(--sf-dark);
    margin: 0;
}

.sf-recent__clear {
    font-size: 12px;
    color: var(--sf-text-muted);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

.sf-recent__clear:hover {
    color: var(--sf-danger);
}

/* mini card inside the horizontal rail */
.sf-recent__card {
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sf-recent__card:hover {
    border-color: #cfcfcf;
    box-shadow: 0 6px 16px rgba(51, 62, 72, .09);
    text-decoration: none;
}

.sf-recent__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    overflow: hidden;
}

.sf-recent__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sf-recent__placeholder {
    color: #c3ccd4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sf-recent__placeholder svg {
    width: 34%;
    height: auto;
}

.sf-recent__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px 12px;
}

.sf-recent__name {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--sf-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.sf-recent__price {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sf-dark);
}

.sf-recent__price strong {
    font-weight: 700;
}

.sf-recent__track.sf-rail {
    grid-auto-columns: minmax(150px, 172px);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 767.98px) {
    .sf-wishlist-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sf-recent__track.sf-rail {
        grid-auto-columns: minmax(130px, 44vw);
    }
}
