.clyro-main-navbar.clyro-search-opened,
.clyro-main-navbar:has(.clyro-instant-search) {
  z-index: 3001 !important;
}

/* ==========================================================================
   1. NAVBAR SEARCH BAR (Wyszukiwarka w belce nawigacji)
   ========================================================================== */

.clyro-nav-search-col {
  flex: 1 1 auto;
  max-width: 440px;
  margin: 0 16px;
}

.clyro-navbar-search {
  position: relative;
  width: 100%;
}

.clyro-navbar-search__form {
  align-items: center;
  background: #f5f7fa;
  border: 1px solid #d9dfe4;
  border-radius: 8px;
  display: flex;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  width: 100%;
}

.clyro-navbar-search.is-focused .clyro-navbar-search__form,
.clyro-navbar-search.is-opened .clyro-navbar-search__form {
  background: #ffffff;
  border-color: #111417;
  box-shadow: 0 0 0 3px rgba(17, 20, 23, 0.08);
}

.clyro-navbar-search__icon {
  color: #8a9297;
  flex-shrink: 0;
  font-size: 20px;
  margin-right: 8px;
  transition: color .15s ease;
}

.clyro-navbar-search.is-focused .clyro-navbar-search__icon {
  color: #111417;
}

.clyro-navbar-search__input-wrap,
.clyro-navbar-search__input-box {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  min-width: 0;
  position: relative;
}

.clyro-navbar-search__input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #111417;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  height: 38px;
  outline: none !important;
  padding: 0;
  width: 100%;
}

/* Ukrycie natywnego WebKit cancel button */
.clyro-navbar-search__input::-webkit-search-cancel-button,
.clyro-navbar-search__input::-webkit-search-decoration,
.clyro-navbar-search__input::-webkit-search-results-button,
.clyro-navbar-search__input::-webkit-search-results-decoration,
.clyro-search-input::-webkit-search-cancel-button,
.clyro-search-input::-webkit-search-decoration,
.clyro-search-input::-webkit-search-results-button,
.clyro-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

/* Animacja wpisywania (Typewriter placeholder) w jasnoszarym odcieniu */
.clyro-search-placeholder {
  align-items: center;
  color: #8a9297;
  display: flex;
  font-size: 13px;
  gap: 4px;
  left: 0;
  line-height: 1;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity .15s ease, visibility .15s ease;
  user-select: none;
  white-space: nowrap;
}

.clyro-search-placeholder__prefix {
  color: #8a9297;
  font-weight: 500;
}

.clyro-search-placeholder__text {
  color: #a8b0b8; /* Jasno szary font jak w lazienkaplus.pl */
  font-weight: 500;
}

.clyro-search-placeholder__cursor {
  animation: clyroCursorBlink 1s infinite;
  color: #8a9297;
  font-weight: 300;
  margin-left: -1px;
}

@keyframes clyroCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Schowaj placeholder gdy pole ma fokus lub wartość */
.clyro-navbar-search.is-focused .clyro-search-placeholder,
.clyro-navbar-search.has-value .clyro-search-placeholder {
  opacity: 0;
  visibility: hidden;
}

.clyro-navbar-search__clear {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #8a9297;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 24px;
  justify-content: center;
  margin-left: 4px;
  padding: 0;
  transition: color .15s ease, background-color .15s ease;
  width: 24px;
}

.clyro-navbar-search__clear:hover {
  background: #e6eaf0;
  color: #111417;
}

.clyro-navbar-search__clear i {
  font-size: 16px;
}


/* ==========================================================================
   2. DROPDOWN WRAPPER & CARD (Desktop)
   ========================================================================== */

@media (min-width: 768px) {
  .clyro-search-dropdown-wrapper,
  .clyro-search-dropdown-wrapper.has-instant-search,
  .clyro-search-dropdown-wrapper:has(.clyro-instant-search) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    width: 100% !important;
    z-index: 3000 !important;
  }

  .clyro-search-dropdown-wrapper > .container,
  .clyro-search-dropdown-wrapper > .container-fluid,
  .clyro-search-dropdown-wrapper > .container-xl,
  .clyro-search-dropdown-wrapper.has-instant-search > .container,
  .clyro-search-dropdown-wrapper.has-instant-search > .container-fluid,
  .clyro-search-dropdown-wrapper.has-instant-search > .container-xl,
  .clyro-search-dropdown-wrapper:has(.clyro-instant-search) > .container,
  .clyro-search-dropdown-wrapper:has(.clyro-instant-search) > .container-fluid,
  .clyro-search-dropdown-wrapper:has(.clyro-instant-search) > .container-xl {
    margin: 0 auto !important;
    max-width: min(1360px, calc(100vw - 32px)) !important;
    padding: 0 !important;
    width: min(1360px, calc(100vw - 32px)) !important;
  }

  /* Na desktopie input jest w navbarze – ukrywamy dubel wewnątrz dropdownu */
  .clyro-instant-search .clyro-search-form-wrap {
    display: none !important;
  }
}

.clyro-instant-search {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 22px 42px rgba(17, 20, 23, 0.18);
  color: #111417;
  font-family: var(--clyro-font, inherit);
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  width: 100%;
}


/* ==========================================================================
   3. DWUKOLUMNOWY UKŁAD WYNIKÓW (Równy dół, szyna w stylu Mega Menu)
   ========================================================================== */

.clyro-instant-search__content {
  border: none;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: min(520px, calc(100vh - 180px));
  margin: 0;
  overflow: hidden;
}

/* Lewa szyna z kategoriami z Mega Menu i popularnymi frazami */
.clyro-instant-search__side {
  background: #f2f4f7;
  border-right: 1px solid #e6eaf0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 16px 0 16px 12px;
}

.clyro-instant-search__side section + section {
  border-top: 1px solid #e6eaf0;
  margin-top: 16px;
  padding-top: 14px;
}

.clyro-instant-search h3 {
  color: #8a9096;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .105em;
  margin: 0 0 10px;
  padding: 0 12px 0 4px;
  text-transform: uppercase;
}

/* Szyna kategorii w stylu Mega Menu z ikonami SVG */
.clyro-instant-search__categories-rail {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.clyro-instant-search__cat-item {
  align-items: center;
  background: transparent;
  border-radius: 8px 0 0 8px;
  color: #3d454b;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 11px;
  letter-spacing: -.01em;
  line-height: 1.25;
  padding: 9px 12px;
  position: relative;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.clyro-instant-search__cat-item:hover {
  background: #ffffff;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 8px rgba(17, 20, 23, 0.04);
  color: #111417;
}

.clyro-instant-search__cat-icon {
  align-items: center;
  color: #8a9096;
  display: inline-flex;
  flex-shrink: 0;
  height: 20px;
  justify-content: center;
  transition: color .15s ease;
  width: 20px;
}

.clyro-instant-search__cat-icon svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.clyro-instant-search__cat-item:hover .clyro-instant-search__cat-icon {
  color: #111417;
}

.clyro-instant-search__cat-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clyro-instant-search__cat-arrow {
  align-items: center;
  color: #abb3bd;
  display: inline-flex;
  flex-shrink: 0;
  height: 16px;
  justify-content: center;
  margin-right: 6px;
  transition: color .15s ease, transform .15s ease;
  width: 16px;
}

.clyro-instant-search__cat-arrow svg {
  height: 14px;
  width: 14px;
}

.clyro-instant-search__cat-item:hover .clyro-instant-search__cat-arrow {
  color: #111417;
  transform: translateX(2px);
}

/* Chips popularnych fraz */
.clyro-instant-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 12px;
}

.clyro-instant-search__chip {
  background: #fff;
  border: 1px solid #d9dfe4;
  border-radius: 5px;
  color: #111417;
  font-size: 11px;
  line-height: 1.3;
  padding: 6px 9px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.clyro-instant-search__chip:hover {
  background: #f1ffd4;
  border-color: #91af3f;
  color: #111417;
}

.clyro-instant-search__empty-side {
  color: #8a9096;
  font-size: 11px;
  line-height: 1.5;
  padding: 0 12px;
}


/* ==========================================================================
   4. PRAWA KOLUMNA: PRODUKTY & STATUSY
   ========================================================================== */

.clyro-instant-search__main {
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 18px 26px 16px;
}

.clyro-instant-search__heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.clyro-instant-search__heading h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0;
}

.clyro-instant-search__heading span {
  color: #8a9096;
  font-size: 11px;
}

.clyro-instant-search__products {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.clyro-instant-search__side::-webkit-scrollbar,
.clyro-instant-search__products::-webkit-scrollbar {
  width: 6px;
}

.clyro-instant-search__side::-webkit-scrollbar-track,
.clyro-instant-search__products::-webkit-scrollbar-track {
  background: transparent;
}

.clyro-instant-search__side::-webkit-scrollbar-thumb,
.clyro-instant-search__products::-webkit-scrollbar-thumb {
  background: #d4d9de;
  border-radius: 3px;
}

/* Wiersz produktu: zdjęcie zachowuje czyste tło; podświetla się wyłącznie treść */
.clyro-instant-search__product {
  align-items: center;
  color: #111417;
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
  min-height: 70px;
  padding: 2px 0;
  text-decoration: none;
}

.clyro-instant-search__product-thumb {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  transition: border-color .18s ease;
  width: 64px;
}

.clyro-instant-search__product-thumb img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.clyro-instant-search__image-empty {
  align-items: center;
  background: #f1f4f8;
  border-radius: 6px;
  color: #9aa3ab;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.clyro-instant-search__product-body {
  align-items: center;
  border-radius: 8px;
  display: flex;
  flex: 1;
  gap: 14px;
  justify-content: space-between;
  min-height: 64px;
  min-width: 0;
  padding: 8px 14px;
  transition: background-color .15s ease;
}

.clyro-instant-search__product:hover .clyro-instant-search__product-body {
  background: #f4f8e8;
}

.clyro-instant-search__product:hover .clyro-instant-search__product-thumb {
  border-color: #c7ff2e;
}

.clyro-instant-search__product:hover .clyro-instant-search__arrow {
  color: #111417;
  transform: translateX(3px);
}

.clyro-instant-search__product-copy {
  flex: 1;
  min-width: 0;
}

.clyro-instant-search__product-copy strong {
  color: #111417;
  display: -webkit-box;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clyro-instant-search__product-copy small {
  color: #8a9096;
  display: block;
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clyro-instant-search__product-action {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.clyro-instant-search__price {
  color: #111417;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.clyro-instant-search__arrow {
  color: #8a9297;
  font-size: 18px;
  transition: color .15s ease, transform .15s ease;
}

/* Spokojne, neutralne oznaczenie niedostępności (brak krzykliwej czerwieni) */
.clyro-instant-search__stock.is-unavailable {
  background: #eef1f5;
  border: 1px solid #d8dee4;
  border-radius: 4px;
  color: #69727b;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  padding: 3px 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.clyro-instant-search__product.is-unavailable .clyro-instant-search__product-thumb img {
  filter: grayscale(25%);
  opacity: 0.6;
}

.clyro-instant-search__product.is-unavailable .clyro-instant-search__price {
  color: #8a9297;
  font-weight: 700;
}

.clyro-instant-search mark {
  background: #e5f8b1;
  border-radius: 1px;
  color: inherit;
  font-weight: 800;
  padding: 0 1px;
}

.clyro-instant-search__redirect {
  align-items: center;
  background: #f0f8de;
  border: 1px solid #deedc5;
  border-radius: 6px;
  color: #111417;
  display: flex;
  gap: 12px;
  margin: 2px 0 9px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color .15s ease;
}

.clyro-instant-search__redirect:hover {
  background: #eaf7d0;
  color: #111417;
}

.clyro-instant-search__redirect strong {
  font-size: 12px;
}

.clyro-instant-search__redirect > .material-icons:last-child {
  margin-left: auto;
}

.clyro-instant-search__all {
  align-items: center;
  background: #c7ff2e;
  border-radius: 6px;
  color: #111417;
  display: flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  margin-top: 12px;
  min-height: 42px;
  text-decoration: none;
  transition: background-color .15s ease;
}

.clyro-instant-search__all:hover {
  background: #b8f018;
  color: #111417;
}

.clyro-instant-search__all .material-icons {
  font-size: 18px;
  margin-left: 10px;
}

.clyro-instant-search__empty {
  align-items: center;
  color: #8a9096;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 12px;
  justify-content: center;
  text-align: center;
}

.clyro-instant-search__empty .material-icons {
  font-size: 31px;
  margin-bottom: 8px;
}

.clyro-instant-search__empty strong {
  color: #111417;
  font-size: 16px;
  margin-bottom: 7px;
}


/* ==========================================================================
   5. RESPONSYWNOŚĆ MOBILNA (Pełnoekranowy drawer)
   ========================================================================== */

@media (max-width: 767px) {
  .clyro-nav-search-col {
    display: none !important;
  }

  .clyro-main-navbar.clyro-search-opened,
  .clyro-main-navbar:has(.clyro-instant-search) {
    z-index: 3001 !important;
  }

  .clyro-search-dropdown-wrapper:has(.clyro-instant-search) {
    background: #ffffff !important;
    bottom: 0 !important;
    height: 100dvh !important;
    left: 0 !important;
    overflow-y: auto !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    z-index: 3000 !important;
    -webkit-overflow-scrolling: touch;
  }

  .clyro-instant-search {
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    padding: 12px 0 40px;
  }

  .clyro-search-form-wrap {
    border-bottom: 1px solid #e6eaf0;
    padding: 0 16px 12px;
  }

  .clyro-instant-search__content {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .clyro-instant-search__side {
    border-bottom: 1px solid #e6eaf0;
    border-right: 0;
    height: auto;
    overflow: visible;
    padding: 16px;
  }

  .clyro-instant-search__side section + section {
    margin-top: 16px;
  }

  .clyro-instant-search__cat-item {
    border-radius: 6px;
    padding: 8px 10px;
  }

  .clyro-instant-search__brands {
    display: none;
  }

  .clyro-instant-search__main {
    height: auto;
    overflow: visible;
    padding: 16px;
  }

  .clyro-instant-search__products {
    overflow: visible;
    padding-right: 0;
  }

  .clyro-instant-search__product {
    gap: 10px;
    min-height: 64px;
  }

  .clyro-instant-search__product-thumb {
    height: 54px;
    width: 54px;
  }

  .clyro-instant-search__product-body {
    gap: 10px;
    min-height: 54px;
    padding: 6px 10px;
  }

  .clyro-instant-search__product-copy strong {
    font-size: 11px;
  }

  .clyro-instant-search__product-copy small {
    font-size: 9px;
  }

  .clyro-instant-search__price {
    font-size: 13px;
  }

  .clyro-instant-search__arrow {
    display: none;
  }
}
