.SearchPage {
    --search-red: #b22b3e;
    --search-ink: #151515;
    --search-steel: #b1b3b5;
    background: var(--search-steel);
    min-height: 72vh;
    padding-bottom: 5rem;
}

.SearchPage__breadcrumb {
    padding-top: 2.25rem;
}

.SearchPage__content {
    max-width: 980px;
    padding-top: 4.5rem;
}

.SearchPage__intro {
    max-width: 680px;
}

.SearchPage__eyebrow {
    color: var(--search-red);
    font-family: 'Roboto-Bold';
    font-size: .75rem;
    letter-spacing: .14em;
    margin-bottom: .75rem;
}

.SearchPage__intro h1 {
    color: var(--search-ink);
    font-family: 'Roboto-Bold';
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: .98;
    margin: 0;
}

.SearchPage__intro p:not(.SearchPage__eyebrow) {
    color: #303030;
    font-family: 'Roboto-Regular';
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 1.25rem 0 2rem;
}

.SearchPage__form {
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(21, 21, 21, .25);
    box-shadow: 8px 8px 0 rgba(21, 21, 21, .12);
    display: flex;
}

.SearchPage__form:focus-within {
    border-color: var(--search-red);
    box-shadow: 8px 8px 0 rgba(178, 43, 62, .24);
}

.SearchPage__searchIcon {
    align-self: center;
    color: var(--search-red);
    margin-left: 1.25rem;
}

.SearchPage__input {
    background: transparent;
    border: 0;
    color: var(--search-ink);
    font-family: 'Roboto-Regular';
    font-size: 1.05rem;
    min-width: 0;
    outline: 0;
    padding: 1.1rem 1rem;
    width: 100%;
}

.SearchPage__input::placeholder {
    color: #707070;
    opacity: 1;
}

.SearchPage__button {
    background: var(--search-red);
    border: 0;
    color: #fff;
    font-family: 'Roboto-Bold';
    padding: 0 2rem;
    text-transform: uppercase;
}

.SearchPage__button:hover,
.SearchPage__button:focus-visible {
    background: #8e2030;
}

.SearchPage__hint {
    color: #3d3d3d;
    font-family: 'Roboto-Regular';
    font-size: .9rem;
    min-height: 1.5rem;
    padding: 1.25rem 0;
}

.SearchPage__hint[data-state='loading']::before {
    animation: SearchPage-spin .7s linear infinite;
    border: 2px solid rgba(178, 43, 62, .25);
    border-radius: 50%;
    border-top-color: var(--search-red);
    content: '';
    display: inline-block;
    height: .85rem;
    margin-right: .5rem;
    vertical-align: -.1rem;
    width: .85rem;
}

.SearchPage__hint[data-state='error'] {
    color: #8e2030;
}

.SearchPage__results {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.SearchResult {
    align-items: center;
    background: #f8f8f8;
    color: var(--search-ink);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 105px minmax(0, 1fr) 1.25rem;
    min-height: 140px;
    padding: 1rem;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.SearchResult:hover,
.SearchResult:focus-visible {
    background: #fff;
    color: var(--search-ink);
    outline: 3px solid var(--search-red);
    outline-offset: -3px;
    transform: translate(-3px, -3px);
}

.SearchResult__image {
    height: 105px;
    object-fit: contain;
    width: 105px;
}

.SearchResult__body h2 {
    font-family: 'Roboto-Bold';
    font-size: 1.05rem;
    margin: 0 0 .45rem;
    text-transform: uppercase;
}

.SearchResult__body p {
    color: #565656;
    display: -webkit-box;
    font-family: 'Roboto-Regular';
    font-size: .9rem;
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.SearchResult__arrow {
    color: var(--search-red);
}

@keyframes SearchPage-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
    .SearchPage {
        padding-bottom: 3.5rem;
    }

    .SearchPage__breadcrumb {
        padding-top: 1.5rem;
    }

    .SearchPage__content {
        padding-top: 3rem;
    }

    .SearchPage__form {
        flex-wrap: wrap;
    }

    .SearchPage__input {
        flex: 1 1 75%;
    }

    .SearchPage__button {
        min-height: 3.5rem;
        width: 100%;
    }

    .SearchPage__results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .SearchPage__searchIcon {
        margin-left: 1rem;
    }

    .SearchPage__input {
        font-size: .95rem;
    }

    .SearchResult {
        gap: .85rem;
        grid-template-columns: 78px minmax(0, 1fr) 1rem;
    }

    .SearchResult__image {
        height: 78px;
        width: 78px;
    }
}
