.menu-bar {
  display: flex;
  gap: 48px;
}
.menu-active {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.menu-active ul {
  display: flex;
  gap: 48px;
  align-items: center;
  margin: 0;
  align-items: center;
}
.menu-active > .menu {
  position: relative;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 18px;
  margin-bottom: -18px;
}
.menu-active ul li {
  list-style: none;
  position: relative;
  padding-left: 0;
}
.menu-active > .menu > li {
  position: static;
}
.menu-active ul li a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 146%;
  letter-spacing: 2%;
  color: #212121;
}

#menu-main .menu-active .menu > li > .sub-menu {
  display: none;
}

.menu-category-btn {
  background: linear-gradient(90deg, #4f8c08 0%, #93d500 100%);
  padding-top: 12px;
  padding-right: 16px;
  padding-bottom: 12px;
  padding-left: 16px;
  gap: 8px;
  border-radius: 24px;
}
.menu-category-btn span {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 146%;
  letter-spacing: 2%;
  color: #ffffff;
}

.menu-categories {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    grid-template-rows 0.28s ease,
    padding 0.28s ease,
    opacity 0.2s ease,
    transform 0.28s ease,
    visibility 0s linear 0.28s;
}

.menu-categories.is-open {
  grid-template-rows: 1fr;
  padding: 16px 0;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    grid-template-rows 0.28s ease,
    padding 0.28s ease,
    opacity 0.2s ease,
    transform 0.28s ease;
}

.menu-categories-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  min-height: 0;
  overflow: hidden;
}

.menu-categories-list > li {
  list-style: none;
  padding-left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .menu-categories,
  .menu-categories.is-open {
    transition: none;
    transform: none;
  }
}

.menu-category-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 146%;
  letter-spacing: 2%;
  color: #212121;
}

.menu-category-item img {
  width: 24px;
  height: 24px;
}

/* Header Main */
.header-main {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.header-main-row {
  align-items: center;
  display: flex;
  padding: 24px 0;
  gap: 72px;
  border-bottom-width: 1px;
}
.header-main .site-logo img {
  width: 202px;
  height: 48px;
  object-fit: contain;
}

.header-search-wrap {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.header-search-wrap .search-wrapper,
.header-search-wrap .woocommerce-product-search {
  width: 100%;
  min-width: 0;
}

.header-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 52px;
  padding: 4px 4px 4px 24px;
  gap: 16px;
  border-radius: 32px;
  background: #f5f5f5;
}

.header-search .search-cat-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-search .search-cat-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #212121;
  pointer-events: none;
}

.header-search .search-cat-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.header-search .search-cat-icon svg path {
  stroke: currentColor;
}

.header-search .search-cat-wrap::after {
  content: "";
  flex: 0 0 auto;
  width: 1px;
  height: 24px;
  background: #d8dfcf;
  margin-right: -8px;
}

.header-search .search-cat-wrap:hover .search-cat,
.header-search .search-cat-wrap:hover .search-cat-native,
.header-search .search-cat-wrap:focus-within .search-cat,
.header-search .search-cat-wrap:focus-within .search-cat-native,
.header-search .search-cat-wrap.is-open .search-cat,
.header-search .search-cat-wrap.is-open .search-cat-native,
.header-search .search-cat-wrap:hover .search-cat-icon,
.header-search .search-cat-wrap:focus-within .search-cat-icon,
.header-search .search-cat-wrap.is-open .search-cat-icon {
  color: #4f8c08;
}

.header-search .search-cat-wrap.is-open .search-cat-icon svg {
  transform: rotate(180deg);
}

.header-search .search-cat-native,
.header-search .search-cat {
  height: 40px;
  border: 0;
  background: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
  line-height: 1.46;
  letter-spacing: 0.02em;
  color: #212121;
  transition: color 0.2s ease;
}

.header-search .search-cat-native {
  padding: 0 24px 0 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.header-search .search-cat-native option {
  padding: 10px 14px;
  background: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #212121;
  font-weight: 500;
}

.header-search .search-cat-native option:first-child {
  color: #6b7280;
}

.header-search .search-cat-native option:checked,
.header-search .search-cat-native option:hover,
.header-search .search-cat-native option:focus {
  background: #eef7e3;
  color: #4f8c08;
}

.header-search .search-cat {
  display: none;
  align-items: center;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.header-search .search-cat__label {
  white-space: nowrap;
}

.header-search .search-cat-wrap.is-enhanced .search-cat-native {
  display: none;
}

.header-search .search-cat-wrap.is-enhanced .search-cat {
  display: inline-flex;
}

.header-search .search-cat-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid #d8dfcf;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(33, 33, 33, 0.12);
  z-index: 40;
}

.header-search .search-cat-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4f8c08 #eef7e3;
}

.header-search .search-cat-options::-webkit-scrollbar {
  width: 2px;
}

.header-search .search-cat-options::-webkit-scrollbar-track {
  background: #eef7e3;
  border-radius: 999px;
}

.header-search .search-cat-options::-webkit-scrollbar-thumb {
  background: #4f8c08;
  border-radius: 999px;
}

.header-search .search-cat-option {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  color: #212121;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-search .search-cat-option:hover,
.header-search .search-cat-option:focus,
.header-search .search-cat-option.is-selected {
  background: #eef7e3;
  color: #4f8c08;
  outline: none;
}

.header-search .search-cat-option:focus-visible,
.header-search .search-cat:focus-visible {
  box-shadow: 0 0 0 2px rgba(79, 140, 8, 0.18);
}

.header-search .search-field {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  border: 0;
  background: transparent;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #9e9e9e;
}

.header-search .search-field:focus,
.header-search .search-field:active {
  outline: none;
  border: 0;
  box-shadow: none;
}

.header-search .search-cat-native:focus,
.header-search .search-cat-native:active,
.header-search .search-cat:focus,
.header-search .search-cat:active {
  outline: none;
  border: 0;
  box-shadow: none;
}

.header-search .search-field::placeholder {
  color: #9e9e9e;
}

.header-search .search-btn {
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 24px;
  border: 0;
  background: linear-gradient(90deg, #4f8c08 0%, #93d500 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Header Actions */
.header-actions__links__mobile {
  display: none;
}

.header-main .header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-main .header-actions .header-actions__hotline {
  display: flex;
  flex-direction: column;
}

.header-main .header-actions .header-actions__hotline .label {
  font-weight: 400;
  font-size: 12px;
  line-height: 146%;
  letter-spacing: 1%;
  text-align: right;
  color: #437127;
}

.header-main .header-actions .header-actions__hotline .phone {
  font-weight: 700;
  font-size: 18px;
  line-height: 146%;
  letter-spacing: 1%;
  color: #93D500;
  text-decoration: none;
}

.header-main .header-actions .header-actions__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-main .header-actions .icon-link {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #437127;
  text-decoration: none;
}

.header-main .header-actions .icon-link i {
  font-size: 24px;
  line-height: 1;
}

.header-main .header-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-main .header-account-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 180px;
  height: 12px;
}

.header-main .header-account-menu__toggle {
  border-radius: 12px;
}

.header-main .header-account-menu__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: max-content;
  min-width: 188px;
  padding: 8px;
  border: 1px solid #d8dfcf;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(33, 33, 33, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.header-main .header-account-menu:hover .header-account-menu__dropdown,
.header-main .header-account-menu:focus-within .header-account-menu__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-main .header-account-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #212121;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.36;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-main .header-account-menu__item:hover,
.header-main .header-account-menu__item:focus {
  background: #eef7e3;
  color: #437127;
  outline: none;
}

.header-main .header-account-menu__item--user {
  color: #437127;
}

.header-main .cart-ajax .cart-item {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: #f2ffe5;
  color: #437127;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.header-main .cart-ajax .cart-item i {
  font-size: 24px;
  line-height: 1;
}

.header-main .cart-ajax .number-cart {
  width: 16px;
  height: 16px;
  border-radius: 24px;
  background: #437127;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.36;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
}

.sidebar-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
}

.sidebar-mobile.is-active {
  right: 0;
}

.sidebar-mobile__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.sidebar-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
}

.sidebar-mobile.is-active {
  right: 0;
}

.sidebar-mobile__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay background */
body.sidebar-active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

/* Search Section */
.sidebar-topbar-section {
  display: grid;
  gap: 16px;
  padding: 40px 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.sidebar-topbar__text {
  color: #212121;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}

.sidebar-topbar__menus,
.sidebar-topbar-subnav,
.sidebar-topbar-menu {
  display: grid;
  gap: 0;
}

.sidebar-topbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-topbar-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-topbar-menu a,
.sidebar-topbar-subnav .lang-switch__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  color: #212121;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: left;
}

.sidebar-topbar-menu a:hover,
.sidebar-topbar-subnav .lang-switch__toggle:hover {
  color: #437127;
}

.sidebar-topbar-subnav .lang-switch {
  width: 100%;
}

.sidebar-topbar-subnav .lang-switch__menu {
  left: 0;
  right: auto;
  min-width: 180px;
}

.sidebar-topbar-subnav .lang-switch .flag {
  color: #212121;
}

.sidebar-topbar-subnav .lang-switch img {
  flex-shrink: 0;
}

.sidebar-search-section {
  margin-bottom: 20px;
  padding-top: 40px;
}

.sidebar-topbar-section + .sidebar-search-section {
  padding-top: 0;
}

.sidebar-search-section .woocommerce-product-search-mobile {
  width: 100%;
}

/* Menu Section */
.sidebar-menu-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.sidebar-menu-section .menu-category {
  margin-bottom: 16px;
}

.sidebar-menu-section .menu-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #437127;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 10px;
}

.sidebar-menu-section .menu-category .menu,
.sidebar-menu-section .menu-active-mobile {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-menu-section .menu-category .menu a,
.sidebar-menu-section .menu-active-mobile a {
  display: block;
  padding: 10px 0;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu-section .menu-category .menu a:hover,
.sidebar-menu-section .menu-active-mobile a:hover {
  color: #437127;
}

/* Action Icons */
.sidebar-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  flex-shrink: 0;
}

.icon-link:hover {
  background: #f5f5f5;
  border-color: #437127;
}



/* Mobile responsiveness */
@media (max-width: 430px) {
  .sidebar-mobile {
    max-width: 100%;
  }
}

/* Overlay background */
body.sidebar-active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.sidebar-search-section {
  margin-bottom: 20px;
}

.search-input-wrapper {
  display: flex;
  gap: 10px;
}

.search-product-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.search-button {
  padding: 10px 15px;
  background: #437127;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.sidebar-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.sidebar-language-section {
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.language-label {
  font-weight: bold;
  margin-bottom: 10px;
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.lang-link {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

.lang-link.active {
  background: #437127;
  color: white;
  border-color: #437127;
}

/* Sticky on scroll up */
body {
  --wp-admin-bar-offset: 0px;
}

body.admin-bar {
  --wp-admin-bar-offset: 32px;
}

@media (max-width: 768px) {
  body.admin-bar {
    --wp-admin-bar-offset: 46px;
  }
}

#menu-main.is-scroll-up-fixed {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  backface-visibility: hidden;
  will-change: transform;
  animation: headerStickySlideDown 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#menu-main.is-scroll-up-fixed {
  top: var(--wp-admin-bar-offset);
  z-index: 1039;
}

@keyframes headerStickySlideDown {
  from {
    transform: translate3d(0, -12px, 0);
    opacity: 0.98;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #menu-main.is-scroll-up-fixed {
    animation: none;
  }
}

.search-wrapper {
  position: relative;
}

.woocommerce-product-search.has-search-suggestions {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d8dfcf;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(33, 33, 33, 0.12);
  max-height: 360px;
  overflow-y: auto;
  z-index: 45;
}

.search-suggestions[hidden] {
  display: none !important;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: #212121;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.suggestion-item:hover {
  background: #eef7e3;
}

.suggestion-item + .suggestion-item {
  margin-top: 4px;
}

.suggestion-item.no-result {
  display: block;
  text-align: center;
  color: #757575;
  cursor: default;
}

.suggestion-item__media {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  background: #f3f4f1;
  overflow: hidden;
}

.suggestion-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-item__media.is-empty {
  background: linear-gradient(135deg, #eef7e3 0%, #f8fbf2 100%);
}

.suggestion-item__content {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suggestion-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.suggestion-item__title {
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  color: #212121;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggestion-item__type {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef7e3;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4f8c08;
}

.suggestion-item__price {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #4f8c08;
}
