.catalog-search {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    font-family: "Century Gothic", Arial, sans-serif;
}

.catalog-search__field {
    display: flex;
    align-items: center;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transition: border-color .18s ease;
}

.catalog-search:focus-within .catalog-search__field {
    border-color: #84c200;
    box-shadow: inset 0 -2px 0 #84c200;
}

.catalog-search__icon {
    flex: 0 0 auto;
    margin-left: 16px;
    color: #737373;
}

.catalog-search__input {
    min-width: 0;
    flex: 1 1 auto;
    height: 48px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #151515;
    font-size: 16px;
}

.catalog-search__input::-webkit-search-cancel-button { display: none; }

.catalog-search__clear {
    flex: 0 0 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    font-size: 25px;
    line-height: 34px;
}

.catalog-search__clear:hover { background: #f1f1f1; color: #111; }

.catalog-search__submit {
    align-self: stretch;
    min-width: 92px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: #84c200;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease;
}

.catalog-search__submit:hover,
.catalog-search__submit:focus { background: #70a700; color: #fff; }

.catalog-search__dropdown {
    position: absolute;
    z-index: 3000;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: min(560px, 70vh);
    overflow-y: auto;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.catalog-search__state {
    padding: 22px 20px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.catalog-search__option {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid #efefef;
    color: #161616;
    text-decoration: none;
}

.catalog-search__option:last-child { border-bottom: 0; }
.catalog-search__option:hover,
.catalog-search__option.is-active { background: #f5f9ee; color: #111; text-decoration: none; }
.catalog-search__thumb { width: 68px; height: 82px; border-radius: 8px; background: #f3f3f3; object-fit: cover; }
.catalog-search__title { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.catalog-search__meta { display: block; color: #777; font-size: 13px; line-height: 1.45; }
.catalog-search__price { white-space: nowrap; font-size: 15px; font-weight: 700; text-align: right; }
.catalog-search__old-price { display: block; margin-top: 3px; color: #999; font-size: 12px; font-weight: 400; text-decoration: line-through; }

.search-results { padding: 26px 0 48px; }
.search-results__heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.search-results__heading h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
.search-results__eyebrow { margin: 0 0 7px; color: #70a700; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-results__count { margin: 0 0 5px; color: #777; font-size: 14px; white-space: nowrap; }
.search-results .catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.search-results .product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e9e9e9; border-radius: 12px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.search-results .product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .09); }
.search-results .product-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #f4f4f4; }
.search-results .product-card__image img,
.search-results .product-card__image video { width: 100%; height: 100%; object-fit: cover; }
.search-results .product-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px; }
.search-results .product-card__price { min-height: 24px; font-size: 18px; font-weight: 700; }
.search-results .product-card__old { margin-left: 6px; color: #999; font-size: 13px; font-weight: 400; text-decoration: line-through; }
.search-results .product-card__colors { min-height: 18px; color: #777; font-size: 12px; }
.search-results .product-card__name { min-height: 42px; font-size: 14px; line-height: 1.45; }
.search-results .product-card__meta { margin-top: -4px; color: #999; font-size: 12px; }
.search-results .store-button,
.search-results__back { display: inline-block; margin-top: auto; padding: 10px 16px; border: 0; border-radius: 8px; background: #84c200; color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.search-results .store-button:hover,
.search-results__back:hover { background: #70a700; color: #fff; text-decoration: none; }
.search-results__empty { max-width: 620px; margin: 50px auto; padding: 38px; border: 1px solid #e8e8e8; border-radius: 16px; background: #fafafa; text-align: center; }
.search-results__empty h2 { margin: 0 0 10px; }
.search-results__empty p { margin: 0 0 24px; color: #666; line-height: 1.6; }
.search-results .pagination-simple { display: flex; justify-content: center; gap: 16px; margin-top: 34px; }

@media (max-width: 991px) {
    .search-results .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    html.catalog-search-open,
    html.catalog-search-open body { overflow: hidden; }

    .catalog-search { width: 100%; }
    .catalog-search__field { min-height: 46px; border-radius: 0; }
    .catalog-search__input { height: 44px; font-size: 16px; }
    .catalog-search__submit { min-width: 76px; padding: 0 12px; }

    .catalog-search.is-open::before {
        content: "";
        position: fixed;
        z-index: 2998;
        inset: 0;
        pointer-events: none;
        background: rgba(255, 255, 255, .96);
    }

    .catalog-search.is-open .catalog-search__field {
        position: fixed;
        z-index: 3001;
        top: calc(10px + env(safe-area-inset-top));
        right: 10px;
        left: 10px;
        width: auto;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    }

    .catalog-search__dropdown {
        position: fixed;
        z-index: 3000;
        top: calc(64px + env(safe-area-inset-top));
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        max-height: none;
        overscroll-behavior: contain;
        border-radius: 0;
        box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
    }

    .catalog-search__option { grid-template-columns: 56px minmax(0, 1fr); gap: 11px; padding: 10px; }
    .catalog-search__thumb { width: 56px; height: 68px; }
    .catalog-search__price { grid-column: 2; margin-top: -8px; text-align: left; }
    .search-results__heading { display: block; }
    .search-results__count { margin-top: 10px; }
    .search-results .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 9px; }
    .search-results .product-card__body { padding: 11px; }
}

@media (max-width: 390px) {
    .catalog-search__icon { display: none; }
    .catalog-search__submit { min-width: 68px; padding: 0 10px; font-size: 14px; }
}
