/* Хиты продаж: app/themes/proxymo/views/page/tez/widgets/_hot_offers.html.erb */

.hot_offers_section {
    width: 100%;
    margin: 0;
    padding: 55px 0;
    background: #ffffff;
    box-sizing: border-box;
}

.hot_offers_section.hot_offers_reveal {
    opacity: 0;
    transform: translate3d(0, -28px, 0);
}

.hot_offers_section.hot_offers_reveal.is_revealed {
    animation-name: hot_offers_reveal_in;
    animation-duration: 0.7s;
    animation-fill-mode: both;
}

@keyframes hot_offers_reveal_in {
    from {
        opacity: 0;
        transform: translate3d(0, -28px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hot_offers_limit {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.hot_offers_title {
    margin: 0;
    padding: 0;
    color: #222222;
    font-family: var(--site-font-family);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.hot_offers_delimiter {
    width: 45px;
    height: 3px;
    margin: 18px 0 28px;
    border-radius: 2px;
    background: var(--quaternary-color);
}

.hot_offers_widget .offer_wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px;
}

.hot_offers_widget .offer_item {
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 33.333%;
    max-width: 33.333%;
    padding: 0 7px 14px;
    transition-property: opacity, transform, filter;
    transition-duration: 0.55s, 0.65s, 0.55s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.hot_offers_widget .offer_item.offer_item_loading {
    filter: blur(12px);
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.96);
}

.hot_offers_widget .offer_item.offer_item_loading.is_loaded {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.hot_offers_widget .offer_card {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    background: #d9dee5;
}

.hot_offers_widget .offer_card:hover,
.hot_offers_widget .offer_card:focus {
    color: #ffffff;
    text-decoration: none;
}

.hot_offers_widget .offer_image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s ease-out;
}

.hot_offers_widget .offer_card:hover .offer_image {
    transform: scale(1.03);
}

.hot_offers_widget .offer_overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 43%,
        color-mix(in srgb, var(--primary-color) 92%, transparent) 100%
    );
    pointer-events: none;
}

.hot_offers_widget .offer_content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

.hot_offers_widget .offer_place {
    margin: 0 0 2px;
    color: #ffffff;
    font-family: var(--site-font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

.hot_offers_widget .offer_name {
    color: #ffffff;
    font-family: var(--site-font-family);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

/* Рейтинг */
.hot_offers_widget .offer_rating {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #374151;
    display: inline-flex;
    font-family: var(--site-font-family);
    font-size: 12px;
    gap: 4px;
    line-height: 1.3;
    padding: 5px 10px;
    position: absolute;
    right: 12px;
    top: 12px;
    white-space: nowrap;
    z-index: 2;
}

.hot_offers_widget .offer_rating i {
    color: #f5b301;
    font-size: 11px;
}

.hot_offers_widget .offer_rating strong {
    color: #111827;
    font-weight: 700;
}

.hot_offers_widget .offer_rating > span {
    color: #555555;
}

.hot_offers_widget .offer_price {
    margin-top: 15px;
    color: #ffffff;
    font-family: var(--site-font-family);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    transition: margin-bottom 0.3s ease-out;
}

.hot_offers_widget .offer_card:hover .offer_price {
    margin-bottom: 7px;
}

.hot_offers_section .hot_offers_more.show_more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.hot_offers_section .show_more a.hot_offers_more_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 24px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: var(--primary-color) !important;
    font-family: var(--site-font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 41px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.hot_offers_section .show_more a.hot_offers_more_btn:hover {
    background: var(--primary-color);
    background-image: none;
    box-shadow: none;
    color: #ffffff !important;
    text-decoration: none;
}

@media (max-width: 991px) {
    .hot_offers_widget .offer_item {
        flex-basis: 50%;
        max-width: 50%;
    }

    .hot_offers_widget .offer_card {
        height: 260px;
    }

    .hot_offers_widget .offer_name {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hot_offers_section {
        padding: 36px 0;
    }

    .hot_offers_title {
        font-size: 24px;
    }

    .hot_offers_widget .offer_item {
        flex-basis: 100%;
        max-width: 100%;
    }

    .hot_offers_widget .offer_card {
        height: 250px;
    }
}
