.tk-site-header .tk-search {
  position: relative;
  display: block;
  width: clamp(170px, 15vw, 220px);
  margin: 0 clamp(14px, 2vw, 30px) 0 0;
  border: 0;
  color: var(--tk-ink, #111311);
  font-family: Manrope, Arial, sans-serif;
}

.tk-search *,
.tk-search *::before,
.tk-search *::after {
  box-sizing: border-box;
}

.tk-search-panel[hidden],
.tk-search-backdrop[hidden] {
  display: none !important;
}

.tk-site-header .tk-search-trigger {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 0 0 2px;
  color: var(--tk-muted, #626560);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--tk-line, rgba(17, 19, 17, .15));
  border-radius: 0;
  font: 500 12px Manrope, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.tk-site-header .tk-search-trigger:hover,
.tk-site-header .tk-search-trigger:focus-visible,
.tk-site-header .tk-search-trigger[aria-expanded="true"] {
  color: var(--tk-ink, #111311);
  border-bottom-color: currentColor;
}

.tk-site-header .tk-search-trigger svg,
.tk-search-panel svg,
.tk-search-all svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-search-panel {
  position: fixed;
  z-index: 220;
  top: clamp(78px, 6vw, 96px);
  left: 50%;
  width: min(1800px, calc(100% - clamp(32px, 4vw, 80px)));
  max-height: calc(100dvh - clamp(78px, 6vw, 96px) - 18px);
  overflow: auto;
  color: var(--tk-ink, #111311);
  background: var(--tk-paper, #f7f6f1);
  border: 1px solid var(--tk-line, rgba(17, 19, 17, .15));
  border-top: 0;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 28px 70px rgba(17, 19, 17, .14);
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity .2s ease, transform .2s ease;
}

.tk-search-panel.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tk-search-panel__inner {
  width: 100%;
  min-height: 430px;
  padding: clamp(26px, 3vw, 46px);
}

.tk-search-panel__header,
.tk-search-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tk-search-panel__header {
  margin-bottom: 24px;
}

.tk-search-panel__header h2 {
  max-width: 760px;
  margin: 0;
  color: var(--tk-ink, #111311);
  font: 800 clamp(28px, 3vw, 48px)/1 Manrope, Arial, sans-serif;
  letter-spacing: -.06em;
  text-transform: none;
}

.tk-site-header .tk-search-close {
  position: static;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 12px;
  place-items: center;
  color: var(--tk-ink, #111311);
  background: transparent;
  border: 1px solid var(--tk-line, rgba(17, 19, 17, .15));
  border-radius: 50%;
  cursor: pointer;
}

.tk-search-form {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0 0 28px;
  border-bottom: 2px solid var(--tk-ink, #111311);
}

.tk-search-form .tk-search-query {
  display: block;
  width: 100%;
  height: 66px;
  min-height: 66px;
  margin: 0;
  padding: 0 64px 0 0;
  color: var(--tk-ink, #111311);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 600 clamp(17px, 1.5vw, 23px)/1.2 Manrope, Arial, sans-serif;
  outline: 0;
}

.tk-search-form .tk-search-query::placeholder {
  color: var(--tk-muted, #626560);
  opacity: .65;
}

.tk-site-header .tk-search-form > button {
  position: absolute;
  top: 8px;
  right: 0;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 14px;
  place-items: center;
  color: var(--tk-paper, #f7f6f1);
  background: var(--tk-ink, #111311);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.tk-search-status {
  min-height: 18px;
  margin: -12px 0 12px;
  color: var(--tk-muted, #626560);
  font: 500 11px/1.4 'Space Mono', monospace;
}

.tk-search-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: clamp(28px, 4vw, 64px);
}

.tk-search-section-title {
  min-height: 34px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--tk-line, rgba(17, 19, 17, .15));
}

.tk-search-section-title h3 {
  margin: 0;
  color: var(--tk-ink, #111311);
  font: 700 12px/1.3 'Space Mono', monospace;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.tk-search-section-title span {
  color: var(--tk-mint-text, #1f6f60);
  font: 700 10px/1 'Space Mono', monospace;
}

.tk-search-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--tk-line, rgba(17, 19, 17, .15));
  border: 1px solid var(--tk-line, rgba(17, 19, 17, .15));
  border-radius: 18px;
}

.tk-search-product {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 22px;
  min-width: 0;
  min-height: 126px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  color: var(--tk-ink, #111311);
  background: var(--tk-paper, #f7f6f1);
  text-decoration: none;
  transition: background-color .18s ease;
}

.tk-search-product:hover,
.tk-search-product:focus-visible {
  color: var(--tk-ink, #111311);
  background: var(--tk-mint, #79d7c3);
  text-decoration: none;
}

.tk-search-product img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #e8ebe8;
  border-radius: 13px;
}

.tk-search-product__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.tk-search-product__copy small {
  overflow: hidden;
  color: var(--tk-mint-text, #1f6f60);
  font: 700 9px/1.3 'Space Mono', monospace;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tk-search-product__copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font: 750 14px/1.25 Manrope, Arial, sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tk-search-product__copy b {
  color: inherit;
  font: 700 11px/1.2 'Space Mono', monospace;
}

.tk-search-categories {
  border-top: 1px solid var(--tk-line, rgba(17, 19, 17, .15));
}

.tk-search-category {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  min-height: 55px;
  align-items: center;
  gap: 12px;
  color: var(--tk-ink, #111311);
  border-bottom: 1px solid var(--tk-line, rgba(17, 19, 17, .15));
  text-decoration: none;
}

.tk-search-category:hover,
.tk-search-category:focus-visible {
  color: var(--tk-mint-text, #1f6f60);
  text-decoration: none;
}

.tk-search-category span {
  color: var(--tk-muted, #626560);
  font: 400 9px/1 'Space Mono', monospace;
}

.tk-search-category strong {
  font: 700 13px/1.3 Manrope, Arial, sans-serif;
}

.tk-search-empty {
  min-height: 120px;
  padding: 30px 0;
  color: var(--tk-muted, #626560);
  font: 600 15px/1.5 Manrope, Arial, sans-serif;
}

.tk-search-all {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--tk-ink, #111311);
  border-bottom: 1px solid currentColor;
  font: 700 12px/1.3 Manrope, Arial, sans-serif;
  text-decoration: none;
}

.tk-search-all:hover,
.tk-search-all:focus-visible {
  color: var(--tk-mint-text, #1f6f60);
  text-decoration: none;
}

.tk-search-backdrop {
  display: none;
}

body.tk-search-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .tk-site-header .tk-search {
    display: block !important;
    width: 44px;
    margin-right: 4px;
  }

  .tk-site-header .tk-search-trigger {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 11px;
    place-items: center;
    border: 1px solid var(--tk-line, rgba(17, 19, 17, .15));
    border-radius: 50%;
  }

  .tk-search-trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .tk-search-panel {
    top: 0;
    right: 0;
    left: auto;
    width: 100vw;
    max-height: none;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    opacity: 1;
    transform: translateX(100%);
    transition: transform .24s ease;
  }

  .tk-search-panel.is-open {
    transform: translateX(0);
  }

  .tk-search-panel__inner {
    min-height: 100%;
    padding: 24px 20px 34px;
  }

  .tk-search-panel__header h2 {
    max-width: 300px;
    font-size: clamp(27px, 8vw, 38px);
  }

  .tk-search-results {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tk-search-products {
    grid-template-columns: 1fr;
  }

  .tk-search-product {
    grid-template-columns: 82px minmax(0, 1fr) 20px;
    min-height: 108px;
  }

  .tk-search-product img {
    width: 82px;
    height: 82px;
  }

  .tk-search-backdrop {
    position: fixed;
    z-index: 210;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(17, 19, 17, .48);
    border: 0;
    opacity: 0;
    transition: opacity .24s ease;
  }

  .tk-search-backdrop.is-open {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-search-panel,
  .tk-search-backdrop {
    transition: none;
  }
}
