/* ========================================================================== 
   USER FAVORITS — saved products and product details favorite action
   ========================================================================== */

.favorites-page {
    padding-bottom: 82px;
}

.favorites-breadcrumb {
    margin: 26px 0 22px;
}

.favorites-breadcrumb .current {
    color: var(--ink);
}

.favorites-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 190px;
    padding: 32px 38px;
    overflow: hidden;
    color: var(--paper);
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--ink) 0%, #28322e 100%);
    box-shadow: var(--shadow-md);
}

.favorites-hero__copy {
    max-width: 680px;
}

.favorites-eyebrow,
.favorites-section-label {
    color: var(--copper);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
}

.favorites-hero h1 {
    margin: 8px 0 7px;
    color: antiquewhite;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.35;
}

.favorites-hero p {
    margin: 0;
    color: #c8d0cc;
    font-size: 13px;
    line-height: 1.9;
}

.favorites-hero__icon {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: var(--copper);
    background: rgba(255, 255, 255, .07);
}

.favorites-hero__icon svg {
    width: 58px;
}

.favorites-content {
    margin-top: 20px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.favorites-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.favorites-section-heading h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 19px;
}

.favorites-count {
    color: var(--ink-soft);
    font-size: 12px;
    white-space: nowrap;
}

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

.favorites-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--paper);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.favorites-product-card:hover {
    border-color: var(--copper);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.favorites-product-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / .86;
    overflow: hidden;
    color: #454b57;
    background: var(--paper-dim);
}

.favorites-product-card__media img {
    width: 100%;
    height: 100%;
    padding: 16px;
    object-fit: contain;
    transition: transform .35s ease;
}

.favorites-product-card:hover .favorites-product-card__media img,
.favorites-product-card:hover .favorites-product-card__placeholder {
    transform: scale(1.05) rotate(-1deg);
}

.favorites-product-card__placeholder {
    width: 76%;
    transition: transform .35s ease;
}

.favorites-product-card__badge {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--copper);
    font-size: 10px;
    font-weight: 700;
}

.favorites-product-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    padding: 15px 16px 17px;
}

.favorites-product-card__brand {
    margin-bottom: 5px;
    color: var(--copper-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
}

.favorites-product-card__title {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-product-card__title:hover {
    color: var(--copper-dark);
}

.favorites-product-card__category {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 11px;
}

.favorites-product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.favorites-product-card__price {
    min-width: 0;
}

.favorites-product-card__price strong,
.favorites-product-card__price del,
.favorites-product-card__price small {
    display: inline-block;
}

.favorites-product-card__price strong {
    color: var(--ink);
    font-size: 13px;
}

.favorites-product-card__price del {
    margin-inline-start: 4px;
    color: var(--ink-soft);
    font-size: 10px;
}

.favorites-product-card__price small {
    margin-inline-start: 3px;
    color: var(--ink-soft);
    font-size: 10px;
}

.favorites-product-card__details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--copper-dark);
    font-size: 10.5px;
    transition: .2s ease;
}

.favorites-product-card__details:hover {
    border-color: var(--copper);
    color: var(--copper-dark);
    background: var(--copper-tint);
}

.favorites-product-card__details span {
    font-size: 14px;
    line-height: 1;
}

.favorites-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 48px 20px 28px;
    text-align: center;
}

.favorites-empty__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: var(--copper);
    background: var(--copper-tint);
}

.favorites-empty__icon svg {
    width: 29px;
}

.favorites-empty h3 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 17px;
}

.favorites-empty p {
    max-width: 460px;
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.9;
}

.wish.is-added {
    color: var(--copper);
    border-color: var(--copper);
    background: var(--copper-tint);
}

.wish.is-added svg {
    fill: currentColor;
}

@media (max-width: 1050px) {
    .favorites-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .favorites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .favorites-hero {
        padding: 25px 22px;
    }
}

@media (max-width: 520px) {
    .favorites-hero__icon {
        display: none;
    }

    .favorites-content {
        padding: 20px;
    }

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