/* =========================================================
   FLAIR LANE HOME HERO
   Responsive: Desktop / Laptop / Tablet / Mobile
   ========================================================= */

.home-hero-page {
    overflow-x: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.home-hero-page .store-site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;

    width: 100%;
    z-index: 60;

    background: transparent;
    border-color: transparent;
    color: #fff;

    -webkit-backdrop-filter: none;
    backdrop-filter: none;

    box-shadow: none;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        backdrop-filter 0.25s ease;
}

.home-hero-page .store-site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    color: #111827;

    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}


/* =========================================================
   HEADER CONTAINER
   ========================================================= */

.home-hero-page .store-site-header > .container-fluid {
    width: 100% !important;
    max-width: 100% !important;

    padding-inline: clamp(12px, 2.5vw, 44px) !important;
}


/* =========================================================
   HEADER MAIN
   ========================================================= */

.home-hero-page .store-header-main {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    height: 64px;

    gap: clamp(4px, 0.7vw, 12px);
}


/* =========================================================
   LOGO
   ========================================================= */

.home-hero-page .store-brand-logo {
    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;
    min-width: 0;

    padding: 4px;

    color: inherit;
}

.home-hero-page .store-brand-logo-image {
    display: block;
    margin-top:-13px;
    width: auto;
    height: 36px;

    max-width: 135px;

    object-fit: contain;

    filter: none;

    transition:
        filter 0.25s ease,
        opacity 0.25s ease;
}

.home-hero-page .store-site-header.is-scrolled
    .store-brand-logo-image {
    filter: brightness(0);
}

/* Fallback: every image inside a brand logo link follows the same scrolled
   state, so an extra/secondary logo also turns dark on the white header. */

.home-hero-page .store-brand-logo img {
    filter: none;

    transition:
        filter 0.25s ease,
        opacity 0.25s ease;
}

.home-hero-page .store-site-header.is-scrolled
    .store-brand-logo img {
    filter: brightness(0);
}


/* =========================================================
   DESKTOP CATEGORY NAV
   ========================================================= */

.home-hero-page .desktop-category-nav {
    flex: 1 1 auto;

    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.home-hero-page .desktop-category-nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    overflow: hidden;
}

.home-hero-page .desktop-category-nav > ul > li {
    flex: 0 0 auto;
    min-width: 0;
}


/* =========================================================
   CATEGORY LINKS
   ========================================================= */

.home-hero-page .header-category-link {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    white-space: nowrap;

    color: #fff !important;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-hero-page .header-category-link:hover {
    /*color: #fff !important;*/
    background: rgba(255, 255, 255, 0.12);
}

.home-hero-page .header-category-link.is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14);
}


/* =========================================================
   SCROLLED HEADER COLORS
   ========================================================= */

.home-hero-page .store-site-header.is-scrolled
    .header-category-link,
.home-hero-page .store-site-header.is-scrolled
    .header-action-button {
    color: #111827 !important;
}

.home-hero-page .store-site-header.is-scrolled
    .header-category-link:hover,
.home-hero-page .store-site-header.is-scrolled
    .header-action-button:hover {
    /*color: #111827 !important;*/
    /*background: rgba(15, 23, 42, 0.06);*/
}

.home-hero-page .store-site-header.is-scrolled
    .header-category-link.is-active {
    color: rgb(var(--color-accent-500)) !important;
    background: rgb(var(--color-accent-500) / 0.08);
}


/* =========================================================
   ACTION AREA
   ========================================================= */

.home-hero-page .store-header-main > .ms-auto {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    min-width: max-content;
}

.home-hero-page .header-action-button {
    flex-shrink: 0;

    color: #fff !important;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-hero-page .header-action-button:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   SUBCATEGORY DROPDOWN
   ========================================================= */

.home-hero-page .header-category-dropdown {
    color: #111827;
    white-space: normal;
}


/* =========================================================
   SEARCH PANEL
   ========================================================= */

.home-hero-page .header-search-panel {
    position: fixed;

    top: 72px;
    left: 50%;

    z-index: 120;

    width: min(720px, calc(100vw - 32px));

    color: #111827;

    animation:
        header-search-drop-from-top
        0.34s
        cubic-bezier(0.22, 0.75, 0.25, 1)
        both;
}

@keyframes header-search-drop-from-top {
    from {
        opacity: 0;
        transform: translate(-50%, -72px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.home-hero-page .header-search-surface {
    position: relative;

    width: 100%;

    padding: 7px;

    background: rgba(255, 255, 255, 0.985);

    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;

    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.2),
        0 4px 14px rgba(15, 23, 42, 0.08);
}

.home-hero-page .header-search-input-wrap {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 54px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.home-hero-page .header-search-input-wrap:focus-within {
    background: #fff;

    border-color: #cbd5e1;

    box-shadow:
        0 0 0 3px rgba(15, 23, 42, 0.05);
}

.home-hero-page .header-search-leading-icon {
    position: absolute;

    inset-inline-start: 17px;

    color: #64748b;

    pointer-events: none;
}

.home-hero-page .header-search-input {
    display: block;

    width: 100%;
    height: 100%;

    padding-inline-start: 50px;
    padding-inline-end: 50px;

    border: 0 !important;
    outline: 0 !important;

    box-shadow: none !important;

    background: transparent !important;

    color: #111827 !important;

    font-size: 15px;
}

.home-hero-page .header-search-input::placeholder {
    color: #94a3b8;
}

.home-hero-page .header-search-close {
    position: absolute;

    inset-inline-end: 12px;
    top: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;

    transform: translateY(-50%);

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: #64748b;

    cursor: pointer;
}

.home-hero-page .header-search-close:hover {
    background: #eef2f7;
    color: #111827;
}


/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.home-hero-page .header-search-results {
    position: absolute;

    top: calc(100% + 9px);
    left: 0;
    right: 0;

    z-index: 130;

    max-height: 430px;

    overflow-y: auto;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.07);
}

.home-hero-page .header-search-result-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 14px;

    border-bottom: 1px solid #f1f5f9;
}

.home-hero-page .header-search-result-item:last-child {
    border-bottom: 0;
}

.home-hero-page .header-search-result-item:hover {
    background: #f8fafc;
}

.home-hero-page .header-search-result-image {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    object-fit: cover;

    background: #f1f5f9;

    border-radius: 6px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card:hover {
    box-shadow: none;
}


/* =========================================================
   HERO CAROUSEL
   ========================================================= */

.home-carousel-section {
    position: relative;

    width: 100%;
    height: 100vh;
    height: 100svh;

    min-height: 100svh;

    margin: 0;
    padding: 0;

    isolation: isolate;

    overflow: hidden;

    background: #000;
}

.home-carousel {
    position: relative;

    width: 100%;
    height: 100%;

    outline: none;
}

.home-carousel-viewport {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.home-carousel-track {
    display: flex;

    width: 100%;
    height: 100%;

    transition:
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);

    will-change: transform;
}

.home-carousel-slide {
    position: relative;

    flex: 0 0 100%;
    min-width: 100%;

    width: 100%;
    height: 100%;
}

.home-carousel-slide > a {
    display: block;

    width: 100%;
    height: 100%;
}

.home-carousel-slide img {
    display: block;

    width: 100%;
    height: 100%;

    min-width: 100%;
    min-height: 100%;

    object-fit: cover;
    object-position: center center;

    opacity: 0.5;
}


/* =========================================================
   HERO ARROWS
   ========================================================= */

.home-carousel-arrow {
    position: absolute;

    top: 50%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;

    background: rgba(15, 23, 42, 0.4);

    color: #fff;

    transform: translateY(-50%);

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.home-carousel-arrow:hover {
    background: rgba(15, 23, 42, 0.75);

    transform:
        translateY(-50%)
        scale(1.07);
}

.home-carousel-arrow-prev {
    inset-inline-start: 18px;
}

.home-carousel-arrow-next {
    inset-inline-end: 18px;
}

.home-carousel-arrow svg {
    width: 22px;
    height: 22px;

    pointer-events: none;
}


/* =========================================================
   HERO DOTS
   ========================================================= */

.home-carousel-dots {
    position: absolute;

    z-index: 5;

    bottom: 28px;
    left: 50%;

    display: flex;
    align-items: center;

    gap: 8px;

    transform: translateX(-50%);

    padding: 8px 12px;

    border-radius: 999px;

    background: rgba(0, 0, 0, 0.32);
}

.home-carousel-dot {
    width: 9px;
    height: 9px;

    border: 0;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.6);

    cursor: pointer;

    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.home-carousel-dot.is-active {
    width: 24px;

    background: #fff;
}


/* =========================================================
   LARGE DESKTOP
   1280px+
   ========================================================= */

@media (min-width: 1280px) {

    .home-hero-page .store-header-main {
        height: 68px;
    }

    .home-hero-page .store-brand-logo-image {
        max-width: 135px;
    }

    .home-hero-page .header-category-link {
        padding-inline: 8px !important;
        font-size: 13px !important;
    }
}


/* =========================================================
   LAPTOP
   1024px - 1279px
   ========================================================= */

@media (min-width: 1024px) and (max-width: 1279px) {

    .home-hero-page .store-site-header > .container-fluid {
        padding-inline: 20px !important;
    }

    .home-hero-page .store-header-main {
        height: 64px;
        gap: 4px;
    }

    .home-hero-page .store-brand-logo-image {
        max-width: 100px;
        height: 34px;
    }

    .home-hero-page .desktop-category-nav > ul {
        gap: 0 !important;
    }

    .home-hero-page .header-category-link {
        height: 38px;

        padding-inline: 5px !important;

        font-size: 11px !important;

        gap: 3px;
    }

    .home-hero-page .header-category-link svg {
        width: 10px !important;
        height: 10px !important;
    }

    .home-hero-page .store-header-main > .ms-auto {
        gap: 0 !important;
    }

    .home-hero-page .header-action-button {
        width: 36px !important;
        height: 36px !important;
    }
}


/* =========================================================
   TABLET
   768px - 1023px

   Category hidden
   ========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {

    .home-hero-page .desktop-category-nav {
        display: none !important;
    }

    .home-hero-page .store-site-header > .container-fluid {
        padding-inline: 16px !important;
    }

    .home-hero-page .store-header-main {
        height: 64px;
    }

    .home-hero-page .store-brand-logo-image {
        max-width: 120px;
        height: 35px;
    }

    .home-hero-page .store-header-main > .ms-auto {
        margin-inline-start: auto;
    }

    .home-hero-page .header-action-button {
        width: 40px !important;
        height: 40px !important;
    }
}


/* =========================================================
   MOBILE
   0 - 767px

   Category hidden
   Full width + full height slider
   ========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------
       Header
       ----------------------------------------- */

    .home-hero-page .desktop-category-nav {
        display: none !important;
    }

    .home-hero-page .store-site-header > .container-fluid {
        padding-inline: 8px !important;
    }

    .home-hero-page .store-header-main {
        width: 100%;
        height: 58px;

        gap: 2px;
    }

    .home-hero-page .store-brand-logo {
        flex: 0 0 auto;

        max-width: 55vw;

        padding: 3px;
    }

    .home-hero-page .store-brand-logo-image {
        width: auto;
        max-width: 105px;
        height: 40px;
        margin-top: 5px;
    }

    .home-hero-page .store-header-main > .ms-auto {
        margin-inline-start: auto;

        flex: 0 0 auto;

        gap: 0 !important;
    }

    .home-hero-page .header-action-button {
        width: 36px !important;
        height: 36px !important;

        padding: 0 !important;
    }

    .home-hero-page .header-action-button svg {
        width: 19px;
        height: 19px;
    }


    /* -----------------------------------------
       Search
       ----------------------------------------- */

    .home-hero-page .header-search-panel {
        top: 64px;

        width: calc(100vw - 16px);
    }

    .home-hero-page .header-search-input-wrap {
        height: 50px;
    }

    .home-hero-page .header-search-input {
        font-size: 14px;

        padding-inline-start: 44px;
        padding-inline-end: 44px;
    }

    .home-hero-page .header-search-leading-icon {
        inset-inline-start: 13px;
    }


    /* -----------------------------------------
       FULL SCREEN SLIDER
       ----------------------------------------- */

    .home-carousel-section {
        width: 100vw;

        height: 100vh;
        height: 100svh;

        min-height: 100svh;

        margin: 0;
        padding: 0;

        overflow: hidden;

        background: #000;
    }

    .home-carousel,
    .home-carousel-viewport,
    .home-carousel-track {
        width: 100vw;
        height: 100%;
    }

    .home-carousel-slide {
        flex: 0 0 100vw;

        width: 100vw;
        min-width: 100vw;

        height: 100%;
    }

    .home-carousel-slide > a {
        display: block;

        width: 100vw;
        height: 100%;
    }

    .home-carousel-slide img {
        display: block;

        width: 100vw;
        height: 100%;

        min-width: 100vw;
        min-height: 100%;

        /*
         * FULL SCREEN FILL
         * No side gap
         */
        object-fit: cover;
        object-position: center center;

        opacity: 0.5;
    }


    /* -----------------------------------------
       Mobile arrows
       ----------------------------------------- */

    .home-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .home-carousel-arrow-prev {
        inset-inline-start: 8px;
    }

    .home-carousel-arrow-next {
        inset-inline-end: 8px;
    }

    .home-carousel-arrow svg {
        width: 18px;
        height: 18px;
    }


    /* -----------------------------------------
       Mobile dots
       ----------------------------------------- */

    .home-carousel-dots {
        bottom: calc(
            20px + env(safe-area-inset-bottom)
        );

        gap: 6px;

        padding: 7px 10px;
    }

    .home-carousel-dot {
        width: 7px;
        height: 7px;
    }

    .home-carousel-dot.is-active {
        width: 20px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   <= 380px
   ========================================================= */

@media (max-width: 380px) {

    .home-hero-page .store-site-header > .container-fluid {
        padding-inline: 5px !important;
    }

    .home-hero-page .store-brand-logo-image {
        max-width: 90px;
        height: 29px;
    }

    .home-hero-page .header-action-button {
        width: 34px !important;
        height: 34px !important;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .home-hero-page .header-search-panel {
        animation: none;

        transform: translateX(-50%);
    }

    .home-hero-page .store-site-header,
    .home-hero-page .store-brand-logo-image,
    .home-hero-page .header-search-panel,
    .home-carousel-track,
    .home-carousel-arrow,
    .home-carousel-dot {
        transition: none;
    }
}
