/* =========================================================
   ECOM CORE 0.6
   WINDOWS 11 / FLUENT COMMERCE
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

html {

    font-size:
        var(
            --ec-base-font-size,
            16px
        );
}


body.ec-fluent-commerce {

    min-height: 100vh;

    background:
        var(
            --ec-bg,
            #f3f6fb
        );

    color:
        var(
            --ec-ink,
            #17191d
        );

    font-family:
        var(
            --ec-font-stack
        );

    position: relative;
}


body.ec-fluent-commerce::before {

    content: "";

    position: fixed;

    z-index: -2;

    inset: 0;

    pointer-events: none;

    background:

        radial-gradient(
            circle at 8% 4%,
            color-mix(
                in srgb,
                var(--ec-accent)
                calc(
                    var(
                        --ec-tech-glow-alpha
                    )
                    *
                    100%
                ),
                transparent
            ),
            transparent 34%
        ),

        radial-gradient(
            circle at 88% 24%,
            rgba(
                117,
                89,
                255,
                .07
            ),
            transparent 28%
        ),

        linear-gradient(
            180deg,
            #f8fafc 0%,
            var(--ec-bg) 45%,
            #edf2f7 100%
        );
}


.ec-container {

    width:
        min(
            calc(
                100%
                -
                36px
            ),
            var(
                --ec-container-width,
                1480px
            )
        );

    margin-inline: auto;
}


/* =========================================================
   WINDOWS / MICA SURFACE
   ========================================================= */

.ec-window,
.ec-category-tile,
.ec-product-card,
.ec-catalogue-toolbar,
.ec-category-seo-window,
.ec-filter-panel,
.ec-product-assurance,
.ec-home-category,
.ec-product-information,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {

    border:
        1px solid
        color-mix(
            in srgb,
            var(--ec-line)
            88%,
            white
        );

    box-shadow:
        0 18px 50px
        rgba(
            31,
            41,
            55,
            var(
                --ec-window-shadow-alpha
            )
        );
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.ec-site-header,
header.site-header {

    background:
        color-mix(
            in srgb,
            var(--ec-surface)
            calc(
                var(
                    --ec-window-opacity
                )
                *
                100%
            ),
            transparent
        );

    backdrop-filter:
        blur(
            var(
                --ec-glass-blur
            )
        )
        saturate(145%);

    -webkit-backdrop-filter:
        blur(
            var(
                --ec-glass-blur
            )
        )
        saturate(145%);

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            .7
        );

    box-shadow:
        0 8px 35px
        rgba(
            24,
            36,
            50,
            .07
        );
}


.ec-announcement,
.ec-announcement-bar {

    background:
        linear-gradient(
            90deg,
            #111820,
            #202d3b
        );

    color: #fff;
}


/* =========================================================
   LINKS / BUTTONS
   ========================================================= */

button,
.button,
input[
    type="submit"
],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {

    border-radius:
        10px !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease,
        border-color .16s ease;
}


button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {

    transform:
        translateY(-1px);
}


/* =========================================================
   CATALOGUE BACKGROUND
   ========================================================= */

.ec-catalogue {

    padding-top:
        clamp(
            24px,
            4vw,
            58px
        );
}


/* =========================================================
   LARGE CATEGORY HERO WINDOW
   ========================================================= */

.ec-catalogue-hero {

    position: relative;

    min-height:
        var(
            --ec-catalogue-hero-height,
            430px
        );

    margin-bottom:
        34px;

    overflow: hidden;

    border-radius:
        var(
            --ec-catalogue-hero-radius,
            24px
        );

    background:

        radial-gradient(
            circle at 8% 10%,
            rgba(
                0,
                103,
                192,
                .32
            ),
            transparent 42%
        ),

        radial-gradient(
            circle at 78% 18%,
            rgba(
                107,
                83,
                255,
                .22
            ),
            transparent 32%
        ),

        linear-gradient(
            135deg,
            #111820,
            #1d2b3a 62%,
            #18212a
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .12
        );

    box-shadow:
        0 35px 90px
        rgba(
            19,
            30,
            45,
            .20
        );

    isolation: isolate;
}


.ec-catalogue-hero::before {

    content: "";

    position: absolute;

    width: 400px;

    height: 400px;

    left: -170px;

    bottom: -230px;

    border-radius: 50%;

    background:
        var(--ec-accent);

    opacity: .2;

    filter:
        blur(65px);

    z-index: -1;
}


.ec-catalogue-hero-copy {

    padding:
        clamp(
            38px,
            6vw,
            90px
        );

    justify-content: center;
}


.ec-catalogue-kicker {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    width: max-content;

    padding:
        7px 11px;

    margin-bottom: 18px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .14
        );

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            .07
        );

    color:
        rgba(
            255,
            255,
            255,
            .78
        );

    backdrop-filter:
        blur(14px);

    font-size: 10px;
}


.ec-catalogue-kicker::before {

    content: "";

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        #6dc6ff;

    box-shadow:
        0 0 15px
        rgba(
            109,
            198,
            255,
            .8
        );
}


.ec-catalogue-hero h1 {

    max-width: 900px;

    font-family:
        var(--ec-font-stack);

    font-size:
        clamp(
            48px,
            6vw,
            88px
        );

    font-weight: 720;

    line-height: .96;

    letter-spacing:
        -.055em;
}


.ec-catalogue-description {

    max-width: 750px;

    margin-top: 24px;

    color:
        rgba(
            255,
            255,
            255,
            .72
        );

    font-size:
        clamp(
            15px,
            1.25vw,
            19px
        );

    line-height: 1.65;
}


.ec-catalogue-hero-image {

    position: relative;

    min-height:
        var(
            --ec-catalogue-hero-height,
            430px
        );

    background:
        transparent;
}


.ec-catalogue-hero-image::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            #18232e 0%,
            transparent 35%
        );
}


.ec-catalogue-hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: .9;

    transform: scale(1.03);
}


/* =========================================================
   CATEGORY WINDOWS
   ========================================================= */

.ec-category-track {

    gap: 12px;

    padding:
        4px 2px 16px;
}


.ec-category-tile {

    min-height: 90px;

    grid-template-columns:
        72px
        minmax(
            0,
            1fr
        );

    padding: 10px;

    background:
        color-mix(
            in srgb,
            var(--ec-surface)
            90%,
            transparent
        );

    backdrop-filter:
        blur(
            var(
                --ec-glass-blur
            )
        );

    border-radius:
        var(
            --ec-category-tile-radius,
            16px
        );

    box-shadow:
        0 12px 35px
        rgba(
            35,
            47,
            60,
            .07
        );
}


.ec-category-tile:hover {

    transform:
        translateY(-4px);

    border-color:
        color-mix(
            in srgb,
            var(--ec-accent)
            35%,
            var(--ec-line)
        );

    box-shadow:
        0 18px 45px
        rgba(
            35,
            47,
            60,
            .12
        );
}


.ec-category-tile-media {

    width: 72px;

    height: 68px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #f7f9fb,
            #e9eff5
        );
}


/* =========================================================
   TOOLBAR WINDOW
   ========================================================= */

.ec-catalogue-toolbar {

    min-height: 68px;

    margin:
        0 0 22px;

    padding:
        10px 14px;

    background:
        color-mix(
            in srgb,
            var(--ec-surface)
            86%,
            transparent
        );

    backdrop-filter:
        blur(
            var(
                --ec-glass-blur
            )
        );

    border-radius: 16px;
}


.ec-filter-trigger,
.ec-sort-form select {

    border-radius:
        10px !important;

    background:
        rgba(
            255,
            255,
            255,
            .72
        ) !important;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.ec-catalogue-grid {

    gap:
        clamp(
            12px,
            1.35vw,
            22px
        );
}


/* =========================================================
   PRODUCT WINDOWS
   ========================================================= */

.ec-product-card {

    position: relative;

    overflow: hidden;

    padding: 10px;

    background:
        color-mix(
            in srgb,
            var(--ec-surface)
            92%,
            transparent
        );

    backdrop-filter:
        blur(
            calc(
                var(
                    --ec-glass-blur
                )
                *
                .65
            )
        );

    border-radius:
        var(
            --ec-card-radius,
            18px
        );

    box-shadow:
        0 16px 45px
        rgba(
            34,
            47,
            61,
            .075
        );

    transition:
        transform .19s ease,
        box-shadow .19s ease,
        border-color .19s ease;
}


.ec-product-card::before {

    content: "";

    position: absolute;

    z-index: 0;

    top: -80px;

    right: -100px;

    width: 220px;

    height: 220px;

    border-radius: 50%;

    background:
        var(--ec-accent);

    opacity: .035;

    filter:
        blur(30px);

    pointer-events: none;
}


.ec-product-card > * {

    position: relative;

    z-index: 1;
}


.ec-product-card:hover {

    transform:
        translateY(
            calc(
                var(--ec-card-lift)
                *
                -1
            )
        );

    border-color:
        color-mix(
            in srgb,
            var(--ec-accent)
            28%,
            var(--ec-line)
        );

    box-shadow:
        0 24px 60px
        rgba(
            31,
            43,
            58,
            .14
        );
}


.ec-product-card-image,
.ec-product-card-media {

    overflow: hidden;

    border-radius:
        var(
            --ec-card-image-radius,
            14px
        );

    background:
        linear-gradient(
            145deg,
            #f7f9fb,
            #eaf0f6
        );
}


.ec-product-card img {

    transition:
        transform .28s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        );
}


.ec-product-card:hover img {

    transform:
        scale(1.025);
}


/* =========================================================
   BADGES
   ========================================================= */

.ec-product-badge {

    border-radius:
        999px !important;

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 5px 15px
        rgba(
            18,
            27,
            38,
            .10
        );
}


/* =========================================================
   FILTER WINDOW
   ========================================================= */

.ec-filter-panel {

    margin:
        12px;

    height:
        calc(
            100%
            -
            24px
        );

    border-radius:
        var(
            --ec-window-radius,
            20px
        );

    background:
        rgba(
            255,
            255,
            255,
            .94
        );

    backdrop-filter:
        blur(
            var(
                --ec-glass-blur
            )
        );
}


/* =========================================================
   CATEGORY SEO WINDOW
   ========================================================= */

.ec-category-seo {

    padding:
        clamp(
            65px,
            8vw,
            120px
        )
        0
        20px;
}


.ec-category-seo-window {

    width:
        min(
            100%,
            var(
                --ec-seo-window-width,
                980px
            )
        );

    margin-inline: auto;

    overflow: hidden;

    border-radius:
        var(
            --ec-window-radius,
            20px
        );

    background:
        color-mix(
            in srgb,
            var(--ec-surface)
            88%,
            transparent
        );

    backdrop-filter:
        blur(
            var(
                --ec-glass-blur
            )
        );
}


.ec-category-seo-copy {

    padding:
        clamp(
            30px,
            5vw,
            65px
        );
}


.ec-category-seo-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    color:
        var(--ec-accent);

    font-size: 10px;

    font-weight: 750;

    letter-spacing: .09em;

    text-transform:
        uppercase;
}


.ec-category-seo-window h2 {

    max-width: 800px;

    margin:
        0 0 22px;

    color:
        var(--ec-ink);

    font-size:
        clamp(
            30px,
            4vw,
            52px
        );

    line-height: 1.02;

    letter-spacing:
        -.045em;
}


.ec-category-seo-body {

    max-width: 800px;

    color:
        #4c5662;

    font-size:
        clamp(
            14px,
            1.1vw,
            17px
        );

    line-height: 1.85;
}


.ec-category-seo-body p {

    margin:
        0 0 1.35em;
}


.ec-category-faq {

    padding:
        clamp(
            30px,
            5vw,
            65px
        );

    border-top:
        1px solid
        var(--ec-line);

    background:
        rgba(
            246,
            249,
            252,
            .6
        );
}


.ec-faq-list {

    margin-top: 20px;
}


.ec-faq-item {

    margin-bottom: 8px;

    overflow: hidden;

    border:
        1px solid
        var(--ec-line);

    border-radius: 12px;

    background:
        rgba(
            255,
            255,
            255,
            .75
        );
}


.ec-faq-item summary {

    position: relative;

    padding:
        17px 48px 17px 18px;

    cursor: pointer;

    list-style: none;

    color:
        var(--ec-ink);

    font-size: 14px;

    font-weight: 700;
}


.ec-faq-item summary::-webkit-details-marker {

    display: none;
}


.ec-faq-item summary::after {

    content: "+";

    position: absolute;

    top: 50%;

    right: 18px;

    transform:
        translateY(-50%);

    color:
        var(--ec-accent);

    font-size: 21px;

    font-weight: 400;
}


.ec-faq-item[open]
summary::after {

    content: "−";
}


.ec-faq-answer {

    padding:
        0 18px 18px;

    color:
        var(--ec-muted);

    font-size: 13px;

    line-height: 1.7;
}


.ec-faq-answer p:last-child {

    margin-bottom: 0;
}


/* =========================================================
   SINGLE PRODUCT
   ========================================================= */

.ec-product-gallery-column
.woocommerce-product-gallery__image {

    overflow: hidden;

    border-radius:
        var(
            --ec-window-radius
        );

    background:
        rgba(
            255,
            255,
            255,
            .9
        );

    box-shadow:
        0 25px 65px
        rgba(
            31,
            43,
            58,
            .09
        );
}


.ec-product-summary-column {

    padding:
        clamp(
            20px,
            3vw,
            36px
        );

    border:
        1px solid
        var(--ec-line);

    border-radius:
        var(
            --ec-window-radius
        );

    background:
        rgba(
            255,
            255,
            255,
            .86
        );

    backdrop-filter:
        blur(
            var(
                --ec-glass-blur
            )
        );

    box-shadow:
        0 24px 65px
        rgba(
            31,
            43,
            58,
            .10
        );
}


/* =========================================================
   FOOTER
   ========================================================= */

.ec-site-footer {

    width:
        min(
            calc(
                100%
                -
                28px
            ),
            var(
                --ec-container-width
            )
        );

    margin:
        50px auto 14px;

    overflow: hidden;

    border-radius:
        var(
            --ec-window-radius
        );

    background:
        linear-gradient(
            135deg,
            #151c24,
            #202d3a
        );

    box-shadow:
        0 30px 70px
        rgba(
            20,
            30,
            42,
            .16
        );
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (
    max-width: 800px
) {

    .ec-container {

        width:
            min(
                calc(
                    100%
                    -
                    24px
                ),
                var(
                    --ec-container-width
                )
            );
    }


    .ec-catalogue-hero {

        min-height: 0;

        border-radius:
            18px;
    }


    .ec-catalogue-hero-copy {

        padding:
            42px 26px;
    }


    .ec-catalogue-hero h1 {

        font-size:
            clamp(
                42px,
                13vw,
                64px
            );
    }


    .ec-catalogue-hero-image {

        min-height: 250px;
    }


    .ec-category-tile {

        min-width: 175px;
    }


    .ec-catalogue-toolbar {

        padding:
            8px;
    }


    .ec-category-seo {

        padding-top: 55px;
    }


    .ec-category-seo-window {

        border-radius:
            16px;
    }


    .ec-product-summary-column {

        border-radius:
            16px;
    }


    .ec-site-footer {

        width:
            calc(
                100%
                -
                20px
            );

        margin-bottom:
            10px;

        border-radius:
            16px;
    }

}
