/* ========================================
   Rirarens homepage hero
   Shortcode: [sa_home_header]
======================================== */

.sa-home-hero,
.sa-home-hero * {
    box-sizing: border-box;
}

.sa-home-hero {
    --sa-home-blue: #333399;
    --sa-home-button-blue: #0c71c3;
    --sa-home-pink: #ff3d97;
    position: relative;
    isolation: isolate;
    min-height: 750px;
    overflow: hidden;
    background-image: var(--sa-home-hero-bg);
    background-position: center;
    background-repeat: repeat;
    background-size: cover;
    text-align: left;
}

.sa-home-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 1;
    height: 60%;
    background-image: var(--sa-home-hero-wave);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.sa-home-hero__inner {
    position: relative;
    width: min(90%, 1400px);
    min-height: 750px;
    margin: 0 auto;
    padding: 92px 0 105px;
}

.sa-home-hero__content {
    position: relative;
    z-index: 5;
    width: min(53%, 740px);
}

.sa-home-hero__intro {
    margin: 0;
}

.sa-home-hero .sa-home-hero__title {
    max-width: 720px;
    margin: 0 0 38px;
    padding: 0;
    color: var(--sa-home-blue);
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(72px, 6.5vw, 100px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: .9;
    text-align: left;
}

.sa-home-hero .sa-home-hero__subtitle {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: 'Baloo 2', sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-shadow: 0 0 14px rgba(0, 0, 0, .35);
}

.sa-home-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 34px;
}

.sa-home-hero .sa-home-hero__button {
    display: inline-flex;
    min-width: 0;
    min-height: 58px;
    padding: 12px 28px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: 'Concert One', 'Baloo 2', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .1em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sa-home-hero .sa-home-hero__button::after {
    display: none;
}

.sa-home-hero .sa-home-hero__button:hover,
.sa-home-hero .sa-home-hero__button:focus-visible {
    padding: 12px 28px;
    color: #fff;
    transform: translateY(-2px) scale(1.02);
}

.sa-home-hero__button svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sa-home-hero .sa-home-hero__button--shop {
    background: linear-gradient(90deg, var(--sa-home-pink), #f4346c);
    box-shadow: 0 18px 35px -12px rgba(255, 61, 151, .65);
}

.sa-home-hero .sa-home-hero__button--story {
    background: var(--sa-home-button-blue);
    box-shadow: 0 18px 35px -12px rgba(12, 113, 195, .65);
}

.sa-home-hero__product {
    position: relative;
    z-index: 6;
    margin-top: 34px;
}

.sa-home-hero__product .sa-single-sale-product-card {
    max-width: 100%;
    text-align: left;
}

.sa-home-hero__product .sa-product-content,
.sa-home-hero__product .sa-single-sale-product-text,
.sa-home-hero__product .sa-product-price {
    text-align: left;
}

.sa-home-hero__visual {
    position: absolute;
    right: -1.5vw;
    bottom: 0;
    z-index: 3;
    width: min(48vw, 690px);
    margin: 0;
    pointer-events: none;
}

.sa-home-hero__visual-base {
    position: absolute;
    right: -5%;
    bottom: -18%;
    left: -10%;
    z-index: -1;
    height: 62%;
    border-radius: 50% 50% 0 0;
    background: #fff;
}

.sa-home-hero__visual img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

@media (min-width: 1400px) {
    .sa-home-hero__visual {
        right: 0;
    }
}

@media (min-width: 900px) and (max-width: 1280px) {
    .sa-home-hero,
    .sa-home-hero__inner {
        min-height: 760px;
    }

    .sa-home-hero__inner {
        width: 92%;
        padding-top: 74px;
        padding-bottom: 96px;
    }

    .sa-home-hero__content {
        width: 56%;
    }

    .sa-home-hero .sa-home-hero__title {
        margin-bottom: 28px;
        font-size: clamp(62px, 7vw, 78px);
    }

    .sa-home-hero .sa-home-hero__subtitle {
        font-size: 22px;
    }

    .sa-home-hero__actions {
        gap: 16px;
        margin-top: 26px;
    }

    .sa-home-hero .sa-home-hero__button {
        min-height: 52px;
        padding: 10px 18px;
        font-size: 17px;
    }

    .sa-home-hero .sa-home-hero__button:hover,
    .sa-home-hero .sa-home-hero__button:focus-visible {
        padding: 10px 18px;
    }

    .sa-home-hero__product {
        margin-top: 28px;
    }

    .sa-home-hero__product .sa-single-sale-product-card {
        grid-template-columns: minmax(130px, 34%) 1fr;
        gap: 18px;
        padding: 18px;
    }

    .sa-home-hero__product .sa-single-sale-product-card .sa-product-content h3 {
        font-size: 27px;
    }

    .sa-home-hero__product .sa-single-sale-product-text {
        margin: 7px 0 9px;
        font-size: 15px;
        line-height: 1.35;
    }

    .sa-home-hero__product .sa-single-sale-product-actions {
        gap: 10px;
        margin-top: 12px;
    }

    .sa-home-hero__product .sa-product-icons span {
        width: 36px;
        height: 36px;
    }

    .sa-home-hero__product .sa-single-sale-product-link {
        min-height: 36px;
        padding: 8px 14px;
        font-size: 14px;
    }

    .sa-home-hero__visual {
        right: -4vw;
        bottom: 0;
        width: clamp(410px, 49vw, 590px);
    }
}

@media (max-width: 899px) {
    .sa-home-hero,
    .sa-home-hero__inner {
        min-height: auto;
    }

    .sa-home-hero__inner {
        width: min(90%, 760px);
        padding: 64px 0 108px;
    }

    .sa-home-hero__content {
        width: 100%;
    }

    .sa-home-hero .sa-home-hero__title {
        margin-bottom: 24px;
        font-size: clamp(58px, 11vw, 82px);
        text-align: left;
    }

    .sa-home-hero .sa-home-hero__subtitle {
        font-size: 22px;
        text-align: left;
    }

    .sa-home-hero__visual {
        display: none;
    }
}

@media (max-width: 767px) {
    .sa-home-hero__inner {
        padding-top: 48px;
        padding-bottom: 88px;
    }

    .sa-home-hero .sa-home-hero__title {
        font-size: clamp(48px, 15vw, 64px);
    }

    .sa-home-hero .sa-home-hero__subtitle {
        font-size: 19px;
    }

    .sa-home-hero__actions {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 26px;
    }

    .sa-home-hero .sa-home-hero__button {
        width: 100%;
        min-height: 52px;
        font-size: 17px;
    }

    .sa-home-hero__product {
        margin-top: 28px;
    }

    .sa-home-hero__product .sa-single-sale-product-card {
        grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        padding: 14px;
    }

    .sa-home-hero__product .sa-product-image,
    .sa-home-hero__product .sa-product-content {
        min-width: 0;
    }

    .sa-home-hero__product .sa-single-sale-product-card .sa-product-content h3 {
        font-size: 22px;
    }

    .sa-home-hero__product .sa-single-sale-product-text {
        margin: 6px 0 9px;
        font-size: 14px;
        line-height: 1.35;
    }

    .sa-home-hero__product .sa-single-sale-product-actions {
        flex-direction: row;
        align-items: center;
        gap: 9px;
        margin-top: 11px;
    }

    .sa-home-hero__product .sa-single-sale-product-card .sa-product-icons {
        gap: 7px;
    }

    .sa-home-hero__product .sa-product-icons span {
        width: 32px;
        height: 32px;
    }

    .sa-home-hero__product .sa-single-sale-product-link {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-home-hero .sa-home-hero__button {
        transition: none;
    }
}
