/* ===== "Mėgstamiausi" - heart buttons, header icon, favorites page ===== */

/* heart icon: outline by default, filled when the product is a favorite */
.mj-fav-icon {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill .2s ease, transform .2s ease;
}

.is-active > .mj-fav-icon,
.is-active .mj-fav-icon {
    fill: currentColor;
}

/* --- heart on a product card (top right corner of the card) --- */
.product-thumb,
.mj-fav-card {
    position: relative;
}

.mj-fav-btn--card {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #fff;
    color: #B4A172;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.mj-fav-btn--prod {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background-color: #fff;
    color: #B4A172;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
    margin-left: 15px;
}

.mj-fav-btn--card:hover,
.mj-fav-btn--card:focus,
.mj-fav-btn--pro:hover,
.mj-fav-btn--pro:focus {
    background-color: #F3EDDF;
    color: #9B7D34;
    outline: none;
}

.mj-fav-btn--card:focus-visible,
.mj-fav-btn--pro:focus-visible {
    outline: 2px solid #9B7D34 !important;
    outline-offset: 2px !important;
}

.mj-fav-btn--card:hover .mj-fav-icon,
.mj-fav-btn--pro:hover .mj-fav-icon {
    transform: scale(1.1);
}

button.mj-fav-btn--card:focus {
    outline: unset !important;
    box-shadow: unset !important;
}

/* --- heart-only button next to "Į krepšelį" on the product page --- */
.mj-fav-btn--product {
    flex: none;
    width: 56px;
    padding-left: 0;
    padding-right: 0;
}

.mj-fav-btn--product .mj-fav-icon {
    width: 24px;
    height: 24px;
}

.mj-fav-btn--product.is-active {
    background-color: #F3EDDF;
}

.mj-fav-btn--product.is-active:hover {
    background-color: #9B7D34;
}

/* while the request is running */
[data-fav-toggle].is-loading {
    opacity: .6;
    pointer-events: none;
}

/* --- header icon with counter --- */
.mj-fav-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.mj-fav-header:hover {
    color: #B4A172;
    text-decoration: none;
}

.mj-fav-header .mj-fav-icon {
    width: 22px;
    height: 22px;
}

.mj-fav-count {
    position: absolute;
    top: -6px;
    right: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 40px;
    background-color: #A61A1A;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}


@media (max-width: 992px){
    .mj-fav-header .mj-fav-icon {
        width: 24px;
        height: 24px;
        margin-top: 2px;
    }

    .mj-fav-count {
        top: -6px;
        right: -17px;
    }
}



.mj-fav-count.jump {
    animation: jump .5s linear alternate;
}

/* --- favorites page --- */
.mj-fav-page .mj-fav-item {
    transition: opacity .25s ease, transform .25s ease;
}

.mj-fav-page .mj-fav-item.mj-fav-removing {
    opacity: 0;
    transform: scale(.95);
}

.mj-fav-page .mj-fav-item-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: .5rem;
    overflow: hidden;
}

.mj-fav-page .mj-fav-item-image img {
    display: block;
    width: 100%;
    height: auto;
}

.mj-fav-page .mj-fav-item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.mj-fav-page .mj-fav-item-name {
    color: #302F2F;
    font-weight: 600;
    margin-bottom: .5rem;
}

.mj-fav-page .mj-fav-item-name:hover {
    color: #9B7D34;
    text-decoration: none;
}

.mj-fav-page .mj-fav-item-price {
    margin-bottom: 1rem;
    color: #302F2F;
    font-weight: 600;
}

.mj-fav-page .mj-fav-item-price .mj-fav-price-old {
    margin-left: .5rem;
    color: #8a8a8a;
    font-weight: 400;
    text-decoration: line-through;
}

.mj-fav-page .mj-fav-item-actions {
    margin-top: auto;
    display: flex;
    gap: .5rem;
}

.mj-fav-page .mj-fav-item-actions .btn-mj {
    flex: 1;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mj-fav-page .mj-fav-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .6rem 1rem;
    border: 2px solid #B4A172;
    border-radius: .5rem;
    background: transparent;
    color: #B4A172;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.mj-fav-page .mj-fav-remove:hover {
    background-color: #9B7D34;
    border-color: #9B7D34;
    color: #fff;
}

.mj-fav-page .mj-fav-empty {
    padding: 3rem 1rem;
    text-align: center;
}

.mj-fav-page .mj-fav-empty .mj-fav-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #B4A172;
}
