/* «Распродажа из печи», вариант А. Подключается только 5–30 ноября. */

body.is-oven-sale .m-header-logo {
    overflow: visible;
}

body.is-oven-sale .m-header-logo::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 5;
    left: -13.333%;
    top: -48.276%;
    width: 133.333%;
    height: 158.621%;
    background: url(../assets/img/oven-sale/logo/logo-decor@2x.webp) 0 0 / 100% 100% no-repeat;
}

.m-oven-home-banner,
.m-oven-shop-banner {
    display: block;
    margin: 8px 0 20px;
}

.m-oven-home-banner img,
.m-oven-shop-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.m-sale-garland {
    position: relative;
    height: 0;
    z-index: 2;
    pointer-events: none;
}

.m-sale-garland::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 120px;
    background: url(../assets/img/oven-sale/garland/garland-left@2x.webp) left top / 200px 120px no-repeat,
                url(../assets/img/oven-sale/garland/garland-right@2x.webp) right top / 460px 120px no-repeat;
}

@media (max-width: 767px) {
    .m-sale-garland {
        display: none;
    }
}

/* Кнопка недели: вместо кружка-переключателя — кусок пирога. */
body.is-oven-sale .js-shop-product-filter[data-filter-id="oven-week"]::before,
body.is-oven-sale .js-shop-product-filter[data-filter-id="oven-week"]::after {
    content: none;
}

body.is-oven-sale .m-oven-pie {
    position: absolute;
    right: 9px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    background: url(../assets/img/oven-sale/decor/pie-slice.webp) 0 0 / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 2;
}

/* п. 10 — выпечка по свободным полям, контейнер страницы 1200px. */
.m-sale-decor {
    display: none;
}

@media (min-width: 1500px) {
    .m-sale-decor {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 0;
        pointer-events: none;
    }

    .m-sale-decor::before,
    .m-sale-decor::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 120px;
        background-repeat: no-repeat;
    }

    .m-sale-decor::before {
        left: 0;
        background-image: url(../assets/img/oven-sale/decor/cherry-pair.webp),
                          url(../assets/img/oven-sale/decor/dough-leaf.webp);
        background-position: left 14px top 24%, left -16px top 72%;
        background-size: 88px auto, 104px auto;
    }

    .m-sale-decor::after {
        right: 0;
        background-image: url(../assets/img/oven-sale/decor/pirozhok.webp),
                          url(../assets/img/oven-sale/decor/dough-flower.webp);
        background-position: right 12px top 32%, right -14px top 78%;
        background-size: 96px auto, 100px auto;
    }
}

body.is-oven-sale .m-shop-filter .js-shop-product-filter {
    border-color: #A50B1E;
}

body.is-oven-sale .m-shop-filter .js-shop-product-filter:hover:not(.is-selected) {
    background: #F4D4D2;
}

body.is-oven-sale .m-shop-filter .js-shop-product-filter:hover:not(.is-selected):after {
    border-color: #A50B1E;
}

body.is-oven-sale .m-shop-filter .js-shop-product-filter.is-selected {
    background: #A50B1E;
    color: #FFF8EB;
    border-color: #A50B1E;
}

body.is-oven-sale .m-shop-filter .js-shop-product-filter.is-selected:after {
    border-color: #FFF8EB;
}

body.is-oven-sale .m-shop-products-list,
body.is-oven-sale .m-shop-product,
body.is-oven-sale .m-shop-product-wrap,
body.is-oven-sale #section-products {
    overflow: visible;
}

.m-shop-product .sale-hot-mitt {
    position: absolute;
    right: -40px;
    top: -48px;
    width: 222px;
    height: auto;
    z-index: 6;
    pointer-events: none;
}

.m-oven-sticker {
    position: absolute;
    right: -16px;
    top: -16px;
    left: auto;
    z-index: 6;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.m-oven-sticker--ordinary {
    width: 150px;
    height: 60px;
    padding: 10px;
    color: #FFF8EB;
    background: url(../assets/img/oven-sale/stickers/discount-blank@2x.webp) 0 0 / 100% 100% no-repeat;
    font-family: "Nunito", "Ubuntu", sans-serif;
    font-weight: 900;
    font-size: 26px;
    line-height: 1;
    white-space: nowrap;
}

.m-oven-sticker--ordinary.is-compact {
    font-size: 22px;
}

@media (max-width: 767px) {
    .m-shop-product .sale-hot-mitt {
        right: -10px;
        top: -30px;
        width: 168px;
    }

    .m-oven-sticker--ordinary {
        right: -8px;
        top: -12px;
    }
}

/* Обводка на всю карточку, включая «Подробнее». */
body.is-oven-sale .m-shop-product.is-sale-headliner .m-shop-product-wrap {
    background: #FFF6E6;
    border: 3px solid #A50B1E;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: none;
}

body.is-oven-sale .m-shop-product.is-sale-headliner .m-product-link {
    background: #FFF6E6;
    border: 3px solid #A50B1E;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    color: #A50B1E;
    box-shadow: 0 14px 30px rgba(165, 11, 30, .18);
}

body.is-oven-sale .m-shop-product.is-sale-headliner .m-product-link:hover {
    color: #7C0817;
}

/* Внешнее мягкое кольцо вокруг wrap + «Подробнее». */
body.is-oven-sale .m-shop-product.is-sale-headliner::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    left: -6px;
    right: -6px;
    top: -6px;
    bottom: -40px;
    border-radius: 20px;
    box-shadow: 0 0 0 6px rgba(165, 11, 30, .15);
}

body.is-oven-sale .m-product-img-main,
body.is-oven-sale .m-product-card__gallery,
.m-oven-photo {
    position: relative;
    overflow: visible;
}

/* Старая вёрстка карточки товара: бейджу нужна точка отсчёта. */
.c-product__media {
    position: relative;
}

.m-oven-badge {
    position: absolute;
    right: -24px;
    top: -22px;
    width: 192px;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.m-oven-badge--live {
    height: 176px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 32px 20px 14px;
    background: url(../assets/img/oven-sale/badges/badge-blank@2x.webp) 0 0 / 100% 100% no-repeat;
    color: #FFF8EB;
    text-align: center;
    line-height: 1.05;
}

.m-oven-badge__label {
    font: 700 14px/1 "Nunito", "Ubuntu", sans-serif;
    margin-bottom: 4px;
}

.m-oven-badge__amount {
    font: 900 24px/1 "Nunito", "Ubuntu", sans-serif;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .m-oven-badge {
        right: -6px;
        top: -10px;
        width: 154px;
    }

    .m-oven-badge--live {
        height: 141px;
        padding: 35px 26px 16px 11px;
    }

    .m-oven-badge__label {
        font-size: 11px;
    }

    .m-oven-badge__amount {
        font-size: 19px;
    }
}

.m-oven-tariffs-banner {
    display: block;
    margin: 0 0 24px;
}

.m-oven-tariffs-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

body.is-oven-sale .m-tariff-item {
    position: relative;
    overflow: visible;
}

body.is-oven-sale .m-tariffs-list {
    padding-top: 52px;
}

/* Стикер только при активной годовой акции (−20% + 3 мес.). */
body.is-oven-sale .m-tariff-item.has-sale-year::before {
    content: "";
    position: absolute;
    right: -30px;
    top: -46px;
    width: 160px;
    height: 64px;
    background: url(../assets/img/oven-sale/tariffs/tariff-sticker@2x.webp) 0 0 / 100% 100% no-repeat;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 767px) {
    body.is-oven-sale .m-tariffs-list {
        padding-top: 36px;
    }

    body.is-oven-sale .m-tariff-item.has-sale-year::before {
        right: -8px;
        top: -26px;
    }
}

body.is-oven-sale .m-btn.m-btn-red,
body.is-oven-sale a.m-btn.m-btn-red,
body.is-oven-sale button.m-btn.m-btn-red {
    background: #A50B1E;
    color: #FFF8EB;
}

body.is-oven-sale .m-btn.m-btn-red:hover,
body.is-oven-sale a.m-btn.m-btn-red:hover,
body.is-oven-sale button.m-btn.m-btn-red:hover {
    background: #7C0817;
    color: #FFF8EB;
}

body.is-oven-sale .m-btn.m-btn-outline-red {
    border-color: #A50B1E;
    color: #A50B1E;
}

body.is-oven-sale .m-btn.m-btn-outline-red:hover {
    background: #F8E4E2;
}

body.is-oven-sale .m-top-login-btn {
    border-color: #A50B1E;
    color: #A50B1E;
}

body.is-oven-sale .m-submenu {
    background: #FFF1D8;
    border-bottom-color: #F0E0C4;
}

body.is-oven-sale .m-submenu ul li a.active,
body.is-oven-sale .m-submenu ul li a:hover {
    color: #A50B1E;
    border-bottom-color: #A50B1E;
}

body.is-oven-sale .c-mail-widget {
    background: #A50B1E;
}

body.is-oven-sale .c-mail-widget:hover {
    background: #7C0817;
}

body.is-oven-sale .m-payments-header__back a {
    color: #A50B1E;
}
