/* Search results: empty state with an idea CTA and bestsellers. */

.tk-search-empty {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  margin-top: 28px;
  color: var(--tk-ink);
  font-family: Manrope, Arial, sans-serif;
}

.tk-search-empty__idea {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--tk-radius);
  background: var(--tk-ink);
  color: var(--tk-paper);
}

.tk-search-empty__idea > div {
  max-width: 620px;
}

.tk-search-empty__kicker {
  margin: 0 0 14px;
  color: var(--tk-mint);
  font: 700 11px 'Space Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tk-search-empty__title {
  margin: 0 0 14px;
  color: var(--tk-paper);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}

.tk-search-empty__lead {
  margin: 0;
  color: rgba(247, 246, 241, .72);
  font-size: 15px;
  line-height: 1.6;
}

.tk-search-empty__cta {
  display: inline-flex;
  min-height: 54px;
  padding: 0 24px;
  align-items: center;
  gap: 12px;
  border-radius: var(--tk-radius-pill);
  background: var(--tk-mint);
  color: var(--tk-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .2s ease;
}

.tk-search-empty__cta:hover,
.tk-search-empty__cta:focus-visible {
  background: var(--tk-paper);
  color: var(--tk-ink);
  text-decoration: none;
}

.tk-search-empty__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-search-empty__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.tk-search-empty__head h2 {
  margin: 0;
  color: var(--tk-ink);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.065em;
}

.tk-search-empty__head a {
  color: var(--tk-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tk-search-empty__head a:hover {
  color: var(--tk-mint-text, #1f6f60);
}

.tk-search-empty__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tk-search-empty__grid > .product {
  min-width: 0;
  width: auto;
  max-width: none;
  padding: 0;
}

.td-results-page.tk-is-empty :is(.td-toolbar, .td-pagination, .td-facets) {
  display: none !important;
}

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

@media (max-width: 620px) {
  .tk-search-empty__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-search-empty__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 404 / product not available ---------- */
body:has(.tk-not-found) #wrapper > .container {
  width: min(1800px, calc(100% - clamp(32px, 4vw, 80px)));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

body:has(.tk-not-found) #wrapper > .container > .row {
  margin: 0;
}

body:has(.tk-not-found) #content-wrapper {
  width: 100%;
  padding: 0;
  float: none;
}

body:has(.tk-not-found) #main .page-footer {
  display: none;
}

#main .tk-not-found {
  max-width: none;
  overflow: visible;
  font-size: inherit;
  display: grid;
  gap: clamp(48px, 6vw, 88px);
  margin: 0;
  padding: clamp(28px, 4vw, 64px) 0 clamp(40px, 5vw, 90px);
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tk-ink);
  font-family: Manrope, Arial, sans-serif;
}

.tk-not-found__head {
  max-width: 820px;
}

.tk-not-found__code {
  margin: 0 0 14px;
  color: var(--tk-mint-text, #1f6f60);
  font: 700 11px/1.3 'Space Mono', monospace;
  letter-spacing: .06em;
}

.tk-not-found__title {
  margin: 0;
  color: var(--tk-ink);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.075em;
}

.tk-not-found__lead {
  max-width: 600px;
  margin: 20px 0 30px;
  color: var(--tk-muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
}

.tk-not-found__search {
  display: flex;
  max-width: 620px;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--tk-line);
  border-radius: var(--tk-radius-pill);
  background: #fff;
}

.tk-not-found__search:focus-within {
  border-color: var(--tk-ink);
}

.tk-not-found__search input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--tk-ink);
  font: 600 15px Manrope, sans-serif;
  outline: none;
}

.tk-not-found__search button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--tk-radius-pill);
  background: var(--tk-ink);
  color: var(--tk-paper);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tk-not-found__search button:hover,
.tk-not-found__search button:focus-visible {
  background: var(--tk-mint-deep);
  color: var(--tk-ink);
}

.tk-not-found__search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
}

.tk-not-found__links a {
  color: var(--tk-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tk-not-found__links a:hover {
  color: var(--tk-mint-text, #1f6f60);
}

@media (max-width: 640px) {
  .tk-not-found__search {
    flex-direction: column;
    border-radius: 20px;
  }

  .tk-not-found__search button {
    justify-content: center;
  }
}
