@import url("partials/_parfume_horizontal_grid-wmxc-cz.css");

.homepage-title {
    text-transform: uppercase;
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 300;

    @media (max-width: 767.98px) {
        font-size: 2rem;
    }
}

.homepage-lead {
    color: var(--bs-secondary-color);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0.9rem auto 0;
    max-width: 48rem;
    text-wrap: balance;

    @media (max-width: 767.98px) {
        font-size: 1rem;
        margin-top: 0.75rem;
    }
}

/* The hero search is the page's main call to action, so it is the strongest element after the
   title: larger than the header one it replaces, with a readable placeholder (the theme's is pale
   lilac). Below 680px autocomplete renders a button that opens a full-screen search instead. */
.homepage-search {
    --aa-search-input-height: 4rem;
    margin: 2rem auto 0;
    max-width: 44rem;

    & .aa-Autocomplete,
    & .aa-Form {
        width: 100%;
    }

    & .aa-Form,
    & .aa-DetachedSearchButton {
        background-color: #fff;
        border-color: rgba(var(--logo-color-rgb), 0.55);
        border-radius: 0.9rem;
        box-shadow: 0 0.6rem 1.75rem rgba(var(--logo-color-rgb), 0.2);
    }

    & .aa-Form:focus-within,
    & .aa-DetachedSearchButton:focus-visible {
        border-color: rgba(var(--logo-color-rgb), 0.7);
        box-shadow: 0 0 0 0.22rem rgba(var(--logo-color-rgb), 0.16);
        outline: none;
    }

    & .aa-Input,
    & .aa-DetachedSearchButton {
        font-size: 1.2rem;
    }

    & .aa-Input::placeholder {
        color: var(--bs-secondary-color);
    }

    & .aa-DetachedSearchButton {
        color: var(--bs-secondary-color);
        padding-inline: 1rem;
    }

    /* The theme lets the placeholder wrap, which would break out of the button on narrow phones. */
    & .aa-DetachedSearchButtonPlaceholder {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    & .aa-SubmitIcon,
    & .aa-DetachedSearchButtonIcon {
        color: var(--logo-color);
    }

    @media (max-width: 767.98px) {
        --aa-search-input-height: 3.5rem;
        margin-top: 1.5rem;

        & .aa-Input,
        & .aa-DetachedSearchButton {
            font-size: 1.1rem;
        }
    }
}

.homepage-quick-links {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.homepage-quick-links-genders {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.homepage-quick-link {
    border: 1px solid rgba(var(--logo-color-rgb), 0.4);
    border-radius: 999px;
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
    padding: 0.3rem 0.9rem;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;

    &:hover,
    &:focus-visible {
        border-color: var(--logo-color);
        color: var(--logo-color);
    }
}

.homepage-quick-links-brands {
    color: var(--bs-secondary-color);
    column-gap: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.92rem;
    justify-content: center;
    row-gap: 0.25rem;

    & a {
        color: inherit;
        text-decoration-color: rgba(var(--logo-color-rgb), 0.55);
        text-underline-offset: 0.22rem;

        &:hover,
        &:focus-visible {
            color: var(--logo-color);
        }
    }
}

.container-page-title {
    margin-top: 6rem;
    margin-bottom: 3rem;

    @media (max-width: 767.98px) {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

/* Below xl the three figures stack; a compact icon-beside-text row keeps them from filling the
   whole first screen on phones. The block is centred as a unit, so nothing floats alone in the
   middle. */
@media (max-width: 1199.98px) {
    .homepage-stats {
        margin-inline: auto;
        max-width: 34rem;
    }

    .homepage-stat {
        align-items: center;
        column-gap: 1rem;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);

        & h2 {
            font-size: 1.5rem;
        }

        & p {
            margin-bottom: 0;
        }
    }

    .homepage-stat-icon {
        grid-row: span 2;

        & svg {
            height: 2.75rem;
            width: 2.75rem;
        }
    }
}

.homepage-product-section {
    padding-top: 0.5rem;
    position: relative;

    @media (max-width: 767.98px) {
        padding-top: 0;
    }
}

.homepage-product-section-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.2rem;
    position: relative;

    &::after {
        background: linear-gradient(90deg, rgba(var(--logo-color-rgb), 0.34) 0%, rgba(var(--logo-color-rgb), 0.08) 45%, rgba(var(--logo-color-rgb), 0) 100%);
        content: "";
        height: 1px;
        left: 0;
        position: absolute;
        right: 0;
        bottom: 0;
    }
}

.homepage-product-section-copy {
    max-width: 36rem;
}

.homepage-product-section-title {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0;

    @media (max-width: 767.98px) {
        font-size: 2rem;
    }
}

.homepage-product-section-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;

    @media (max-width: 767.98px) {
        margin-top: 1.25rem;
    }
}

.homepage-section-cta {
    align-items: center;
    display: inline-flex;
    font-size: 1.14rem;
    font-weight: 600;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.1rem 0;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease, text-decoration-color 0.2s ease;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.28rem;
    text-decoration-color: rgba(var(--logo-color-rgb), 0.35);
    color: var(--bs-body-color);

    @media (max-width: 767.98px) {
        font-size: 1.18rem;
        min-height: 2.75rem;
    }

    &:hover {
        color: var(--logo-color);
        gap: 0.7rem;
        text-decoration-color: rgba(var(--logo-color-rgb), 0.85);
    }
}
