/* The removed prefooter contains only the four benefit boxes. */
.wd-prefooter { display: none !important; }
.ecenter-footer-logo { display: inline-block; }
.ec-footer-novo :is(.wd-9385000a,.wd-9385000b,.wd-9385000c) { display: none !important; }
.ecenter-new-arrivals { margin: 44px 0 54px; text-align: center; width: 100%; }
.ecenter-showcase-title { text-align: center; font-size: 26px; font-weight: 600; margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid #e6e6e6; }
.ecenter-featured-offers,.ecenter-new-arrivals-grid { width: 100%; min-width: 0; }
.ecenter-featured-offers .wd-products,.ecenter-new-arrivals-grid .wd-products { width: 100%; }
.ecenter-showcase-all { margin-top: 24px; }
.ecenter-featured-offers .wd-nav-arrows,.ecenter-new-arrivals .wd-nav-arrows { opacity: 1; visibility: visible; }
.wd-swatches-brands .ecenter-brand-swatch { display: block; width: 108px; height: 52px; object-fit: contain; object-position: center; }
.wd-swatches-brands .ecenter-brand-item > a { display: flex; align-items: center; justify-content: center; min-height: 66px; }
.wd-swatches-brands .ecenter-brand-item .wd-filter-lable { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wd-swatches-brands .ecenter-brand-item .count { display: none; }
.wd-swatches-brands .ecenter-brand-item .wd-swatch { display: none; }
.ecenter-instagram-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media(max-width:767px) { .ecenter-new-arrivals { margin-block: 32px; } .ecenter-showcase-title { font-size: 21px; } }

/* Separate arrows must not intercept the cards beneath their full-size layer. */
:is(.ecenter-offers-grid,.ecenter-new-arrivals-grid) > .wd-nav-arrows,
:is(.ecenter-offers-grid,.ecenter-new-arrivals-grid) > .wd-nav-arrows::after {
    pointer-events: none;
}
:is(.ecenter-offers-grid,.ecenter-new-arrivals-grid) > .wd-nav-arrows .wd-btn-arrow {
    pointer-events: auto !important;
}

/* Mobile banners: text and artwork occupy separate rows, without enlarged crops. */
@media (max-width: 767px) {
    body.home.wd.wd.wd .wd-32a00010 { margin-top: 0 !important; }
    body.home.wd.wd.wd :is(.wd-32a00005,.wd-32a0000a,.wd-32a0000f,.wd-32a00016,.wd-32a0001d) {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        background-color: var(--ec-ground, #e8f2fe) !important;
    }
    body.home.wd.wd.wd :is(.wd-32a00005,.wd-32a0000a,.wd-32a0000f) > .wd-slide-container,
    body.home.wd.wd.wd :is(.wd-32a00016,.wd-32a0001d) > .wp-block-wd-container {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        order: 0;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 24px 20px 8px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    body.home.wd.wd.wd :is(.wd-32a00005,.wd-32a0000a,.wd-32a0000f,.wd-32a00016,.wd-32a0001d)
        > :is(.wd-slide-bg,.wd-block-cover-img) {
        position: relative !important;
        inset: auto !important;
        order: 1;
        flex: 0 0 auto;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1600 / 843;
        background-size: contain !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;
        background-color: var(--ec-ground, #e8f2fe) !important;
        transform: none !important;
        mask-image: none !important;
    }
    body.home.wd.wd.wd :is(.wd-32a00005,.wd-32a0000a,.wd-32a0000f,.wd-32a00016,.wd-32a0001d)
        :is(.wp-block-wd-title,.wp-block-wd-paragraph) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        overflow-wrap: anywhere;
    }
    body.home.wd.wd.wd :is(.wd-32a00005,.wd-32a0000a,.wd-32a0000f) .wp-block-wd-title {
        font-size: clamp(23px, 6.2vw, 30px) !important;
        line-height: 1.2 !important;
    }
    body.home.wd.wd.wd :is(.wd-32a00005,.wd-32a0000a,.wd-32a0000f) .wp-block-wd-paragraph {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    body.home.wd.wd.wd :is(.wd-32a00005,.wd-32a0000a,.wd-32a0000f,.wd-32a00016,.wd-32a0001d)
        .wp-block-wd-button {
        align-self: flex-start !important;
        max-width: 100%;
        height: auto !important;
        min-height: 38px !important;
        margin: 4px 0 0 !important;
        white-space: normal;
        line-height: 1.35 !important;
    }
    body.home.wd.wd.wd :is(.wd-32a0002a,.wd-32a00039) {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 5;
        padding: 24px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        background-color: var(--ec-ground);
    }
    body.home.wd.wd.wd :is(.wd-32a0002a,.wd-32a00039) > .wd-block-cover-img {
        background-size: contain !important;
        background-position: center bottom !important;
        transform: none !important;
    }
    body.home.wd.wd.wd :is(.wd-32a0002a,.wd-32a00039) > .wp-block-wd-container {
        height: auto !important;
        max-width: 78% !important;
        gap: 10px !important;
    }
    body.home.wd.wd.wd :is(.wd-32a0002f,.wd-32a00033) > .wd-block-cover-img {
        background-size: contain !important;
        background-position: center bottom !important;
        transform: none !important;
    }
}

/* Do not depend on the theme adding hover-ready to this injected grid. */
body.home .ecenter-new-arrivals {
    display: flow-root;
    padding-bottom: 88px !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}
body.home .ecenter-new-arrivals-grid,
body.home .ecenter-new-arrivals-grid > .wd-products {
    overflow: visible !important;
}
body.home .ecenter-new-arrivals-grid .wd-product {
    position: relative;
}
body.home .ecenter-new-arrivals-grid .wd-product-card-bg {
    pointer-events: none !important;
}
body.home .ecenter-new-arrivals-grid .wd-product-card-hover {
    position: absolute !important;
    top: 100%;
    inset-inline: 0;
    padding: 12px 10px 14px !important;
    background: #fff;
    box-shadow: 0 12px 22px rgba(15, 42, 58, .12);
    border-radius: 0 0 6px 6px;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: none;
}
body.home .ecenter-new-arrivals-grid .hover-content,
body.home .ecenter-new-arrivals-grid .hover-content-inner {
    max-height: none !important;
    overflow: visible !important;
}
@media (hover: hover) {
    body.home .ecenter-new-arrivals-grid .wd-product:hover {
        z-index: 35 !important;
    }
    body.home .ecenter-new-arrivals-grid .wd-product:hover .wd-product-wrapper {
        z-index: 35 !important;
    }
    body.home .ecenter-new-arrivals-grid .wd-product:hover .wd-product-card-hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}
body.home .ecenter-new-arrivals-grid .wd-product:focus-within {
    z-index: 35 !important;
}
body.home .ecenter-new-arrivals-grid .wd-product:focus-within .wd-product-card-hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
@media (max-width: 767px) {
    body.home .ecenter-new-arrivals { padding-bottom: 56px !important; }
}

/* Override the child theme's !important swatch rules: one visible logo per cell. */
body .wd-swatches-brands.wd-filter-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 4px;
    padding-inline: 0 !important;
}
body .wd-swatches-brands.wd-filter-list > li {
    float: none !important;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}
body .wd-swatches-brands.wd-filter-list > li > a {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0;
    min-height: 72px;
    padding: 8px !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}
body .wd-swatches-brands.wd-filter-list > li.ecenter-brand-item .wd-swatch {
    display: none !important;
}
body .wd-swatches-brands.wd-filter-list > li.ecenter-brand-item > a > img.ecenter-brand-swatch {
    position: static !important;
    display: block !important;
    flex: 0 1 auto !important;
    width: 100% !important;
    max-width: 108px !important;
    height: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}
body .wd-swatches-brands.wd-filter-list > li.ecenter-brand-item .wd-filter-lable {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
body .wd-swatches-brands.wd-filter-list > li .count { display: none !important; }
