/* Microwell search engine — ase-search__ namespace */

.search_form.ase-search--open {
  overflow: visible !important;
}

.ase-search__dropdown {
  position: fixed;
  z-index: 10050;
  min-width: 0;
  max-height: 75vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 0;
  padding: 18px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.ase-search__columns {
  display: flex;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.ase-search__col-products {
  flex: 2;
  min-width: 0;
  overflow: hidden;
}

.ase-search__col-categories {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid #e5e5e5;
  padding-left: 20px;
}

.ase-search__section-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ase-search-primary, #666);
}

.ase-search__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ase-search__item {
  margin-bottom: 12px;
}

.ase-search__item:last-child {
  margin-bottom: 0;
}

.ase-search__product-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.ase-search__product-link:hover {
  text-decoration: none;
  color: inherit;
}

.ase-search__thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  background: transparent;
}

.ase-search__thumb--skeleton {
  background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
  background-size: 200% 100%;
  animation: ase-search-shimmer 1.2s ease-in-out infinite;
}

.ase-search__product-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ase-search__product-head {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 4px;
}

.ase-search__product-title {
  display: block;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ase-search__product-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 5px 1px;
  background: #c20035;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.ase-search__product-badge--stock {
  background: #dcfcdc;
  color: #067a08;
  text-transform: none;
}

.ase-search__product-price {
  display: block;
  font-size: 14px;
  color: #333;
}

.ase-search__category-link,
.ase-search__article-link {
  display: block;
  text-decoration: none;
  color: inherit;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ase-search__category-link:hover,
.ase-search__article-link:hover {
  text-decoration: underline;
  color: inherit;
}

.ase-search__articles {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.ase-search__articles .ase-search__item {
  margin-bottom: 20px;
}

.ase-search__article-title {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.ase-search__article-excerpt {
  display: block;
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}

.ase-search__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.ase-search__view-all {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.ase-search__view-all:hover {
  text-decoration: underline;
}

.ase-search__line--skeleton {
  display: block;
  height: 14px;
  border-radius: 4px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
  background-size: 200% 100%;
  animation: ase-search-shimmer 1.2s ease-in-out infinite;
}

.ase-search__line--skeleton.short {
  width: 60%;
}

@keyframes ase-search-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 991px) {
  .ase-search__dropdown {
    padding: 14px;
  }

  .ase-search__columns {
    flex-direction: column;
  }

  .ase-search__col-categories {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
  }

  .ase-search__thumb {
    width: 56px;
    height: 56px;
  }
}

.ase-search__dropdown[hidden] {
  display: none !important;
}

.ase-search__item--active .ase-search__product-link,
.ase-search__item--active .ase-search__category-link,
.ase-search__item--active .ase-search__article-link {
  outline: 2px solid var(--ase-search-primary, #666);
  outline-offset: 2px;
  border-radius: 4px;
}

.search_form {
  position: relative;
}
