/* === Catalog header & menu – refined minimal (полированная версия) === */

:root {
  --catalog-accent-bg: #dcefee;
  --catalog-accent-text: #35615d;
  --catalog-active-text: #214d46;
}

.catalog-hero {
  margin-bottom: 1rem;
  border-radius: 0;
  background: #f1f1f1;
  box-shadow: none;
  position: relative;
  z-index: 5;
  padding: 0.75rem 1rem;
}

.catalog-hero__preview {
  background: transparent;
}

.catalog-hero__preview--compact {
  padding: 0;
}

.catalog-hero__row {
  gap: 0.75rem;
  width: 100%;
  position: relative;
}

.catalog-hero__breadcrumbs--outer {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.catalog-hero__breadcrumbs-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.catalog-hero__breadcrumbs-row .catalog-hero__breadcrumbs--outer {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-hero__breadcrumbs-row .splendy-breadcrumb {
  padding: 0;
  margin: 0;
  min-height: 0;
  line-height: 1.2;
}

.catalog-hero__breadcrumbs-row .breadcrumb {
  margin-bottom: 0 !important;
}

.catalog-swatch-toggle {
  align-self: flex-start;
}

@media (max-width: 575.98px) {
  .catalog-hero {
    padding: 0.35rem 0.75rem 0;
    margin-bottom: 0;
  }
  .catalog-hero__breadcrumbs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.1rem;
  }
  .catalog-hero__breadcrumbs--outer {
    line-height: 1.25;
  }
}

/* Общая высота для кнопки и поиска */
.catalog-menu-toggle,
.catalog-search__wrapper {
  min-height: 42px;
}

/* Catalog button */
.catalog-menu-toggle-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-menu-toggle {
  /*background: #ffffff;*/
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 500;
  color: #686f7d;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 9.5rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
  border: 0;
  outline: none;
  cursor: pointer;
}

/* Наведение */
.catalog-menu-toggle:hover {
  /*background-color: #f3f4f6;*/
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Клик (нажатая кнопка) */
.catalog-menu-toggle:active {
  background-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transform: none;
}

/* Клавиатурный фокус */
.catalog-menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(104, 111, 125, 0.5);
}

.catalog-menu-toggle__icon.splendy-icon-waves {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #686f7d, #cde6e6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.catalog-menu-toggle__icon svg {
  width: 18px;
  height: 18px;
}

.catalog-menu-toggle__icon svg path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.6;
}

.catalog-menu-toggle__label {
  white-space: nowrap;
}

/* Catalog button */
.catalog-menu-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-menu-divider {
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(53,97,93,0), rgba(53,97,93,.45), rgba(53,97,93,0));
  opacity: .75;
  align-self: stretch;
  min-height: 28px;
  margin-right: 0.5rem;
}

/* Search field */
.catalog-search {
  flex: 1 1 auto;
}

.catalog-search__wrapper {
  position: relative;
  width: 100%;
  background: #ffffff;
  padding-right: 3rem; /* запас под круглую кнопку поиска */
}

.catalog-search__input {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  width: 100%;
}

/* Убираем голубую заливку при автозаполнении */
.catalog-search__input:-webkit-autofill,
.catalog-search__input:-webkit-autofill:hover,
.catalog-search__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: inherit;
  caret-color: inherit;
  transition: background-color 9999s ease-out, color 9999s ease-out;
}

@media (min-width: 768px) {
  /* Скрываем системный крестик очистки в десктопных браузерах */
  .catalog-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
  }
  .catalog-search__input::-ms-clear {
    display: none;
    width: 0;
    height: 0;
  }
}


.catalog-search__input:focus {
  outline: none;
  box-shadow: none;
}

.catalog-search__submit {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 90px;
  height: 32px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: linear-gradient(135deg, #686f7d, #cde6e6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.catalog-search__submit.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.catalog-search__submit-mobile {
  display: none;
}


.catalog-search__submit:focus-visible {
  outline: 2px solid #686f7d;
  outline-offset: 2px;
}

.catalog-search__icon.splendy-icon-waves {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.catalog-search__icon svg {
  width: 18px;
  height: 18px;
}

.catalog-search__icon svg path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.6;
}

@media (max-width: 575.98px) {
  .catalog-hero__row {
    flex-direction: column;
    align-items: stretch;
    row-gap: 0.5rem;
  }

  .catalog-menu-toggle,
  .catalog-search__wrapper {
    min-height: 38px;
  }

  .catalog-menu-toggle {
    width: 100%;
    padding: 0.4rem 0.6rem;
    min-width: 0;
  }

  .catalog-menu-toggle__icon.splendy-icon-waves {
    width: 28px;
    height: 28px;
  }

  .catalog-menu-toggle__label {
    font-size: 0.85rem;
  }
}

/* Side catalog menu */

.catalog-menu {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  pointer-events: none;
  flex-direction: row;
}

.catalog-menu[aria-hidden="true"] {
  visibility: hidden;
}

.catalog-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.catalog-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(104, 111, 125, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.catalog-menu.is-open .catalog-menu__backdrop {
  opacity: 1;
}

.catalog-menu__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  background: #f1f1f1;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  transform: translateX(-16px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.catalog-menu.is-open .catalog-menu__panel {
  transform: translateX(0);
  opacity: 1;
}

@media (min-width: 992px) {
  .catalog-menu__panel {
    margin: 0;
    max-height: 100vh;
    align-self: stretch;
  }
}

.catalog-menu__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 260px;
  align-items: stretch;
  gap: 0.5rem;
}

.catalog-menu__column {
  padding: 0.75rem 1rem 1rem;
}

.catalog-menu__column--sections {
  position: relative;
  width: 260px;
  overflow: visible;
  padding-right: 1rem;
}

.catalog-menu__column--sections::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  right: 0.25rem;
  width: 1px;
  background: #cde6e6;
  pointer-events: none;
  z-index: 5;
}

.catalog-menu__sections {
  padding: 0;
  margin: 0;
}

.catalog-menu__column--children {
  flex: 1 1 auto;
  overflow-y: auto;
  transition: margin-top 0.2s ease;
}

@media (max-width: 767.98px) {
  .catalog-menu {
    --catalog-menu-mobile-offset: calc(
      var(--mobile-nav-height, 90px)
      + env(safe-area-inset-top, 0px)
      + 12px
    );
    flex-direction: row;
    top: var(--catalog-menu-mobile-offset);
    right: 0;
    bottom: 0;
    left: 0;
  }

  .catalog-menu__panel {
    max-width: 100%;
    transform: translateX(-100%);
    background: #ffffff;
    padding-top: 1rem;
    height: 100%;
  }

  .catalog-menu.is-open .catalog-menu__panel {
    transform: translateX(0);
  }

  .catalog-menu__body {
    flex-direction: row;
  }

  .catalog-menu__column--sections {
    width: 100%;
    padding-right: 0;
  }

  .catalog-menu__column--sections::after {
    display: none;
  }

  .catalog-menu-divider {
    display: none;
  }

  .catalog-menu-toggle-divider {
    display: none;
  }

  .catalog-menu__column--children {
    position: absolute;
    inset: calc(60px + env(safe-area-inset-top, 0px)) 0 0 0;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 3;
  }

  .catalog-menu.is-drilldown .catalog-menu__column--children {
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .catalog-menu__panel {
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
    max-width: none;
  }

  .catalog-menu__body {
    align-items: flex-start;
    gap: 1.5rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: none;
  }

  .catalog-menu__column--sections {
    width: 220px;
    padding: 1.1rem 1.25rem 1.35rem;
    margin-top: 1.25rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .catalog-menu__column--children {
    flex: 0 0 auto;
    min-width: 260px;
    max-width: 380px;
    width: auto;
    overflow: visible;
    align-self: flex-start;
    margin-top: 0;
    border: 0;
    border-radius: 12px;
    padding: 0.25rem 0.75rem 0.75rem;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .catalog-menu__children-group {
    width: 100%;
    border-radius: 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 1rem 1.25rem 1.2rem;
    transform: translateY(calc(var(--child-offset, 8px)));
    transition: transform 0.2s ease;
  }

  .catalog-menu__children-title {
    margin-bottom: 0.35rem;
  }

  .catalog-menu__children-list {
    columns: 2;
    column-gap: 1.25rem;
  }

}

/* Sections list */

.catalog-menu__sections {
  padding: 0;
  margin: 0;
}

.catalog-menu__section-item + .catalog-menu__section-item {
  margin-top: 0.25rem;
}

.catalog-menu__section-btn {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #686f7d;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  position: relative;
  z-index: 0;
}

.catalog-menu__section-btn:hover {
  background: rgba(220, 239, 238, 0.95);
  color: var(--catalog-accent-text);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
  z-index: 2;
}

.catalog-menu__section-btn:focus-visible {
  outline: 2px solid #686f7d;
  outline-offset: 1px;
}

.catalog-menu__section-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-menu__section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid #cde6e6;
  box-sizing: border-box;
  position: relative;
}

.catalog-menu__section-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #686f7d;
  opacity: 0;
}

.catalog-menu__section-title {
  flex: 1 1 auto;
}

.catalog-menu__caret {
  margin-left: 0.25rem;
  color: #686f7d;
  font-size: 0.75rem;
}

.catalog-menu__section-item.is-active .catalog-menu__section-btn {
  background: transparent;
  color: var(--catalog-active-text);
  box-shadow: none;
}

.catalog-menu__section-item.is-active .catalog-menu__section-icon {
  border-color: var(--catalog-active-text);
}

.catalog-menu__section-item.is-active .catalog-menu__section-icon::after {
  opacity: 1;
  background: var(--catalog-active-text);
}

.catalog-menu__section-item.is-active .catalog-menu__caret {
  color: var(--catalog-active-text);
}

/* Children */

.catalog-menu__children-header {
  display: none;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid #cde6e6;
  gap: 0.5rem;
  cursor: pointer;
}
.catalog-menu__children-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: #9ca3af;
}

.catalog-menu__children-close:hover {
  color: #6b7280;
}


.catalog-menu__back-icon {
  font-size: 0.9rem;
  color: #686f7d;
}

.catalog-menu__back-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #686f7d;
}

@media (max-width: 767.98px) {
  .catalog-menu__children-header {
    display: flex;
  }
}

.catalog-menu__children-group {
  display: none;
  padding-top: 0.75rem;
}

.catalog-menu__children-group.is-active {
  display: block;
}

.catalog-menu__children-title {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #000000;
}

.catalog-menu__children-list {
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 1.5rem;
}

@media (max-width: 991.98px) {
  .catalog-menu__children-list {
    columns: 1;
  }
}

.catalog-menu__children-item {
  break-inside: avoid;
  margin-bottom: 0.2rem;
}

.catalog-menu__children-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #686f7d;
  text-decoration: none;
  padding: 0.15rem 0.1rem;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.catalog-menu__children-link:hover {
  background: var(--catalog-accent-bg);
  color: var(--catalog-accent-text);
}

.catalog-menu__children-link.is-active {
  font-weight: 600;
  color: var(--catalog-active-text);
  background: transparent;
}

body.catalog-menu-open {
  overflow: hidden;
}

/* === Catalog header refinements (unified heights, clean frame, updated icons) === */

.catalog-hero {
  margin-bottom: 1rem;
  position: relative;
  z-index: 5;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.catalog-hero__preview {
  background: transparent;
}

.catalog-hero__frame {
  display: flex;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #686f7d;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(205, 230, 230, 0.65);
}

.catalog-hero__row {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 0.75rem;
}

.catalog-menu-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  background: transparent;
  border: none;
  padding: 0.3rem 0.8rem 0.3rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 500;
  color: #111827;
  border-radius: 0;
  box-shadow: none;
}

.catalog-menu-toggle:hover {
  background-color: transparent;
  box-shadow: none;
}

.catalog-menu-toggle:active {
  background-color: transparent;
  box-shadow: none;
  transform: none;
}

.catalog-menu-toggle__icon.splendy-icon-waves {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-menu-toggle__icon svg {
  width: 20px;
  height: 20px;
}

.catalog-menu-toggle__icon svg path {
  fill: none;
  stroke: #cde6e6;
  stroke-width: 1.6;
}

.catalog-menu-toggle__label {
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.catalog-search {
  flex: 1 1 auto;
  margin-left: 0;
}

.catalog-search__wrapper {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-right: 2.25rem;
  background: transparent;
}

.catalog-search__input {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  font-size: 0.95rem;
  width: 100%;
}

.catalog-search__input:focus {
  outline: none;
}

.catalog-search__submit {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  width: 90px;
  height: 32px;
  border-radius: 4px;
  border: none;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.catalog-search__submit.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.catalog-search__submit:focus-visible {
  outline: 2px solid #686f7d;
  outline-offset: 2px;
}

.catalog-search__icon.splendy-icon-waves {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-search__icon svg {
  width: 20px;
  height: 20px;
}

.catalog-search__icon svg path {
  fill: none;
  stroke: #cde6e6;
  stroke-width: 1.6;
}

/* Keep menu column width stable */
@media (min-width: 992px) {
  .catalog-menu__column--sections {
    flex: 0 0 260px;
    max-width: 260px;
    box-sizing: border-box;
  }
}

/* Mobile layout: catalog button left, search right */
@media (max-width: 575.98px) {
  .catalog-hero__frame {
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
  }

  .catalog-hero__row {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
  }

  .catalog-menu-toggle {
    padding-left: 0.35rem;
    padding-right: 0.5rem;
    min-width: auto;
    width: auto;
    flex: 0 0 auto;
  }

  .catalog-menu-toggle__label {
    font-size: 0.85rem;
  }

  .catalog-search__input {
    font-size: 0.9rem;
  }
}

.catalog-swatch-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.catalog-swatch-menu {
  position: relative;
  display: inline-flex;
}

.catalog-swatch-menu__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  max-width: 26px;
  max-height: 26px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(104, 111, 125, 0.3);
  background: rgba(241, 243, 246, 0.9);
  color: #505a68;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.catalog-swatch-menu__summary::-webkit-details-marker {
  display: none;
}

.catalog-swatch-menu__summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(53, 97, 93, 0.35);
}

.catalog-swatch-menu__summary:hover {
  background: rgba(232, 236, 240, 0.95);
}

.catalog-swatch-menu__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  align-items: center;
  justify-content: center;
  color: #5b6472;
  line-height: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.catalog-swatch-menu__icon svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  display: block;
}

.catalog-swatch-menu__summary::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  font-size: 0.62rem;
  color: #ffffff;
  background: rgba(33, 37, 46, 0.9);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 25;
}

.catalog-swatch-menu__summary:hover::after,
.catalog-swatch-menu__summary:focus-visible::after {
  opacity: 1;
}

.catalog-swatch-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 30px rgba(20, 26, 38, 0.18);
  border: 1px solid rgba(104, 111, 125, 0.2);
  display: grid;
  gap: 8px;
  z-index: 20;
}

.catalog-swatch-menu[open] .catalog-swatch-menu__summary {
  box-shadow: none;
  background: rgba(227, 234, 241, 0.95);
  border-color: rgba(53, 97, 93, 0.35);
}

.catalog-swatch-menu__item {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #2f3b47;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(104, 111, 125, 0.2);
  background: linear-gradient(135deg, rgba(244, 247, 250, 0.95), rgba(231, 236, 243, 0.95));
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 8px 16px rgba(20, 26, 38, 0.12);
}

.catalog-swatch-menu__item:hover,
.catalog-swatch-menu__item:focus-visible {
  background: linear-gradient(135deg, rgba(225, 242, 240, 0.95), rgba(209, 228, 226, 0.95));
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 26, 38, 0.16);
  outline: none;
}

.catalog-swatch-menu__item.is-active {
  background: linear-gradient(135deg, rgba(208, 235, 231, 0.98), rgba(181, 219, 214, 0.98));
  color: #214d46;
  font-weight: 600;
  border-color: rgba(53, 97, 93, 0.35);
  box-shadow: 0 12px 20px rgba(20, 26, 38, 0.18);
}


@media (max-width: 575.98px) {
  .catalog-menu__panel {
    margin: 0.75rem;
    max-width: 100%;
    max-height: calc(100vh - 1.5rem);
    border-radius: 10px;
  }
}


.catalog-search__submit-label{
  margin-left: 0.5rem;
  margin-right: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .catalog-search__wrapper {
    padding-right: 0;
  }

  .catalog-search__submit {
    display: none;
  }

  .catalog-search__submit-label {
    display: none;
  }

  .catalog-search__submit-mobile {
    display: none;
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    background-color: var(--primary-gray, #686f7d);
    color: #ffffff;
    border: none;
  }

  .catalog-search__submit-mobile.is-visible {
    display: block;
  }
}


@media (min-width: 768px) {
  .catalog-menu__children-header {
    display: none !important;
  }
}


/* Обеспечиваем, что панель каталога на десктопе примыкает к левой стороне экрана */
@media (min-width: 768px) {
  .catalog-menu {
    justify-content: flex-start;
  }

  .catalog-menu__panel {
    margin-left: 0;
    margin-right: auto;
    transform: translateX(0);
  }
}

@media (min-width: 768px) {

  /* Левая колонка — категории */
  .catalog-menu__column--sections {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.1rem 1.25rem 1.35rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  }

  /* Правая колонка — дети категорий */
  .catalog-menu__children-group {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    padding: 1rem 1.25rem 1.2rem;
  }
}

/* Плавающее меню рядом с кнопкой на десктопе */
@media (min-width: 768px) {
  .catalog-menu--dropdown {
    --catalog-menu-top: 64px;
    --catalog-menu-left: 0px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .catalog-menu--dropdown .catalog-menu__backdrop {
    display: none;
  }

  .catalog-menu--dropdown .catalog-menu__panel {
    position: fixed;
    inset: auto;
    top: var(--catalog-menu-top);
    left: var(--catalog-menu-left);
    margin: 0;
    width: auto;
    max-width: 720px;
    transform: translateY(-8px);
    opacity: 0;
    background: transparent;
    box-shadow: none;
    z-index: 1070;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
  }

  .catalog-menu.catalog-menu--dropdown.is-open .catalog-menu__panel {
    opacity: 1;
    transform: translateY(0);
  }

  .catalog-menu.catalog-menu--dropdown.is-open {
    pointer-events: none;
  }

  .catalog-menu--dropdown .catalog-menu__column--children {
    display: none;
  }

  .catalog-menu--dropdown .catalog-menu__column--children.has-active {
    display: block;
  }
}
