/*
 * Heikaya v6.18.8 — homepage spacing corrections.
 */

/* The previous 132px band was too large. Use a cleaner consistent band. */
:root {
    --heikaya-home-title-band: 104px !important;
}

/* Add breathing room between the full-width Featured Selection video
   and the restored Egermann editorial section. */
body.home .heikaya-featured-selection-video {
    margin-bottom: 42px !important;
}

/* Browse All Categories -> Bohemia Crystal was too large.
   Remove stacked legacy margins and let the standard title band own the gap. */
body.home .lumiere-all-categories-action {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.home .heikaya-clear-crystal {
    padding-top: 0 !important;
}

body.home .heikaya-clear-crystal__products {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .heikaya-clear-crystal__products .lumiere-featured-products__heading {
    min-height: var(--heikaya-home-title-band) !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Keep every major section title centered in its separator band. */
body.home .lumiere-featured-products__heading,
body.home .lumiere-categories-heading,
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,
body.home .heikaya-subcategories-only .lumiere-collection-section__heading {
    min-height: var(--heikaya-home-title-band) !important;
    justify-content: center !important;
}

/* Instagram rail: larger Follow Us treatment. */
.lumiere-instagram__gallery-row {
    grid-template-columns: 78px minmax(0,1fr) !important;
}

.lumiere-instagram__heading {
    margin-left: 98px !important;
}

.lumiere-instagram__vertical {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .22em !important;
}

.lumiere-instagram__rail-line {
    height: 54px !important;
}

.lumiere-instagram__rail-mark {
    width: 46px !important;
    height: 46px !important;
}

.lumiere-instagram__rail-mark svg {
    width: 21px !important;
    height: 21px !important;
}

/* Custom, owner-selected Instagram display images. */
.heikaya-instagram-custom-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
}

.heikaya-instagram-custom-card {
    display: block !important;
    aspect-ratio: 1 / 1 !important;
    padding: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(21,18,15,.17) !important;
    border-radius: 20px !important;
    background: #fffdf9 !important;
    box-shadow: 0 18px 42px rgba(35,25,13,.08) !important;
    text-decoration: none !important;
}

.heikaya-instagram-custom-card__media {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.heikaya-instagram-custom-card img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform .35s ease !important;
}

.heikaya-instagram-custom-card:hover img {
    transform: scale(1.025) !important;
}

/* Bring the global WhatsApp button unmistakably back. */
html body .lumiere-whatsapp-float {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 999999 !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    background: #25D366 !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    .lumiere-instagram__heading {
        margin-left: 0 !important;
    }

    .lumiere-instagram__gallery-row {
        grid-template-columns: 62px minmax(0,1fr) !important;
    }

    .lumiere-instagram__vertical {
        font-size: 10px !important;
    }

    .lumiere-instagram__rail-mark {
        width: 40px !important;
        height: 40px !important;
    }

    .lumiere-instagram__rail-mark svg {
        width: 19px !important;
        height: 19px !important;
    }

    .heikaya-instagram-custom-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 767px) {
    :root {
        --heikaya-home-title-band: 86px !important;
    }

    body.home .heikaya-featured-selection-video {
        margin-bottom: 28px !important;
    }

    html body .lumiere-whatsapp-float {
        right: 12px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: 52px !important;
        min-width: 52px !important;
        height: 52px !important;
    }
}
