/* =========================================================
   RAIN SPREE — SHOP BY CATEGORY
   CLEAN FINAL CSS
   8 CARDS / 4 COLUMNS DESKTOP / SQUARE CARDS
   Images are temporarily disabled. Re-enable later for PNGs.
   ========================================================= */

/* ---------------------------------------------------------
   SECTION
   --------------------------------------------------------- */
.rs-category-showcase {
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.rs-category-showcase *,
.rs-category-showcase *::before,
.rs-category-showcase *::after {
    box-sizing: border-box;
}

/* Keep Shop By Category aligned with the main content system. */
.rs-category-showcase__container {
    width: calc(100% - 32px);
    max-width: 900px;
    margin: 20px auto;
    padding: 26px;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.rs-category-showcase__header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.rs-category-showcase__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--rs-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rs-primary);
}

.rs-category-showcase__header h2 {
    margin: 0 0 10px;
    font-family: var(--rs-font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--rs-primary);
    letter-spacing: -.01em;
}

.rs-category-showcase__header p {
    margin: 0 auto 12px;
    max-width: 720px;
    font-family: var(--rs-font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--rs-text-light);
}

.rs-category-showcase__values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    font-family: var(--rs-font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--rs-primary);
}

.rs-category-showcase__values b {
    font-size: 10px;
    color: var(--rs-secondary);
}

/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */
.rs-category-showcase .rs-category-grid {
    display: grid;

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

    gap: 16px;

    width: 100%;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------
   CARD — PERFECT SQUARE
   --------------------------------------------------------- */
.rs-category-showcase .rs-category-card {
    position: relative;
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;

    overflow: hidden;

    border: 0;
    border-radius: 22px;

    box-shadow:
        0 10px 28px rgba(30, 50, 40, .10);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.rs-category-showcase .rs-category-card:hover,
.rs-category-showcase .rs-category-card:focus-within {
    transform: translateY(-7px);
    box-shadow: 0 20px 42px rgba(25, 45, 35, .20);
}

.rs-category-showcase .rs-category-card--wellness {
    background: #2F8F3A;
}

.rs-category-showcase .rs-category-card--digital {
    background: #7546B8;
}

.rs-category-showcase .rs-category-card--pod {
    background: #F27C18;
}

.rs-category-showcase .rs-category-card--bundles {
    background: #D6284F;
}

.rs-category-showcase .rs-category-card--templates {
    background: #2867B1;
}

.rs-category-showcase .rs-category-card--gift {
    background: #F2AE1D;
}

.rs-category-showcase .rs-category-card--home {
    background: #159D91;
}

.rs-category-showcase .rs-category-card--selfcare {
    background: #D94177;
}

.rs-category-showcase .rs-category-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

.rs-category-showcase .rs-category-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    margin: 0;
    padding: 0;
    border: 0;

    transition: transform .5s ease;
}

.rs-category-showcase .rs-category-card__body {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 5;

    display: flex;
    flex-direction: column;

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

    width: 100%;
    min-height: 0;

    padding: 0 18px 28px;

    background: transparent;

    color: #fff;
    text-align: center;

    pointer-events: none;
}

/* ---------------------------------------------------------
   FULL CARD LINK = BUTTON
   --------------------------------------------------------- */
.rs-category-showcase .rs-category-card__link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.rs-category-showcase .rs-category-card__link:focus-visible {
    outline: 3px solid rgba(255,255,255,.95);
    outline-offset: -5px;
}

/* ---------------------------------------------------------
   CATEGORY COLORS
   --------------------------------------------------------- */
.rs-category-showcase .rs-category-card--wellness {
    background: #2f8f3a;
}

.rs-category-showcase .rs-category-card--digital {
    background: #7546b8;
}

.rs-category-showcase .rs-category-card--pod {
    background: #f27c18;
}

.rs-category-showcase .rs-category-card--bundles {
    background: #d6284f;
}

.rs-category-showcase .rs-category-card--templates {
    background: #2867b1;
}

.rs-category-showcase .rs-category-card--gift {
    background: #f2ae1d;
}

.rs-category-showcase .rs-category-card--home {
    background: #159d91;
}

.rs-category-showcase .rs-category-card--selfcare {
    background: #d94177;
}

/* ---------------------------------------------------------
   CONTENT OVER COLOR
   --------------------------------------------------------- */
.rs-category-showcase .rs-category-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 28px 18px 30px;
    color: #fff;
    text-align: center;
    background: transparent;
    pointer-events: none;
}

.rs-category-showcase .rs-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    margin: 0 0 14px;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
    box-shadow: 0 7px 18px rgba(0,0,0,.10);
    font-size: 24px;
    transition: transform .30s ease, background .30s ease;
}

.rs-category-showcase .rs-category-card__icon i {
    color: inherit;
    font-size: 24px;
}

.rs-category-showcase .rs-category-card__body h3 {
    margin: 0;
    max-width: 94%;
    font-family: var(--rs-font-body);
    font-size: clamp(20px, 1.8vw, 28px);
    line-height: 1.06;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.rs-category-showcase .rs-category-card__body p,
.rs-category-showcase .rs-category-card__button,
.rs-category-showcase .rs-category-card__glass {
    display: none !important;
}

/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */
.rs-category-showcase .rs-category-card:hover .rs-category-card__icon,
.rs-category-showcase .rs-category-card:focus-within .rs-category-card__icon {
    transform: translateY(-5px) scale(1.06);
    background: rgba(255,255,255,.18);
}

/* Soft highlight over the card without adding an image. */
.rs-category-showcase .rs-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.10) 0%,
        rgba(255,255,255,0) 46%,
        rgba(0,0,0,.08) 100%
    );
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 701px) {
    .rs-category-showcase__container {
        width: calc(100% - 32px);
        padding: 24px;
    }

    .rs-category-showcase .rs-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .rs-category-showcase .rs-category-card__body {
        padding: 22px 10px 24px;
    }

    .rs-category-showcase .rs-category-card__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        margin-bottom: 10px;
        font-size: 19px;
    }

    .rs-category-showcase .rs-category-card__icon i {
        font-size: 19px;
    }

    .rs-category-showcase .rs-category-card__body h3 {
        font-size: 17px;
    }
}

/* ---------------------------------------------------------
   MOBILE — 2 COLUMNS / SQUARE CARDS
   --------------------------------------------------------- */
@media (max-width: 700px) {
    .rs-category-showcase {
        padding: 34px 0 42px;
    }

    .rs-category-showcase__container {
        width: calc(100% - 22px);
        padding: 18px;
    }

    .rs-category-showcase__header {
        margin-bottom: 20px;
    }

    .rs-category-showcase__eyebrow {
        font-size: 9px;
    }

    .rs-category-showcase__header h2 {
        font-size: 2.2rem;
    }

    .rs-category-showcase__header p {
        font-size: 13px;
    }

    .rs-category-showcase__values {
        gap: 7px;
        font-size: 8px;
    }

    .rs-category-showcase .rs-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .rs-category-showcase .rs-category-card {
        border-radius: 16px;
    }

    .rs-category-showcase .rs-category-card__body {
        padding: 16px 10px 18px;
    }

    .rs-category-showcase .rs-category-card__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        margin-bottom: 8px;
        font-size: 17px;
    }

    .rs-category-showcase .rs-category-card__icon i {
        font-size: 17px;
    }

    .rs-category-showcase .rs-category-card__body h3 {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.08;
    }
}

@media (max-width: 420px) {
    .rs-category-showcase__container {
        width: calc(100% - 16px);
        padding: 14px;
    }

    .rs-category-showcase .rs-category-grid {
        gap: 8px;
    }

    .rs-category-showcase .rs-category-card {
        border-radius: 13px;
    }

    .rs-category-showcase .rs-category-card__body {
        padding: 13px 8px 14px;
    }

    .rs-category-showcase .rs-category-card__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        margin-bottom: 7px;
    }

    .rs-category-showcase .rs-category-card__icon i {
        font-size: 14px;
    }

    .rs-category-showcase .rs-category-card__body h3 {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-category-showcase .rs-category-card,
    .rs-category-showcase .rs-category-card__icon {
        transition: none !important;
    }
}

/* =========================================================
   CATEGORY CARDS — SMALLER IMAGE + CLEAN BOTTOM LABEL
   ========================================================= */

.rs-category-showcase .rs-category-card__image {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: 74% !important;

    overflow: hidden !important;

    z-index: 1 !important;

    background: transparent !important;
}

/* Make the PNG artwork smaller inside the image area */
.rs-category-showcase .rs-category-card__image img {
    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: scale(.80) !important;

    transition:
        transform .35s ease !important;
}

/* Slightly enlarge artwork on hover */
.rs-category-showcase .rs-category-card:hover
.rs-category-card__image img {
    transform: scale(.85) !important;
}


/* =========================================================
   BOTTOM LABEL AREA
   ========================================================= */

.rs-category-showcase .rs-category-card__body {
    position: absolute !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    height: 28% !important;
    min-height: 0 !important;

    z-index: 5 !important;

    display: flex !important;
    flex-direction: column !important;

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

    padding: 8px 12px 12px !important;

    background:
        rgba(0, 0, 0, .10) !important;

    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;

    color: #fff !important;

    text-align: center !important;

    pointer-events: none !important;
}


/* =========================================================
   ICON
   ========================================================= */

.rs-category-showcase .rs-category-card__icon {
    width: 42px !important;
    height: 42px !important;

    flex: 0 0 42px !important;

    margin: 0 0 7px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 2px solid rgba(255,255,255,.92) !important;
    border-radius: 50% !important;

    background: rgba(255,255,255,.10) !important;

    color: #fff !important;

    box-shadow:
        0 5px 14px rgba(0,0,0,.12) !important;

    font-size: 17px !important;
}


/* =========================================================
   CATEGORY NAME
   ========================================================= */

.rs-category-showcase .rs-category-card__body h3 {
    margin: 0 !important;

    max-width: 95% !important;

    font-family:
        var(--rs-font-body),
        "Inter",
        Arial,
        sans-serif !important;

    font-size:
        clamp(17px, 1.5vw, 24px) !important;

    line-height:
        1.05 !important;

    font-weight:
        800 !important;

    color:
        #fff !important;

    text-align:
        center !important;

    text-shadow:
        0 2px 8px rgba(0,0,0,.18) !important;
}


/* =========================================================
   REMOVE OLD EXTRA CONTENT SPACING
   ========================================================= */

.rs-category-showcase .rs-category-card__body p,
.rs-category-showcase .rs-category-card__button,
.rs-category-showcase .rs-category-card__glass {
    display: none !important;
}


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

@media (max-width: 700px) {

    .rs-category-showcase .rs-category-card__image {
        height: 72% !important;
    }

    .rs-category-showcase .rs-category-card__image img {
        transform: scale(.78) !important;
    }

    .rs-category-showcase .rs-category-card:hover
    .rs-category-card__image img {
        transform: scale(.82) !important;
    }

    .rs-category-showcase .rs-category-card__body {
        height: 30% !important;

        padding:
            7px 8px 10px !important;
    }

    .rs-category-showcase .rs-category-card__icon {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;

        margin-bottom: 5px !important;

        font-size: 15px !important;
    }

    .rs-category-showcase .rs-category-card__body h3 {
        font-size: 15px !important;
    }
}

/* =========================================================
   CATEGORY TITLES — FIT ALL SIZES
   DESKTOP + MOBILE
   ========================================================= */

/* -------------------------
   DESKTOP
   ------------------------- */

.rs-category-showcase
.rs-category-card__body h3 {
    width: 100% !important;
    max-width: 96% !important;

    margin: 0 !important;

    font-family:
        var(--rs-font-body),
        "Inter",
        Arial,
        sans-serif !important;

    font-weight: 800 !important;

    color: #fff !important;

    text-align: center !important;

    line-height: 1.04 !important;

    text-shadow:
        0 2px 8px rgba(0,0,0,.18) !important;
}


/* Wellness Essentials */
.rs-category-showcase
.rs-category-card--wellness
.rs-category-card__body h3 {
    font-size: 22px !important;
}


/* Digital Products */
.rs-category-showcase
.rs-category-card--digital
.rs-category-card__body h3 {
    font-size: 22px !important;
}


/* Print on Demand */
.rs-category-showcase
.rs-category-card--pod
.rs-category-card__body h3 {
    font-size: 20px !important;
}


/* Bundles & Sets */
.rs-category-showcase
.rs-category-card--bundles
.rs-category-card__body h3 {
    font-size: 21px !important;
}


/* Templates & Resources */
.rs-category-showcase
.rs-category-card--templates
.rs-category-card__body h3 {
    font-size: 18px !important;
}


/* Gift Cards */
.rs-category-showcase
.rs-category-card--gift
.rs-category-card__body h3 {
    font-size: 22px !important;
}


/* Home & Lifestyle */
.rs-category-showcase
.rs-category-card--home
.rs-category-card__body h3 {
    font-size: 20px !important;
}


/* Self-Care & Beauty */
.rs-category-showcase
.rs-category-card--selfcare
.rs-category-card__body h3 {
    font-size: 18px !important;
}


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

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

    .rs-category-showcase
    .rs-category-card--wellness
    .rs-category-card__body h3 {
        font-size: 18px !important;
    }

    .rs-category-showcase
    .rs-category-card--digital
    .rs-category-card__body h3 {
        font-size: 18px !important;
    }

    .rs-category-showcase
    .rs-category-card--pod
    .rs-category-card__body h3 {
        font-size: 17px !important;
    }

    .rs-category-showcase
    .rs-category-card--bundles
    .rs-category-card__body h3 {
        font-size: 17px !important;
    }

    .rs-category-showcase
    .rs-category-card--templates
    .rs-category-card__body h3 {
        font-size: 15px !important;
    }

    .rs-category-showcase
    .rs-category-card--gift
    .rs-category-card__body h3 {
        font-size: 18px !important;
    }

    .rs-category-showcase
    .rs-category-card--home
    .rs-category-card__body h3 {
        font-size: 17px !important;
    }

    .rs-category-showcase
    .rs-category-card--selfcare
    .rs-category-card__body h3 {
        font-size: 15px !important;
    }
}


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

@media (max-width: 700px) {

    .rs-category-showcase
    .rs-category-card__body h3 {
        max-width: 100% !important;
        line-height: 1.03 !important;
    }

    .rs-category-showcase
    .rs-category-card--wellness
    .rs-category-card__body h3 {
        font-size: 14px !important;
    }

    .rs-category-showcase
    .rs-category-card--digital
    .rs-category-card__body h3 {
        font-size: 15px !important;
    }

    .rs-category-showcase
    .rs-category-card--pod
    .rs-category-card__body h3 {
        font-size: 13px !important;
    }

    .rs-category-showcase
    .rs-category-card--bundles
    .rs-category-card__body h3 {
        font-size: 14px !important;
    }

    .rs-category-showcase
    .rs-category-card--templates
    .rs-category-card__body h3 {
        font-size: 12px !important;
    }

    .rs-category-showcase
    .rs-category-card--gift
    .rs-category-card__body h3 {
        font-size: 15px !important;
    }

    .rs-category-showcase
    .rs-category-card--home
    .rs-category-card__body h3 {
        font-size: 14px !important;
    }

    .rs-category-showcase
    .rs-category-card--selfcare
    .rs-category-card__body h3 {
        font-size: 12.5px !important;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .rs-category-showcase
    .rs-category-card--wellness
    .rs-category-card__body h3 {
        font-size: 13px !important;
    }

    .rs-category-showcase
    .rs-category-card--digital
    .rs-category-card__body h3 {
        font-size: 13.5px !important;
    }

    .rs-category-showcase
    .rs-category-card--pod
    .rs-category-card__body h3 {
        font-size: 12px !important;
    }

    .rs-category-showcase
    .rs-category-card--bundles
    .rs-category-card__body h3 {
        font-size: 13px !important;
    }

    .rs-category-showcase
    .rs-category-card--templates
    .rs-category-card__body h3 {
        font-size: 11px !important;
    }

    .rs-category-showcase
    .rs-category-card--gift
    .rs-category-card__body h3 {
        font-size: 13.5px !important;
    }

    .rs-category-showcase
    .rs-category-card--home
    .rs-category-card__body h3 {
        font-size: 12.5px !important;
    }

    .rs-category-showcase
    .rs-category-card--selfcare
    .rs-category-card__body h3 {
        font-size: 11.5px !important;
    }
}

