.kk-search-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.kk-search-toggle:hover,
.kk-search-toggle:focus-visible,
.kk-search-toggle[aria-expanded="true"] {
  border-color: #ffc107;
  color: #ffc107;
  outline: none;
}

.kk-search-toggle svg {
  width: 23px;
  height: 23px;
}

.kk-product-search {
  position: relative;
  z-index: 10020;
  display: none;
  width: 100%;
  padding: 0 15px 12px;
}

.kk-product-search.is-open {
  display: block;
}

.kk-product-search-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.kk-product-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 42px;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(47, 51, 56, 0.97);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.kk-product-search-input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 1rem;
  outline: none;
}

.kk-product-search-input:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.kk-product-search-submit,
.kk-product-search-close {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}

.kk-product-search-submit {
  border: 1px solid #dba600;
  background: #ffc107;
  color: #111;
}

.kk-product-search-submit svg {
  width: 21px;
  height: 21px;
}

.kk-product-search-close {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  font-size: 24px;
}

.kk-product-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.kk-product-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  right: 58px;
  display: none;
  max-height: min(62vh, 540px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(38, 42, 47, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.kk-product-search-results.has-content {
  display: block;
}

.kk-search-result {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.kk-search-result:hover,
.kk-search-result:focus,
.kk-search-result.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.kk-search-result img {
  width: 68px;
  height: 64px;
  object-fit: contain;
  border-radius: 5px;
  background: #111;
}

.kk-search-result-name {
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
  line-height: 1.25;
}

.kk-search-result-meta {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  line-height: 1.35;
}

.kk-search-result-price {
  color: #49b7ff;
  font-weight: 900;
  white-space: nowrap;
}

.kk-search-result-message,
.kk-search-result-all {
  display: block;
  padding: 14px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.kk-search-result-all {
  color: #ffc107;
  font-weight: 800;
  text-decoration: none;
}

.kk-search-result-all:hover,
.kk-search-result-all:focus {
  color: #ffd34d;
  text-decoration: none;
}

.kk-search-page {
  min-height: 55vh;
  background: #2f3338;
  color: #fff;
}

.kk-search-page-head {
  max-width: 850px;
  margin: 0 auto 2rem;
  text-align: center;
}

.kk-search-page-head h1 {
  margin-bottom: 1.25rem;
  font-size: 2rem;
  letter-spacing: 0;
}

.kk-search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.kk-search-page-form input,
.kk-search-page-form button {
  min-height: 48px;
  border-radius: 7px;
}

.kk-search-page-form input {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #c7c7c7;
}

.kk-search-page-form button {
  padding: 0 22px;
  border: 1px solid #dba600;
  background: #ffc107;
  color: #111;
  font-weight: 800;
}

.kk-search-page-summary,
.kk-search-page-message {
  margin-bottom: 1.5rem;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 991.98px) {
  .kk-search-toggle-mobile {
    margin-left: auto;
    margin-right: 10px;
  }

  .kk-product-search {
    padding-right: 0;
    padding-bottom: 10px;
    padding-left: 0;
  }

  .kk-product-search-results {
    left: 0;
    right: 0;
    max-height: min(58vh, 480px);
  }
}

@media (max-width: 576px) {
  .kk-product-search-form {
    grid-template-columns: minmax(0, 1fr) 44px 40px;
    gap: 6px;
    padding: 7px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .kk-search-result {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 76px;
    padding: 8px 10px;
  }

  .kk-search-result img {
    width: 58px;
    height: 58px;
  }

  .kk-search-result-price {
    grid-column: 2;
    justify-self: start;
    margin-top: -6px;
  }

  .kk-search-page-head h1 {
    font-size: 1.65rem;
  }

  .kk-search-page-form {
    grid-template-columns: 1fr;
  }
}

