/* ==========================
   Favorites
========================== */

.favorites-page{
    padding:70px 35px 80px;
    max-width:1600px;
    margin:0 auto;
}

.favorites-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}

.favorites-header h1{
    font-size:36px;
    margin:-50px 0 0;
    padding: 0 50px 0;
    font-weight:700;
    color:#202938;
}
.favorites-header p{
    margin:0;
    font-size:18px;
    color:#8b96a8;
    padding:0 50px 0;
}


/* ==========================
   Favorites list
========================== */

.favorites-list{
    background:#fff;
    border:1px solid #f5d8bb;
    border-radius:24px;
    padding:0 32px;
    box-shadow:0 15px 40px rgba(32,41,56,.08);
}


.favorite-row{
    display:flex;
    align-items:center;
    gap:28px;

    min-height:150px;
    padding:24px 0;

    border-top:1px solid #ffe4cb;

    transition:.2s;
}


.favorite-row:first-child{
    border-top:none;
}


.favorite-row:hover{
    background:#fffaf5;
}


/* ==========================
   Image
========================== */

.favorite-image{
    width:120px;
    height:100px;

    flex-shrink:0;

    border-radius:14px;
    overflow:hidden;

    background:#f5f5f5;
}


.favorite-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}


/* ==========================
   Product info
========================== */

.favorite-info{
    flex:1;
}


.favorite-info h3{
    margin:0 0 8px;

    font-size:20px;
    font-weight:600;

    color:#202938;
}


.favorite-info p{
    margin:0 0 8px;

    font-size:15px;
    color:#8b96a8;
}


.favorite-info span{
    font-size:14px;
    color:#8b96a8;
}


/* ==========================
   Price
========================== */

.favorite-price{
    width:150px;
    text-align:right;
    font-size:20px;
    font-weight:700;
    color:#202938;}
.favorite-price-current{
    font-weight: 700;
}

.favorite-price-old{
    margin-left: 8px;
    text-decoration: line-through;
    color: #8a96a8;
    font-weight: 400;
}

/* ==========================
   Actions
========================== */

.favorite-actions{
    width:160px;
    padding-right:30px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}
.favorite-actions .product-card__cart{
    width:45px;
    height:45px;
    padding:0;
    border:none;
    border-radius:50%;
    background:#e77b2c;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transform: translateX(-20px);
}

.favorite-actions .product-card__cart img{
    width:24px;
    height:24px;
    object-fit:contain;
    display:block;
}


.favorite-view{
    display:inline-block;

    padding:9px 18px;

    border-radius:20px;

    background:#eef9ee;
    color:#4ea85c;

    font-size:14px;
    font-weight:600;

    text-decoration:none;

    transition:.2s;
}


.favorite-view:hover{
    background:#e1f3e1;
}
.favorite-row {
    position: relative;
}

.favorite-remove {
    position: absolute;
    top: 20px;
    right: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: none;
    background: #ffffff;
    color: #8f9bad;

    font-size: 30px;
    line-height: 1;
    cursor: pointer;

    padding: 0;
    z-index: 10;
}


.favorite-remove:hover{
    text-decoration:underline;
}
/* =========================
   FAVORITE BUTTON
========================= */

.product-card__favorite {
    cursor: pointer;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

.product-card__favorite:hover {
    transform: scale(1.08);
}

.product-card__favorite.active {
    color: #e77b2c;
    background-color: #fff3e8;
}

.product-card__favorite:active {
    transform: scale(0.92);
}