/* Live site */
.lqd-contents {
  width: 100%;
}
.shop-page-container .cat-item > a {
  color: #3DC0BE;
}
.has-sidebar .ld-shop-topbar {
  border-bottom: 0;
  margin-bottom: -25px;
}
.lqd-sidebar-container {
  display: none;
}
#ajaxsearchpro1_1 .probox .proinput,
#ajaxsearchpro1_2 .probox .proinput,
div.asp_m.asp_m_1 .probox .proinput {
  margin: 0 0 0 -20px !important;
}
.elementor-117635 .elementor-element.elementor-element-405619d7 {
  --container-widget-width: 100% !important;
}
.woocommerce .woocommerce-result-count {
  margin: 0;
}
/* Кнопка поиска */
#open-search-btn {
  color: white;
  border: none;
  padding: 10px 10px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 10px;
}
/* Всплывающее окно (по умолчанию скрыто) */
#search-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 9999;
}
/* Контейнер формы поиска */
.search-popup-content {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
}
/* Кнопка закрытия */
#close-search-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
/* Поле ввода */
#search-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #3cc1be;
  border-radius: 10px;
}
/* Стили для списка результатов */
#search-results {
  margin-top: 10px;
  background: white;
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
}
/* Результаты поиска */
.ajax-search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ajax-search-results li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.ajax-search-results li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}
.ajax-search-results li img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
.browse-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000;
}
/* Кнопка "Browse" */
.browse-toggle {
  background: #3cc0be;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 10px;
  font-family: "Montserrat", serif;
}
/* Затемнение фона */
.category-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  z-index: 998;
}
.browse-dropdown.menu-open .category-overlay {
  display: block;
}
/* Меню категорий */
.category-menu {
  display: none;
  flex-direction: row;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 20px;
  z-index: 999;
  min-width: 600px;
  max-width: 90vw;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  font-family: "Montserrat", serif;
}
/* Активное состояние */
.category-menu.active {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}
/* Крестик */
.close-menu {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 20px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  z-index: 1001;
}
.close-menu:hover {
  color: #000;
}
/* Список категорий */
.category-list {
  list-style: none;
  margin: 10px;
  padding: 10px;
  width: 300px;
  border-right: 1px solid #eee;
}
.category-item {
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.4s ease;
  border-radius: 10px;
}
.category-item:hover {
  background-color: #3cc0be;
  border-radius: 10px;
  color: white;
}
/* Предпросмотр товаров */
.category-preview {
  padding: 10px;
  width: 400px;
  padding-top: 30px;
}
.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 10px;
}
.product-title {
  font-weight: 500;
  display: block;
  font-size: 14px;
  color: black;
}
/* Кнопка View All */
.view-all-button {
  display: inline-block;
  margin-top: 10px;
  background: #3cc0be;
  color: #fff;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.2s ease;
  min-width: 100%;
  text-align: center;
}
.view-all-button:hover {
  background: #3cc0be;
  color: white;
  text-decoration: none;
}
.desktop-search-wrapper {
  position: relative;
  width: 300px;
}
#search-results-desktop {
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  border-radius: 10px;
  border: 1px solid #3cc0be;
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}
#search-input-desktop {
  width: 100%;
}
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 767px) {
  .elementor-75 .elementor-element.elementor-element-5c295e1 .e-shop-table .cart td:before {
    display: none;
  }
  .elementor-widget-woocommerce-cart .woocommerce table.cart tr {
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .product-name {
    font-size: 14px;
  }
  .woocommerce-cart .woocommerce table.shop_table.cart td.product-name a {
    position: relative;
    right: 15px;
  }
  /* ======= Мобильное меню Browse ======= */
  .browse-dropdown-mobile .category-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 60px 20px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }
  .browse-dropdown-mobile.menu-open .category-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  /* Затемнение фона */
  .browse-dropdown-mobile .category-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }
  .browse-dropdown-mobile.menu-open .category-overlay {
    display: block;
  }
  /* Кнопка закрытия (крестик) */
  .browse-dropdown-mobile .close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    color: #333;
  }
  /* Список категорий */
  .browse-dropdown-mobile .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .browse-dropdown-mobile .category-item {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    cursor: pointer;
  }
  /* Переход к товарам */
  .browse-dropdown-mobile .mobile-category-view {
    display: block;
  }
  .browse-dropdown-mobile .mobile-products-view {
    display: none;
  }
  .browse-dropdown-mobile.show-products .mobile-category-view {
    display: none;
  }
  .browse-dropdown-mobile.show-products .mobile-products-view {
    display: block;
  }
  /* Кнопка назад */
  .browse-dropdown-mobile .back-to-categories {
    background: none;
    border: none;
    font-size: 16px;
    margin-bottom: 20px;
    color: #0073aa;
    cursor: pointer;
    text-align: left;
  }
  /* Превью товаров */
  .browse-dropdown-mobile .category-preview {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    min-width: 100%;
    width: 100%;
  }
  .browse-dropdown-mobile .product-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .browse-dropdown-mobile .product-item {
    margin-bottom: 10px;
  }
  .browse-dropdown-mobile .view-all-button {
    display: inline-block;
    margin-top: 10px;
    background: #3cc0be;
    color: #fff;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: background 0.2s ease;
    min-width: 100%;
    text-align: center;
  }
  .browse-dropdown-mobile .view-all-button:hover {
    background: #3cc0be;
    color: white;
    text-decoration: none;
  }
  .browse-dropdown-mobile .category-item {
    font-size: 14px;
  }
  .browse-dropdown-mobile .close-menu {
    position: relative;
    width: 20px;
    padding: 0;
    right: 0;
    top: 0;
  }
  .browse-dropdown-mobile .category-menu {
    padding: 10px;
    min-width: 100%;
    border-radius: 0;
  }
  .browse-dropdown-mobile .category-list {
    border-right: 0;
    width: 100%;
  }
  .mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    z-index: 9999;
  }
  /* Сбрасываем базовые стили у всех кнопок */
  .mobile-bottom-nav .nav-item {
    border: none;
    background: none;
    outline: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: #aaa;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
  }
  /* Иконка внутри кнопки */
  .mobile-bottom-nav .nav-item i {
    font-size: 24px;
  }
  /* Эффект при наведении */
  .mobile-bottom-nav .nav-item:hover {
    color: #27c5b8;
  }
  /* Активная кнопка */
  .mobile-bottom-nav .nav-item.active {
    background: #27c5b8;
    color: #fff;
    border-radius: 50%;
  }
  .mobile-bottom-nav .nav-item .nav-label {
    font-size: 12px;
    margin-top: 4px;
    color: #aaa;
  }
  #mobile-menu-panel {
    position: fixed;
    bottom: 70px;
    /* чуть выше нижнего меню */
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: none;
  }
  .mobile-menu-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .mobile-menu-panel li {
    margin: 10px 0;
  }
  .mobile-menu-panel a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
  }
}
@media (min-width: 1200px) {
  /* Contents wrap */
  #lqd-contents-wrap {
    width: 100%;
  }
}
