.favorites-main {
    width: min(1320px, calc(100% - 56px));
    margin: 0 auto;
    padding: 22px 0 76px;
}

.favorites-topline {
    margin-bottom: 16px;
}

.favorites-back-link {
    color: var(--krealy-purple);
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.favorites-hero {
    margin-bottom: 22px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: center;
    border-radius: 30px;
    background:
        radial-gradient(circle at 84% 14%, rgba(255, 200, 87, 0.24), transparent 24%),
        radial-gradient(circle at 12% 88%, rgba(16, 179, 158, 0.13), transparent 24%),
        linear-gradient(135deg, rgba(75, 43, 191, 0.09), rgba(255, 111, 97, 0.06));
    border: 1px solid rgba(35, 22, 63, 0.09);
    box-shadow: 0 18px 48px rgba(35, 22, 63, 0.07);
}

.favorites-hero span,
.favorites-section-header span,
.favorites-empty-state span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--krealy-coral);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.favorites-hero h1 {
    max-width: 680px;
    margin: 0;
    color: var(--krealy-dark);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 42px;
    line-height: 1.06;
    letter-spacing: -1.6px;
}

.favorites-hero p {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--krealy-muted);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 650;
}

.favorites-login-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(35, 22, 63, 0.09);
    box-shadow: 0 14px 34px rgba(35, 22, 63, 0.07);
    backdrop-filter: blur(12px);
}

.favorites-login-card strong {
    display: block;
    color: var(--krealy-dark);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.favorites-login-card p {
    margin: 8px 0 16px;
    color: var(--krealy-muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.favorites-login-card a {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--krealy-purple), #6537d8);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(75, 43, 191, 0.22);
}

.favorites-tabs {
    margin-bottom: 22px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(35, 22, 63, 0.09);
    box-shadow: 0 14px 34px rgba(35, 22, 63, 0.05);
}

.favorites-tabs a {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--krealy-text);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.favorites-tabs a.active {
    background: var(--krealy-purple);
    color: #fff;
    box-shadow: 0 12px 24px rgba(75, 43, 191, 0.20);
}

.favorites-section {
    margin-bottom: 26px;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(35, 22, 63, 0.10);
    box-shadow: 0 18px 48px rgba(35, 22, 63, 0.07);
}

.favorites-section-header {
    margin-bottom: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.favorites-section-header h2 {
    margin: 0;
    color: var(--krealy-dark);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.favorites-section-header a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #fff;
    border: 1px solid rgba(75, 43, 191, 0.16);
    color: var(--krealy-purple);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.favorite-product-card,
.favorite-store-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(35, 22, 63, 0.10);
    box-shadow: 0 16px 38px rgba(35, 22, 63, 0.06);
}

.favorite-product-image {
    min-height: 220px;
    display: block;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 34%, rgba(255,255,255,0.32), transparent 22%),
        linear-gradient(135deg, #f1d5b7, #bf8552);
}

.favorite-product-image::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 48% 48% 34% 34%;
    background:
        radial-gradient(circle at 38% 24%, rgba(255,255,255,0.18), transparent 22%),
        linear-gradient(145deg, #d2a16e, #b97a40);
    box-shadow:
        inset 0 -14px 0 rgba(35, 22, 63, 0.08),
        0 18px 22px rgba(35, 22, 63, 0.10);
}

.favorite-image-bag::before {
    width: 112px;
    height: 122px;
    border-radius: 18px 18px 12px 12px;
    background:
        linear-gradient(90deg, transparent 0 22%, rgba(255,255,255,0.18) 22% 24%, transparent 24% 76%, rgba(255,255,255,0.18) 76% 78%, transparent 78%),
        #d3ad81;
}

.favorite-image-paper::before {
    width: 116px;
    height: 150px;
    border-radius: 14px;
    transform: translate(-50%, -50%) rotate(-4deg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.60) 0 20%, transparent 20%),
        #f6e8d4;
    box-shadow:
        0 18px 24px rgba(35, 22, 63, 0.12),
        inset 0 0 0 2px rgba(75, 43, 191, 0.12);
}

.favorite-product-body {
    padding: 17px;
}

.favorite-card-top {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.favorite-card-top span {
    min-height: 26px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fbfaf8;
    border: 1px solid rgba(35, 22, 63, 0.08);
    color: var(--krealy-purple);
    font-size: 11px;
    font-weight: 900;
}

.favorite-card-top a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--krealy-coral);
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(35, 22, 63, 0.10);
}

.favorite-product-body a,
.favorite-store-body a {
    color: inherit;
    text-decoration: none;
}

.favorite-product-body h3,
.favorite-store-body h3 {
    margin: 0;
    color: var(--krealy-dark);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 19px;
    line-height: 1.18;
    letter-spacing: -0.4px;
}

.favorite-product-body p,
.favorite-store-body p {
    margin: 8px 0 0;
    color: var(--krealy-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.favorite-product-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.favorite-product-footer strong {
    color: var(--krealy-purple);
    font-size: 20px;
    font-weight: 900;
}

.favorite-product-footer span {
    color: #f5a400;
    font-size: 13px;
    font-weight: 900;
}

.favorite-stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.favorite-store-cover {
    height: 132px;
    display: block;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.32), transparent 20%),
        linear-gradient(135deg, #d9b98f, #9e6d44);
}

.favorite-store-cover::before {
    content: '';
    position: absolute;
    left: 28px;
    bottom: -28px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.favorite-store-cover::after {
    content: '';
    position: absolute;
    right: 28px;
    bottom: 24px;
    width: 116px;
    height: 82px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow:
        -68px -28px 0 rgba(255, 255, 255, 0.14),
        -128px 12px 0 rgba(255, 255, 255, 0.10);
}

.favorite-store-crochet {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 18%),
        linear-gradient(135deg, #d6b894, #b27a58);
}

.favorite-store-body {
    padding: 18px;
}

.favorite-store-profile {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 13px;
    align-items: center;
}

.favorite-store-avatar {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--krealy-purple), #6c3ee6);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(75, 43, 191, 0.20);
}

.favorite-store-profile span {
    display: block;
    margin-top: 5px;
    color: var(--krealy-muted);
    font-size: 12px;
    font-weight: 800;
}

.favorite-store-footer {
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(35, 22, 63, 0.08);
}

.favorite-store-footer span {
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fbfaf8;
    color: var(--krealy-text);
    font-size: 12px;
    font-weight: 900;
}

.favorite-store-footer span:first-child {
    color: #f5a400;
}

.favorite-store-footer a {
    min-height: 32px;
    margin-left: auto;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--krealy-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.favorites-empty-state {
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 200, 87, 0.20), transparent 24%),
        linear-gradient(135deg, rgba(75, 43, 191, 0.08), rgba(16, 179, 158, 0.06));
    border: 1px solid rgba(35, 22, 63, 0.09);
    box-shadow: 0 18px 48px rgba(35, 22, 63, 0.06);
}

.favorites-empty-state h2 {
    margin: 0;
    color: var(--krealy-dark);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.favorites-empty-state p {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--krealy-muted);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.favorites-empty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.favorites-empty-actions a {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.favorites-empty-actions a:first-child {
    background: linear-gradient(135deg, var(--krealy-purple), #6537d8);
    color: #fff;
    box-shadow: 0 12px 26px rgba(75, 43, 191, 0.20);
}

.favorites-empty-actions a:last-child {
    background: #fff;
    color: var(--krealy-purple);
    border: 1px solid rgba(75, 43, 191, 0.16);
}

@media (max-width: 960px) {
    .favorites-hero,
    .favorites-empty-state {
        grid-template-columns: 1fr;
    }

    .favorites-login-card {
        max-width: 460px;
    }

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

@media (max-width: 680px) {
    .favorites-main {
        width: min(100% - 24px, 1320px);
        padding-bottom: 96px;
    }

    .favorites-hero,
    .favorites-section,
    .favorites-empty-state {
        padding: 22px;
        border-radius: 24px;
    }

    .favorites-hero h1 {
        font-size: 32px;
    }

    .favorites-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .favorites-empty-actions {
        justify-content: flex-start;
    }

    .favorites-empty-actions a {
        width: 100%;
    }
}

/* FAVORITES FINAL UX FIX START */
.favorites-section {
    scroll-margin-top: 110px;
}

.favorites-empty-state {
    scroll-margin-top: 110px;
}

.favorites-main:has(#lojas-favoritas:target) .favorites-tab-products {
    background: transparent;
    color: var(--krealy-text);
    box-shadow: none;
}

.favorites-main:has(#lojas-favoritas:target) .favorites-tab-stores {
    background: var(--krealy-purple);
    color: #fff;
    box-shadow: 0 12px 24px rgba(75, 43, 191, 0.20);
}

.favorites-main:has(#produtos-favoritos:target) .favorites-tab-products {
    background: var(--krealy-purple);
    color: #fff;
    box-shadow: 0 12px 24px rgba(75, 43, 191, 0.20);
}

.favorites-main:has(#produtos-favoritos:target) .favorites-tab-stores {
    background: transparent;
    color: var(--krealy-text);
    box-shadow: none;
}

.favorites-empty-state {
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 200, 87, 0.22), transparent 24%),
        radial-gradient(circle at 12% 88%, rgba(16, 179, 158, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(75, 43, 191, 0.08), rgba(255, 111, 97, 0.05));
}
/* FAVORITES FINAL UX FIX END */

