/* فروشگاه لوازم خانگی 2.4.2 — appliance palette, WebP assets and mobile layout corrections */
.nova-body.preset-classic,
.nova-body.preset-appliances {
    --nova-header: inherit !important;
    --nova-surface: inherit !important;
    --nova-bg: inherit !important;
    --nova-font: IRANSans, Vazirmatn, Tahoma, Arial, sans-serif !important;
    background: var(--nova-bg) !important;
    font-family: IRANSans, Vazirmatn, Tahoma, Arial, sans-serif;
    font-weight: 700;
}

.nova-body.preset-classic :where(h1,h2,h3,h4,h5,h6,p,a,b,button,input,select,textarea,small,span),
.nova-body.preset-appliances :where(h1,h2,h3,h4,h5,h6,p,a,b,button,input,select,textarea,small,span) {
    font-family: IRANSans, Vazirmatn, Tahoma, Arial, sans-serif;
    font-weight: 700;
}

.nova-body.preset-classic .store-footer,
.nova-body.preset-appliances .store-footer {
    background: #eef1f5;
    color: #171b26;
}

.nova-body.preset-classic .footer-main,
.nova-body.preset-appliances .footer-main {
    background: #eef1f5;
}

.nova-body.preset-classic .copyright,
.nova-body.preset-appliances .copyright {
    background: #e3e7ed;
    color: #303746;
}

.nova-body.preset-classic .simple-banner-slider,
.nova-body.preset-appliances .preset-banner-slider {
    width: 100vw !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    height: calc(100vw / 3.65 + 15px) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: none !important;
}

.nova-body.preset-classic .simple-banner-slider .simple-banner-slide,
.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.nova-body.preset-classic .simple-banner-slider .simple-banner-slide:first-child,
.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide:first-child {
    position: absolute !important;
}

.nova-body.preset-classic .simple-banner-slider .simple-banner-slide img,
.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center;
    background: #ffffff;
}

.nova-body.preset-classic .story-section,
.nova-body.preset-appliances .story-section,
.nova-body.preset-classic .story-track,
.nova-body.preset-appliances .story-track {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

.nova-body.preset-classic .story-section::before,
.nova-body.preset-classic .story-section::after,
.nova-body.preset-appliances .story-section::before,
.nova-body.preset-appliances .story-section::after,
.nova-body.preset-classic .story-track::before,
.nova-body.preset-classic .story-track::after,
.nova-body.preset-appliances .story-track::before,
.nova-body.preset-appliances .story-track::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.nova-body.preset-classic .story-item,
.nova-body.preset-appliances .story-item {
    background: transparent !important;
}

.nova-body.preset-classic .offer-panel,
.nova-body.preset-appliances .offer-panel {
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 18px 22px 18px 18px;
    border-radius: 10px;
}

.nova-body.preset-classic .offer-intro,
.nova-body.preset-appliances .offer-intro {
    padding-inline-end: 24px;
}

.nova-body.preset-classic .offer-products,
.nova-body.preset-appliances .offer-products {
    gap: 4px !important;
    padding-inline-end: 18px;
}

.nova-body.preset-classic .offer-products .product-card,
.nova-body.preset-appliances .offer-products .product-card {
    border-radius: 6px !important;
}

.nova-body.preset-classic .product-image,
.nova-body.preset-appliances .product-image,
.nova-body.preset-classic .main-product-image,
.nova-body.preset-appliances .main-product-image,
.nova-body.preset-classic .gallery-thumbs button,
.nova-body.preset-appliances .gallery-thumbs button {
    background: #ffffff !important;
}

.nova-body.preset-classic .product-image img,
.nova-body.preset-appliances .product-image img,
.nova-body.preset-classic .main-product-image img,
.nova-body.preset-appliances .main-product-image img,
.nova-body.preset-classic .gallery-thumbs img,
.nova-body.preset-appliances .gallery-thumbs img {
    background: #ffffff !important;
    object-fit: contain !important;
}

.home-promo-copy {
    position: absolute;
    inset-inline-start: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 4px;
    max-width: 48%;
    padding: 14px 17px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    color: #171b26;
    box-shadow: 0 8px 24px rgba(83,0,255,.14);
}

.home-promo-copy strong { font-size: 18px; color: var(--nova-primary); }
.home-promo-copy span { font-size: 12px; }
.home-promo-copy b { font-size: 11px; color: var(--nova-secondary); }

.home-amazing-copy {
    position: absolute;
    inset-inline-start: 7%;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 6px;
    color: #171b26;
}
.home-amazing-copy strong { font-size: 25px; color: var(--nova-primary); }
.home-amazing-copy span { font-size: 14px; }
.home-amazing-copy b { font-size: 12px; color: var(--nova-secondary); }

.banner-grid a,
.banner-grid > div,
.amazing-campaign,
.wide-banner,
.ref-wide,
.new-wide,
.appliances-banner-pair a,
.appliances-banner-pair > div {
    position: relative;
    overflow: hidden;
    display: block;
}

.nova-body.preset-classic .banner-grid,
.nova-body.preset-appliances .banner-grid {
    gap: 14px;
    align-items: stretch;
}

.nova-body.preset-classic .banner-grid img,
.nova-body.preset-appliances .banner-grid img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    background: #ffffff;
}

.nova-body.preset-classic .banner-grid > div,
.nova-body.preset-appliances .banner-grid > div,
.nova-body.preset-classic .appliances-banner-pair > div,
.nova-body.preset-appliances .appliances-banner-pair > div {
    width: 100%;
    aspect-ratio: 27 / 7;
    background: #ffffff;
    border-radius: 10px !important;
}

.nova-body.preset-classic .appliances-banner-pair,
.nova-body.preset-appliances .appliances-banner-pair {
    align-items: stretch;
}

.nova-body.preset-classic .appliances-banner-pair img,
.nova-body.preset-appliances .appliances-banner-pair img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.nova-body.preset-classic .wide-banner img,
.nova-body.preset-appliances .wide-banner img,
.nova-body.preset-classic .amazing-campaign img,
.nova-body.preset-appliances .amazing-campaign img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

.nova-body.preset-classic .wide-banner,
.nova-body.preset-appliances .wide-banner,
.nova-body.preset-classic .amazing-campaign,
.nova-body.preset-appliances .amazing-campaign,
.nova-body.preset-classic .appliances-wide,
.nova-body.preset-appliances .appliances-wide {
    width: min(calc(100% - 28px), var(--nova-width));
    margin-inline: auto;
    border-radius: 10px !important;
    overflow: hidden;
    background: #ffffff;
}

.offer-intro,
.appliances-amazing-intro,
.dk-amazing-intro {
    position: relative;
}

.mobile-menu-trigger,
.mobile-search-account,
.header-actions span,
.benefits span {
    color: #101010;
    font-weight: 900;
}

.nova-body.preset-classic .offer-panel,
.nova-body.preset-appliances .offer-panel,
.nova-body.preset-classic .offer-intro,
.nova-body.preset-appliances .offer-intro,
.nova-body.preset-classic .offer-products,
.nova-body.preset-appliances .offer-products {
    background: var(--nova-primary) !important;
}

.nova-body.preset-appliances .appliances-amazing,
.nova-body.preset-digikala .dk-amazing {
    background: linear-gradient(135deg, var(--nova-primary), var(--nova-secondary)) !important;
}

@media (max-width: 900px) {
    .nova-body.preset-classic .header-grid,
    .nova-body.preset-appliances .header-grid {
        position: relative;
    }

    .nova-body.preset-classic .mobile-search-account,
    .nova-body.preset-appliances .mobile-search-account {
        display: grid;
        place-items: center;
        position: absolute;
        left: 8px;
        right: auto;
        top: 13px;
        bottom: auto;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #ffffff;
        color: #101010;
        box-shadow: 0 4px 14px rgba(16, 24, 40, .15);
        font-size: 27px;
        z-index: 5;
    }

    .nova-body.preset-classic .search-box,
    .nova-body.preset-appliances .search-box {
        padding-inline-end: 15px;
    }

    .nova-body.preset-classic .mobile-bottom-nav a,
    .nova-body.preset-classic .mobile-bottom-nav button,
    .nova-body.preset-appliances .mobile-bottom-nav a,
    .nova-body.preset-appliances .mobile-bottom-nav button {
        color: #111111 !important;
        font-size: 14px;
        font-weight: 900;
    }

    .nova-body.preset-classic .mobile-bottom-nav span,
    .nova-body.preset-appliances .mobile-bottom-nav span {
        color: #000000;
        font-size: 25px;
        font-weight: 900;
    }

}

@media (max-width: 640px) {
    html {
        scroll-behavior: auto !important;
    }

    body {
        scroll-behavior: auto !important;
        overscroll-behavior-y: auto;
        overflow-x: hidden;
    }

    .nova-body.preset-classic .mobile-bottom-nav,
    .nova-body.preset-appliances .mobile-bottom-nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #ffffff;
        box-shadow: 0 -2px 8px rgba(16, 24, 40, .10);
    }

    .nova-body.preset-classic .product-card,
    .nova-body.preset-appliances .product-card,
    .nova-body.preset-classic .footer-main,
    .nova-body.preset-appliances .footer-main {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nova-body.preset-classic .offer-products,
    .nova-body.preset-appliances .offer-products {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: none;
    }

    .nova-body.preset-classic .offer-panel,
    .nova-body.preset-appliances .offer-panel {
        display: grid !important;
        grid-template-columns: 1fr !important;
        padding: 0 0 8px !important;
        border-radius: 8px !important;
    }

    .nova-body.preset-classic .offer-intro,
    .nova-body.preset-appliances .offer-intro {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 0 !important;
        height: 40px !important;
        padding: 4px 10px !important;
        gap: 6px !important;
    }

    .nova-body.preset-classic .offer-intro .offer-spark,
    .nova-body.preset-classic .offer-intro > p,
    .nova-body.preset-appliances .offer-intro .offer-spark,
    .nova-body.preset-appliances .offer-intro > p { display: none !important; }

    .nova-body.preset-classic .offer-intro h2,
    .nova-body.preset-appliances .offer-intro h2 {
        order: 1;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: nowrap;
    }
    .nova-body.preset-classic .offer-intro .countdown,
    .nova-body.preset-appliances .offer-intro .countdown {
        order: 2;
        gap: 2px !important;
        margin: 0 !important;
    }
    .nova-body.preset-classic .offer-intro > a,
    .nova-body.preset-appliances .offer-intro > a {
        order: 3;
        margin: 0 !important;
        font-size: 9px !important;
        white-space: nowrap;
    }
    .nova-body.preset-classic .offer-intro .countdown b,
    .nova-body.preset-appliances .offer-intro .countdown b {
        min-width: 24px;
        min-height: 22px;
        padding: 4px 3px;
        border-radius: 5px;
        font-size: 9px;
    }
    .nova-body.preset-classic .offer-products,
    .nova-body.preset-appliances .offer-products {
        padding-left: 10px !important;
        padding-right: 15px !important;
        gap: 4px !important;
    }

    .nova-body.preset-classic .simple-banner-slider,
    .nova-body.preset-appliances .preset-banner-slider {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: calc(100% - 22px) !important;
        max-width: calc(100% - 22px) !important;
        box-sizing: border-box !important;
        aspect-ratio: 2.35 / 1 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
    }

    .nova-body.preset-classic .banner-grid,
    .nova-body.preset-appliances .banner-grid,
    .nova-body.preset-classic .preset-home .banner-grid,
    .nova-body.preset-appliances .preset-home .banner-grid {
        grid-template-columns: 1fr !important;
    }

    .nova-body.preset-classic .banner-grid img,
    .nova-body.preset-appliances .banner-grid img,
    .nova-body.preset-classic .preset-home .banner-grid img,
    .nova-body.preset-appliances .preset-home .banner-grid img {
        aspect-ratio: 27 / 7 !important;
        object-fit: cover !important;
    }

    .nova-body.preset-classic .banner-grid > div,
    .nova-body.preset-appliances .banner-grid > div,
    .nova-body.preset-classic .appliances-banner-pair > div,
    .nova-body.preset-appliances .appliances-banner-pair > div {
        aspect-ratio: 27 / 7 !important;
    }

    .nova-body.preset-classic .banner-grid,
    .nova-body.preset-appliances .banner-grid,
    .nova-body.preset-classic .appliances-banner-pair,
    .nova-body.preset-appliances .appliances-banner-pair {
        width: calc(100% - 22px) !important;
        max-width: calc(100% - 22px) !important;
        box-sizing: border-box !important;
        margin-inline: auto !important;
    }

    .nova-body.preset-classic .wide-banner,
    .nova-body.preset-appliances .wide-banner,
    .nova-body.preset-classic .amazing-campaign,
    .nova-body.preset-appliances .amazing-campaign,
    .nova-body.preset-classic .appliances-wide,
    .nova-body.preset-appliances .appliances-wide {
        width: calc(100% - 22px) !important;
        max-width: none !important;
        box-sizing: border-box !important;
        margin-inline: auto !important;
        border-radius: 10px !important;
    }

    .nova-body.preset-classic .wide-banner img,
    .nova-body.preset-appliances .wide-banner img,
    .nova-body.preset-classic .amazing-campaign img,
    .nova-body.preset-appliances .amazing-campaign img,
    .nova-body.preset-classic .appliances-wide img,
    .nova-body.preset-appliances .appliances-wide img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .home-promo-copy { inset-inline-start: 8px; max-width: 62%; padding: 8px 10px; border-radius: 9px; }
    .home-promo-copy strong { font-size: 13px; }
    .home-promo-copy span { font-size: 9px; }
    .home-promo-copy b { font-size: 9px; }
    .home-amazing-copy { inset-inline-start: 7%; }
    .home-amazing-copy strong { font-size: 17px; }
    .home-amazing-copy span { font-size: 10px; }
    .home-amazing-copy b { font-size: 9px; }
}

/* 2.4.1 final mobile corrections: these rules intentionally come last so the
   legacy preset CSS cannot push the hero outside its containing viewport. */
@media (max-width: 900px) {
    html body.nova-body.preset-classic .simple-banner-slider,
    html body.nova-body.preset-appliances .preset-banner-slider {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        width: calc(100% - 22px) !important;
        max-width: calc(100% - 22px) !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 2.35 / 1 !important;
        margin: 0 auto 18px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        transform: none !important;
    }

    html body.nova-body.preset-classic .simple-banner-slider .simple-banner-slide,
    html body.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        aspect-ratio: auto !important;
    }

    html body.nova-body.preset-classic .simple-banner-slider .simple-banner-slide img,
    html body.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    html body.nova-body.preset-classic .offer-panel {
        width: calc(100% - 28px) !important;
        max-width: calc(100% - 28px) !important;
        margin-inline: auto !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 0 8px !important;
        background: transparent !important;
        overflow: hidden !important;
    }

    html body.nova-body.preset-classic .offer-intro {
        width: fit-content !important;
        max-width: calc(100% - 16px) !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 5px 9px !important;
        gap: 6px !important;
        border-radius: 10px 10px 0 0 !important;
        background: var(--nova-primary) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body.nova-body.preset-classic .offer-intro h2 {
        font-size: clamp(17px, 5vw, 21px) !important;
        line-height: 1.15 !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
    }

    html body.nova-body.preset-classic .offer-intro .countdown b {
        font-size: 11px !important;
        font-weight: 900 !important;
    }

    html body.nova-body.preset-classic .offer-products {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-top: 8px !important;
        background: var(--nova-primary) !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
}

/* Requested appliance-only visual updates: preserve complete supplied banners. */
.nova-body.preset-classic .simple-banner-slider,
.nova-body.preset-appliances .preset-banner-slider {
    aspect-ratio: 3 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.nova-body.preset-classic .simple-banner-slider .simple-banner-slide img,
.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide img {
    object-fit: contain !important;
    object-position: center !important;
    background: #ffffff !important;
}

.nova-body.preset-appliances .appliances-amazing-image-link,
.nova-body.preset-classic .offer-appliance-image-intro .appliances-amazing-image-link {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

.nova-body.preset-appliances .appliances-amazing-image,
.nova-body.preset-classic .offer-appliance-image-intro .appliances-amazing-image {
    display: block;
    width: 165px;
    max-width: 100%;
    height: auto;
    max-height: 296px;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 901px) {
    .nova-body.preset-appliances .appliances-amazing {
        grid-template-columns: 126px minmax(0, 1fr);
    }

    .nova-body.preset-appliances .appliances-amazing-intro {
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .nova-body.preset-classic .offer-panel {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .nova-body.preset-appliances .appliances-banner-pair > div {
        aspect-ratio: 3 / 1;
    }

    .nova-body.preset-appliances .appliances-banner-pair img {
        object-fit: contain;
        object-position: center;
        background: #ffffff;
    }
}

.nova-body.preset-classic .wide-banner img,
.nova-body.preset-classic .amazing-campaign img,
.nova-body.preset-appliances .appliances-wide img {
    width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center;
}

.nova-body.preset-appliances .appliances-banner-pair > div {
    aspect-ratio: 3 / 1 !important;
}

.nova-body.preset-appliances .appliances-banner-pair img {
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    background: #ffffff;
}

.nova-body.preset-classic .store-logo img,
.nova-body.preset-appliances .store-logo img {
    max-width: 170px;
    height: 54px;
    object-fit: contain;
}

.nova-body.preset-classic .store-footer,
.nova-body.preset-appliances .store-footer {
    color: #edf6ff;
    background: linear-gradient(145deg, #071a38 0%, #0b2a58 56%, #071a36 100%);
    border-top: 1px solid #1b5f9c;
}

.nova-body.preset-classic .store-footer .benefits,
.nova-body.preset-appliances .store-footer .benefits {
    border-bottom-color: rgba(126, 202, 255, .22);
}

.nova-body.preset-classic .store-footer .benefits span,
.nova-body.preset-appliances .store-footer .benefits span {
    color: #63ddff;
    background: rgba(38, 185, 239, .14);
}

.nova-body.preset-classic .store-footer .footer-main,
.nova-body.preset-appliances .store-footer .footer-main {
    background: linear-gradient(180deg, rgba(7, 26, 56, .46), rgba(4, 18, 39, .72));
}

.nova-body.preset-classic .store-footer .footer-about .store-logo,
.nova-body.preset-appliances .store-footer .footer-about .store-logo {
    padding: 5px 10px;
    border-radius: 12px;
    background: #ffffff;
}

.nova-body.preset-classic .store-footer .footer-grid h3,
.nova-body.preset-appliances .store-footer .footer-grid h3 {
    color: #ffffff;
}

.nova-body.preset-classic .store-footer .footer-grid a,
.nova-body.preset-classic .store-footer .footer-grid p,
.nova-body.preset-appliances .store-footer .footer-grid a,
.nova-body.preset-appliances .store-footer .footer-grid p {
    color: #c8dced;
}

.nova-body.preset-classic .store-footer .footer-grid a:hover,
.nova-body.preset-appliances .store-footer .footer-grid a:hover {
    color: #63ddff;
}

.nova-body.preset-classic .store-footer .socials a,
.nova-body.preset-appliances .store-footer .socials a,
.nova-body.preset-classic .store-footer .trust-box,
.nova-body.preset-appliances .store-footer .trust-box {
    border-color: rgba(126, 202, 255, .28);
}

.nova-body.preset-classic .store-footer .trust-box,
.nova-body.preset-appliances .store-footer .trust-box {
    background: rgba(16, 56, 102, .62);
    color: #e3f1ff;
}

.nova-body.preset-classic .store-footer .copyright,
.nova-body.preset-appliances .store-footer .copyright {
    background: #05152d;
    border-top-color: rgba(126, 202, 255, .2);
    color: #a9c7e3;
}

@media (max-width: 900px) {
    .nova-body.preset-classic .simple-banner-slider,
    .nova-body.preset-appliances .preset-banner-slider {
        width: calc(100% - 22px) !important;
        max-width: calc(100% - 22px) !important;
        aspect-ratio: 3 / 1 !important;
        height: auto !important;
    }

    .nova-body.preset-classic .simple-banner-slider .simple-banner-slide img,
    .nova-body.preset-appliances .preset-banner-slider .simple-banner-slide img {
        object-fit: contain !important;
    }
}

@media (max-width: 640px) {
    .nova-body.preset-classic .store-footer .footer-grid > div,
    .nova-body.preset-appliances .store-footer .footer-grid > div {
        background: rgba(12, 49, 91, .72);
        border: 1px solid rgba(126, 202, 255, .14);
    }

    .nova-body.preset-classic .store-footer .footer-about .store-logo,
    .nova-body.preset-appliances .store-footer .footer-about .store-logo {
        padding: 4px 8px;
    }
}

/* 2.4.1: final fit and responsive Amazing Offers layout. */
.nova-body.preset-appliances .preset-banner-slider,
.nova-body.preset-classic .simple-banner-slider {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-inline: 0 !important;
}

.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide,
.nova-body.preset-classic .simple-banner-slider .simple-banner-slide {
    overflow: hidden !important;
}

.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide img,
.nova-body.preset-classic .simple-banner-slider .simple-banner-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.nova-body.preset-appliances .appliances-amazing {
    grid-template-columns: 126px minmax(0, 1fr) !important;
    min-height: 450px;
    align-items: stretch;
}

.nova-body.preset-appliances .appliances-amazing-intro {
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
}

.nova-body.preset-appliances .appliances-amazing-image-link {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.nova-body.preset-appliances .appliances-amazing-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.nova-body.preset-appliances .appliances-amazing-products {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px !important;
    padding-inline-end: 0;
}

@media (max-width: 900px) {
    .nova-body.preset-appliances .preset-banner-slider {
        width: calc(100% - 22px) !important;
        max-width: calc(100% - 22px) !important;
        aspect-ratio: 3 / 1 !important;
        margin-inline: auto !important;
    }

    .nova-body.preset-appliances .appliances-amazing {
        display: grid !important;
        grid-template-columns: 126px minmax(0, 1fr) !important;
        gap: 8px !important;
        min-height: 0;
        padding: 12px 10px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .nova-body.preset-appliances .appliances-amazing-intro {
        display: grid !important;
        align-self: stretch;
        min-height: 0;
        height: auto !important;
    }

    .nova-body.preset-appliances .appliances-amazing-image-link {
        width: 100% !important;
        height: 100% !important;
        display: grid !important;
        place-items: center !important;
    }

    .nova-body.preset-appliances .appliances-amazing-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
    }

    .nova-body.preset-appliances .appliances-amazing-products {
        display: flex !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 4px !important;
        padding: 0 !important;
    }

.nova-body.preset-appliances .appliances-amazing-products > .product-card {
        flex: 0 0 calc((100% - 4px) / 2) !important;
        width: calc((100% - 4px) / 2) !important;
        min-width: 0 !important;
        max-width: none !important;
        border-radius: 6px !important;
    }
}

.nova-body.preset-classic .offer-appliance-panel,
.nova-body.preset-appliances .offer-appliance-panel {
    grid-template-columns: 132px minmax(0, 1fr) !important;
    min-height: 450px;
    align-items: stretch;
    background: var(--nova-primary) !important;
}

.nova-body.preset-classic .offer-appliance-panel .offer-intro,
.nova-body.preset-appliances .offer-appliance-panel .offer-intro {
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
}

.nova-body.preset-classic .offer-appliance-panel .offer-products,
.nova-body.preset-appliances .offer-appliance-panel .offer-products {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px !important;
    padding-inline-end: 0;
}

@media (max-width: 900px) {
    .nova-body.preset-classic .offer-appliance-panel,
    .nova-body.preset-appliances .offer-appliance-panel {
        display: grid !important;
        grid-template-columns: 116px minmax(0, 1fr) !important;
        gap: 7px !important;
        min-height: 0;
        padding: 10px 8px !important;
        border-radius: 9px !important;
        background: var(--nova-primary) !important;
        overflow: hidden !important;
    }

    .nova-body.preset-classic .offer-appliance-panel .offer-intro,
    .nova-body.preset-appliances .offer-appliance-panel .offer-intro {
        display: grid !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .nova-body.preset-classic .offer-appliance-panel .offer-products,
    .nova-body.preset-appliances .offer-appliance-panel .offer-products {
        display: flex !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 4px !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .nova-body.preset-classic .offer-appliance-panel .offer-products > .product-card,
    .nova-body.preset-appliances .offer-appliance-panel .offer-products > .product-card {
        flex: 0 0 calc((100% - 4px) / 2) !important;
        width: calc((100% - 4px) / 2) !important;
        min-width: 0 !important;
        max-width: none !important;
        border-radius: 6px !important;
    }
}

.nova-body.preset-appliances .appliances-banner-pair picture,
.nova-body.preset-appliances .appliances-wide picture,
.nova-body.preset-classic .wide-banner picture,
.nova-body.preset-classic .amazing-campaign picture {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .nova-body.preset-appliances .appliances-amazing {
        grid-template-columns: 116px minmax(0, 1fr) !important;
        gap: 7px !important;
        padding: 10px 8px !important;
        border-radius: 9px !important;
    }

    .nova-body.preset-appliances .appliances-amazing-products > .product-card {
        flex-basis: calc((100% - 4px) / 2) !important;
        width: calc((100% - 4px) / 2) !important;
    }
}

/* 2.4.2 repair: contain the hero and keep Amazing Offers horizontal on mobile. */
@media (min-width: 901px) {
    html body.nova-body.preset-classic .simple-banner-slider,
    html body.nova-body.preset-appliances .preset-banner-slider {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        aspect-ratio: 3 / 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body.nova-body.preset-classic .simple-banner-slider .simple-banner-slide > picture,
    html body.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide > picture,
    html body.nova-body.preset-classic .simple-banner-slider .simple-banner-slide img,
    html body.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    html body.nova-body.preset-classic .simple-banner-slider + .story-section,
    html body.nova-body.preset-appliances .preset-banner-slider + .story-section,
    html body.nova-body.preset-appliances .preset-banner-slider + .appliances-categories {
        margin-top: 0 !important;
    }

    html body.nova-body.preset-appliances .appliances-amazing {
        grid-template-columns: 126px minmax(0, 1fr) !important;
        min-height: 450px !important;
    }

    html body.nova-body.preset-appliances .appliances-amazing-image,
    html body.nova-body.preset-classic .offer-appliance-panel .appliances-amazing-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

@media (max-width: 900px) {
    html body.nova-body.preset-classic .simple-banner-slider,
    html body.nova-body.preset-appliances .preset-banner-slider {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        aspect-ratio: 3 / 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    html body.nova-body.preset-classic .simple-banner-slider .simple-banner-slide > picture,
    html body.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide > picture,
    html body.nova-body.preset-classic .simple-banner-slider .simple-banner-slide img,
    html body.nova-body.preset-appliances .preset-banner-slider .simple-banner-slide img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    html body.nova-body.preset-classic .simple-banner-slider + .story-section,
    html body.nova-body.preset-appliances .preset-banner-slider + .story-section {
        margin-top: 0 !important;
    }

    html body.nova-body.preset-appliances .preset-banner-slider + .appliances-categories {
        margin-top: 0 !important;
    }

    html body.nova-body.preset-appliances .appliances-amazing,
    html body.nova-body.preset-classic .offer-appliance-panel {
        display: grid !important;
        grid-template-columns: 26% minmax(0, 1fr) !important;
        gap: 6px !important;
        min-height: 0 !important;
        padding: 10px 8px !important;
        border-radius: 9px !important;
        overflow: hidden !important;
        background: linear-gradient(135deg, var(--nova-primary), var(--nova-secondary)) !important;
    }

    html body.nova-body.preset-appliances .appliances-amazing-intro,
    html body.nova-body.preset-classic .offer-appliance-panel .offer-intro {
        display: grid !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        align-self: stretch !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
    }

    html body.nova-body.preset-appliances .appliances-amazing-image-link,
    html body.nova-body.preset-classic .offer-appliance-panel .appliances-amazing-image-link {
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        display: grid !important;
        place-items: center !important;
    }

    html body.nova-body.preset-appliances .appliances-amazing-image,
    html body.nova-body.preset-classic .offer-appliance-panel .appliances-amazing-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    html body.nova-body.preset-appliances .appliances-amazing-products,
    html body.nova-body.preset-classic .offer-appliance-panel .offer-products {
        display: flex !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 4px !important;
        padding: 0 !important;
        background: transparent !important;
    }

    html body.nova-body.preset-appliances .appliances-amazing-products > .product-card,
    html body.nova-body.preset-classic .offer-appliance-panel .offer-products > .product-card {
        flex: 0 0 calc((100% - 4px) / 2) !important;
        width: calc((100% - 4px) / 2) !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    html body.nova-body.preset-classic .offer-appliance-panel {
        background: var(--nova-primary) !important;
    }
}

/* Desktop Amazing Offers: size the cards to their content. */
@media (min-width: 901px) {
    html body.nova-body.preset-classic .offer-appliance-panel,
    html body.nova-body.preset-appliances .offer-appliance-panel,
    html body.nova-body.preset-appliances .appliances-amazing {
        min-height: 0 !important;
    }

    html body.nova-body.preset-classic .offer-appliance-panel .product-body,
    html body.nova-body.preset-appliances .offer-appliance-panel .product-body,
    html body.nova-body.preset-appliances .appliances-amazing-products .product-body {
        min-height: 0;
    }
}
