/* ============================================================
   AG.STOREEZ V2 — FAVORITOS PREMIUM
   ============================================================ */

#favoritesDrawer,
#favoritesDrawer * {
    box-sizing: border-box;
}

#favoritesDrawer {
    width: min(480px, 100%);
    background:
        radial-gradient(
            circle at 90% 4%,
            rgba(155, 77, 255, 0.16),
            transparent 29%
        ),
        linear-gradient(
            155deg,
            rgba(19, 18, 27, 0.99),
            rgba(8, 8, 12, 0.995)
        );
    border-left: 1px solid rgba(183, 108, 255, 0.18);
    box-shadow: -35px 0 100px rgba(0, 0, 0, 0.68);
}

/* ============================================================
   CABEÇALHO
   ============================================================ */

#favoritesDrawer .drawer-header {
    position: relative;
    min-height: 102px;
    padding: 20px 22px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(155, 77, 255, 0.09),
            transparent
        );
}

#favoritesDrawer .drawer-header::before {
    content: "";
    position: absolute;
    top: -85px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(155, 77, 255, 0.18);
    border-radius: 50%;
    filter: blur(68px);
    pointer-events: none;
}

#favoritesDrawer .drawer-header > div {
    position: relative;
    z-index: 1;
}

#favoritesDrawer .drawer-header span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b76cff;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

#favoritesDrawer .drawer-header span::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #9b4dff;
    border-radius: 50%;
    box-shadow: 0 0 13px rgba(155, 77, 255, 0.8);
}

#favoritesDrawer .drawer-header h2 {
    margin-top: 4px;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

#favoritesDrawer .drawer-close {
    position: relative;
    z-index: 1;
}

/* ============================================================
   RESUMO SUPERIOR
   ============================================================ */

.favorites-premium-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.018);
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.favorites-premium-summary div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-premium-summary i {
    color: #b76cff;
}

.favorites-premium-summary span {
    color: #858593;
    font-size: 8px;
}

.favorites-premium-summary strong {
    min-width: 27px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    background: rgba(155, 77, 255, 0.12);
    color: #c084fc;
    border: 1px solid rgba(183, 108, 255, 0.15);
    border-radius: 8px;
    font-size: 9px;
}

.favorites-premium-clear {
    background: transparent;
    color: #73737f;
    border: 0;
    cursor: pointer;
    font-size: 8px;
    font-weight: 700;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.favorites-premium-clear:hover {
    color: #ff7777;
    transform: translateY(-1px);
}

/* ============================================================
   CONTEÚDO
   ============================================================ */

#favoritesDrawer .drawer-content {
    padding: 16px;
}

.favorites-premium-list {
    display: grid;
    gap: 11px;
}

/* ============================================================
   CARD
   ============================================================ */

.favorite-premium-item {
    position: relative;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 13px;
    padding: 11px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.038),
            rgba(255, 255, 255, 0.012)
        );
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 17px;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        opacity 220ms ease;
    animation:
        favoritePremiumEnter
        380ms
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

.favorite-premium-item:hover {
    border-color: rgba(155, 77, 255, 0.3);
    transform: translateY(-3px);
}

.favorite-premium-item.removing {
    opacity: 0;
    transform: translateX(35px) scale(0.97);
}

@keyframes favoritePremiumEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.favorite-premium-image {
    position: relative;
    width: 104px;
    height: 126px;
    overflow: hidden;
    background: #15151b;
    border-radius: 13px;
    cursor: pointer;
}

.favorite-premium-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 500ms ease;
}

.favorite-premium-item:hover
.favorite-premium-image img {
    transform: scale(1.05);
}

.favorite-premium-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(5, 5, 7, 0.45),
            transparent 42%
        );
    pointer-events: none;
}

.favorite-premium-view-icon {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 2;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    background: rgba(5, 5, 7, 0.76);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 8px;
    backdrop-filter: blur(8px);
}

.favorite-premium-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.favorite-premium-category {
    display: block;
    margin-bottom: 4px;
    color: #9b4dff;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.favorite-premium-name {
    padding-right: 34px;
    overflow: hidden;
    color: #f5f5f7;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-premium-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 7px;
    padding: 5px 7px;
    background: rgba(255, 255, 255, 0.035);
    color: #777783;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 7px;
    font-size: 7px;
}

.favorite-premium-price {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.favorite-premium-actions {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
}

.favorite-premium-details,
.favorite-premium-cart {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 8px;
    font-weight: 800;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.favorite-premium-details {
    background:
        linear-gradient(
            135deg,
            rgba(111, 34, 215, 0.85),
            rgba(155, 77, 255, 0.95)
        );
    color: #ffffff;
    border: 0;
}

.favorite-premium-details:hover {
    transform: translateY(-2px);
}

.favorite-premium-cart {
    background: rgba(255, 255, 255, 0.04);
    color: #c084fc;
    border: 1px solid rgba(183, 108, 255, 0.15);
}

.favorite-premium-cart:hover {
    background: rgba(155, 77, 255, 0.13);
    border-color: rgba(183, 108, 255, 0.32);
    transform: translateY(-2px);
}

.favorite-premium-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.035);
    color: #676773;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px;
    cursor: pointer;
    font-size: 9px;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.favorite-premium-remove:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ff7777;
    transform: rotate(5deg);
}

/* ============================================================
   VAZIO
   ============================================================ */

.favorites-premium-empty {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
    text-align: center;
}

.favorites-premium-empty-icon {
    position: relative;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(155, 77, 255, 0.16),
            rgba(155, 77, 255, 0.035)
        );
    color: #b76cff;
    border: 1px solid rgba(183, 108, 255, 0.18);
    border-radius: 25px;
    font-size: 31px;
    box-shadow: 0 18px 48px rgba(111, 34, 215, 0.13);
}

.favorites-premium-empty-icon::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(155, 77, 255, 0.08);
    border-radius: 31px;
}

.favorites-premium-empty h3 {
    margin-bottom: 7px;
    color: #f5f5f7;
    font-size: 18px;
    font-weight: 850;
}

.favorites-premium-empty p {
    max-width: 280px;
    margin-bottom: 21px;
    color: #777783;
    font-size: 10px;
    line-height: 1.6;
}

.favorites-premium-empty-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    background:
        linear-gradient(
            135deg,
            #6f22d7,
            #9b4dff
        );
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

/* ============================================================
   RODAPÉ
   ============================================================ */

#favoritesDrawer .drawer-footer {
    padding: 15px 19px 19px;
    background: rgba(8, 8, 12, 0.98);
}

.favorites-premium-footer-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background:
        linear-gradient(
            135deg,
            #6f22d7,
            #9b4dff
        );
    color: #ffffff;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    box-shadow: 0 15px 34px rgba(111, 34, 215, 0.24);
    transition:
        transform 180ms ease,
        box-shadow 220ms ease;
}

.favorites-premium-footer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 21px 43px rgba(111, 34, 215, 0.34);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 600px) {
    #favoritesDrawer {
        top: auto;
        width: 100%;
        height: min(94dvh, 900px);
        border-top: 1px solid rgba(183, 108, 255, 0.2);
        border-left: 0;
        border-radius: 25px 25px 0 0;
        transform: translateY(105%);
        transition:
            transform
            520ms
            cubic-bezier(0.16, 1, 0.3, 1);
    }

    #favoritesDrawer.open {
        right: 0;
        transform: translateY(0);
    }

    #favoritesDrawer .drawer-header {
        min-height: 87px;
        padding: 15px 17px;
    }

    #favoritesDrawer .drawer-content {
        padding: 13px;
    }

    #favoritesDrawer .drawer-footer {
        padding: 13px;
    }
}

@media (max-width: 390px) {
    .favorite-premium-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .favorite-premium-image {
        width: 88px;
        height: 113px;
    }

    .favorite-premium-name {
        max-width: 175px;
    }
}
/* ============================================================
   FAVORITO PREMIUM
   ============================================================ */

/* ============================================================
   FAVORITO PREMIUM
   ============================================================ */

.favorite-button,
#favoriteProductButton {
    position: relative;
    overflow: hidden;
}

.favorite-button::before,
#favoriteProductButton::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: inherit;

    background:
        radial-gradient(
            circle,
            rgba(255, 70, 120, 0.38),
            transparent 70%
        );

    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
}

.favorite-button.favorite-pop,
#favoriteProductButton.favorite-pop {
    animation:
        favoritePop
        450ms
        cubic-bezier(0.16, 1, 0.3, 1);
}

.favorite-button.favorite-pop::before,
#favoriteProductButton.favorite-pop::before {
    animation:
        favoriteRing
        550ms
        ease;
}

.favorite-button.favorite-pop i,
#favoriteProductButton.favorite-pop i {
    animation:
        favoriteHeart
        450ms
        cubic-bezier(0.16, 1, 0.3, 1);
}

#favoriteProductButton.active {
    border-color: rgba(255, 92, 145, 0.5);
    box-shadow:
        0 0 0 1px rgba(255, 92, 145, 0.1),
        0 14px 34px rgba(255, 92, 145, 0.14);
}

#favoriteProductButton.active i {
    color: #ff5c91;
}

@keyframes favoritePop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.08);
    }

    62% {
        transform: scale(0.97);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes favoriteHeart {
    0% {
        transform: scale(0.75);
    }

    42% {
        transform: scale(1.4) rotate(-8deg);
    }

    70% {
        transform: scale(0.92) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes favoriteRing {
    0% {
        opacity: 0.9;
        transform: scale(0.35);
    }

    100% {
        opacity: 0;
        transform: scale(2.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .favorite-button.favorite-pop,
    #favoriteProductButton.favorite-pop,
    .favorite-button.favorite-pop::before,
    #favoriteProductButton.favorite-pop::before,
    .favorite-button.favorite-pop i,
    #favoriteProductButton.favorite-pop i {
        animation: none;
    }
}

.favorite-button::before{

    content:"";

    position:absolute;

    inset:-10px;

    border-radius:50%;

    background:

        radial-gradient(

            circle,

            rgba(255,70,120,.35),

            transparent 70%

        );

    opacity:0;

    transform:scale(.4);

    pointer-events:none;

}

.favorite-button.favorite-pop{

    animation:

        favoritePop .45s

        cubic-bezier(.16,1,.3,1);

}

.favorite-button.favorite-pop::before{

    animation:

        favoriteRing .55s ease;

}

.favorite-button.favorite-pop i{

    animation:

        favoriteHeart .45s;

}

@keyframes favoritePop{

    0%{

        transform:scale(1);

    }

    35%{

        transform:scale(1.28);

    }

    100%{

        transform:scale(1);

    }

}

@keyframes favoriteHeart{

    0%{

        transform:scale(.8);

    }

    40%{

        transform:scale(1.35);

    }

    100%{

        transform:scale(1);

    }

}

@keyframes favoriteRing{

    0%{

        opacity:.9;

        transform:scale(.35);

    }

    100%{

        opacity:0;

        transform:scale(2.3);

    }

}