@media (max-width:1024px) {
    predictive-search {
        height: 100%;
        display: flex;
        flex-direction: column
    }
}

predictive-search:has(.predictive-search__results-container.fade-out) .predictive-search__search-bar,
predictive-search:not(:has(.predictive-search__results)) .predictive-search__search-bar {
    border-bottom-left-radius: var(--block-border-radius);
    border-bottom-right-radius: var(--block-border-radius)
}

predictive-search:has(.predictive-search__results) .predictive-search__search-bar,
predictive-search:not(:has(.predictive-search__results-container.fade-out)) .predictive-search__search-bar {
    border-radius: 0
}

@media (max-width:1024px) {
    .header-section:not(.sticky-header) predictive-search {
        transform: translate3d(0, 0, 0)
    }
}

.predictive-search__search-bar {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: var(--header-color)
}

@media (min-width:1025px) {
    .predictive-search__search-bar {
        padding-top: 32px;
        padding-bottom: 32px
    }
}

.predictive-search__input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--nav-text-color-transparent5)
}

.border-radius-round .predictive-search__input-container {
    padding: 0 5px
}

.predictive-search__input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    color: inherit
}

.predictive-search__input::placeholder {
    opacity: .7;
    color: inherit
}

.predictive-search__clear,
.predictive-search__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: 0 0
}

.predictive-search__clear {
    font-size: 12px;
    padding: 4px;
    animation: FadeIn .25s ease;
    color: inherit
}

.predictive-search__clear.fade-out {
    animation: FadeOut .25s ease
}

.predictive-search__results-container {
    background-color: var(--header-color)
}

.predictive-search__results-container.fade-out {
    animation: FadeOut .25s ease forwards
}

@media (max-width:1024px) {
    .predictive-search__results-container:not(:empty) {
        flex-grow: 1
    }
}

@media (max-width:1024px) {
    .predictive-search__results-wrapper {
        display: flex;
        flex-direction: column;
        height: 100%
    }
}

.predictive-search__results {
    padding-bottom: 40px;
    animation: FadeIn 1s ease
}

@media (max-width:1024px) {
    .predictive-search__results {
        flex-grow: 1
    }
}

.predictive-search__results--is-grid {
    display: flex;
    flex-direction: column;
    gap: 40px
}

@media (min-width:1025px) {
    .predictive-search__results--is-grid {
        display: grid;
        gap: 32px;
        grid-template-columns: 250px minmax(0, 1fr)
    }
}

.predictive-search__results:has(.predictive-search__no-results) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px
}

@media (min-width:1025px) {
    .predictive-search__results:has(.predictive-search__no-results) {
        padding-bottom: 32px
    }
}

.predictive-search__results .nav-link-animated a,
.predictive-search__results .text-link-animated a {
    transition: all .25s ease
}

.predictive-search__results .nav-link-animated a:hover,
.predictive-search__results .text-link-animated a:hover {
    color: var(--nav-text-hover)
}

.predictive-search__list {
    display: flex;
    flex-direction: column;
    gap: 20px
}

@media (min-width:1025px) {
    .predictive-search__list:not(:only-child) {
        width: 250px
    }
}

.predictive-search__list-items {
    display: flex;
    gap: 20px
}

@media (max-width:1024px) {
    .predictive-search__list-items:not(.predictive-search__list-items--list-only) {
        overflow-x: auto
    }

    .predictive-search__list-items:not(.predictive-search__list-items--list-only)::-webkit-scrollbar {
        height: 3px
    }

    .predictive-search__list-items.predictive-search__list-items--list-only {
        flex-direction: column;
        gap: 12px
    }
}

@media (min-width:1025px) {
    .predictive-search__list-items {
        flex-direction: column;
        gap: 12px
    }
}

.predictive-search__list-items::-webkit-scrollbar-thumb {
    background-color: var(--nav-text-color-transparent30)
}

.predictive-search__title {
    font-size: var(--base-font-size);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nav-text-color-transparent10);
    margin: 0;
    line-height: 1.6
}

.predictive-search__nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative
}

.predictive-search__nav:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--nav-text-color-transparent10)
}

.predictive-search__nav-buttons {
    display: flex;
    gap: 20px;
    overflow: auto
}

.predictive-search__nav-buttons::-webkit-scrollbar {
    height: 3px
}

.predictive-search__nav-buttons::-webkit-scrollbar-thumb {
    background-color: var(--nav-text-color-transparent30)
}

@media (min-width:1025px) {
    .predictive-search__nav-buttons {
        gap: 32px
    }
}

.predictive-search__nav-button {
    background: 0 0;
    border: 0;
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: 1.6;
    padding-bottom: 12px;
    position: relative
}

.predictive-search__nav-button:not(:only-child):after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--nav-text-color);
    opacity: 0;
    transition: opacity .4s ease
}

.predictive-search__nav-button.active:not(:only-child):after {
    opacity: 1
}

.predictive-search__list-item {
    color: inherit;
    display: inline-block;
    max-width: 100%
}

@media (max-width:1024px) {
    .predictive-search__list-item {
        width: max-content
    }
}

.predictive-search__list-item span {
    overflow-wrap: break-word
}

.predictive-search__list-item mark {
    background: 0 0;
    font-weight: bolder;
    color: inherit
}

.predictive-search__view-all-desktop {
    --link-border-color: var(--nav-text-color-transparent50);
    white-space: nowrap;
    line-height: 1.6
}

@media (max-width:1024px) {
    .predictive-search__view-all-desktop {
        display: none
    }
}

.predictive-search__view-all-mobile {
    --link-border-color: var(--nav-text-color-transparent50);
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-color);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--nav-text-color-transparent10)
}

@media (min-width:1025px) {
    .predictive-search__view-all-mobile {
        display: none
    }
}

.predictive-search__view-all-mobile a {
    animation: FadeIn 1s ease;
    transition: color .25s ease
}

.predictive-search__view-all-mobile a:hover {
    color: var(--nav-text-hover)
}

.predictive-search__main-results {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.predictive-search__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: calc(var(--grid-spacing) * .75)
}

.predictive-search__grid[hidden] {
    display: none
}

.predictive-search__grid--products {
    row-gap: 2em
}

.predictive-search__grid:not(.predictive-search__grid--products) {
    row-gap: calc(var(--grid-spacing) * .75)
}

@media (min-width:1025px) {
    .predictive-search__grid {
        column-gap: var(--grid-spacing)
    }

    .predictive-search__grid:not(.predictive-search__grid--products) {
        row-gap: var(--grid-spacing)
    }
}

@media (min-width:1025px) {
    .predictive-search__grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .predictive-search__grid>:nth-child(4n) {
        display: none
    }
}

@media (min-width:1441px) {
    .predictive-search__grid {
        grid-template-columns: repeat(4, 1fr)
    }

    .predictive-search__grid>:nth-child(4n) {
        display: block
    }
}

.predictive-search__grid--products .product-grid--price .money,
.predictive-search__grid--products .product-grid--price a,
.predictive-search__grid--products .product-grid--title,
.predictive-search__grid--products .product-grid--title a {
    color: inherit !important
}

.predictive-search__grid--products .product-card__image--secondary {
    background-color: var(--header-color)
}

.predictive-search__collection-aspect img {
    object-fit: cover;
    object-position: center
}

.predictive-search__collection-aspect--square img,
.predictive-search__collection-aspect--square.predictive-search__collection-link--no-image {
    aspect-ratio: 1/1
}

.predictive-search__collection-aspect--tall img,
.predictive-search__collection-aspect--tall.predictive-search__collection-link--no-image {
    aspect-ratio: 2/3
}

.predictive-search__collection-aspect--wide img,
.predictive-search__collection-aspect--wide.predictive-search__collection-link--no-image {
    aspect-ratio: 4/3
}

.predictive-search__collection-link {
    color: inherit
}

.predictive-search__collection-image {
    margin-bottom: 8px
}

.predictive-search__collection-link--no-image {
    display: flex;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--nav-text-color-transparent10)
}

.predictive-search__collection-title {
    font-size: var(--base-font-size);
    margin: 0;
    text-align: center
}

.predictive-search__grid-item--page-or-article {
    background-color: var(--nav-text-color-transparent5);
    padding: 12px
}

@media (min-width:1025px) {
    .predictive-search__grid-item--page-or-article {
        padding: 16px
    }
}

.predictive-search__grid-item--page-or-article a {
    --link-border-color: var(--nav-text-color-transparent50);
    color: inherit
}

.predictive-search__page-or-article-title {
    font-size: var(--base-font-size);
    margin-bottom: 12px
}

.predictive-search__page-or-article-title:last-child {
    margin-bottom: 0
}

.predictive-search__page-or-article-content {
    margin-bottom: 12px
}

.predictive-search__no-results {
    text-align: center;
    padding: 60px 0
}

.predictive-search__no-results p {
    margin-bottom: 0
}

.predictive-search__empty-state {
    background-color: var(--header-color)
}

.predictive-search__empty-state[hidden] {
    display: none
}

@media (max-width:1024px) {
    .predictive-search__empty-state {
        flex-grow: 1
    }
}