/* ============================================================
                RAY STUDIO - CASUAL COLLECTION
============================================================ */


/* ============================================================
                CASUAL COLORS
============================================================ */

:root {

    --casual-background: #fbfaf6;

    --casual-section: #f1eadf;

    --casual-soft: #e8dfd1;

    --casual-white: #ffffff;

    --casual-brown: #59463b;

    --casual-dark: #3f332d;

    --casual-text: #77675e;

    --casual-accent: #9b7658;

    --casual-green: #7e8976;

    --casual-border:
        rgba(89, 70, 59, 0.12);

    --casual-shadow:
        0 14px 34px
        rgba(63, 51, 45, 0.09);

}


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

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    color:
        var(--casual-text);

    background:
        var(--casual-background);

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

}


img {

    max-width: 100%;

}


button,
a {

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

}


/* ============================================================
                CASUAL BANNER SLIDER
============================================================ */

.collection-slider {

    position: relative;

    width: 100%;

    /*
        Recommended Casual banners:
        1920 x 600 px
    */

    aspect-ratio:
        1920 / 600;

    overflow: hidden;

    background:
        var(--casual-section);

}


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

.collection-slide {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.9s ease,
        visibility 0.9s ease;

}


.collection-slide.active-slide {

    opacity: 1;

    visibility: visible;

}


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

.collection-slide img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center;

    background:
        var(--casual-section);

}


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

.slider-arrow {

    position: absolute;

    top: 50%;

    z-index: 10;

    width: 54px;

    height: 36px;

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

    border-radius: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--casual-dark);

    background:
        rgba(255, 255, 255, 0.82);

    backdrop-filter:
        blur(7px);

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        width 0.3s ease,
        color 0.3s ease,
        background 0.3s ease;

}


.slider-arrow:hover {

    width: 62px;

    color:
        #ffffff;

    background:
        var(--casual-brown);

}


.slider-arrow-left {

    left: 24px;

}


.slider-arrow-right {

    right: 24px;

}


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

.slider-dots {

    position: absolute;

    left: 50%;

    bottom: 17px;

    z-index: 10;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        7px
        10px;

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.62);

    backdrop-filter:
        blur(5px);

    transform:
        translateX(-50%);

}


.slider-dot {

    width: 7px;

    height: 7px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(89, 70, 59, 0.3);

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease;

}


.slider-dot.active-dot {

    width: 22px;

    border-radius: 20px;

    background:
        var(--casual-brown);

}


/* ============================================================
                CASUAL INTRO
============================================================ */

.casual-intro-section {

    position: relative;

    padding:
        65px
        7%;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #fbfaf6,
            #eee5d9
        );

}


/* ============================================================
                INTRO LAYOUT
============================================================ */

.casual-intro-inner {

    width: 100%;

    max-width: 1300px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        100px
        1fr
        140px;

    align-items: center;

    gap: 45px;

}


/* ============================================================
                SIDE DECORATION
============================================================ */

.casual-side-line {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    opacity: 0;

    transform:
        translateY(20px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.casual-side-line span {

    width: 1px;

    height: 100px;

    background:
        rgba(89, 70, 59, 0.22);

}


.casual-side-line i {

    color:
        var(--casual-accent);

    font-size: 20px;

    animation:
        casualSun
        10s linear infinite;

}


/* ============================================================
                INTRO TEXT
============================================================ */

.casual-intro-content {

    max-width: 720px;

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity 0.8s ease 0.1s,
        transform 0.8s ease 0.1s;

}


.casual-eyebrow {

    margin-bottom: 12px;

    color:
        var(--casual-green);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;

}


.casual-intro-content h1 {

    color:
        var(--casual-dark);

    font-family:
        "Cormorant Garamond",
        serif;

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

    font-weight: 600;

    line-height: 0.95;

}


.casual-intro-content h1 em {

    display: block;

    margin-top: 6px;

    color:
        var(--casual-accent);

    font-weight: 500;

}


/* ============================================================
                INTRO DESCRIPTION
============================================================ */

.casual-description {

    max-width: 570px;

    margin-top: 24px;

    color:
        var(--casual-text);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 20px;

    line-height: 1.6;

}


/* ============================================================
                DISCOVER BUTTON
============================================================ */

.casual-discover-button {

    margin-top: 25px;

    padding:
        11px
        18px;

    border:
        1px solid
        var(--casual-brown);

    border-radius: 50px;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    color:
        var(--casual-brown);

    background:
        transparent;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1px;

    text-decoration: none;

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

}


.casual-discover-button:hover {

    color:
        #ffffff;

    background:
        var(--casual-brown);

    transform:
        translateY(-2px);

}


/* ============================================================
                DAILY EDIT LABEL
============================================================ */

.casual-season-label {

    width: 110px;

    height: 110px;

    border:
        1px dashed
        rgba(89, 70, 59, 0.4);

    border-radius: 50%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color:
        var(--casual-brown);

    background:
        rgba(255, 255, 255, 0.35);

    transform:
        rotate(7deg);

    opacity: 0;

    transition:
        opacity 0.9s ease 0.2s,
        transform 0.9s ease 0.2s;

}


.casual-season-label span {

    font-size: 8px;

    letter-spacing: 2px;

}


.casual-season-label strong {

    margin:
        1px
        0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 23px;

}


.casual-season-label small {

    font-size: 7px;

    letter-spacing: 3px;

}


/* ============================================================
                INTRO VISIBLE
============================================================ */

.casual-visible
.casual-side-line,

.casual-visible
.casual-intro-content {

    opacity: 1;

    transform:
        translateY(0);

}


.casual-visible
.casual-season-label {

    opacity: 1;

    transform:
        rotate(7deg);

}


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

.products-section {

    width: 100%;

    padding:
        52px
        7%
        60px;

    background:
        var(--casual-section);

}


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

.section-heading {

    width: 100%;

    max-width: 900px;

    margin:
        0 auto
        42px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    text-align: center;

}


.heading-small-line {

    width: 75px;

    height: 1px;

    background:
        rgba(89, 70, 59, 0.25);

}


.heading-content p {

    margin-bottom: 6px;

    color:
        var(--casual-green);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2.8px;

}


.heading-content h2 {

    color:
        var(--casual-dark);

    font-family:
        "Cormorant Garamond",
        serif;

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

    line-height: 1;

}


.heading-content span {

    margin-top: 8px;

    display: block;

    color:
        var(--casual-text);

    font-size: 10px;

    letter-spacing: 0.8px;

}


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

.product-grid {

    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    display: grid;

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

    gap:
        30px
        24px;

}


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

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

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


/* ============================================================
                CRAFT 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:
        75px
        20px;

    text-align: center;

}


.no-products-message i {

    margin-bottom: 14px;

    color:
        var(--casual-green);

    font-size: 34px;

}


.no-products-message h3 {

    color:
        var(--casual-dark);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 30px;

}


.no-products-message p {

    margin-top: 7px;

    font-size: 12px;

}


/* ============================================================
                ANIMATIONS
============================================================ */

@keyframes casualSun {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


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

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


    .casual-intro-inner {

        grid-template-columns:
            70px
            1fr
            110px;

        gap: 25px;

    }


    .product-grid {

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

    }


}


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

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


    .slider-arrow {

        width: 40px;

        height: 30px;

        font-size: 11px;

    }


    .slider-arrow-left {

        left: 8px;

    }


    .slider-arrow-right {

        right: 8px;

    }


    .slider-dots {

        bottom: 8px;

    }


    .casual-intro-section {

        padding:
            45px
            22px;

    }


    .casual-intro-inner {

        display: block;

    }


    .casual-side-line {

        display: none;

    }


    .casual-season-label {

        margin-top: 30px;

        width: 90px;

        height: 90px;

    }


    .products-section {

        padding:
            40px
            12px
            45px;

    }


    .heading-small-line {

        display: none;

    }


}


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

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


    .casual-intro-content h1 {

        font-size: 46px;

    }


    .casual-description {

        font-size: 18px;

    }


    .product-grid {

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

        gap:
            18px
            9px;

    }


}


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

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


    .collection-slide,
    .casual-intro-content,
    .casual-side-line,
    .casual-season-label {

        transition: none;

    }


    .casual-side-line i {

        animation: none;

    }


}