.header-search {
    position: relative;
    transition: box-shadow 180ms ease-out;
}

.header-search [hidden],
.store-search-backdrop[hidden],
.search-page [hidden],
.store-search-footer:has(> [data-search-view][hidden]) {
    display: none !important;
}

.header-search .header-search-input {
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
}

.header-search .header-search-input:focus,
.header-search .header-search-input:focus-visible {
    outline: none;
    box-shadow: none;
}

.header-search:focus-within {
    box-shadow: 0 0 0 3px rgb(232 246 255 / 65%);
}

.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-results-button,
.header-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.site-header.has-store-search {
    z-index: 810;
}

.store-search-clear {
    display: inline-flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    padding: 0;
    border: 0;
    color: #757575;
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease-out;
}

.store-search-clear svg {
    display: block;
    width: 16px;
    height: 16px;
}

.store-search-backdrop {
    position: fixed;
    z-index: 800;
    inset: 0;
    background: rgb(0 0 0 / 32%);
}

.store-search-panel {
    position: fixed;
    z-index: 820;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    width: 640px;
    max-width: calc(100vw - 48px);
    margin: 0;
    padding: 30px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 3px solid #f5f5f5;
    border-radius: 16px;
    color: #424242;
    background: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    animation: store-search-enter 160ms ease-out;
}

.store-search-status {
    margin: 0;
    padding: 12px 0;
}

.store-search-panel.is-loading .store-search-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-search-panel.is-loading .store-search-status::before {
    content: "";
    flex: 0 0 20px;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 2px solid #e8f6ff;
    border-top-color: #0093ee;
    border-radius: 50%;
    animation: store-search-spin 700ms linear infinite;
}

.store-search-panel.is-empty .store-search-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 20px;
    border-radius: 24px;
    background: #e8f6ff;
    text-align: center;
}

.store-search-panel.is-empty .store-search-status::before {
    content: "";
    display: block;
    flex: 0 0 48px;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 50%;
    background-color: #ffffff;
    background-image: url("/images/icons/feather/search-a4ff520f39ffb0a8ecc00a58c81c72c5.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.store-search-status__title {
    display: block;
    max-width: 100%;
    color: #424242;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.store-search-status__description {
    display: block;
    max-width: 400px;
    color: #757575;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.store-search-list {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.store-search-list > li + li {
    border-top: 1px solid #e8f6ff;
}

.store-search-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 24px;
    min-width: 0;
    min-height: 72px;
    padding: 12px 0;
    color: #424242;
    text-decoration: none;
    transition: color 180ms ease-out;
}

.store-search-item img {
    display: block;
    width: 72px;
    height: 48px;
    object-fit: contain;
}

.store-search-item__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.store-search-item__price {
    align-self: start;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.store-search-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 84px;
    padding: 20px 24px;
    border-radius: 24px;
    color: #0093ee;
    background: #e8f6ff;
    cursor: default;
}

.store-search-footer > svg {
    display: block;
    flex: 0 0 28px;
}

.store-search-footer > strong {
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.store-search-view-label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    margin-left: auto;
    padding: 7px 14px;
    border: 3px solid #ffe2cc;
    border-radius: 20px;
    color: #0093ee;
    background: #e8f6ff;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
            color 180ms ease-out,
            border-color 180ms ease-out;
}

.store-search-item:focus-visible,
.store-search-view-label:focus-visible,
.store-search-clear:focus-visible {
    outline: 2px solid #0093ee;
    outline-offset: 3px;
}

.store-search-view-label:focus-visible {
    color: #ee6a00;
    border-color: #ee6a00;
    text-decoration: none;
}

.search-page .sv-breadcrumbs {
    margin-bottom: 32px;
}

.search-page-title {
    margin: 0 0 24px;
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.search-sidebar {
    min-width: 0;
}

.search-categories {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 24px;
    color: #0093ee;
    background: #e8f6ff;
}

.search-categories h2 {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ffffff;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.search-category-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-category {
    position: relative;
    display: block;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

.search-category input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.search-category input:checked + span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.search-category input:focus-visible + span {
    outline: 2px solid #0093ee;
    outline-offset: 3px;
}

.search-categories-toggle {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid #ffffff;
    color: #0093ee;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.search-page .catalog-toolbar__count {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

@media (hover: hover) {
    .store-search-clear:hover,
    .store-search-item:hover,
    .search-category:hover,
    .search-categories-toggle:hover {
        color: #ee6a00;
    }

    .store-search-view-label:hover {
        color: #ee6a00;
        border-color: #ee6a00;
        text-decoration: none;
    }
}

@media (max-width: 767px) {
    .store-search-panel {
        max-width: 100%;
        padding: 20px 24px;
        border-width: 0 0 3px;
        border-radius: 0 0 16px 16px;
    }

    .store-search-panel.is-empty .store-search-status {
        padding: 24px 16px;
    }

    .store-search-item {
        grid-template-columns: 48px minmax(0, 1fr) 72px;
        gap: 12px;
    }

    .store-search-item img {
        width: 48px;
        height: 48px;
    }

    .store-search-footer {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: 72px;
        padding: 16px 12px;
    }

    .store-search-footer > svg {
        width: 24px;
        height: 24px;
    }

    .store-search-footer > strong {
        min-width: 0;
        font-size: 14px;
        line-height: 20px;
    }

    .store-search-view-label {
        min-height: 36px;
        margin-left: 0;
        padding: 5px 8px;
        border-radius: 18px;
        font-size: 14px;
        line-height: 20px;
    }

    .search-page .sv-breadcrumbs {
        margin-bottom: 24px;
    }

    .search-page .catalog-browser {
        gap: 24px;
    }

    .search-categories {
        margin-bottom: 24px;
    }

    .search-page .sv-product-card {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 16px 24px;
        min-height: 0;
        padding: 16px;
    }

    .search-page .sv-product-card__top {
        position: static;
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .search-page .sv-product-card__image {
        position: static;
        grid-column: 1;
        grid-row: 2;
        width: 72px;
        height: 72px;
    }

    .search-page .sv-product-card__body {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        margin: 0;
        gap: 16px;
    }

    .search-page .sv-product-card__name {
        display: block;
        -webkit-line-clamp: unset;
        min-height: 0;
        overflow: visible;
    }

    .search-page .sv-product-card__bottom {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 359px) {
    .store-search-footer {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 6px;
        padding-inline: 10px;
    }

    .store-search-footer > svg {
        width: 20px;
        height: 20px;
    }

    .store-search-view-label {
        padding-inline: 6px;
        font-size: 12px;
    }
}

@keyframes store-search-enter {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .header-search,
    .store-search-clear,
    .store-search-item,
    .store-search-view-label {
        transition: none;
    }

    .store-search-panel,
    .store-search-panel.is-loading .store-search-status::before {
        animation: none;
    }
}