.navigation { position: relative; }
.search-dropdown, .search-page { color: #2B2A29; }

.search-dropdown {
    position: fixed;
    z-index: 1000;
    max-height: 72vh;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .14);
}

.search-dropdown[hidden], .search-dropdown [hidden] { display: none !important; }
.search-dropdown__state, .search-dropdown__section { min-width: 0; }
.search-dropdown__section:not([hidden]) ~ .search-dropdown__section:not([hidden]) { margin-top: 26px; }
.search-dropdown__heading { display: flex; align-items: center; justify-content: space-between; }
.search-dropdown strong { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.search-dropdown__clear { border: 0; background: transparent; color: #aaa; cursor: pointer; font-size: 15px; }
.search-dropdown__clear:hover, .search-dropdown__clear:focus-visible { color: #FFE402; }
.search-dropdown__phrases, .search-dropdown__history { display: grid; gap: 2px; }
.search-dropdown__categories { display: grid; gap: 2px; }
.search-dropdown__category { display: flex; min-width: 0; min-height: 34px; align-items: center; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 16px; font-weight: 400; overflow-wrap: anywhere; }
.search-dropdown__category:hover, .search-dropdown__category:focus-visible { color: #FFE402; }
.search-dropdown__phrase, .search-dropdown__history-item { display: flex; min-width: 0; align-items: center; gap: 10px; min-height: 34px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 16px; font-weight: 400; overflow-wrap: anywhere; }
.search-dropdown__phrase:hover, .search-dropdown__phrase:focus-visible, .search-dropdown__history-item:hover > span { color: #FFE402; }
.search-dropdown__history-item > span { min-width: 0; overflow-wrap: anywhere; }
.search-dropdown__history-item button { margin-left: auto; border: 0; background: transparent; color: #bbb; cursor: pointer; font-size: 22px; opacity: 0; pointer-events: none; }
.search-dropdown__history-item:hover button, .search-dropdown__history-item:focus-within button { opacity: 1; pointer-events: auto; }
@media (hover: none) { .search-dropdown__history-item button { opacity: 1; pointer-events: auto; } }
.search-dropdown__products { display: grid; gap: 12px; }
.search-dropdown-product { display: grid; min-width: 0; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; color: #2B2A29; text-decoration: none; }
.search-dropdown-product:hover .search-dropdown-product__title, .search-dropdown-product:focus-visible .search-dropdown-product__title { color: #FFE402; }
.search-dropdown-product > span { min-width: 0; }
.search-dropdown-product img { width: 58px; height: 58px; object-fit: contain; }
.search-dropdown-product__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.search-dropdown-product__price { display: block; margin-top: 4px; font-size: 21px; font-weight: 600; }
.search-dropdown__loading { padding: 24px 0; text-align: center; color: #777; }
.search-dropdown__all { display: flex; width: 100%; max-width: 330px; box-sizing: border-box; margin: 26px auto 2px; align-items: center; justify-content: center; padding: 15px 24px; border: 1px solid #d5d5d5; border-radius: 5px; background: #fff; cursor: pointer; font-size: 18px; }
.search-dropdown__all:hover { border-color: #FFE402; background: #FFE402; }

body:has(.js-search-page) > header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

.search-page { max-width: 1200px; box-sizing: border-box; margin: 34px auto 80px; padding: 0; }
.search-page__summary { display: flex; align-items: center; gap: 14px; }
.search-page__summary h1 { margin: 0; font-size: 29px; font-weight: 600; }
.search-page__total { padding: 5px 10px; border-radius: 4px; background: #f2f2f2; font-size: 20px; }
.search-page__toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; align-items: center; margin: 28px 0 20px; }
.search-refinements { display: flex; align-items: center; gap: 12px; min-width: 0; }
.search-refinements__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.search-refinements__list::-webkit-scrollbar { display: none; }
.search-refinement { display: inline-flex; flex: none; height: 42px; box-sizing: border-box; align-items: center; padding: 0 14px; border: 1px solid #d5d5d5; border-radius: 5px; background: #fff; cursor: pointer; font-size: 15px; }
.search-sort { height: 42px; box-sizing: border-box; padding: 0 16px; appearance: none; border: 1px solid #d5d5d5; border-radius: 5px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%232B2A29' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; font-size: 16px; }
.search-filter-toggle { display: none; }
.search-page__content { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; }
.search-filters { min-width: 0; }
.search-page .search-results.catalog { width: auto; min-width: 0; }
.search-filter-group { padding: 20px 0; border-bottom: 1px solid #e4e4e4; }
.search-filter-group__header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.search-filter-group__title { margin-bottom: 14px; font-size: 20px; font-weight: 600; }
.search-filter-group__header .search-filter-group__title { margin-bottom: 0; font-size: 18px; font-weight: 400; text-transform: uppercase; }
.search-filter-clear { flex: none; padding: 0; border: 0; background: none; color: #aaa; cursor: pointer; font-family: "Roboto-Regular"; font-size: 14px; }
.search-filter-clear:hover, .search-filter-clear:focus-visible { color: #FFE402; }
.search-filter-options { max-height: 240px; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; padding-right: 8px; scrollbar-color: #ccc #f4f4f4; scrollbar-width: thin; }
.search-filter-options::-webkit-scrollbar { width: 6px; }
.search-filter-options::-webkit-scrollbar-thumb { background: #ccc; }
.search-filter-options::-webkit-scrollbar-track { background: #f4f4f4; }
.search-active-filters { padding: 20px 0 6px; }
.search-active-filters__list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-active-filter { display: flex; min-width: 0; max-width: 100%; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 30px; background: #f4f4f4; color: #2B2A29; cursor: pointer; font-size: 15px; text-align: left; }
.search-active-filter__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-active-filter__label { color: #aaa; }
.search-active-filter__remove { color: #aaa; font-size: 22px; line-height: 1; }
.search-active-filter:hover { background: #eaeaea; }
.search-category-option { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border: 0; background: none; color: #2B2A29; cursor: pointer; font-size: 16px; text-align: left; }
.search-category-option:hover, .search-category-option.is-active { color: #FFE402; }
.search-category-option__count { flex: none; color: #aaa; }
.search-filter-option { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; color: #2B2A29; cursor: pointer; font-size: 17px; line-height: 1.35; }
.search-filter-option input { flex: none; width: 20px; height: 20px; box-sizing: border-box; margin: 1px 0 0; appearance: none; border: 1px solid #aaa; border-radius: 3px; background: #fff; cursor: pointer; }
.search-filter-option input:checked { border-color: #2B2A29; background: #2B2A29; }
.search-filter-option input:checked::after { content: ''; display: block; width: 8px; height: 8px; margin: 5px; background: #fff; }
.search-filter-option input:focus-visible { outline: 2px solid #FFE402; outline-offset: 2px; }
.search-filter-option small { margin-left: auto; color: #aaa; font-size: 14px; }
.search-price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.search-price input { width: 100%; height: 46px; box-sizing: border-box; padding: 0 14px; border: 1px solid #c9c9c9; border-radius: 4px; background: #f6f6f6; color: #2B2A29; font-size: 16px; }
.search-price input::-webkit-inner-spin-button, .search-price input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.search-price-range { position: relative; height: 34px; margin-top: 18px; }
.search-price-range__track { position: absolute; top: 11px; right: 0; left: 0; height: 12px; box-sizing: border-box; border: 1px solid #c9c9c9; background: #e5e5e5; }
.search-price-range__input { position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0; appearance: none; background: transparent; pointer-events: none; }
.search-price-range__input::-webkit-slider-runnable-track { height: 12px; background: transparent; }
.search-price-range__input::-moz-range-track { height: 12px; background: transparent; }
.search-price-range__input::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -5px; appearance: none; border: 1px solid #bcbcbc; border-radius: 3px; background: #f6f6f6; cursor: grab; pointer-events: auto; }
.search-price-range__input::-moz-range-thumb { width: 22px; height: 22px; border: 1px solid #bcbcbc; border-radius: 3px; background: #f6f6f6; cursor: grab; pointer-events: auto; }
.search-price-range__input:focus-visible { outline: none; }
.search-price-range__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px #FFE402; }
.search-price-range__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px #FFE402; }
.js-search-price-min-range { z-index: 2; }
.js-search-price-max-range { z-index: 3; }
.search-filter-reset { display: flex; width: 100%; height: 50px; box-sizing: border-box; margin-top: 12px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid #d5d5d5; border-radius: 3px; background: #fff; color: #2B2A29; cursor: pointer; font-family: "Roboto-Regular"; font-size: 17px; font-weight: normal; }
.search-results__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
.search-product-card { position: relative; display: flex; min-width: 0; box-sizing: border-box; flex-direction: column; padding: 14px; border: 1px solid #e2e2e2; border-radius: 4px; background: #fff; cursor: pointer; outline: none; overflow: hidden; }
.search-product-card:focus, .search-product-card:focus-visible { outline: none; box-shadow: none; }
.search-product-card__badges { position: absolute; z-index: 1; top: 48px; left: 8px; display: flex; gap: 4px; }
.search-product-card__badge { padding: 7px 12px; border-radius: 0 0 3px; background: #FFE402; font-size: 12px; }
.search-product-card__badge--hit { min-width: 68px; background: #2B2A29; color: #fff; text-align: center; }
.search-product-card__badge--sale { background: #ff4b3e; color: #fff; }
.search-product-card__delivery { position: absolute; z-index: 1; top: 12px; right: 10px; width: 27px; height: 27px; object-fit: contain; pointer-events: none; }
.search-product-card__image { display: flex; height: 225px; align-items: center; justify-content: center; }
.search-product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.search-product-card__title { display: -webkit-box; min-height: 45px; margin-top: 10px; overflow: hidden; color: #2B2A29; font-size: 16px; line-height: 1.35; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-product-card__code { margin-top: 7px; color: #999; font-size: 12px; }
.search-product-card__price { margin-top: auto; padding-top: 12px; font-size: 25px; font-weight: 600; }
.search-product-card__availability { min-height: 20px; margin: 5px 0 12px; color: #21a354; font-size: 14px; }
.search-product-card__availability.to-order { color: #bd8d00; }
.search-product-card__add, .search-product-card > .add { position: relative; display: flex; height: 56px; min-height: 56px; max-height: 56px; box-sizing: border-box; flex: 0 0 56px; align-items: center; justify-content: center; gap: 9px; margin: 0 -14px -14px; padding: 0 45px 0 10px; border: 0; border-top: 1px solid #e2e2e2; border-radius: 0; background: #fff; color: #2B2A29; text-decoration: none; cursor: pointer; font-size: 17px; }
.search-product-card__add:hover, .search-product-card > .add:hover { background: #FFE402; }
.search-product-card__add img { width: 24px; height: 24px; object-fit: contain; }
.search-product-card > .this-basket { position: static; display: grid; width: auto; height: 56px; min-height: 56px; max-height: 56px; box-sizing: border-box; flex: 0 0 56px; grid-template-columns: 1fr 1.6fr 1fr; margin: 0 -14px -14px; border: 0; border-top: 1px solid #e4e4e4; border-radius: 0; overflow: hidden; }
.search-product-card > .this-basket > span { display: flex; width: auto; height: auto; align-items: center; justify-content: center; padding: 0; font-size: 18px; }
.search-product-card > .this-basket > .minus, .search-product-card > .this-basket > .plus { background: #FFE402; cursor: pointer; font-size: 0; }
.search-product-card > .this-basket > .minus::before { content: '−'; font-size: 25px; }
.search-product-card > .this-basket > .plus::before { content: '+'; font-size: 25px; }
.search-results__loading, .search-results__error, .search-results__empty { padding: 60px 20px; text-align: center; font-size: 18px; }
.search-results__sentinel { height: 1px; }

@media (max-width: 1100px) {
    .search-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 750px) {
    .search-dropdown { max-height: calc(100vh - 125px); padding: 20px; }
    .search-dropdown__all { width: 100%; min-width: 0; }
    .search-page { margin-top: 22px; padding: 0 14px; }
    .search-page__summary h1 { font-size: 21px; }
    .search-page__toolbar { grid-template-columns: minmax(0, 1fr) minmax(200px, 45%); gap: 12px; margin: 22px 0 18px; }
    .search-filter-toggle { display: block; height: 41px; border: 1px solid #d5d5d5; border-radius: 4px; background: #fff; color: #2B2A29; font-size: 17px; }
    .search-sort { width: 100%; }
    .search-refinements { grid-column: 1 / -1; grid-row: 2; }
    .search-page__content { grid-template-columns: 1fr; }
    .search-filters { display: none; }
    .search-filters.open { display: block; padding: 0 14px 18px; border: 1px solid #e5e5e5; }
    .search-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .search-product-card__image { height: 160px; }
    .search-product-card__title { height: 2.7em; min-height: 2.7em; max-height: 2.7em; font-size: 14px; }
    .search-product-card__price { font-size: 21px; }
}
