/* =========================================================
   RAIN SPREE
   CUSTOMER FAVORITES
   WHAT EVERYONE'S LOVING
   ========================================================= */

.rs-home-favorites {
    width: 100%;
    padding: 34px 0 42px;
    background: #ffffff;
    box-sizing: border-box;
}

.rs-home-favorites *,
.rs-home-favorites *::before,
.rs-home-favorites *::after {
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.rs-home-favorites__container {
    width: calc(100% - 64px);
    max-width: 1400px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.rs-home-favorites__header {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.rs-home-favorites__eyebrow {
    display: block;
    margin-bottom: 5px;

    color: #347437;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.rs-home-favorites__header h2 {
    margin: 0;

    color: #29472d;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 600;

    line-height: 1.05;
}

.rs-home-favorites__header p {
    margin: 7px auto 0;

    color: #737973;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   FAVORITES ROWS
   ========================================================= */

.rs-home-favorites__rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =========================================================
   CATEGORY ROW
   ========================================================= */

.rs-favorite-row {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(210px, 1.05fr)
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    width: 100%;

    padding: 8px;

    border-radius: 22px;

    overflow: hidden;

    border: 1px solid rgba(40, 60, 45, .08);

    box-shadow:
        0 12px 35px rgba(40, 60, 45, .07);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.rs-favorite-row:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 42px rgba(40, 60, 45, .10);
}


/* =========================================================
   CATEGORY COLORS
   ========================================================= */

.rs-favorite-row--wellness {
    background:
        linear-gradient(
            135deg,
            #e8f4ce 0%,
            #f4fae9 48%,
            #e4f0ce 100%
        );
}

.rs-favorite-row--digital {
    background:
        linear-gradient(
            135deg,
            #e9ddff 0%,
            #f7f1ff 48%,
            #e5d7ff 100%
        );
}

.rs-favorite-row--pod {
    background:
        linear-gradient(
            135deg,
            #ffe2c4 0%,
            #fff4e8 48%,
            #ffdcb9 100%
        );
}


/* =========================================================
   INTRO / HAND PANEL
   ========================================================= */

.rs-favorite-intro {
    position: relative;

    min-height: 220px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 17px;

    background:
        rgba(255,255,255,.38);

    border:
        1px solid rgba(255,255,255,.72);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        inset 0 -10px 30px rgba(255,255,255,.15),
        0 8px 22px rgba(40,60,40,.04);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   CENTERED HAND
   ========================================================= */

.rs-favorite-hand {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 8px;

    pointer-events: none;
}

.rs-favorite-hand img {
    display: block;

    width: 92%;
    max-width: 280px;

    height: 100%;

    object-fit: contain;
    object-position: center;

    margin: 0 auto;
    padding: 0;

    opacity: .96;

    filter:
        drop-shadow(
            0 10px 14px rgba(0,0,0,.10)
        );

    transform:
        translateY(0)
        scale(1);

    transition:
        transform .4s ease,
        filter .4s ease,
        opacity .4s ease;
}


/* =========================================================
   HAND HOVER
   ========================================================= */

.rs-favorite-row:hover
.rs-favorite-hand img {

    transform:
        translateY(-5px)
        scale(1.035);

    opacity: 1;

    filter:
        drop-shadow(
            0 15px 20px rgba(0,0,0,.14)
        );
}


/* =========================================================
   PRODUCT AREA
   ========================================================= */

.rs-favorite-products {
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.rs-favorite-product-card {
    position: relative;

    min-width: 0;

    margin: 0 !important;

    padding: 0 !important;

    border-radius: 16px;

    overflow: hidden;

    background:
        rgba(255,255,255,.78);

    border:
        1px solid rgba(255,255,255,.85);

    box-shadow:
        0 7px 20px rgba(40,60,40,.07);

    transition:
        transform .28s ease,
        box-shadow .28s ease;
}

.rs-favorite-product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 30px rgba(40,60,40,.13);
}


/* =========================================================
   PRODUCT LINK
   ========================================================= */

.rs-favorite-product-link {
    position: relative;

    display: flex;

    flex-direction: column;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.rs-favorite-product-media {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #ffffff;
}

.rs-favorite-product-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .4s ease;
}

.rs-favorite-product-card:hover
.rs-favorite-product-media img {
    transform: scale(1.045);
}


/* =========================================================
   SALE BADGE
   ========================================================= */

.rs-favorite-sale {
    position: absolute;

    top: 8px;
    left: 8px;

    z-index: 4;

    padding: 4px 8px;

    border-radius: 999px;

    background: #347437;

    color: #ffffff;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.rs-favorite-product-info {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 9px 10px 10px;
}

.rs-favorite-product-info h4 {
    display: -webkit-box;

    margin: 0 0 5px;

    overflow: hidden;

    color: #263b2a;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.3;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rs-favorite-product-price {
    margin-top: auto;

    color: #29472d;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: 800;
}

.rs-favorite-product-price del {
    opacity: .5;
}

.rs-favorite-product-price ins {
    text-decoration: none;
}


/* =========================================================
   RATINGS
   ========================================================= */

.rs-favorite-rating {
    display: flex;

    align-items: center;

    gap: 4px;

    margin-top: 5px;
}

.rs-favorite-stars {
    font-size: 9px;
    letter-spacing: 0;

    color: #d39b19;
}

.rs-favorite-rating small {
    color: #7b817c;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 8px;
}


/* =========================================================
   HOVER HAND ON PRODUCT
   ========================================================= */

.rs-favorite-product-hand {
    position: absolute;

    right: -15px;
    bottom: -15px;

    z-index: 5;

    width: 95px;
    height: 95px;

    display: flex;

    align-items: center;
    justify-content: center;

    pointer-events: none;

    opacity: 0;

    transform:
        translate(18px, 18px)
        rotate(-8deg)
        scale(.82);

    transition:
        opacity .3s ease,
        transform .4s cubic-bezier(.2,.8,.2,1);
}

.rs-favorite-product-hand img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 7px 10px rgba(0,0,0,.13)
        );
}

.rs-favorite-product-card:hover
.rs-favorite-product-hand {
    opacity: 1;

    transform:
        translate(0, 0)
        rotate(-4deg)
        scale(1);
}


/* =========================================================
   CATEGORY-SPECIFIC HAND TINT / SHADOW
   ========================================================= */

.rs-favorite-row--wellness
.rs-favorite-product-hand img {
    filter:
        drop-shadow(
            0 7px 10px rgba(52,116,55,.18)
        );
}

.rs-favorite-row--digital
.rs-favorite-product-hand img {
    filter:
        drop-shadow(
            0 7px 10px rgba(112,69,182,.20)
        );
}

.rs-favorite-row--pod
.rs-favorite-product-hand img {
    filter:
        drop-shadow(
            0 7px 10px rgba(210,91,24,.20)
        );
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.rs-favorite-empty {
    grid-column: 1 / -1;

    min-height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(255,255,255,.65);

    color: #777d78;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 11px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .rs-home-favorites__container {
        width: calc(100% - 36px);
    }

    .rs-favorite-row {
        grid-template-columns:
            190px
            repeat(4, minmax(0, 1fr));

        gap: 8px;

        padding: 7px;
    }

    .rs-favorite-intro {
        min-height: 190px;
    }

    .rs-favorite-hand img {
        width: 96%;
    }

    .rs-favorite-products {
        gap: 8px;
    }

    .rs-favorite-product-info {
        padding: 8px;
    }

    .rs-favorite-product-hand {
        width: 75px;
        height: 75px;
    }

}


/* =========================================================
   MOBILE
   KEEP SAME DESKTOP COMPOSITION
   ONLY SCALE DOWN
   ========================================================= */

@media (max-width: 767px) {

    .rs-home-favorites {
        padding: 24px 0 30px;
        overflow: hidden;
    }

    .rs-home-favorites__container {
        width: calc(100% - 16px);
        max-width: 1400px;
        margin: 0 auto;
    }

    .rs-home-favorites__header {
        margin-bottom: 16px;
    }

    .rs-home-favorites__eyebrow {
        font-size: 8px;
        letter-spacing: 1.4px;
    }

    .rs-home-favorites__header h2 {
        font-size: 27px;
        line-height: 1.05;
    }

    .rs-home-favorites__header p {
        font-size: 9px;
    }


    /* =====================================================
       KEEP EACH CATEGORY AS ONE HORIZONTAL ROW
       ===================================================== */

    .rs-favorite-row {

        display: grid;

        /*
         * SAME STRUCTURE AS DESKTOP:
         *
         * HAND | PRODUCT | PRODUCT | PRODUCT | PRODUCT
         */

        grid-template-columns:
            125px
            repeat(4, minmax(0, 1fr));

        gap: 6px;

        padding: 5px;

        border-radius: 15px;

        width: 100%;

        min-width: 0;
    }


    /* =====================================================
       HAND PANEL
       ===================================================== */

    .rs-favorite-intro {

        min-height: 125px;
        height: 125px;

        border-radius: 11px;
    }

    .rs-favorite-hand {

        width: 100%;
        height: 100%;

        padding: 3px;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    .rs-favorite-hand img {

        width: 100%;
        max-width: 125px;

        height: 100%;

        object-fit: contain;
        object-position: center;

        margin: 0 auto;
    }


    /* =====================================================
       PRODUCTS — KEEP FOUR IN ONE ROW
       ===================================================== */

    .rs-favorite-products {

        min-width: 0;

        display: grid;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 5px;
    }


    /* =====================================================
       PRODUCT CARD
       ===================================================== */

    .rs-favorite-product-card {

        min-width: 0;

        width: 100%;

        border-radius: 10px;
    }


    .rs-favorite-product-media {

        aspect-ratio: 1 / 1;

        width: 100%;
    }


    .rs-favorite-product-info {

        padding: 5px;
    }


    .rs-favorite-product-info h4 {

        font-size: 8px;

        line-height: 1.25;

        margin-bottom: 3px;
    }


    .rs-favorite-product-price {

        font-size: 8px;
    }


    .rs-favorite-stars {

        font-size: 6px;
    }


    .rs-favorite-rating {

        gap: 2px;
        margin-top: 2px;
    }


    .rs-favorite-rating small {

        font-size: 6px;
    }


    /* =====================================================
       HOVER HAND
       ===================================================== */

    .rs-favorite-product-hand {

        width: 48px;
        height: 48px;

        right: -7px;
        bottom: -7px;
    }

}

/*==================================================*
 * CUSTOMER FAVORITES
 * GLOBAL SECTION TYPOGRAPHY
 *==================================================*/

.rs-favorites-header,
.rs-home-favorites__header,
.rs-favorites-heading {
    text-align: center;
}


/* Eyebrow */

.rs-favorites-eyebrow,
.rs-home-favorites__eyebrow,
.rs-favorites-kicker {

    display: inline-block;

    margin-bottom: 10px;

    font-family: var(--rs-font-body);

    font-size: 11px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--rs-primary);
}


/* Main heading */

.rs-favorites-header h2,
.rs-home-favorites__header h2,
.rs-favorites-heading h2 {

    margin: 0 0 10px;

    font-family: var(--rs-font-heading);

    font-size: 2.8rem;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.01em;

    color: var(--rs-primary);
}


/* Description */

.rs-favorites-header p,
.rs-home-favorites__header p,
.rs-favorites-heading p {

    max-width: 720px;

    margin: 0 auto;

    font-family: var(--rs-font-body);

    font-size: 14px;

    line-height: 1.7;

    font-weight: 400;

    color: var(--rs-text-light);
}


/*==================================================*
 * MOBILE
 *==================================================*/

@media (max-width: 768px) {

    .rs-favorites-eyebrow,
    .rs-home-favorites__eyebrow,
    .rs-favorites-kicker {

        font-size: 9px;

        letter-spacing: 0.16em;
    }

    .rs-favorites-header h2,
    .rs-home-favorites__header h2,
    .rs-favorites-heading h2 {

        font-size: 2.2rem;

        line-height: 1.2;
    }

    .rs-favorites-header p,
    .rs-home-favorites__header p,
    .rs-favorites-heading p {

        font-size: 13px;

        line-height: 1.6;
    }

}