.favorites-background {
   background: #090c46;
}


.basket__title{
   color: #fff;
    font-size: calc(16px + 16 * ((100vw - 380px) / 910));
}
.basket__title span{
    color: #387dff;
}
.basket-body__content{
    min-height: 100px;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Обеспечиваем одинаковую высоту контейнеров */
.product_cont_fav,
.cat_cont_fav {
    display: flex;
    flex-direction: column;
}

.basket-body__content,
.cat_basket-body__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Стили для пустого состояния */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a1a4a 0%, #1a1a2e 100%);
    border-radius: 20px;
    border: 5px solid #0e216d;
    min-height: 350px;
    height: 100%;
}

.empty-state__icon {
    margin-bottom: 24px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-state__title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
}

.empty-state__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 400px;
}

.empty-state__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.empty-state__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.empty-state__btn--primary {
    box-shadow: 0px 0px 0 5px #000aff3d;
    background: linear-gradient(180deg, #008fee 0%, #000aff 100%);
    color: #fff;
    border: none !important;
    outline: none;
}

.empty-state__btn--primary:hover {
    box-shadow: 0px 0px 0 8px #000aff3d;
    transform: scale(1.05);
    transition: all 0.3s;
}

.empty-state__btn--secondary {
    background: transparent;
    color: #387dff;
    border-color: #387dff;
}

.empty-state__btn--secondary:hover {
    background: #387dff;
    color: #fff;
    transform: translateY(-2px);
}

.empty-state__btn svg {
    width: 16px;
    height: 16px;
}

/* Адаптивность для пустого состояния */
@media (max-width: 900px) {
    .flex-basket_body {
        flex-direction: column;
        gap: 20px;
    }
    
    .product_cont_fav,
    .cat_cont_fav {
        width: 100%;
    }
    
    .empty-state {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .empty-state {
        padding: 40px 16px;
        min-height: 280px;
    }
    
    .basket-body__content,
    .cat_basket-body__content {
        min-height: 280px;
    }
    
    .empty-state__title {
        font-size: 24px;
    }
    
    .empty-state__text {
        font-size: 14px;
    }
    
    .empty-state__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .empty-state__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .empty-state__icon svg {
        width: 60px;
        height: 60px;
    }
    
    .empty-state__title {
        font-size: 20px;
    }
    
    .basket-body__content,
    .cat_basket-body__content {
        min-height: 250px;
    }
    
    .empty-state {
        min-height: 250px;
        padding: 30px 16px;
    }
}

/* Дополнительные стили для избранного */
.favorites-product-item {
    position: relative;
    margin-bottom: 20px;
}

/* Фиксированная высота и фон для карточек товаров в избранном */
.favorites-product-item .featured-product {
    background: #111 !important;
    border: 5px solid #0e216d !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    height: 212px !important;
}

/* Стили для цены со скидкой */
.featured-product-price-old {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-right: 8px;
}

.featured-product-discount {
    background: #77be1d;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
}

/* Стили для кнопки удаления товаров из избранного */
.favorites-remove-btn-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.favorites-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.favorites-remove-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.favorites-remove-btn::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    background: linear-gradient(266.26deg, #008fee 20%, #000aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.favorites-remove-btn:hover::before {
    background: linear-gradient(266.26deg, #00a8ff 20%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.favorites-remove-btn svg {
    display: none;
}

/* Стили для кнопки удаления категорий из избранного */
.basket-body-content-item__bottom {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10;
}

.basket-body-content-item__bottom-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.basket-body-content-item__bottom-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.basket-body-content-item__bottom-btn::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    color: #00a8ff;
}

.basket-body-content-item__bottom-btn:hover::before {
    color: #00a8ff;
}

.basket-body-content-item__bottom-btn svg {
    display: none;
}

/* Обновляем высоту категорий для соответствия карточкам товаров */
.cat_basket-body__content .category-list__item {
    border: 5px solid #0e216d !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    height: 212px !important;
}

/* Заголовки избранного */
.basket__title, .cat_basket__title {
    color: #fff;
    font-size: 28px;
}

.basket__title span, .cat_basket__title span {
    color: #387dff;
}

/* Стили для категорий */
.cat_basket-body__content .category-list__item {
    position: relative;
    width: 100%;
    background-color: #111;
    overflow: hidden;
    height: 212px;
    border-radius: 18px;
    border: 5px solid #0e216d;
    box-shadow: none;
    transition: all .3s;
}

.cat_basket-body__content .category-list__item-bg {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover!important;
    display: block;
    -webkit-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    -moz-transform-style: preserve-3d;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.cat_basket-body__content .product_overlay {
    transition: all .3s ease;
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #fff;
    padding: 10px 10px 10px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    pointer-events: none;
    font-weight: 500;
    font-size: 16px;
    z-index: 9;
}

.cat_basket-body__content .category-list__item .bg_category {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    background: linear-gradient( 180deg,rgba(0,0,0,0) 62.68%,rgba(0,0,0,0.9) 110%);
    pointer-events: none;
}

.cat_basket-body__content .category-list__item-bg img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.cat_basket-body__content .product_overlay .caption-title {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    -webkit-line-clamp: 1;
    -ms-line-clamp: 1;
    -webkit-box-orient: vertical;
    -ms-flex-orient: vertical;
}

.cat_basket-body__content .product_overlay .caption-price {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 auto;
    flex: 0 auto;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    background: linear-gradient(90deg, #008fee 0%, #387dff 50%, #000aff 100%);
    color: #fff;
    padding: 5px 15px;
    margin-left: 10px;
    font-size: 16px;
    border-radius: 12px;
}

/* Макет страницы */
.cat_cont_fav {
    width: 40%;
}

.product_cont_fav {
    width: 58%;
}

.cat_basket-body__content {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px !important;
}

.flex-basket_body {
    display: flex;
    justify-content: space-between;
}

/* Эффекты для категорий */
.category-list__item:hover .category-list__item-bg {
    opacity: .6;
}

.category-list__item>a:hover .category-list__item-bg {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

/* Адаптивные стили */
@media (max-width: 900px) {
    .product_cont_fav {
        width: 100%;
    }
    
    .cat_cont_fav {
        width: 100%;
    }
    
    .flex-basket_body {
        flex-direction: column;
        gap: 20px;
    }
}

/* Адаптивные стили для кнопок удаления */
@media (max-width: 768px) {
    .favorites-remove-btn-wrapper,
    .basket-body-content-item__bottom {
        top: 15px;
        right: 15px;
    }
    
    .favorites-remove-btn,
    .basket-body-content-item__bottom-btn {
        width: 36px;
        height: 36px;
    }
    
    .favorites-remove-btn::before,
    .basket-body-content-item__bottom-btn::before {
        font-size: 18px;
    }
}

/* Overrides для единого оформления карточек (товары и категории) */
.favorites-product-item .featured-product {
    background: #111 !important;
    border: 5px solid #0e216d !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

.cat_basket-body__content .category-list__item {
    border: 5px solid #0e216d !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    height: 212px !important;
}

.cat_basket-body__content {
    row-gap: 20px !important;
}

/* Кнопка удаления категории поверх изображения */
.cat_basket-body__content .basket-body-content-item__bottom,
.cat_basket-body__content .basket-body-content-item__bottom-btn {
    z-index: 20 !important;
}