@media screen and (max-width: 1024px) {
    .thumb-wishlist {
        /*display: none !important;*/
    }

    .thumb-compare {
        /*display: none !important;*/
    }

    .thumb-cart-button-icon {
        display: none !important;
    }

    .thumb-container:hover {
        transform: unset !important;
        transition: unset !important;
        box-shadow: unset !important;
        margin-top: unset !important;
    }

    .thumb-buttons-container {
        /*position: absolute;*/
        /*z-index: 200;*/
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
    }

    .thumb-old-price {
        font-size: 1.25rem !important;
    }

    .thumb-name {
        /*font-size: var(--h5-14-font-size, 0.875rem) !important;*/
        /*font-weight: var(--h5-14-font-weight, 400) !important;*/
        height: 5rem !important;
    }
}

@media screen and (max-width: 600px) {
    .thumb-cart-button {
        padding: 0.25rem 0.5rem !important;
    }

    .thumb-header-container {
        right: 0.5rem !important;
        left: 0.5rem !important;
        top: 0.5rem !important;
    }
    .thumb-name {
        font-size: var(--h5-14-font-size, 0.875rem) !important;
        font-weight: var(--h5-14-font-weight, 400) !important;
        height: 5.5rem !important;
    }
}

@media screen and (max-width: 500px) {
    .thumb-price-wrapper {
        font-size: 1rem !important;
    }

    .thumb-old-price {
        font-size: 1rem !important;
    }
}

@media screen and (max-width: 450px) {
    .thumb-buttons-container {
        margin-top: unset !important;
    }

    .thumb-header {
        padding: 2.5rem 0.5rem 0 0.5rem !important;
    }

    .thumb-content {
        gap: unset !important;
        padding: 1rem 0.6rem !important;
    }

    .thumb-name {
        height: 1.5rem;
        /*margin: 0; !* Убираем внешний отступ *!*/
        /*-webkit-line-clamp: 3; !* Число отображаемых строк *!*/
        /*display: -webkit-box; !* Включаем флексбоксы *!*/
        /*-webkit-box-orient: vertical; !* Вертикальная ориентация *!*/
        /*overflow: hidden; !* Обрезаем всё за пределами блока *!*/
        /*text-overflow: ellipsis; !* Добавляем многоточие *!*/
    }
}

@media screen and (max-width: 400px) {
    .thumb-old-price {
        font-size: 0.75rem !important;
    }

}


.thumb-wrapper {
    position: relative;
}

.thumb-container {
    border-radius: 0.5rem;
    /*height: calc(100% - 0px);*/
    /*height: 600px;*/
}

.thumb-container:hover .thumb-buttons-container {
    /*position: absolute;*/
    /*z-index: 200;*/
    display: flex;
    flex-direction: column;
}

.thumb-container:hover {
    z-index: 200;
    position: absolute !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
    box-shadow: var(--card-elevation-box-shadow);
    margin-top: 1rem;
    width: 100%;
}

.thumb-header {
    gap: 0.625rem;
    padding: 1.5rem;
    background: var(--w);
}

.thumb-header-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /*justify-content: space-between;*/
    justify-content: flex-end;
    flex-shrink: 0;
    position: absolute;
    right: 1rem;
    left: 1rem;
    top: 1rem;
}

.thumb-img-container {
    background: var(--w, #ffffff);
    padding-top: 2rem;
}

.thumb-badge-blue {
    background: #6a67f6;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    gap: 0.5rem;
    border-radius: 0.25rem;
}

.thumb-badge-blue-txt {
    color: var(--w, #ffffff);
    font-size: var(--uppercase-11-font-size, 0.6875rem);
    font-weight: var(--uppercase-11-font-weight, 700);
    text-transform: uppercase;
    text-align: left;
}

.thumb-badge-yellow {
    background: var(--yellow, #ffda18) !important;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    gap: 0.5rem;
}

.thumb-badge-yellow-txt {
    color: var(--text-black, #05000f);
    text-align: left;
    font-size: var(--uppercase-11-font-size, 0.6875rem);
    font-weight: var(--uppercase-11-font-weight, 700);
    text-transform: uppercase;
    position: relative;
}

.thumb-head-form {
    z-index: 4;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
}

.thumb-wishlist {
    /*width: 2rem;*/
    height: 2rem;
    border: none;
    background: transparent;
    display: block;
    /*flex-direction: row;*/
    /*gap: 0.5rem;*/
    align-items: center;
    /*justify-content: center;*/
    /*flex-shrink: 0;*/
    position: relative;
    /*overflow: hidden;*/
}

.thumb-delete {
    /*width: 2rem;*/
    height: 2rem;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.thumb-compare {
    /*width: 2rem;*/
    height: 2rem;
    border: none;
    background: transparent;
    display: block;
    /*flex-direction: row;*/
    /*gap: 0.5rem;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*flex-shrink: 0;*/
    position: relative;
    /*overflow: hidden;*/
}

.thumb-content {
    background: var(--w, #ffffff);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

.thumb-name {
    text-align: left;
    font-size: var(--h4-18-font-size);
    font-weight: var(--h4-18-font-weight);
    position: relative;
    align-self: stretch;
    height: 3.5rem;
}

.thumb-name > a {
    color: var(--primary-black);
}

.thumb-name > a:hover {
    color: var(--accent-blue);
}

.thumb-info-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

.thumb-price-container {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

.thumb-price {
    font-weight: 500;
}

.thumb-new-price {
    font-weight: 500;
    /*color: var(--red);*/
}

.thumb-old-price {
    color: var(--g-1);
    text-decoration: line-through;
}

.thumb-price-tax {
    color: var(--g-2);
    font-size: 12px;
    display: block;
}

.thumb-price-wrapper {
    color: var(--primary-black);
    text-align: left;
    font-size: 1.25rem;
    font-weight: 400 !important;
    position: relative;
}

.thumb-reward-text {
    color: var(--accent-blue);
}

.thumb-reward-value {

}

.thumb-reward-container {
    min-height: 20px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
}

.thumb-reward-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
    margin: 0.5rem 0 0.5rem 0;
}

.thumb-buttons-container {
    margin-top: 0.5rem;
    max-height: 300px;
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.thumb-cart-button-on-credit {
    border-radius: 0.25rem;
    background: linear-gradient(45deg, #FFC3FE, #AAECF1) !important;
    border: 2px solid var(--purple) !important;
    color: var(--purple) !important;
}

.thumb-cart-button {
    margin-right: 0.5rem;
    background: var(--accent-blue);
    color: var(--w);
    border-radius: 0.25rem;
    border: 2px solid var(--accent-blue);
    padding: 0.625rem 0.75rem 0.625rem 0.75rem;
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    min-height: 3rem;
    font-size: 1rem;
    font-weight: 500;
}

.thumb-cart-button i {
    color: var(--w) !important;
}

.thumb-cart-button:hover i {
    color: var(--accent-blue) !important;
}

.thumb-cart-button:hover {
    background: var(--w);
    border-color: var(--accent-blue);

    .thumb-cart-button-text {
        color: var(--accent-blue);
    }

    .thumb-cart-button-text-on-credit {
        color: var(--w) !important;
    }

    .thumb-cart-button-icon {
        color: var(--accent-blue);
    }
}

.thumb-cart-button-on-credit:hover {
    background: var(--purple) !important;
}

.thumb-cart-button-text {
    color: var(--w);
    text-align: left;
    font-size: var(--p-medium-16-font-size, 1rem);
    font-weight: var(--p-medium-16-font-weight, 500);
    position: relative;
    white-space: nowrap;
}

.thumb-cart-button-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    overflow: visible;
}

.thumb-buy-button {
    border-radius: 0.25rem;
    border-style: solid;
    border-color: var(--accent-blue);
    background-color: var(--w);
    border-width: 0.125rem;
    padding: 0.625rem 0.75rem 0.625rem 0.75rem;
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.thumb-buy-button:hover {
    border-color: var(--accent-blue);
    background-color: var(--accent-blue);

    .thumb-buy-button-text {
        color: var(--w);
    }
}

.thumb-buy-button-text {
    color: var(--accent-blue);
    text-align: left;
    font-size: var(--p-medium-16-font-size, 1rem);
    font-weight: var(--p-medium-16-font-weight, 500);
    position: relative;
}