/* ============================================================
                RAY STUDIO - WEDDING COLLECTION
============================================================ */


/* ============================================================
                WEDDING COLORS
============================================================ */

:root {
    --wedding-background: #fffdf9;
    --wedding-section: #f8f2ea;
    --wedding-card: #ffffff;

    --wedding-brown: #4b3328;
    --wedding-text: #6e5a50;
    --wedding-gold: #a8743a;

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

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


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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

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

    color:
        var(--wedding-text);

    background:
        var(--wedding-background);
}


img {
    max-width: 100%;
}


button,
a {
    font-family:
        "Poppins",
        sans-serif;
}


/* ============================================================
                WEDDING BANNER SLIDER
============================================================ */

.collection-slider {
    position: relative;

    width: 100%;

    /*
        Wedding banners should be:
        1920 x 600 px
    */

    aspect-ratio: 1920 / 600;

    overflow: hidden;

    background:
        var(--wedding-section);
}


/* ============================================================
                INDIVIDUAL SLIDES
============================================================ */

.collection-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    visibility: hidden;

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


.collection-slide.active-slide {
    opacity: 1;

    visibility: visible;
}


/* ============================================================
                BANNER IMAGE - NO CROPPING
============================================================ */

.collection-slide img {
    width: 100%;
    height: 100%;

    display: block;

    /*
        IMPORTANT:
        contain shows the complete image.
        No model/text/button should be cropped.
    */

    object-fit: contain;

    object-position: center;

    background:
        var(--wedding-section);
}


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

.slider-arrow {
    position: absolute;

    top: 50%;

    z-index: 10;

    width: 48px;
    height: 48px;

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

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

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

    backdrop-filter:
        blur(5px);

    cursor: pointer;

    transform:
        translateY(-50%);

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


.slider-arrow:hover {
    background:
        rgba(75, 51, 40, 0.85);
}


.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 #ffffff;

    border-radius: 50%;

    background:
        transparent;

    cursor: pointer;

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


.slider-dot.active-dot {
    background:
        #ffffff;

    transform:
        scale(1.3);
}


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

.products-section {
    position: relative;

    width: 100%;

    margin: 0;

    padding:
        35px
        7%
        55px;

    background:
        var(--wedding-section);
}


/* ============================================================
                SECTION HEADING
============================================================ */

.section-heading {
    max-width: 720px;

    margin:
        0 auto
        42px;

    text-align: center;
}


.section-heading p {
    margin-bottom: 8px;

    color:
        var(--wedding-gold);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.section-heading h2 {
    color:
        var(--wedding-brown);

    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;
}


/* ============================================================
                SHARED PRODUCT CARD NOTE

    Wedding product-card styling is now controlled by:
    static/components/product-card.css

    Do not add page-specific product-card styles here.
============================================================ */


/* ============================================================
                CRAFT ANIMATION FULL 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(--wedding-gold);

    font-size: 34px;
}


.no-products-message h3 {
    margin-bottom: 8px;

    color:
        var(--wedding-brown);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 30px;

    font-weight: 700;
}


.no-products-message p {
    color:
        var(--wedding-text);

    font-size: 12px;
}


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

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

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

}


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

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

    .products-section {
        padding:
            30px
            22px
            45px;
    }


    .slider-arrow {
        width: 38px;
        height: 38px;

        font-size: 13px;
    }


    .slider-arrow-left {
        left: 14px;
    }


    .slider-arrow-right {
        right: 14px;
    }


    .slider-dots {
        bottom: 12px;
    }

}


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

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

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

    .collection-slider {
        aspect-ratio:
            1920 / 600;
    }


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

    .slider-arrow {
        width: 32px;
        height: 32px;

        font-size: 11px;
    }


    .slider-arrow-left {
        left: 7px;
    }


    .slider-arrow-right {
        right: 7px;
    }


    .slider-dots {
        bottom: 8px;

        gap: 6px;
    }


    .slider-dot {
        width: 7px;
        height: 7px;
    }


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

    .products-section {
        padding:
            25px
            12px
            38px;
    }


    .section-heading {
        margin-bottom: 30px;
    }


    .section-heading h2 {
        font-size: 34px;
    }


    /* --------------------------------------------------------
                    TWO CARDS PER ROW
    -------------------------------------------------------- */

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

        gap:
            18px
            10px;
    }


    /* --------------------------------------------------------
                    PRODUCT CARD
    -------------------------------------------------------- */

}


/* ============================================================
                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;
    }

}