/* Search — Figma section 215:9423. */
.search-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search-glyph { display: inline-grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; flex: none; width: 20px; height: 20px; }
.search-glyph img { max-width: none; }
.search-glyph--24 img { transform: scale(.8333333333); }
.search-glyph--history { width: 16px; height: 16px; }
.search-image-button { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 8px; border: 0; background: transparent; }
.search-image-button:hover { background: var(--background-secondary); }
.search-image-button:disabled { opacity: .45; cursor: default; }
.search-svg-line { display: block; width: 100%; height: 1px; overflow: hidden; }
.search-svg-line img { max-width: none; }
.header-search { position: absolute; inset: 0 0 auto; z-index: 4; background: var(--background-primary); transition: opacity var(--motion-ui, 180ms) ease; }
@starting-style { .header-search:not([hidden]) { opacity: 0; } }
.header-search__form { display: flex; align-items: center; gap: 8px; height: 52px; padding: 8px 8px 8px 16px; border-bottom: 2px solid var(--stroke-accent); background: var(--background-secondary); }
.header-search__field { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.header-search input, .search-field input { width: 100%; min-width: 0; height: 32px; border: 0; border-radius: 0; padding: 0; outline-offset: 2px; background: transparent; font-size: var(--caption-l); caret-color: var(--text-primary); }
.header-search input::-webkit-search-cancel-button, .search-field input::-webkit-search-cancel-button { appearance: none; }
.header-search input:focus-visible { outline: none; }
.header-search__content { max-height: min(60vh, calc(100dvh - 188px)); overflow-y: auto; overscroll-behavior: contain; }
.search-suggestion-group { padding: 8px 4px; }
.search-suggestion-group + .search-suggestion-group { padding-top: 4px; }
.search-suggestion-heading { display: flex; align-items: center; gap: 24px; justify-content: space-between; height: 40px; padding-inline: 16px; color: var(--text-secondary); font-size: var(--caption-l); }
.search-suggestion-heading h2 { font-size: inherit; line-height: 1.2; }
.search-history-clear { flex: none; min-height: 32px; padding: 0; border: 0; background: transparent; font-size: var(--caption-l); }
.search-history-clear:hover { color: var(--text-primary); }
.search-history-clear:disabled { opacity: .5; cursor: default; }
.search-suggestions { margin: 0; padding: 0; list-style: none; }
.search-suggestion { display: flex; gap: 14px; align-items: center; min-height: 44px; padding: 4px 8px 4px 16px; transition: background-color var(--motion-fast, 140ms) ease; }
.search-suggestion:hover, .search-suggestion:focus-within { background: var(--background-secondary); }
.search-suggestion-query { flex: 1; min-width: 0; align-self: stretch; padding: 0; border: 0; background: transparent; text-align: left; overflow-wrap: anywhere; font-size: var(--caption-l); }
.search-suggestion-empty { padding: 12px 16px; color: var(--text-secondary); font-size: var(--caption-l); }
.header-search__divider { height: 0; overflow: visible; clip-path: inset(-1px 16px); }
.header-search__divider + .search-suggestion-group { padding-top: 4px; }
.search-page { --search-result-title: #0c0a11; padding-top: 28px; padding-bottom: 72px; }
.search-page > h1 { margin-bottom: 32px; }
.search-layout { display: grid; gap: 32px; }
.search-page--products .search-layout { width: calc(100% - 4px); margin-inline: auto; }
.search-form { display: flex; align-items: start; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; height: 52px; padding: 8px 8px 8px 16px; border: 1px solid var(--stroke-tertiary); }
.search-field:focus-within { border-color: var(--stroke-accent); }
.search-field input:focus-visible { outline: none; }
.search-submit { width: 120px; flex: none; min-height: 52px; font-size: var(--button-s); padding-inline: 20px; }
.search-tabs { display: flex; gap: 8px; justify-self: start; }
.search-tab { min-height: 49px; padding: 16px 20px; border: 0; background: var(--background-secondary); font-size: var(--button-s); }
.search-tab[aria-selected='true'] { background: var(--background-inverse); color: var(--text-inverse); }
.search-tab[data-search-tab='products'] { min-width: 88px; }
.search-tab[data-search-tab='all'] { min-width: 139px; }
.search-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.search-products .product__details .on-order::before { display: inline-block !important; background: var(--background-quinary); }
.search-document { position: relative; display: flex; align-items: center; gap: 16px; min-height: 47px; padding-block: 24px; }
.search-document:first-child { padding-top: 0; }
.search-document:last-child { padding-bottom: 0; }
.search-document > .search-svg-line { position: absolute; inset: auto 0 0; }
.search-document-copy { display: grid; gap: 8px; flex: 1; min-width: 0; min-height: 47px; }
.search-document h2 { font-size: var(--text-l); line-height: 1.1; color: var(--search-result-title); }
.search-document-meta { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: var(--caption-l); color: var(--text-secondary); }
.search-document-category { flex: none; color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; }
.search-document-description { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-document:hover h2 { color: var(--text-accent); }
.search-pagination { margin-top: 40px; }
.search-pagination .search-glyph img { width: auto; height: auto; }
.search-empty { display: grid; justify-items: center; gap: 24px; min-height: 221px; padding: 40px; box-shadow: var(--drop-shadow); text-align: center; }
.search-empty-copy { display: grid; gap: 8px; width: 100%; }
.search-empty h2 { font-size: var(--h4); line-height: 1.1; }
.search-empty p { color: var(--text-secondary); font-size: var(--text-m); }
.search-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.search-empty .button { min-height: 52px; padding-inline: 20px; }
.search-home { background: var(--background-secondary); }
.search-home:hover { background: var(--background-quaternary); }
.search-page--empty .search-output { margin-top: 8px; }
@media (max-width: 1180px) { .search-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .search-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-search__content { max-height: calc(100dvh - 188px); }
  .search-page { padding-top: 24px; padding-bottom: var(--section-padding); }
}
@media (max-width: 640px) {
  .header-search__content { max-height: calc(100dvh - 168px); }
  .header-search input, .search-field input { font-size: var(--text-s); }
  .search-image-button { width: 40px; height: 40px; }
  .search-suggestion { gap: 10px; padding-left: 12px; }
  .search-suggestion-heading { padding-inline: 12px; gap: 12px; height: auto; min-height: 40px; flex-wrap: wrap; }
  .search-history-clear { font-size: var(--caption-m); }
  .search-page > h1 { font-size: var(--h2); overflow-wrap: anywhere; }
  .search-page--products .search-layout { width: 100%; }
  .search-layout { gap: 24px; }
  .search-form { gap: 8px; flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .search-submit { width: 100%; }
  .search-products { grid-template-columns: 1fr; }
  .search-document h2 { font-size: var(--text-m); line-height: 1.2; }
  .search-document-meta { flex-wrap: wrap; }
  .search-document-description { flex-basis: 100%; white-space: normal; }
  .search-document > .icon-button { width: 44px; height: 44px; }
  .search-empty { padding: 24px 16px; }
  .search-empty h2 { font-size: var(--h5); }
  .search-empty p { font-size: var(--text-s); }
  .search-empty-actions { width: 100%; }
  .search-empty-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .header-search { transition-duration: 100ms; } }
