#rc-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: -180px;
  width: 820px;
  max-width: 95vw;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-top: 3px solid #22c55e;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 6px 6px;
  z-index: 999999 !important;
  display: none;
  font-family: inherit;
  color: #1f2937;
  margin-top: 2px;
  overflow: hidden;
  text-align: left;
}
#rc-autocomplete-dropdown.is-open {
  display: flex !important;
  flex-wrap: wrap;
}
.rc-ac-sidebar {
  order: 1;
  width: 34%;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 14px;
  box-sizing: border-box;
}
.rc-ac-main {
  order: 2;
  width: 66%;
  padding: 14px;
  box-sizing: border-box;
  max-height: 490px;
  overflow-y: auto;
}
.rc-ac-footer {
  order: 3;
  width: 100%;
  background: #f3f4f6;
  padding: 9px 14px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}
.rc-ac-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e7eb;
}
.rc-ac-cat-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
.rc-ac-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-size: 13px;
  color: #1f2937;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s;
}
.rc-ac-cat-list li a:hover {
  background: #dcfce7;
  color: #15803d;
}
.rc-ac-badge {
  background: #e5e7eb;
  color: #374151;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
  margin-left: 6px;
}
.rc-ac-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rc-ac-brand-pill {
  font-size: 12px;
  padding: 4px 9px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s;
}
.rc-ac-brand-pill:hover {
  border-color: #22c55e;
  color: #15803d;
}
.rc-ac-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.rc-ac-filter-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #4b5563;
}
.rc-ac-filter-btn.active {
  background: #1f2937;
  color: #fff;
  border-color: #1f2937;
}
.rc-ac-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
  margin-bottom: 6px;
  cursor: pointer;
}
.rc-ac-product:hover, .rc-ac-product.is-selected {
  background: #f9fafb;
  border-color: #d1d5db;
}
.rc-ac-product img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 4px;
  flex-shrink: 0;
}
.rc-ac-info {
  flex: 1;
  min-width: 0;
}
.rc-ac-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
  line-height: 1.3;
  display: block;
  text-decoration: none;
}
.rc-ac-title:hover {
  color: #15803d;
}
.rc-ac-title mark {
  background: #fef08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}
.rc-ac-meta {
  font-size: 11.5px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rc-ac-stock-in {
  color: #15803d;
  font-weight: 600;
}
.rc-ac-stock-out {
  color: #b45309;
}
.rc-ac-buy {
  text-align: right;
  flex-shrink: 0;
}
.rc-ac-price {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.rc-ac-cart-btn {
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.rc-ac-cart-btn:hover {
  background: #16a34a;
}
.rc-ac-cart-btn.added {
  background: #15803d;
}
.rc-ac-footer a {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  text-decoration: none;
}
.search-whisperer, .whisperer, [class*="whisperer"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  #rc-autocomplete-dropdown.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 128px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 140px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border-radius: 6px;
  }

  /* Produkty vždy první nahoře */
  #rc-autocomplete-dropdown .rc-ac-main {
    order: 1 !important;
    width: 100% !important;
    max-height: none !important;
    padding: 10px;
  }

  /* Kategorie a značky až pod produkty */
  #rc-autocomplete-dropdown .rc-ac-sidebar {
    order: 2 !important;
    width: 100% !important;
    border-right: none !important;
    border-top: 1px solid #e5e7eb;
    padding: 10px;
  }

  /* Tlačítko Zobrazit všechny výsledky úplně dole */
  #rc-autocomplete-dropdown .rc-ac-footer {
    order: 3 !important;
  }

  .rc-ac-product {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 8px;
    border-bottom: 1px solid #f3f4f6;
  }

  .rc-ac-product img {
    width: 48px;
    height: 48px;
  }

  .rc-ac-info {
    flex: 1 1 calc(100% - 60px);
  }

  .rc-ac-title {
    font-size: 13px;
  }

  .rc-ac-buy {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 56px;
    box-sizing: border-box;
    text-align: left;
  }

  .rc-ac-price {
    margin-bottom: 0;
    font-size: 14px;
  }

  .rc-ac-cart-btn {
    padding: 7px 14px;
    font-size: 12.5px;
  }
}