/* CSS Document */

/* KEDVENCEK - műveleti sáv */

.fav-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 18px;
    margin-bottom: 25px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.fav-actions__select {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.fav-actions__select label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.fav-actions input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #68142e;
    cursor: pointer;
}

.fav-actions__menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.fav-actions__menu select {
    height: 36px;
    min-width: 210px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.fav-actions__menu button {
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: #68142e;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.fav-actions__menu button:disabled,
.fav-actions__menu select:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.fav-actions__count {
    margin-left: auto;
    font-size: 13px;
    color: #777;
}


/* TERMÉKEK */

.fav-product-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.fav-product-check {
    width: 40px;
    min-width: 40px;
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

.fav-product-check input {
    width: 19px;
    height: 19px;
    accent-color: #68142e;
    cursor: pointer;
}

.fav-product-row .shop-item {
    flex: 1;
    width: auto;
    float: none;
    padding-left: 0;
    padding-right: 0;
}


/* MOBIL */

@media (max-width: 767px) {

    .fav-actions {
        gap: 12px;
        padding: 12px;
    }

    .fav-actions__menu {
        width: 100%;
    }

    .fav-actions__menu select {
        flex: 1;
        min-width: 150px;
    }

    .fav-actions__count {
        margin-left: 0;
        width: 100%;
    }

    .fav-product-check {
        width: 32px;
        min-width: 32px;
    }

}


/* KEDVENCEK MODAL */

.fav-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.fav-modal.active {
    display: flex;
}

.fav-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.fav-modal__box {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    max-width: 420px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    animation: favModalIn .2s ease;
}

.fav-modal__icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e8f6ed;
    color: #299653;
    font-size: 32px;
    line-height: 55px;
    font-weight: bold;
}

.fav-modal__icon.error {
    background: #fdeaea;
    color: #d33;
}

.fav-modal__box h3 {
    margin: 0 0 12px;
    color: #68142e;
    font-size: 22px;
}

.fav-modal__box #favModalMessage {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.fav-modal__box button {
    margin-top: 22px;
    padding: 10px 30px;
    border: 0;
    border-radius: 4px;
    background: #68142e;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.fav-modal__box button:hover {
    background: #831d3c;
}

@keyframes favModalIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* AJAX LOADING OVERLAY */

.fav-loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, .58);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.fav-loading.active {
    display: flex;
}

.fav-loading__box {
    width: calc(100% - 40px);
    max-width: 300px;
    padding: 30px 25px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    animation: favLoadingIn .2s ease;
}

/* Forgó animáció */

.fav-loading__spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 20px;
    border: 4px solid #eee;
    border-top-color: #68142e;
    border-radius: 50%;
    animation: favSpinner .8s linear infinite;
}

.fav-loading__title {
    color: #68142e;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 8px;
}

.fav-loading__text {
    color: #888;
    font-size: 13px;
}

@keyframes favSpinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes favLoadingIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


