/* ============================================================
   MehrLeather Landing Slider
   Load this file ONLY on the Home / Landing page
   and AFTER site.css.
   ============================================================ */

/* Slider */
.page-slider {
    position: relative
}

.slide {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background: #ece8e1
}

.slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.84) contrast(1.04)
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.03) 50%,rgba(0,0,0,.42))
}

    .slide-overlay.light {
        background: linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.18))
    }

.hero-copy h1, .story-copy h2 {
    font-size: clamp(32px,3.1vw,54px);
    font-weight: 400;
    margin: 0
}

.hero-copy p, .story-copy p {
    font-size: 16px;
    margin: 10px 0 0
}

.text-cta {
    position: relative;
    color: inherit;
    text-decoration: none;
    font-size: 12px;
    padding-bottom: 5px
}

    .text-cta:after {
        content: "";
        position: absolute;
        right: 0;
        left: 0;
        bottom: 0;
        height: 1px;
        background: currentColor;
        transition: transform .25s ease;
        transform-origin: right
    }

    .text-cta:hover:after {
        transform: scaleX(.35)
    }

.editorial-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #ccc
}

    .editorial-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .8s ease;
        filter: saturate(.88)
    }

    .editorial-card:hover img {
        transform: scale(1.015)
    }

.editorial-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent 50%,rgba(0,0,0,.33))
}

.editorial-title {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 34px;
    text-align: center;
    font-size: clamp(24px,2.1vw,34px)
}

.section-kicker {
    font-size: 13px;
    font-weight: 500
}

.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--mehr-text);
    text-decoration: none;
    text-align: center
}

    .category-card a {
        text-decoration: none;
    }

.category-media {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #eeeae4
}

    .category-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .65s ease;
        filter: saturate(.86) contrast(1.02)
    }

.category-card:hover img {
    transform: scale(1.018)
}

.category-card h3 {
    font-size: 17px;
    font-weight: 400;
    margin: 13px 0 0
}

.story-copy {
    max-width: 780px
}

.search-block {
    max-width: 720px
}

    .search-block h2 {
        font-size: 18px;
        font-weight: 500
    }

    .search-block p {
        font-size: 20px;
        color: #514c46;
        margin-top: 12px
    }

.search-form {
    max-width: 630px
}

    .search-form .form-control {
        font-size: 17px;
        padding: 14px 0
    }


/* Pagination & floating buttons */
.slide-pagination {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    flex-direction: column;
    gap: 10px
}

.slide-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,.42);
    box-shadow: 0 0 0 1px rgba(0,0,0,.06);
    transition: all .2s ease
}

    .slide-dot.active {
        background: #fff;
        transform: scale(1.22)
    }

body.light-slide .slide-dot {
    background: rgba(30,28,25,.22)
}

    body.light-slide .slide-dot.active {
        background: #222
    }


/* Desktop transform slider */
@media (min-width:768px) {
    html, body {
        height: 100%;
        overflow: hidden
    }

    .page-slider {
        height: 100dvh;
        overflow: hidden
    }

    .slide {
        position: fixed;
        inset: 0;
        height: 100dvh;
        min-height: 100dvh;
        transform: translate3d(0,100%,0);
        transition: transform .82s var(--mehr-ease);
        will-change: transform;
        pointer-events: none;
        backface-visibility: hidden
    }

        .slide.current {
            pointer-events: auto
        }

    .categories-slide {
        padding-top: 0
    }

        .categories-slide .container-fluid {
            padding-top: 74px !important;
            padding-bottom: 24px !important
        }

    .footer-slide > .container-fluid {
        padding-top: 72px !important;
        padding-bottom: 18px !important
    }

    .footer-columns {
        min-height: 0;
        align-content: center
    }
}

@media (max-width:767.98px) {
    html, body {
        height: 100%;
        overflow: hidden !important
    }

    .page-slider {
        height: 100dvh;
        overflow: hidden
    }

    .slide {
        position: fixed !important;
        inset: 0 !important;
        min-height: 100dvh;
        height: 100dvh !important;
        transition: transform .72s var(--mehr-ease) !important;
        will-change: transform;
        pointer-events: none !important;
        backface-visibility: hidden
    }

        .slide.current {
            pointer-events: auto !important
        }

    .arrivals-slide .h-50 {
        height: 50svh !important
    }

    .categories-slide {
        padding: 70px 0 35px
    }

        .categories-slide .container-fluid {
            min-height: 100svh;
            height: auto !important
        }

    .category-media {
        height: 33svh;
        flex: none
    }

    .category-card h3 {
        font-size: 14px
    }

    .search-slide {
        min-height: 72svh
    }

    .footer-slide {
        min-height: 100svh;
        padding-top: 28px
    }

        .footer-slide > .container-fluid {
            height: auto !important;
            min-height: 100svh
        }
}

/* Mobile section-by-section slider parity with desktop. */
@media (max-width:767.98px) {
    body.section-slider-enabled {
        touch-action: pan-y
    }

        body.section-slider-enabled .slide:not(.footer-slide) {
            overflow: hidden !important
        }

        body.section-slider-enabled .slide.current {
            visibility: visible
        }

        body.section-slider-enabled .slide:not(.current) {
            visibility: visible
        }
}


/* ============================================================
   Footer separated from the full-page section slider
   ============================================================ */
.footer-slide {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    z-index: 25;
    background: #fff;
}

    .footer-slide > .container-fluid {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

body.footer-mode .slide-pagination {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.slide-pagination {
    transition: opacity .2s ease,visibility .2s ease;
}

@media (min-width:768px) {
    html, body {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
    }

        html.section-slider-enabled,
        body.section-slider-enabled {
            height: 100% !important;
            overflow: hidden !important;
        }

        html.footer-mode,
        body.footer-mode {
            height: auto !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }

    .page-slider {
        height: 100dvh !important;
        min-height: 100dvh;
        overflow: hidden !important;
    }

    .footer-slide {
        padding-top: 0 !important;
    }

        .footer-slide > .desktop-footer-wrap {
            padding-top: 72px !important;
            padding-bottom: 28px !important;
        }
}

@media (max-width:767.98px) {
    html, body {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
    }

        html.section-slider-enabled,
        body.section-slider-enabled {
            height: 100% !important;
            overflow: hidden !important;
        }

        html.footer-mode,
        body.footer-mode {
            height: auto !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            touch-action: auto !important;
        }

    .page-slider {
        height: 100dvh !important;
        min-height: 100dvh;
        overflow: hidden !important;
    }

    .footer-slide {
        min-height: 0 !important;
        padding-top: var(--mobile-header-total) !important;
        overflow: visible !important;
    }

    .mobile-footer {
        min-height: 0 !important;
        overflow: visible !important;
    }

    body.footer-mode .footer-slide {
        touch-action: pan-y !important;
    }
}

/* Category horizontal swipe compatibility while landing slider is active */
@media (max-width:767.98px) {
    body.section-slider-enabled {
        touch-action: pan-x pan-y;
    }
}

@media (max-width:767.98px) {
    body.section-slider-enabled {
        touch-action: auto !important;
    }
}
