/* ============================================================
                RAY STUDIO - NEW ARRIVALS PAGE
============================================================ */


/* ============================================================
                WEBSITE COLORS
============================================================ */

:root {

    --ray-primary-background: #eee0cd;

    --ray-body-background: #fffdf9;

    --ray-section-background: #f8f2ea;

    --ray-heading-color: #4b3328;

    --ray-body-color: #6e5a50;

    --ray-hover-color: #a8743a;

    --ray-white-color: #ffffff;

    --ray-border-color:
        rgba(75, 51, 40, 0.14);

    --ray-card-shadow:
        0 15px 40px
        rgba(75, 51, 40, 0.10);
}


/* ============================================================
                GENERAL SETTINGS
============================================================ */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


html {

    scroll-behavior: smooth;
}


body {

    margin: 0;

    color: var(--ray-body-color);

    background-color:
        var(--ray-body-background);

    font-family:
        "Poppins",
        sans-serif;
}


img {

    max-width: 100%;
}


button,
a,
input {

    font-family:
        "Poppins",
        sans-serif;
}



/* ============================================================
                TOP BANNER SLIDER

        Designed for approximately:
        1925 x 400 px banners
============================================================ */

.collection-slider {

    position: relative;

    width: 100%;

    /*
        IMPORTANT:
        The banner height now follows the
        real 1925 x 400 image ratio.

        No fixed 430px / 500px height.
    */

    aspect-ratio:
        1925 / 400;

    overflow: hidden;

    background-color:
        var(--ray-section-background);

    z-index: 1;
}



/* ============================================================
                INDIVIDUAL SLIDE
============================================================ */

.collection-slide {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}



/* ============================================================
                ACTIVE SLIDE
============================================================ */

.collection-slide.active-slide {

    opacity: 1;

    visibility: visible;
}



/* ============================================================
                BANNER IMAGE
============================================================ */

.collection-slide img {

    width: 100%;

    height: 100%;

    display: block;

    /*
        CONTAIN = DON'T CROP IMAGE
    */

    object-fit: contain;

    object-position: center;

    background-color:
        var(--ray-section-background);
}



/* ============================================================
                SLIDER ARROWS
============================================================ */

.slider-arrow {

    position: absolute;

    top: 50%;

    z-index: 10;

    width: 48px;

    height: 48px;

    border:
        1px solid
        rgba(255, 255, 255, 0.6);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--ray-white-color);

    background:
        rgba(75, 51, 40, 0.28);

    backdrop-filter:
        blur(5px);

    font-size: 15px;

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.slider-arrow:hover {

    background:
        rgba(75, 51, 40, 0.8);
}


.slider-arrow-left {

    left: 24px;
}


.slider-arrow-right {

    right: 24px;
}



/* ============================================================
                SLIDER DOTS
============================================================ */

.slider-dots {

    position: absolute;

    left: 50%;

    bottom: 18px;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    transform:
        translateX(-50%);
}


.slider-dot {

    width: 9px;

    height: 9px;

    padding: 0;

    border:
        1px solid
        var(--ray-white-color);

    border-radius: 50%;

    background:
        transparent;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.slider-dot.active-dot {

    background:
        var(--ray-white-color);

    transform:
        scale(1.3);
}



/* ============================================================
                PRODUCTS SECTION
============================================================ */

.products-section {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: none;

    margin: 0;

    padding:
        35px
        7%
        50px;

    background-color:
        var(--ray-section-background);
}



/* ============================================================
                PRODUCTS HEADING
============================================================ */

.section-heading {

    max-width: 720px;

    margin:
        0 auto
        42px;

    text-align: center;
}


.section-heading p {

    margin-bottom: 8px;

    color:
        var(--ray-hover-color);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.section-heading h2 {

    color:
        var(--ray-heading-color);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(
            36px,
            4vw,
            50px
        );

    font-weight: 700;

    line-height: 1.1;
}



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

.product-grid {

    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        28px
        22px;
}



/* ============================================================
                CRAFT ANIMATION
                MUST USE FULL GRID WIDTH
============================================================ */

.product-grid
.craft-animation-section {

    grid-column:
        1 / -1 !important;

    width: 100%;

    max-width: none;
}



/* ============================================================
                NO PRODUCTS MESSAGE
============================================================ */

.no-products-message {

    grid-column:
        1 / -1;

    padding:
        70px
        20px;

    text-align: center;
}


.no-products-message i {

    margin-bottom: 15px;

    color:
        var(--ray-hover-color);

    font-size: 34px;
}


.no-products-message h3 {

    margin-bottom: 8px;

    color:
        var(--ray-heading-color);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 30px;

    font-weight: 700;
}


.no-products-message p {

    color:
        var(--ray-body-color);

    font-size: 12px;
}



/* ============================================================
                LARGE TABLET
============================================================ */

@media screen and (max-width: 1100px) {


    /* -----------------------------------------
                    PRODUCT GRID
    ----------------------------------------- */

    .product-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    /* -----------------------------------------
                    SLIDER ARROWS
    ----------------------------------------- */

    .slider-arrow {

        width: 42px;

        height: 42px;
    }


}



/* ============================================================
                TABLET
============================================================ */

@media screen and (max-width: 800px) {


    /* -----------------------------------------
                    PRODUCTS
    ----------------------------------------- */

    .products-section {

        padding:
            30px
            22px
            45px;
    }


    /* -----------------------------------------
                    SLIDER ARROWS
    ----------------------------------------- */

    .slider-arrow-left {

        left: 14px;
    }


    .slider-arrow-right {

        right: 14px;
    }


    .slider-arrow {

        width: 38px;

        height: 38px;

        font-size: 13px;
    }


    /* -----------------------------------------
                    SLIDER DOTS
    ----------------------------------------- */

    .slider-dots {

        bottom: 12px;
    }


}



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

@media screen and (max-width: 550px) {


    /* -----------------------------------------
                    BANNER
    ----------------------------------------- */

    .collection-slider {

        /*
            Still keeps the same image ratio.
            We do NOT create a fixed height.
        */

        aspect-ratio:
            1925 / 400;
    }


    /* -----------------------------------------
                    ARROWS
    ----------------------------------------- */

    .slider-arrow {

        width: 32px;

        height: 32px;

        font-size: 11px;
    }


    .slider-arrow-left {

        left: 7px;
    }


    .slider-arrow-right {

        right: 7px;
    }


    /* -----------------------------------------
                    DOTS
    ----------------------------------------- */

    .slider-dots {

        bottom: 8px;

        gap: 6px;
    }


    .slider-dot {

        width: 7px;

        height: 7px;
    }


    /* -----------------------------------------
                    PRODUCTS SECTION
    ----------------------------------------- */

    .products-section {

        padding:
            25px
            12px
            38px;
    }


    /* -----------------------------------------
                    SECTION HEADING
    ----------------------------------------- */

    .section-heading {

        margin-bottom: 30px;
    }


    .section-heading h2 {

        font-size: 34px;
    }


    /* -----------------------------------------
                    PRODUCT GRID
    ----------------------------------------- */

    .product-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            18px
            10px;
    }
}



/* ============================================================
            VERY SMALL MOBILE
============================================================ */

@media screen and (max-width: 380px) {


    .products-section {

        padding-left: 8px;

        padding-right: 8px;
    }


    .product-grid {

        gap:
            14px
            7px;
    }
}



/* ============================================================
            REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {


    .collection-slide {

        transition: none;
    }


}