﻿/* =========================================================
   SAGE STORE — FAVORITOS
========================================================= */

.favorites-page {
    position: relative;
    min-height: calc(100vh - 100px);
    overflow: hidden;
    padding: 125px 22px 70px;
    background: radial-gradient(circle at 12% 18%, rgba(74, 203, 235, .08), transparent 30%), radial-gradient(circle at 88% 30%, rgba(68, 126, 180, .07), transparent 34%), linear-gradient(180deg, #081116 0%, #071015 100%);
    color: #eefcff;
}

.favorites-bg-mark {
    position: fixed;
    z-index: 0;
    right: -40px;
    bottom: -115px;
    color: rgba(113, 227, 249, .025);
    font-size: min(54vw, 760px);
    font-weight: 900;
    line-height: .8;
    pointer-events: none;
    user-select: none;
}

.favorites-container {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.favorites-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(125, 225, 246, .12);
}

.favorites-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #72def5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.2px;
}

.favorites-heading h1 {
    margin: 0;
    color: #f5fdff;
    font-size: clamp(31px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -1.8px;
}

.favorites-heading p {
    margin: 12px 0 0;
    color: #90aab5;
    font-size: 13px;
    line-height: 1.7;
}

.favorites-heading-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.favorites-count {
    color: #9eb9c3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .45px;
}

.favorites-clear {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(130, 224, 245, .20);
    border-radius: 8px;
    background: rgba(12, 27, 35, .76);
    color: #bad1d9;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

    .favorites-clear:hover {
        border-color: rgba(117, 231, 255, .55);
        color: #fff;
    }

.favorites-empty {
    width: min(620px, 100%);
    margin: 90px auto 0;
    padding: 44px 30px;
    border: 1px solid rgba(123, 224, 245, .14);
    border-radius: 18px;
    background: rgba(10, 23, 30, .78);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .20);
    text-align: center;
}

.favorites-empty-heart {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(120, 228, 249, .22);
    border-radius: 50%;
    background: rgba(80, 210, 239, .08);
    color: #75e7ff;
    font-size: 23px;
}

.favorites-empty h2 {
    margin: 20px 0 9px;
    font-size: 20px;
}

.favorites-empty p {
    width: min(430px, 100%);
    margin: 0 auto;
    color: #88a2ad;
    font-size: 12px;
    line-height: 1.75;
}

.favorites-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.favorites-catalog-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(115, 226, 249, .32);
    border-radius: 8px;
    color: #def9ff;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    transition: .18s ease;
}

.favorites-catalog-fortnite {
    background: rgba(36, 112, 139, .24);
}

.favorites-catalog-valorant {
    background: rgba(117, 43, 55, .18);
}

.favorites-catalog-button:hover {
    transform: translateY(-1px);
    border-color: #79e7ff;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.favorite-card {
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    border: 1px solid rgba(125, 224, 245, .14);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(15, 31, 40, .96), rgba(8, 18, 24, .98));
    box-shadow: 0 15px 34px rgba(0, 0, 0, .18);
}

.favorite-card-image {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 38%, rgba(96, 219, 245, .17), transparent 52%), #0c1820;
}

    .favorite-card-image.is-valorant {
        background: radial-gradient(circle at 50% 38%, rgba(255, 85, 112, .14), transparent 52%), #171117;
    }

    .favorite-card-image img {
        width: 100%;
        height: 100%;
        min-height: 190px;
        object-fit: cover;
        object-position: center top;
    }

.favorite-image-letter {
    color: rgba(133, 234, 255, .18);
    font-size: 78px;
    font-weight: 950;
}

.favorite-game-badge {
    position: absolute;
    left: 9px;
    top: 9px;
    padding: 5px 7px;
    border: 1px solid rgba(133, 229, 250, .27);
    border-radius: 5px;
    background: rgba(7, 17, 23, .80);
    color: #bff5ff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.favorite-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.favorite-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    color: #6adbf3;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .9px;
}

    .favorite-card-topline strong {
        overflow: hidden;
        color: #708a95;
        font-size: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.favorite-card h2 {
    margin: 10px 0 12px;
    overflow: hidden;
    color: #f0fbfe;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.favorite-stat,
.favorite-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 23px;
    padding: 0 8px;
    border: 1px solid rgba(129, 217, 238, .13);
    border-radius: 5px;
    background: rgba(10, 25, 33, .78);
    color: #90aab4;
    font-size: 8px;
}

    .favorite-stat strong {
        color: #dff9ff;
    }

.favorite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.favorite-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.favorite-price span {
    display: block;
    margin-bottom: 3px;
    color: #6f8994;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .75px;
}

.favorite-price strong {
    color: #77e3a8;
    font-size: 18px;
}

.favorite-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.favorite-remove {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 231, 255, .38);
    border-radius: 50%;
    background: rgba(39, 113, 136, .15);
    color: #75e7ff;
    cursor: pointer;
}

.favorite-open {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #72def5;
    border-radius: 7px;
    background: #15465a;
    color: #ecfbff;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

    .favorite-remove:hover,
    .favorite-open:hover {
        filter: brightness(1.12);
    }

[hidden] {
    display: none !important;
}

@media (max-width: 920px) {
    .favorites-page {
        padding-top: 105px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .favorites-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .favorites-heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .favorite-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .favorite-card-image,
    .favorite-card-image img {
        min-height: 175px;
    }

    .favorite-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
