.header-search { display: flex; min-width: 0; }
.header-search input { min-width: 0; width: 100%; color: #10251d; }
#secondary-navigation { position: relative; z-index: 45; overflow: visible; }
.catalog-navigation { position: relative; overflow: visible; }
.catalog-secondary-links { min-width: 0; overflow-x: auto; justify-content: flex-start; }
.catalog-menu { flex: 0 0 auto; }
.catalog-menu > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border-radius: 8px; background: #ffffff20; cursor: pointer; list-style: none; font-weight: 600; }
.catalog-menu > summary::-webkit-details-marker { display: none; }
.catalog-menu[open] > summary { background: #ffffff30; }
.catalog-menu-panel { position: absolute; top: 100%; left: 0; width: min(520px, 100%); max-height: min(65vh, 620px); overflow-y: auto; overscroll-behavior: contain; background: white; color: #10251d; border: 1px solid #e7e5e4; border-radius: 12px; box-shadow: 0 14px 32px #0002; padding: 8px; z-index: 90; }
.catalog-category-tree, .catalog-category-tree ul { list-style: none; padding: 0; margin: 0; }
.catalog-category-tree > li + li { border-top: 1px solid #f0efed; }
.catalog-category-tree summary, .catalog-category-tree a { padding: 12px; min-height: 44px; display: block; overflow-wrap: anywhere; text-decoration: none; cursor: pointer; }
.catalog-category-tree summary { display: list-item; list-style-position: inside; font-weight: 600; }
.catalog-category-tree ul { padding-left: 14px; background: #f8f9f5; }
.catalog-category-tree a:hover { background: #f1f5db; }
.catalog-menu summary:focus-visible, .catalog-menu a:focus-visible, .header-search input:focus-visible { outline: 2px solid rgb(196, 219, 31); outline-offset: -2px; }
.search-category-links > a { flex: 0 0 auto; white-space: nowrap; }
.catalog-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin: 28px 0; }
.catalog-pagination a { background: rgb(196, 219, 31); color: #10251d; border-radius: 8px; padding: 12px 16px; font-weight: 700; }
@media (max-width: 639px) {
    .site-header-row { flex-wrap: wrap; gap: 10px; }
    .header-search { order: 3; flex: 0 0 100%; }
    .header-search input { font-size: 16px; padding: 10px; }
    .header-search button { padding: 10px 14px; flex-shrink: 0; }
    .catalog-menu-panel { max-height: 60vh; width: 100%; }
}
