/*
 * Heikaya v6.20.2 — PHONE-ONLY homepage product slider normalization.
 *
 * Purpose:
 * - Make Bohemia Crystal / New Arrivals / Silver / Candle Holder use
 *   the exact same mobile card-slider treatment as Featured Selection.
 * - Put Egermann copy/button before its video on phones.
 *
 * Desktop/tablet are intentionally untouched.
 */

@media (max-width: 767px) {

    /* ==========================================================
       PRODUCT SECTION CONTAINERS
       Normalize the older section-specific breakout rules first.
       ========================================================== */
    body.home .heikaya-clear-crystal__products.lumiere-featured-products,
    body.home .lumiere-home-new-arrivals .lumiere-featured-products--new-arrivals,
    body.home .heikaya-silver-showcase__products.lumiere-featured-products,
    body.home .heikaya-candle-holder-showcase__inner {
        position: static !important;
        left: auto !important;
        right: auto !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        transform: none !important;
        overflow: visible !important;
    }

    /* Keep their headings exactly in the same centered rhythm as Featured Selection. */
    body.home .heikaya-clear-crystal__products .lumiere-featured-products__heading,
    body.home .lumiere-home-new-arrivals .lumiere-featured-products__heading,
    body.home .heikaya-silver-showcase__products .lumiere-featured-products__heading,
    body.home .heikaya-candle-holder-showcase__inner .lumiere-featured-products__heading {
        width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
        text-align: center !important;
    }

    /* ==========================================================
       FORCE THE SAME FLEX SLIDER RAIL IN EVERY PRODUCT SECTION.
       These selectors intentionally beat old section-specific
       `display:grid !important` declarations.
       ========================================================== */
    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider
        > .lumiere-featured-products__grid.heikaya-phone-product-rail,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider
        > .lumiere-featured-products__grid.heikaya-phone-product-rail,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider
        > .lumiere-featured-products__grid.heikaya-phone-product-rail,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider
        > .lumiere-featured-products__grid.heikaya-phone-product-rail {
        display: flex !important;
        flex-flow: row nowrap !important;
        grid-template-columns: none !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 16px 9px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        scroll-padding-inline: 16px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider
        > .lumiere-featured-products__grid.heikaya-phone-product-rail::-webkit-scrollbar,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider
        > .lumiere-featured-products__grid.heikaya-phone-product-rail::-webkit-scrollbar,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider
        > .lumiere-featured-products__grid.heikaya-phone-product-rail::-webkit-scrollbar,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider
        > .lumiere-featured-products__grid.heikaya-phone-product-rail::-webkit-scrollbar {
        display: none !important;
    }

    /* ==========================================================
       CARD SIZE / IMAGE / COPY
       Exact same proportions as the working Featured Selection.
       ========================================================== */
    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider .lumiere-featured-product,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider .lumiere-featured-product,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider .lumiere-featured-product,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider .lumiere-featured-product {
        display: flex !important;
        flex: 0 0 min(78vw, 330px) !important;
        flex-direction: column !important;
        align-self: stretch !important;
        width: min(78vw, 330px) !important;
        min-width: min(78vw, 330px) !important;
        max-width: min(78vw, 330px) !important;
        margin: 0 !important;
        padding: 0 !important;
        scroll-snap-align: center !important;
    }

    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider .lumiere-featured-product__image,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider .lumiere-featured-product__image,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider .lumiere-featured-product__image,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider .lumiere-featured-product__image {
        display: block !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        border: 1px solid rgba(21,18,15,.07) !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider .lumiere-featured-product__image img,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider .lumiere-featured-product__image img,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider .lumiere-featured-product__image img,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider .lumiere-featured-product__image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 7px !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
    }

    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider .lumiere-featured-product__body,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider .lumiere-featured-product__body,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider .lumiere-featured-product__body,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider .lumiere-featured-product__body {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        min-height: 92px !important;
        margin: 0 !important;
        padding: 11px 5px 0 !important;
        text-align: center !important;
    }

    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider .lumiere-featured-product h3,
    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider .lumiere-featured-product h3 a,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider .lumiere-featured-product h3,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider .lumiere-featured-product h3 a,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider .lumiere-featured-product h3,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider .lumiere-featured-product h3 a,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider .lumiere-featured-product h3,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider .lumiere-featured-product h3 a {
        display: -webkit-box !important;
        min-height: 41px !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #15120f !important;
        font-family: "Cormorant Garamond", Georgia, serif !important;
        font-size: 19px !important;
        font-weight: 500 !important;
        line-height: 1.08 !important;
        text-align: center !important;
        text-decoration: none !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.home .heikaya-clear-crystal__products
        .heikaya-phone-product-slider .lumiere-featured-product__price,
    body.home .lumiere-home-new-arrivals
        .heikaya-phone-product-slider .lumiere-featured-product__price,
    body.home .heikaya-silver-showcase__products
        .heikaya-phone-product-slider .lumiere-featured-product__price,
    body.home .heikaya-candle-holder-showcase__inner
        .heikaya-phone-product-slider .lumiere-featured-product__price {
        margin-top: auto !important;
        padding-top: 11px !important;
        color: #15120f !important;
        font-family: Montserrat, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    /* Slider wrapper / arrows same geometry as Featured Selection. */
    body.home .heikaya-clear-crystal__products .heikaya-phone-product-slider,
    body.home .lumiere-home-new-arrivals .heikaya-phone-product-slider,
    body.home .heikaya-silver-showcase__products .heikaya-phone-product-slider,
    body.home .heikaya-candle-holder-showcase__inner .heikaya-phone-product-slider {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.home .heikaya-clear-crystal__products .heikaya-phone-product-arrow,
    body.home .lumiere-home-new-arrivals .heikaya-phone-product-arrow,
    body.home .heikaya-silver-showcase__products .heikaya-phone-product-arrow,
    body.home .heikaya-candle-holder-showcase__inner .heikaya-phone-product-arrow {
        top: min(39vw, 165px) !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    body.home .heikaya-clear-crystal__products .heikaya-phone-product-arrow--prev,
    body.home .lumiere-home-new-arrivals .heikaya-phone-product-arrow--prev,
    body.home .heikaya-silver-showcase__products .heikaya-phone-product-arrow--prev,
    body.home .heikaya-candle-holder-showcase__inner .heikaya-phone-product-arrow--prev {
        left: 17px !important;
    }

    body.home .heikaya-clear-crystal__products .heikaya-phone-product-arrow--next,
    body.home .lumiere-home-new-arrivals .heikaya-phone-product-arrow--next,
    body.home .heikaya-silver-showcase__products .heikaya-phone-product-arrow--next,
    body.home .heikaya-candle-holder-showcase__inner .heikaya-phone-product-arrow--next {
        right: 17px !important;
    }

    /* ==========================================================
       EGermann — COPY FIRST, VIDEO SECOND, PHONE ONLY
       ========================================================== */
    body.home .lumiere-egermann-feature,
    body.home .heikaya-restored-egermann-feature {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    body.home .lumiere-egermann-feature__copy {
        order: 1 !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 38px 24px 34px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        background: #f7f2e9 !important;
    }

    body.home .lumiere-egermann-feature__copy .lumiere-eyebrow {
        margin-bottom: 11px !important;
    }

    body.home .lumiere-egermann-feature__copy h2 {
        margin: 0 !important;
        font-size: clamp(42px, 11vw, 54px) !important;
        line-height: .96 !important;
    }

    body.home .lumiere-egermann-feature__copy > p:not(.lumiere-eyebrow) {
        max-width: 100% !important;
        margin: 20px 0 24px !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    body.home .lumiere-egermann-feature__copy .lumiere-button {
        margin-top: 0 !important;
    }

    body.home .lumiere-egermann-feature__media {
        order: 2 !important;
        width: 100% !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 10 !important;
        margin: 0 !important;
    }

    body.home .lumiere-egermann-feature__video,
    body.home .lumiere-egermann-feature__media > img {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 10 !important;
        object-fit: cover !important;
    }
}
