/*!
 * Hero — editorial band for the homepage and shop archive.
 */

body.ms-store .ms-hero {
    position: relative;
    background-color: var(--ms-color-surface);
    border-bottom: var(--ms-border);
    overflow: hidden;
}

body.ms-store .ms-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--ms-space-sm);
    min-height: clamp(20rem, 42vw, 32rem);
    padding-block: var(--ms-space-2xl);
    max-width: min(var(--ms-container), 46rem);
}

body.ms-store .ms-hero__eyebrow {
    margin: 0;
}

body.ms-store .ms-hero__title {
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    margin: 0;
    max-width: 16ch;
}

body.ms-store .ms-hero__text {
    font-size: 1.125rem;
    color: var(--ms-color-ink-soft);
    max-width: var(--ms-measure);
    margin: 0;
}

body.ms-store .ms-hero__cta {
    align-self: flex-start;
    margin-top: var(--ms-space-xs);
}

/* Image variant: the band splits into copy and photography. */

body.ms-store .ms-hero[style*="--ms-hero-image"] {
    background-image: var(--ms-hero-image);
    background-size: cover;
    background-position: center;
}

body.ms-store .ms-hero[style*="--ms-hero-image"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.78) 45%,
        rgba(255, 255, 255, 0.15) 100%
    );
}

body.ms-store.ms-rtl .ms-hero[style*="--ms-hero-image"]::after {
    background: linear-gradient(
        270deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.78) 45%,
        rgba(255, 255, 255, 0.15) 100%
    );
}

@media (max-width: 768px) {
    body.ms-store .ms-hero__inner {
        min-height: 0;
        padding-block: var(--ms-space-xl);
    }

    body.ms-store .ms-hero__title {
        max-width: 100%;
    }
}
