/* ============================================
   MARKETPLACE HEADER - DARK THEME
   ============================================ */

/* Note: Fira Mono font is loaded globally in header.php */

/* Body and html - allow overflow for mega menu */
body.ps-header--marketplace,
html.ps-header--marketplace {
  overflow-x: visible;
}

/* Header Container */
.ps-header--marketplace.ps-header--dark {
  background-color: var(--edz-bg, #1a1a1a);
  color: var(--edz-text, #ffffff);
  position: sticky;
  /* фиксируем шапку сверху */
  top: 0;
  z-index: 1100;
}

/* Override hero-slider.css styles for marketplace header */
.ps-header--marketplace.ps-header--1 {
  background-color: var(--edz-bg, #1a1a1a) !important;
}

.ps-header--marketplace.ps-header--1 .ps-header__middle {
  background-color: var(--edz-bg, #1a1a1a) !important;
}

/* Main Header */
.ps-header__main {
  background-color: var(--edz-bg, #1a1a1a);
  padding: 15px 0;
  position: relative;
  overflow: visible;
  z-index: 1000;
}

/* Container inside header */
.ps-header__main .container,
.ps-header--marketplace .ps-header__main .container {
  overflow: visible;
}

.ps-header__main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: visible;
}

/* Logo */
.ps-header__logo {
  flex-shrink: 0;
}

.ps-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--edz-text, #ffffff);
  text-decoration: none;
  letter-spacing: 1px;
}

.ps-header__logo a {
  text-decoration: none;
  color: var(--edz-text, #ffffff);
}

/* Primary WordPress Menu */
.ps-header__primary-menu {
  flex: 1;
  margin: 0 20px;
  display: none !important;
  /* Hidden on mobile, shown on desktop */
}

.ps-header--marketplace .ps-header__primary-menu .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 20px;
}

.ps-header--marketplace .ps-header__primary-menu .navbar-nav li {
  list-style: none !important;
}

.ps-header--marketplace .ps-header__primary-menu .nav-link {
  color: var(--edz-text, #ffffff) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 0 !important;
  transition: color 0.3s ease !important;
  white-space: nowrap;
}

.ps-header--marketplace .ps-header__primary-menu .nav-link:hover {
  color: var(--edz-accent, #FD8D27) !important;
}

@media (min-width: 1024px) {
  .ps-header--marketplace .ps-header__primary-menu {
    display: block !important;
  }
}

@media (max-width: 1023px) {
  .ps-header--marketplace .ps-header__primary-menu {
    display: none !important;
  }
}

/* Navigation Categories - Horizontal Scroll */
.ps-header__nav-categories {
  flex: 1;
  position: relative;
  max-width: 100%;
  overflow: visible;
  border-top: 1px solid var(--edz-border, #2a2a2a);
  padding-top: 15px;
  margin-top: 15px;
  z-index: 1000;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding-top 0.3s ease, margin-top 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Скрытие навигации категорий при скролле вниз */
.ps-header--nav-hidden .ps-header__nav-categories {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  margin-top: 0;
  overflow: hidden;
  transform: translateY(-8px);
  border-top-color: transparent;
}

.ps-nav-categories__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.ps-nav-categories__list {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
  white-space: nowrap;
  overflow: visible;
}

.ps-nav-category__item {
  position: relative;
  z-index: 100;
  overflow: visible;
}

/* Navigation Categories - Button instead of link */
.ps-nav-category__button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--edz-text, #ffffff);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.ps-nav-category__button:hover {
  color: var(--edz-accent, #FD8D27);
}

.ps-nav-category__button .ps-nav-category__arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.ps-nav-category__item.active .ps-nav-category__button .ps-nav-category__arrow {
  transform: rotate(180deg);
}

/* Mega menu - fixed, full viewport width, positioned exactly under categories (top задаётся в JS) */
.ps-nav-category__item .ps-mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  top: auto;
  transform: translateY(-8px);
  /* старт для fadeInDown */
  margin-left: 0;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: block;
  background-color: var(--edz-bg, #1a1a1a);
  border: none;
  border-top: 1px solid var(--edz-border, #2a2a2a);
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
  border-radius: 0;
  padding: 25px 0;
  margin-top: 0;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease-out, visibility 200ms linear;
  z-index: 10000 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: visible;
  box-sizing: border-box;
  will-change: transform, opacity;
}

.ps-nav-category__item .ps-mega-menu .container {
  padding-left: calc(var(--bs-gutter-x) * .5);
  padding-right: calc(var(--bs-gutter-x) * .5);
  max-width: 1320px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ps-nav-category__item.active .ps-mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
  transform: translateY(0) !important;
}

/* Additional specificity to ensure visibility */
.ps-header--marketplace .ps-nav-category__item.active .ps-mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Состояния анимации */
/* удалены специальные классы анимаций; используем переходы по active */

/* Ensure mega menu is positioned correctly - remove duplicate rules */

/* Mega Menu Header */
.ps-mega-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2a2a2a;
}

.ps-mega-menu__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--edz-text, #ffffff);
  margin: 0;
}

.ps-mega-menu__view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--edz-accent, #FD8D27);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease, gap 0.3s ease;
}

.ps-mega-menu__view-all:hover {
  color: #ff9933;
  gap: 12px;
}

.ps-mega-menu__view-all i {
  font-size: 12px;
}

/* Mega Menu Products Wrapper */
.ps-mega-menu__products-wrapper {
  position: relative;
  padding: 0;
  width: 100%;
  height: 285px;
  /* фиксированная высота чтобы не дергалось */
  overflow: visible;
  /* позволяем видеть соседние карточки */
}

/* Mega Menu Slider */
.ps-mega-menu__slider {
  position: relative;
  overflow: visible;
  /* мягкий overflow */
}

.ps-mega-menu__slider .slick-list {
  margin: 0 -0.5rem;
  /* создаёт визуальный «peek» по бокам */
  overflow: visible;
  padding: 0 16px;
  /* управляем величиной «peek» аккуратно */
}

.ps-mega-menu__slider .slick-slide {
  margin-left: 0.5rem;

  height: auto;
}

.ps-mega-menu__slider .slick-slide>div {
  height: 100%;
  display: flex;
}

.ps-mega-menu__slider .slick-slide .ps-mega-menu__product-card {
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* Hide default Slick arrows */
.ps-mega-menu__slider .slick-arrow {
  display: none !important;
}

/* Slider Navigation Buttons */
.ps-mega-menu__slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(26, 26, 26, 0.9);
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #ffffff;
  transition: all 0.3s ease;
  padding: 0;
}

.ps-mega-menu__slider-nav:hover {
  background-color: #FD8D27;
  border-color: #FD8D27;
  color: #ffffff;
}

.ps-mega-menu__slider-prev {
  left: 10px;
}

.ps-mega-menu__slider-next {
  right: 10px;
}

.ps-mega-menu__slider-nav i {
  font-size: 14px;
}

/* Product Card */
.ps-mega-menu__product-card {
  background-color: var(--edz-surface, #1a1a1a);
  border-radius: 8px;
  overflow: visible;
  height: 100%;
  border: 2px solid transparent;
  padding: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;

}
.ps-mega-menu__view.edz-product-card__btn
 {
    flex: 1;
    width: 100%;
    padding: 12px 0!important;
}
.ps-mega-menu__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(253, 141, 39, 0.3);
  border-color: var(--edz-accent, #FD8D27);
}

/* Actions overlay for mega-menu cards */
.ps-mega-menu__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .2s ease, max-height .25s ease;
  padding-top: 0;
}

.ps-mega-menu__product-card:hover .ps-mega-menu__actions {
  opacity: 1;
  max-height: 70px;
  padding-top: 0;
}

.ps-mega-menu__view {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--edz-btn-gap, 8px);
  padding: var(--edz-btn-padding, 12px 18px);
  border-radius: var(--edz-btn-border-radius, 5px);
  background: var(--edz-btn-gradient, linear-gradient(90deg, var(--edz-accent, #FD8D27), var(--edz-accent-2, #2b84d8)));
  background-size: 200% 100%;
  color: #fff;
  text-decoration: none;
  font-size: var(--edz-btn-font-size, 1rem);
  font-weight: var(--edz-btn-font-weight, 700);
  transition: background-position .35s ease, transform .2s ease;
  width: 100%;
}

.ps-mega-menu__view:hover {
  background-position: 100% 0;
}

.ps-mega-menu__wish {
  width: 42px;
  height: 48px;
  min-height: 48px;
  border-radius: 8px;
  background: var(--edz-wish-bg, rgba(255, 255, 255, 0.08));
  color: var(--edz-wish-color, #fff);
  border: 1px solid var(--edz-wish-border, var(--edz-border, #2a2a2a));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.ps-mega-menu__wish i,
.ps-mega-menu__wish svg,
.ps-mega-menu__wish .fa,
.ps-mega-menu__wish .fas,
.ps-mega-menu__wish .far {
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

.ps-mega-menu__wish:hover,
.ps-mega-menu__wish:focus {
  border-color: var(--edz-wish-active-border, var(--edz-accent, #FD8D27));
  color: var(--edz-wish-active-color, var(--edz-accent, #FD8D27));
  background: var(--edz-wish-bg, rgba(255, 255, 255, 0.08));
}

.ps-mega-menu__wish:hover i,
.ps-mega-menu__wish:hover svg,
.ps-mega-menu__wish:hover .fa,
.ps-mega-menu__wish:hover .fas,
.ps-mega-menu__wish:hover .far,
.ps-mega-menu__wish:focus i,
.ps-mega-menu__wish:focus svg,
.ps-mega-menu__wish:focus .fa,
.ps-mega-menu__wish:focus .fas,
.ps-mega-menu__wish:focus .far {
  color: inherit;
}

.ps-mega-menu__wish.is-active {
  background: var(--edz-wish-active-bg, var(--edz-accent, #FD8D27));
  border-color: var(--edz-wish-active-border, var(--edz-accent, #FD8D27));
  color: var(--edz-wish-color, #ffffff);
}

.ps-mega-menu__wish.is-active i,
.ps-mega-menu__wish.is-active svg,
.ps-mega-menu__wish.is-active .fa,
.ps-mega-menu__wish.is-active .fas,
.ps-mega-menu__wish.is-active .far {
  color: var(--edz-wish-color, #ffffff);
}

/* Styles for .edz-wish - same as .ps-mega-menu__wish */
.edz-wish {
  width: 42px;
  height: 48px;
  min-height: 48px;
  border-radius: 8px;
  background: var(--edz-wish-bg, rgba(255, 255, 255, 0.08));
  color: var(--edz-wish-color, #ffffff);
  border: 1px solid var(--edz-wish-border, var(--edz-border, #2a2a2a));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.edz-wish:hover,
.edz-wish:focus {
  border-color: var(--edz-wish-active-border, var(--edz-accent, #FD8D27));
  color: var(--edz-wish-active-bg, var(--edz-accent, #FD8D27));
}

.edz-wish.is-active {
  background: var(--edz-wish-active-bg, var(--edz-accent, #FD8D27));
  border-color: var(--edz-wish-active-border, var(--edz-accent, #FD8D27));
  color: var(--edz-wish-color, #ffffff);
}

.edz-wish i,
.edz-wish svg,
.edz-wish .fa,
.edz-wish .fas,
.edz-wish .far {
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

.edz-wish:hover i,
.edz-wish:hover svg,
.edz-wish:hover .fa,
.edz-wish:hover .fas,
.edz-wish:hover .far,
.edz-wish:focus i,
.edz-wish:focus svg,
.edz-wish:focus .fa,
.edz-wish:focus .fas,
.edz-wish:focus .far {
  color: inherit;
}

.edz-wish.is-active i,
.edz-wish.is-active svg,
.edz-wish.is-active .fa,
.edz-wish.is-active .fas,
.edz-wish.is-active .far {
  color: var(--edz-wish-color, #ffffff);
}

/* Styles for .edz-wishlist - YITH wishlist button wrapper */
.edz-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
}

.edz-wishlist .yith-wcwl-add-button,
.edz-wishlist .yith-wcwl-wishlistaddedbrowse,
.edz-wishlist .yith-wcwl-wishlistexistsbrowse {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.edz-wishlist .feedback,
.edz-wishlist .ajax-loading,
.edz-wishlist .clear {
  display: none !important;
}

.edz-wishlist .add_to_wishlist,
.edz-wishlist .view-wishlist,
.edz-wishlist .yith-wcwl-add-button > a,
.edz-wishlist .yith-wcwl-wishlistaddedbrowse > a,
.edz-wishlist .yith-wcwl-wishlistexistsbrowse > a {
  margin: 0 !important;
}

.edz-wishlist .add_to_wishlist:hover,
.edz-wishlist .add_to_wishlist:focus {
  border-color: var(--edz-wish-active-border, var(--edz-accent, #FD8D27));
  color: var(--edz-wish-active-bg, var(--edz-accent, #FD8D27));
}

.edz-wishlist .yith-wcwl-wishlistaddedbrowse a,
.edz-wishlist .yith-wcwl-wishlistexistsbrowse a {
  background: var(--edz-wish-active-bg, var(--edz-accent, #FD8D27));
  border-color: var(--edz-wish-active-border, var(--edz-accent, #FD8D27));
  color: var(--edz-wish-color, #ffffff);
}

.edz-wishlist .yith-wcwl-wishlistaddedbrowse a i,
.edz-wishlist .yith-wcwl-wishlistexistsbrowse a i {
  font-weight: 900;
}

.ps-mega-menu__product-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  flex: 1;
  min-height: 0;
}

.ps-mega-menu__product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
  background-color: #1a1a1a;
}

.ps-mega-menu__product-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--edz-product-card-title, #ffffff);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 40px;
}

.ps-mega-menu__product-price {
  font-size: 16px;
  font-weight: 700;
  color: #FD8D27;
  margin-top: auto;
}

.ps-mega-menu__loading {
  text-align: center;
  padding: 40px;
  color: #888;
}

.ps-mega-menu__footer {
  margin-top: 15px;
  text-align: right;
}

.ps-mega-menu__view-all {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FD8D27;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.ps-mega-menu__view-all:hover {
  background-color: #e67e22;
}

/* Search - Fixed styles with proper placeholder */
.ps-header.ps-header--marketplace .ps-header__right .ps-header__search {
  position: relative !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.ps-header.ps-header--marketplace .ps-header__right .ps-search-form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  overflow: visible !important;
}

.ps-header.ps-header--marketplace .ps-header__right .ps-search-submit {
  position: relative !important;
  background: none !important;
  border: none !important;
  color: var(--edz-header-search-color, #ffffff) !important;
  cursor: pointer !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.3s ease !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 18px !important;
  z-index: 2 !important;
  flex-shrink: 0 !important;
}

.ps-header.ps-header--marketplace .ps-header__right .ps-search-submit:hover {
  color: var(--edz-header-search-hover, var(--edz-accent, #FD8D27)) !important;
  background: none !important;
}

.ps-header.ps-header--marketplace .ps-header__right .ps-search-submit i,
.ps-header.ps-header--marketplace .ps-header__right .ps-search-submit i.fas {
  display: block !important;
  font-size: 18px !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.ps-header.ps-header--marketplace .ps-header__right .ps-search-input {
  width: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--edz-header-search-color, #ffffff) !important;
  font-size: 14px !important;
  height: 40px !important;
  line-height: 40px !important;
  margin: 0 !important;
  transition: width 0.4s ease, padding 0.4s ease, border-color 0.4s ease !important;
  box-shadow: none !important;
  opacity: 0 !important;
  position: absolute !important;
  right: 40px !important;
  border-radius: 0 !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  outline: none !important;
}

.ps-header.ps-header--marketplace .ps-header__right .ps-search-form:hover .ps-search-input,
.ps-header.ps-header--marketplace .ps-header__right .ps-search-input:focus {
  width: 250px !important;
  padding: 0 15px 0 10px !important;
  border-bottom-color: var(--edz-header-search-border, var(--edz-accent, #FD8D27)) !important;
  opacity: 1 !important;
  outline: none !important;
}

.ps-header.ps-header--marketplace .ps-header__right .ps-search-input::placeholder {
  color: var(--edz-header-search-placeholder, #888888) !important;
  opacity: 1 !important;
}

/* Search Results positioning */
.ps-header--marketplace .ps-search-results {
  right: 0;
  left: auto;
  min-width: 400px;
  width: calc(100vw - 200px);
  max-width: 600px;
}

/* AJAX Search Results */
.ps-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--edz-bg, #1a1a1a);
  border: 1px solid var(--edz-border, #2a2a2a);
  border-radius: 8px;
  margin-top: 10px;
  padding: 25px;
  min-height: 200px;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1001;
}

.ps-search-results.active {
  display: block;
}

.ps-search-results__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2a2a2a;
}

.ps-search-results__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--edz-text, #ffffff);
}

.ps-search-results__close {
  background: none;
  border: none;
  color: var(--edz-text, #ffffff);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-search-results__content {
  max-height: 350px;
  overflow-y: auto;
}

.ps-search-result__item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--edz-text, #ffffff);
  transition: background-color 0.3s ease;
}

.ps-search-result__item:hover {
  background-color: var(--edz-border, #2a2a2a);
}

.ps-search-result__image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.ps-search-result__info {
  flex: 1;
}

.ps-search-result__category {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.ps-search-result__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--edz-text, #ffffff);
  margin-bottom: 4px;
}

.ps-search-result__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--edz-accent, #FD8D27);
}

.ps-search-result__count {
  font-size: 12px;
  color: #888;
  margin-left: auto;
}

/* Footer removed - no "View All Results" button */

/* Header Right - Container for Search and Icons */
.ps-header--marketplace .ps-header__right {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  flex-shrink: 0 !important;
}

/* Header Icons - Font Awesome */
.ps-header__icons {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.ps-header__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--edz-text, #ffffff);
  text-decoration: none;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ps-header__item:hover {
  color: var(--edz-accent, #FD8D27);
}

.ps-header__item i,
.ps-header__item i.fas,
.ps-header__item i.far,
.ps-header__item i.fal,
.ps-header__item i.fa {
  font-size: 20px !important;
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.ps-header__item i.far {
  font-weight: 400 !important;
}

.ps-header__item .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--edz-accent, #FD8D27);
  color: var(--edz-text, #ffffff);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.login_icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Mobile Menu Toggle */
.ps-header__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--edz-text, #ffffff);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.ps-header__mobile-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile Menu */
.ps-header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--edz-bg, #1a1a1a);
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* offcanvas-like hidden state */
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ps-header__mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.ps-mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
}

.ps-mobile-menu__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--edz-text, #ffffff);
}

.ps-mobile-menu__close {
  background: none;
  border: none;
  color: var(--edz-text, #ffffff);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-mobile-menu__search {
  padding: 15px 20px;
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
  position: relative;
}

.ps-mobile-search-input {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--edz-border, #2a2a2a);
  border: 1px solid var(--edz-border, #2a2a2a);
  border-radius: 8px;
  color: var(--edz-text, #ffffff);
  font-size: 14px;
}

/* Mobile AJAX Search Results */
.ps-mobile-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--edz-bg, #1a1a1a);
  border: 1px solid var(--edz-border, #2a2a2a);
  border-radius: 8px;
  margin-top: 10px;
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1001;
}

.ps-mobile-search-results.active {
  display: block;
}

.ps-mobile-search-results__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2a2a2a;
}

.ps-mobile-search-results__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--edz-text, #ffffff);
}

.ps-mobile-search-results__close {
  background: none;
  border: none;
  color: var(--edz-text, #ffffff);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ps-mobile-search-results__close:hover {
  color: var(--edz-accent, #FD8D27);
}

.ps-mobile-search-results__content {
  max-height: 300px;
  overflow-y: auto;
}

.ps-mobile-search-result__item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background-color: var(--edz-border, #2a2a2a);
  border-radius: 6px;
  text-decoration: none;
  color: var(--edz-text, #ffffff);
  transition: background-color 0.3s ease;
}

.ps-mobile-search-result__item:hover {
  background-color: var(--edz-border, #2a2a2a);
  color: var(--edz-text, #ffffff);
}

.ps-mobile-search-result__image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
}

.ps-mobile-search-result__info {
  flex: 1;
  min-width: 0;
}

.ps-mobile-search-result__category {
  font-size: 11px;
  color: var(--edz-text-muted, #9a9a9a);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ps-mobile-search-result__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--edz-text, #ffffff);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-mobile-search-result__price {
  font-size: 13px;
  color: var(--edz-accent, #FD8D27);
  font-weight: 600;
}

/* WordPress Menu in Mobile - Same style as categories */
.ps-mobile-menu__wp-menu {
  padding: 0;
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
}

.ps-mobile-menu__wp-menu .navbar-nav {
  display: flex !important;
  flex-direction: column !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

.ps-mobile-menu__wp-menu .navbar-nav li {
  list-style: none !important;
  border-bottom: 1px solid #2a2a2a;
}

.ps-mobile-menu__wp-menu .navbar-nav li:last-child {
  border-bottom: none;
}

.ps-mobile-menu__wp-menu .nav-link {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 15px 20px !important;
  color: var(--edz-text, #ffffff) !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.ps-mobile-menu__wp-menu .nav-link:hover {
  color: var(--edz-accent, #FD8D27) !important;
}

.ps-mobile-menu__categories {
  flex: 1;
  overflow-y: auto;
}

.ps-mobile-categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-mobile-category__item {
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
}

.ps-mobile-category__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: var(--edz-text, #ffffff);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.ps-mobile-category__arrow {
  font-size: 18px;
  color: var(--edz-text-muted, #9a9a9a);
}

/* Mobile Subcategories */
.ps-mobile-subcategories {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--edz-bg, #1a1a1a);
  z-index: 10;
}

.ps-mobile-subcategories.active {
  display: flex;
  flex-direction: column;
}

.ps-mobile-subcategories__header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
  gap: 15px;
}

.ps-mobile-subcategories__back,
.ps-mobile-subcategories__close {
  background: none;
  border: none;
  color: var(--edz-text, #ffffff);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-mobile-subcategories__title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--edz-text, #ffffff);
}

.ps-mobile-subcategories__list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-mobile-subcategory__item {
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
}

.ps-mobile-subcategory__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: var(--edz-text, #ffffff);
  text-decoration: none;
  font-size: 15px;
}

.ps-mobile-subcategories__footer {
  padding: 15px 20px;
  border-top: 1px solid var(--edz-border, #2a2a2a);
}

.ps-mobile-subcategories__view-all {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--edz-accent, #FD8D27);
  color: var(--edz-text, #ffffff);
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.ps-mobile-menu__footer {
  padding: 15px 20px;
  border-top: 1px solid var(--edz-border, #2a2a2a);
}

.ps-mobile-menu__icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.ps-mobile-menu__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--edz-text, #ffffff);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.ps-mobile-menu__icon:hover {
  color: var(--edz-accent, #FD8D27);
}

.ps-mobile-menu__icon i,
.ps-mobile-menu__icon i.fas,
.ps-mobile-menu__icon i.far,
.ps-mobile-menu__icon i.fal,
.ps-mobile-menu__icon i.fa {
  font-size: 20px !important;
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.ps-mobile-menu__icon i.far {
  font-weight: 400 !important;
}

.ps-mobile-menu__icon .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--edz-accent, #FD8D27);
  color: var(--edz-text, #ffffff);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .ps-header__nav-categories {
    display: none;
  }

  .ps-header__mobile-toggle {
    display: block;
  }

  .ps-header--marketplace .ps-header__right .ps-search-input:focus {
    width: 300px !important;
  }

  .ps-mega-menu {
    min-width: 100%;
    max-width: 100%;
    padding: 20px 15px;
  }

  .ps-mega-menu__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .ps-mega-menu__products-wrapper {
    padding: 0 40px;
  }

  .ps-mega-menu__slider-prev {
    left: -35px;
  }

  .ps-mega-menu__slider-next {
    right: -35px;
  }

  .ps-mega-menu__slider-nav {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  .ps-header__main-content {
    gap: 15px;
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  /* Мобильная версия: лого по центру */
  .ps-header__logo {
    grid-column: 2;
    justify-self: center;
    order: 2;
  }

  /* Гамбургер слева */
  .ps-header__mobile-toggle {
    grid-column: 1;
    order: 1;
    justify-self: start;
  }

  /* Корзина справа */
  .ps-header__right {
    grid-column: 3;
    order: 3;
    justify-self: end;
  }

  .ps-logo-text {
    font-size: 18px;
  }

  /* Скрыть поиск на мобильной версии - все варианты */
  .ps-header__main-content .ps-header__search,
  .ps-header__main-content .ps-header__right .ps-header__search,
  .ps-header__right .ps-header__search,
  .ps-header__search,
  .ps-header.ps-header--marketplace .ps-header__search,
  .ps-header--marketplace .ps-header__search,
  .ps-header--marketplace .ps-header__main-content .ps-header__search,
  .ps-header--marketplace .ps-header__main-content .ps-header__right .ps-header__search {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
  }

  /* Также скрыть форму поиска */
  .ps-header--marketplace .ps-header__main-content .ps-search-form,
  .ps-header--marketplace .ps-header__main-content form.ps-search-form {
    display: none !important;
  }

  /* Скрыть dropdown пользователя на мобильной версии */
  .ps-header__main-content .navbar-tool.dropdown,
  .ps-header__main-content .ps-header__right .navbar-tool.dropdown,
  .ps-header__main-content .ps-header__icons .navbar-tool.dropdown {
    display: none !important;
  }

  /* Скрыть wishlist на мобильной версии */
  .ps-header__main-content .ps-header__item_wish,
  .ps-header__main-content .ps-header__right .ps-header__item_wish,
  .ps-header__main-content .ps-header__icons .ps-header__item_wish,
  .ps-header__main-content .ps-header__icons li:has(.ps-header__item_wish),
  .ps-header__right .ps-header__icons li:has(.ps-header__item_wish) {
    display: none !important;
  }

  /* Показывать только корзину на мобильной версии */
  .ps-header__right .ps-header__icons {
    display: flex !important;
  }

  .ps-header__right .ps-header__icons li:has(.ps-header__item_cart) {
    display: block !important;
  }

  .ps-header--marketplace .ps-header__right .ps-search-input {
    width: 200px !important;
    font-size: 13px !important;
  }

  .ps-header--marketplace .ps-header__right .ps-search-input:focus {
    width: 250px !important;
  }

  .ps-header__icons {
    gap: 10px;
  }

  .ps-header__item {
    width: 35px;
    height: 35px;
  }

  .ps-mega-menu {
    min-width: 100%;
    left: 0;
    transform: none;
  }

  .ps-mega-menu__products-grid {
    grid-template-columns: repeat(2, 1fr);
    min-width: 300px;
  }
}

/* Cart Off-Canvas */
.ps-cart-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ps-cart-offcanvas.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.ps-cart-offcanvas__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

.ps-cart-offcanvas__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--edz-bg, #1a1a1a);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.ps-cart-offcanvas.active .ps-cart-offcanvas__panel {
  transform: translateX(0);
}

.ps-cart-offcanvas__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
}

.ps-cart-offcanvas__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--edz-text, #ffffff);
  margin: 0;
}

.ps-cart-offcanvas__close {
  background: none;
  border: none;
  color: var(--edz-text, #ffffff);
  font-size: 24px;
  /* match mobile menu close */
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.ps-cart-offcanvas__close:hover {
  color: var(--edz-accent, #FD8D27);
}

.ps-cart-offcanvas__close i,
.ps-cart-offcanvas__close i.fas {
  font-size: 20px !important;
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.ps-cart-offcanvas__item-remove i,
.ps-cart-offcanvas__item-remove i.fas {
  font-size: 18px !important;
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.ps-cart-offcanvas__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.ps-cart-offcanvas__loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--edz-text-muted, #9a9a9a);
}

.ps-cart-offcanvas__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-cart-offcanvas__item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--edz-border, #2a2a2a);
}

.ps-cart-offcanvas__item:last-child {
  border-bottom: none;
}

.ps-cart-offcanvas__item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.ps-cart-offcanvas__item-content {
  flex: 1;
}

.ps-cart-offcanvas__item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--edz-text, #ffffff);
  margin-bottom: 8px;
  display: block;
  text-decoration: none;
}

.ps-cart-offcanvas__item-name:hover {
  color: var(--edz-accent, #FD8D27);
}

.ps-cart-offcanvas__item-meta {
  font-size: 13px;
  color: var(--edz-text-muted, #9a9a9a);
  margin-bottom: 8px;
}

.ps-cart-offcanvas__item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--edz-accent, #FD8D27);
}

.ps-cart-offcanvas__item-remove {
  background: none;
  border: none;
  color: var(--edz-text-muted, #9a9a9a);
  cursor: pointer;
  padding: 5px;
  font-size: 18px;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.ps-cart-offcanvas__item-remove:hover {
  color: #ff4444;
}

.ps-cart-offcanvas__footer {
  padding: 20px;
  border-top: 1px solid var(--edz-border, #2a2a2a);
}

.ps-cart-offcanvas__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.ps-cart-offcanvas__total-label {
  color: var(--edz-text, #ffffff);
}

.ps-cart-offcanvas__total-amount {
  color: var(--edz-accent, #FD8D27);
  font-size: 18px;
}

.ps-cart-offcanvas__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-cart-offcanvas__view-cart,
.ps-cart-offcanvas__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: var(--edz-btn-gap, 8px);
  padding: var(--edz-btn-padding, 12px 18px);
  border-radius: var(--edz-btn-border-radius, 5px);
  text-decoration: none;
  font-size: var(--edz-btn-font-size, 1rem);
  font-weight: var(--edz-btn-font-weight, 700);
  transition: background-position .35s ease, transform .2s ease, background .35s ease, color .35s ease, border-color .35s ease;
  text-align: center;
}

.ps-cart-offcanvas__view-cart {
  background: var(--edz-btn-gradient, linear-gradient(90deg, var(--edz-accent, #FD8D27), var(--edz-accent-2, #2b84d8)));
  background-size: 200% 100%;
  color: #fff;
  border: none;
}

.ps-cart-offcanvas__view-cart:hover {
  background-position: 100% 0;
}

.ps-cart-offcanvas__checkout {
  background: var(--edz-btn-gradient, linear-gradient(90deg, var(--edz-accent, #FD8D27), var(--edz-accent-2, #2b84d8)));
  background-size: 200% 100%;
  color: #fff;
  border: none;
}

.ps-cart-offcanvas__checkout:hover {
  background-position: 100% 0;
}

.ps-cart-offcanvas__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--edz-text-muted, #9a9a9a);
}