.dwp-string--header,
.dh-home .dwp-lights ~ .dh-showcase + .dh-showcase::after,
#footer-contacts::before {
    display: block;
    height: 37px;
    margin-inline: auto;
    background: url("../assets/diamant-home/winter/simple-garland.svg?v=3") center top / 382px 37px repeat-x;
    pointer-events: none;
}

.dwp-string--header {
    width: 100%;
    margin-top: 5px;
}

.dh-home .dwp-lights ~ .dh-showcase + .dh-showcase { position: relative; }
.dh-home .dwp-lights ~ .dh-showcase + .dh-showcase::after {
    content: "";
    position: absolute;
    inset: 1px 0 auto;
    width: 100%;
}

#footer-contacts::before {
    content: "";
    width: 100%;
    margin-bottom: 12px;
}

.dh-home .dwp-lights ~ .dh-quick::after {
    content: "";
    display: block;
    width: 100%;
    height: 68px;
    margin: 12px auto -31px;
    background: url("../assets/diamant-home/winter/spruce-divider.webp") center / cover no-repeat;
    pointer-events: none;
}

.dh-home .dhh-hero .dhh-slide--winter .dhh-text {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.dh-home .dhh-hero .dhh-slide--winter .dhh-copy { max-width: 45%; }
.dh-home .dhh-hero .dhh-slide--winter .dhh-art { object-position: center 48%; }

.dh-home .dwp-lights {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 48px;
    margin-top: 6px;
    background: url("../assets/diamant-home/winter/garland.svg?v=5") center top / 360px 48px repeat-x;
    pointer-events: none;
}

.dh-home .dwp-lights + .dhh-hero { margin-top: 0; }

.mobile-header-active .dh-home .dwp-lights {
    height: 22px;
    background: none;
}

.mobile-header-active .dwp-string--header { display: none; }

.mobile-header-active .diamant-mobile-header::after {
    content: "";
    position: absolute;
    inset: auto 0 -11px;
    height: 25px;
    background: url("../assets/diamant-home/winter/garland.svg?v=5") center top / 188px 25px repeat-x;
    pointer-events: none;
}

.diamant-header-logo > img,
.diamant-mobile-logo > img,
.diamant-footer-logo > img {
    content: url("../assets/diamant-home/winter/diamant-emblem-winter.png");
    transform: translateY(-2px) scale(1.12);
}

.diamant-support-widget:not(.is-open) .diamant-support-widget-toggle::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -19px;
    left: 8px;
    width: 42px;
    height: 32px;
    background: url("../assets/diamant-home/winter/elf-hat.svg") center / contain no-repeat;
    pointer-events: none;
}

.diamant-support-widget-menu::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -26px -8px -20px -12px;
    background: url("../assets/diamant-home/winter/elf-hat-stretched.svg") center / 100% 100% no-repeat;
    transform: scaleY(.07);
    transform-origin: center bottom;
    pointer-events: none;
}

.diamant-support-widget.is-open .diamant-support-widget-menu::before { transform: scaleY(1); }

.diamant-opencart-catalog .product-card .add.dwp-cart-hatted { overflow: visible !important; }

.dwp-cart-hat {
    position: absolute;
    z-index: 1;
    inset-block-start: -31%;
    inset-inline-start: 10%;
    width: 80%;
    height: 51%;
    background: url("../assets/diamant-home/winter/elf-hat.svg") center / contain no-repeat;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .diamant-support-widget-menu::before { transition: transform .3s cubic-bezier(.22, .75, .32, 1); }
}

@media (prefers-reduced-motion: reduce) {
    .dh-home .dwp-lights,
    .mobile-header-active .diamant-mobile-header::after {
        background-image: url("../assets/diamant-home/winter/garland.svg?v=5#still");
    }
}

.dh-home .dwp-lights::before,
.dh-home .dwp-lights ~ .dh-quick .dh-quick-card::before,
.dh-home .dwp-lights ~ .dh-showcase .dh-showcase-grid::before,
.catalog-search-form--standalone::before,
.route-product-product .diamant-product-detail-info::before,
.dwp-bank-panel::before,
.diamant-mobile-filter-button::before,
.diamant-mobile-bottom-nav::before {
    content: "";
    position: absolute;
    z-index: 1;
    background: url("../assets/diamant-home/winter/snow-bank-panel.webp") left top / 100% 100% no-repeat;
    pointer-events: none;
}

.dh-home .dwp-lights::before {
    background-image: url("../assets/diamant-home/winter/snow-bank-hero.webp");
    inset-inline: 0;
    bottom: -4px;
    width: calc(var(--dh-shell) * .98);
    height: calc(15px + min(6px, var(--dwp-snowpack, 0px)));
    margin-inline: auto;
}

.dh-home .dwp-lights ~ .dh-quick .dh-quick-card { position: relative; }

.dh-home .dwp-lights ~ .dh-quick .dh-quick-card::before {
    top: calc(-9px - min(4px, var(--dwp-snowpack, 0px)));
    inset-inline-start: 5%;
    width: min(72%, 190px);
    height: calc(15px + min(4px, var(--dwp-snowpack, 0px)));
}

.dh-home .dwp-lights ~ .dh-quick .dh-quick-card:nth-child(even)::before {
    inset-inline: auto 5%;
    transform: scaleX(-1);
}

.main-products-wrapper .diamant-product-layout { position: relative; }

.main-products-wrapper .diamant-product-layout::before,
.route-product-product .diamant-product-gallery-main::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    z-index: 4;
    aspect-ratio: 820 / 441;
    background: url("../assets/diamant-home/winter/spruce-frame-corner.webp") center / contain no-repeat;
    --dwp-spruce-tips: linear-gradient(to left, #000 71%, transparent),
        linear-gradient(#000 69%, transparent);
    -webkit-mask-image: var(--dwp-spruce-tips);
    -webkit-mask-composite: source-in;
    mask-image: var(--dwp-spruce-tips);
    mask-composite: intersect;
    transform: scaleX(-1);
    pointer-events: none;
}

.main-products-wrapper .diamant-product-layout::before {
    top: 1px;
    inset-inline-start: 1px;
    width: min(43%, 91px);
}

.route-product-product .diamant-product-gallery-main::after {
    top: 1px;
    width: min(34%, 186px);
}

.diamant-opencart-catalog .catalog-layout > #column-left {
    background-image: url("../assets/diamant-home/winter/snow-bank-panel.webp");
    background-position: right 20px top -3px;
    background-size: min(63%, 178px) calc(13px + min(3px, var(--dwp-snowpack, 0px)));
    background-repeat: no-repeat;
}

.dwp-bank-static { position: relative; }

.dwp-bank-panel::before {
    inset-inline-end: 14px;
    bottom: calc(100% - 5px);
    width: min(63%, 205px);
    height: calc(14px + min(4px, var(--dwp-snowpack, 0px)));
}

.diamant-opencart-catalog .catalog-toolbar.dwp-bank-panel::before { content: "" !important; }

.quick-checkout-wrapper.dwp-bank-panel::before {
    inset-inline-end: 0;
    bottom: calc(100% - 8px);
}
.catalog-search-form--standalone { position: relative; }
.catalog-search-form--standalone::before {
    top: calc(-9px - min(4px, var(--dwp-snowpack, 0px)));
    inset-inline-start: 11px;
    width: min(64%, 370px);
    height: calc(15px + min(4px, var(--dwp-snowpack, 0px)));
}

.route-product-product .diamant-product-detail-info::before {
    top: calc(-10px - min(5px, var(--dwp-snowpack, 0px)));
    inset-inline-end: 15px;
    width: min(73%, 435px);
    height: calc(18px + min(5px, var(--dwp-snowpack, 0px)));
}

.diamant-mobile-filter-button::before {
    inset-inline: 7px;
    bottom: calc(100% - 4px);
    height: calc(12px + min(3px, var(--dwp-snowpack, 0px)));
}

.diamant-mobile-bottom-nav { border-top-color: transparent !important; }

.diamant-mobile-bottom-nav::before {
    background-image: url("../assets/diamant-home/winter/snow-bank-nav.webp");
    inset-inline: 0;
    bottom: calc(100% - 8px);
    height: calc(18px + min(6px, var(--dwp-snowpack, 0px)));
}

.dwp-scroll-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 16;
    overflow: hidden;
    pointer-events: none;
}

/* The full-screen product gallery uses z-index 9999. */
body.diamant-photo-viewer-open > .dwp-scroll-snow {
    z-index: 10000;
}

.dwp-snowflake {
    position: absolute;
    top: 0;
    background: url("../assets/diamant-home/winter/snowflake.svg") center / contain no-repeat;
    opacity: .87;
    will-change: transform;
    animation: dwp-snow-fall var(--dwp-duration) linear both;
}

@keyframes dwp-snow-fall {
    from { transform: translate3d(0, var(--dwp-fall-start), 0) rotate(var(--dwp-angle)); }
    to { transform: translate3d(var(--dwp-drift), var(--dwp-fall-end), 0) rotate(calc(var(--dwp-angle) + 110deg)); }
}

@media (prefers-reduced-motion: reduce) {
    .dwp-scroll-snow { display: none; }
}

.dh-home .dwp-lights ~ .dh-showcase .dh-showcase-grid {
    position: relative;
    --dwp-promo-track: 1;
    --dwp-showcase-snow-width: min(88%, 760px);
    --dwp-rim-color: rgb(255 0 30 / .72);
}

.dh-home .dwp-lights ~ .dh-showcase .dh-promo {
    border-color: transparent !important;
}

@media (min-width: 1181px) {
    .dh-home .dwp-lights ~ .dh-showcase.is-reversed .dh-showcase-grid { --dwp-promo-track: 2; }
}

/* The picture panel clips its art. Anchor snow to the same grid cell, outside the panel. */
.dh-home .dwp-lights ~ .dh-showcase .dh-showcase-grid::before {
    background-image: url("../assets/diamant-home/winter/snow-bank-showcase.webp");
    grid-column: var(--dwp-promo-track) / span 1;
    grid-row: 1 / span 1;
    top: calc(-21px - var(--dwp-snowpack, 0px));
    right: 0;
    width: var(--dwp-showcase-snow-width);
    height: calc(28px + var(--dwp-snowpack, 0px));
    z-index: 5;
}

/* Paint the rim in the same grid cell as the snow without clipping either. */
.dh-home .dwp-lights ~ .dh-showcase .dh-showcase-grid::after {
    content: "";
    position: absolute;
    grid-column: var(--dwp-promo-track) / span 1;
    grid-row: 1 / span 1;
    inset: 0;
    z-index: 1;
    border: 3px solid var(--dwp-rim-color);
    border-radius: 16px;
    --dwp-rim-snow-start: calc(100% - var(--dwp-showcase-snow-width));
    --dwp-frame-mask: linear-gradient(90deg, #000 calc(var(--dwp-rim-snow-start) - 3%),
            transparent calc(var(--dwp-rim-snow-start) + 10%)),
        linear-gradient(transparent 5px, #000 25px);
    -webkit-mask-image: var(--dwp-frame-mask);
    -webkit-mask-composite: source-over;
    mask-image: var(--dwp-frame-mask);
    mask-composite: add;
    pointer-events: none;
}

.dwp-showcase-corner {
    position: absolute;
    grid-column: var(--dwp-promo-track) / span 1;
    grid-row: 1 / span 1;
    top: -7px;
    right: -3px;
    z-index: 4;
    width: min(42%, 286px);
    aspect-ratio: 820 / 441;
    background: url("../assets/diamant-home/winter/spruce-frame-corner.webp") center / contain no-repeat;
    pointer-events: none;
}

@media (min-width: 1181px) {
    .dh-showcase.is-reversed .dwp-showcase-corner { width: min(36%, 248px); }
}

@media (max-width: 760px) {
    html.route-product-product .product-right.diamant-product-detail-info { position: relative !important; }
    .route-product-product .diamant-product-gallery-main::after { width: min(33%, 124px); }
    .dwp-bank-panel::before { width: min(57%, 155px); }

    .dwp-string--header,
    .dh-home .dwp-lights ~ .dh-showcase + .dh-showcase::after,
    #footer-contacts::before {
        height: 30px;
        background-size: 312px 30px;
    }

    .dh-home .dwp-lights ~ .dh-showcase + .dh-showcase {
        padding-top: 38px !important;
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-showcase-grid {
        --dwp-showcase-snow-width: 83%;
        --dwp-rim-color: #c92845;
        isolation: isolate;
        overflow: visible !important;
        border-color: transparent !important;
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-showcase-grid::before {
        grid-column: auto;
        grid-row: auto;
        top: calc(-18px - var(--dwp-snowpack, 0px));
        right: -3px;
        height: calc(22px + var(--dwp-snowpack, 0px));
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-showcase-grid::after {
        grid-column: auto;
        grid-row: auto;
        inset: -3px;
        z-index: 0;
        border-radius: inherit;
    }

    .dwp-showcase-corner {
        grid-column: auto;
        grid-row: auto;
        top: -8px;
        right: -1px;
        width: min(34%, 144px);
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-promo-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding-inline-end: 12px;
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-promo h2 {
        font-size: 32px !important;
        line-height: 1.05 !important;
        overflow-wrap: anywhere;
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-promo .dh-btn-small {
        position: static !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 44px;
        margin: 0 !important;
        padding: 0 2px !important;
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
        color: #b50727 !important;
        font-size: 14px !important;
        font-weight: 700;
        text-transform: none !important;
        white-space: nowrap;
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-btn-small::after {
        content: "";
        width: 6px;
        height: 6px;
        flex: none;
        border: solid currentColor;
        border-width: 1.5px 1.5px 0 0;
        transform: rotate(45deg);
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-products-grid {
        --dwp-product-width: calc((100% - 10px) / 2);
        width: auto !important;
        margin-inline: 18px !important;
        padding-inline: 0 !important;
        gap: 10px !important;
        scroll-padding-inline: 0 !important;
    }
    .dh-home .dwp-lights ~ .dh-showcase .dh-products-grid > .dh-card {
        flex: 0 0 var(--dwp-product-width) !important;
        width: var(--dwp-product-width) !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: start !important;
    }

    .dh-home .dwp-lights ~ .dh-showcase .dh-products-grid > .dh-view-all-card { display: none !important; }

    .dh-home .dhh-hero .dhh-slide--winter { background-color: #eddbca; }
    .dh-home .dhh-hero .dhh-slide--winter .dhh-copy { max-width: 100%; }
    .dh-home .dhh-hero .dhh-slide--winter .dhh-art { object-position: center 65%; }
    .dh-home .dwp-lights ~ .dh-quick::after {
        height: 39px;
        margin-block: 8px -16px;
    }

    .dh-home .dwp-lights {
        height: 40px;
        margin-top: 3px;
        background-size: 300px 40px;
    }

}

@media (min-width: 550px) and (max-width: 760px) {
    .dh-home .dwp-lights ~ .dh-showcase .dh-promo h2 { font-size: 38px !important; }
    .dh-home .dwp-lights ~ .dh-showcase .dh-products-grid { --dwp-product-width: calc((100% - 20px) / 3); }
}

@media (min-width: 371px) and (max-width: 410px) {
    .dh-home .dwp-lights ~ .dh-showcase .dh-promo h2 { font-size: 30px !important; }
}

@media (max-width: 370px) {
    .dh-home .dwp-lights ~ .dh-showcase .dh-promo-copy { padding-inline-end: 8px; }
    .dh-home .dwp-lights ~ .dh-showcase .dh-promo h2 { font-size: 26px !important; }
    .dh-home .dwp-lights ~ .dh-showcase .dh-promo .dh-btn-small { font-size: 12px !important; }
}
