/* public/catalog/catalog-common.css
Единый файл стилей для верхних блоков публичных каталогов /products/ и /services/.
Здесь живут только общие зоны: хлебные крошки, переключатель Товары/Услуги,
поиск, верхняя HTML-навигация категорий, hero-блок и фильтры.
Модальные меню категорий и SEO-модалки остаются в своих отдельных стилях. */

/* ===== Хлебные крошки ===== */
.products-breadcrumbs-wrap, .services-breadcrumbs-wrap {
margin: 90px 0 20px 0;
}

.products-breadcrumbs, .services-breadcrumbs {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
font-size: 12px;
line-height: 1.2;
color: #26becf;
}

.products-breadcrumbs a, .services-breadcrumbs a {
color: #667085;
text-decoration: none;
}

.products-breadcrumbs a:hover, .services-breadcrumbs a:hover {
color: #111827;
}

.products-breadcrumbs__sep, .services-breadcrumbs__sep {
opacity: .55;
}

/* ===== Верхняя зона: кнопки Товары/Услуги + поиск ===== */
.products-menu-header, .services-top-panel {
display: flex;
justify-content: center;
width: 100%;
max-width: none;
margin: 0;
box-sizing: border-box;
}

.products-menu-header header, .services-top-panel {
display: flex;
flex-direction: column;
align-items: center;
}

.products-top-controls, .services-top-controls {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
order: 1;
margin: 0;
}

.products-top-controls .toolbar, .services-search-box {
flex: 0 0 auto;
overflow: hidden;
border-radius: 8px;
}

.products-top-controls__switcher, .services-top-category-nav__switcher {
flex: 0 0 auto;
}

.products-top-category-nav__switcher, .services-top-category-nav__switcher {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin: 0;
}

.products-top-category-nav__mode, .services-top-category-nav__mode {
display: flex;
align-items: center;
justify-content: center;
gap: 9px;
padding: 9px 13px;
border: 0 solid #ffffff29;
border-radius: 8px;
background: #ffffff0f;
color: #ffffffd1;
font-size: 16px;
line-height: 1;
text-decoration: none;
cursor: pointer;
transition: .16s ease;
}

.products-top-category-nav__mode img, .services-top-category-nav__mode img {
max-width: 21px;
filter: brightness(10);
}

.products-top-category-nav__mode:hover, .services-top-category-nav__mode:hover {
transform: translateY(-1px);
border-color: #26becf73;
background: #ffffff1a;
color: #fff;
}

.products-top-category-nav__mode.is-active, .services-top-category-nav__mode.is-active {
border-color: #ffffff1f;
background: #26becf;
color: #fff;
}

.products-top-category-nav__mode--disabled, .products-top-category-nav__mode--disabled:hover, .services-top-category-nav__mode--disabled, .services-top-category-nav__mode--disabled:hover {
opacity: .46;
cursor: not-allowed;
transform: none;
color: #ffffff9e;
}

/* ===== Поиск ===== */
.products-search-box, .services-search-box {
position: relative;
width: 420px;
max-width: 100%;
}

.toolbar input[type="search"], .services-search-box input[type="search"] {
outline: 0;
box-sizing: border-box;
width: -webkit-fill-available;
width: 100%;
padding: 10px 10px 10px 52px;
border: none;
border-radius: 0;
font-size: 16px;
}

.toolbar input[type="search"]:hover, .services-search-box input[type="search"]:hover {
font-weight: 600;
}

.products-search-catalog-button, .services-search-catalog-button {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
gap: 0;
padding: 11px 13px 11px 12px;
border: 0;
border-radius: 0;
outline: 0;
color: #fff;
background: #393d48;
overflow: hidden;
}

.products-search-catalog-button:hover, .services-search-catalog-button:hover {
transform: translateY(-50%);
}

.products-search-catalog-button img, .services-search-catalog-button img, .services-search-catalog-button__dots img {
width: 18px;
filter: brightness(10.5);
}

.products-search-catalog-button__dots, .services-search-catalog-button__dots {
display: grid;
grid-template-columns: repeat(2, 6px);
gap: 4px;
}

.products-search-catalog-button__dots span, .services-search-catalog-button__dots span {
display: block;
width: 6px;
height: 6px;
border-radius: 999px;
background: currentColor;
}

/* ===== Верхнее HTML-меню категорий ===== */
.products-top-category-nav-slot, .services-top-category-nav-slot {
display: flex;
flex-direction: column;
align-items: center;
order: 2;
margin: 20px 0 0 0;
}

.products-top-category-nav-slot:empty, .services-top-category-nav-slot:empty {
display: none;
}

.products-top-category-nav, .services-top-category-nav {
position: relative;
}

.products-top-category-nav__rail, .services-top-category-nav__rail {
display: grid;
grid-template-columns: 38px minmax(0, 1fr) 38px;
align-items: center;
gap: 0;
}

.products-top-category-nav__viewport, .services-top-category-nav__viewport {
min-width: 0;
overflow-x: auto;
overflow-y: hidden;
scroll-behavior: smooth;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
outline: none;
}

.products-top-category-nav__viewport::-webkit-scrollbar, .services-top-category-nav__viewport::-webkit-scrollbar {
display: none;
}

.products-top-category-nav__viewport:focus-visible, .services-top-category-nav__viewport:focus-visible {
border-radius: 14px;
box-shadow: 0 0 0 3px rgba(38, 190, 207, .26);
}

.products-top-category-nav__track, .services-top-category-nav__track {
display: flex;
align-items: stretch;
gap: 5px;
min-width: max-content;
padding: 1px;
}

.products-top-category-nav__arrow, .services-top-category-nav__arrow {
width: 28px;
height: -webkit-fill-available;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid #ffffff24;
border-radius: 5px;
background: #ffffff12;
color: #ffffffe6;
font-size: 32px;
line-height: 1;
cursor: pointer;
transition: .16s ease;
}

.products-top-category-nav__arrow:hover:not(:disabled), .services-top-category-nav__arrow:hover:not(:disabled) {
border-color: rgba(38, 190, 207, .34);
background: rgba(38, 190, 207, .14);
color: #fff;
}

.products-top-category-nav__arrow:disabled, .services-top-category-nav__arrow:disabled {
opacity: 0;
cursor: default;
}

.products-top-category-card, .services-top-category-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 8px;
box-sizing: border-box;
min-width: 90px;
padding: 0;
border: 0 solid transparent;
border-radius: 10px;
color: #8f8f8f;
text-align: center;
text-decoration: none;
transition: 1s ease;
}

.products-top-category-card:hover, .services-top-category-card:hover {
transform: translateY(-1px);
background: #ffffff14;
color: #ffffff;
transition: 0s ease;
}

.products-top-category-card.is-active, .products-top-category-card[aria-current="page"], .services-top-category-card.is-active, .services-top-category-card[aria-current="page"] {
background: #373b43;
}

.products-top-category-card.is-active .products-top-category-card__name, .products-top-category-card[aria-current="page"] .products-top-category-card__name, .services-top-category-card.is-active .services-top-category-card__name, .services-top-category-card[aria-current="page"] .services-top-category-card__name {
color: #fff;
}

.products-top-category-card__media, .services-top-category-card__media {
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
overflow: hidden;
}

.products-top-category-card__image, .services-top-category-card__image {
display: block;
}

.products-top-category-card__image.is-icon, .services-top-category-card__image.is-icon {
width: 44px;
height: 25px;
margin: 10px 0 0 0;
filter: invert(0);
}

.products-top-category-card__image.is-photo, .services-top-category-card__image.is-photo {
height: 72px;
}

.products-top-category-card__name, .services-top-category-card__name {
max-width: 94px;
height: 31px;
margin: 0 0 10px 0;
overflow: hidden;
font-size: 13px;
line-height: 1.2;
font-weight: 300;
color: #a3a3a3;
}

/* ===== Hero-блок с кнопкой добавления товара/услуги ===== */
.products-hero, .services-header {
padding: 40px;
max-width: max-content;
margin: 10px auto 20px;
border-radius: 30px;
overflow: hidden;
/* box-shadow: inset 0px 0px 6px 0px #000000; */
background: hsl(222 10% 24% / 1);
}

.products-hero-top, .services-hero-top {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}

.products-hero-copy, .services-hero-copy {
max-width: 460px;
}

.products-hero .logo, .services-title-row h1 {
margin: 0;
color: #fff;
font-size: 27px;
line-height: 1;
font-weight: 200;
letter-spacing: 0;
text-align: left;
}

.products-title-row, .services-title-row {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
flex-direction: column;
gap: 2px;
}

.products-title-row .status, .services-title-row .status {
margin: 0;
padding: 0;
color: #00e5ff;
text-align: center;
font-size: 16px;
font-size: 14px;
font-weight: 200;
}

.products-title-row .status:empty, .services-title-row .status:empty {
display: none;
}

.products-page-lead, .services-page-lead {
max-width: 720px;
margin: 3px 0 0;
color: #fff;
font-size: 15px !important;
line-height: 1.35;
font-weight: 100;
}

.products-hero-actions, .services-hero-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
flex-wrap: wrap;
}

.products-category-button, .services-category-button {
display: flex;
align-items: center;
justify-content: center;
gap: 13px;
padding: 17px 23px;
border: 0;
border-radius: 999px;
corner-shape: superellipse(1.8);
background: #abafb733;
color: #000;
text-decoration: none;
font-size: 19px;
font-weight: 500;
line-height: 1;
transition: .16s ease;
}

.products-category-button:hover, .services-category-button:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px #0f172a14;
background: #fff;
border-color: #0f172a29;
}

.products-category-button--primary, .services-category-button--primary {
background: #26becf;
border-color: transparent;
color: #fff;
}

.products-category-button--primary:hover, .services-category-button--primary:hover {
background: #26becf;
color: #fff;
}

.products-category-button__icon, .services-category-button__icon {
font-size: 23px;
line-height: 1;
}

/* ===== Фильтры ===== */
.products-list-controls, .services-list-controls {
max-width: 1160px;
margin: auto;
box-sizing: border-box;
}

.products-filter-bar, .services-filter-bar, .services-filters {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 10px;
margin: 20px 10px;
}

.products-filter-control, .services-filter-control, .services-filters label {
display: inline-flex;
align-items: center;
gap: 6px;
}

.products-filter-control span, .services-filter-control span, .services-filters label span { white-space: nowrap;
font-size: 12px;
}

.products-filter-control select, .services-filter-control select, .services-filters select, .products-list-controls .products-filter-bar .products-filter-control select, .services-list-controls .services-filter-bar .services-filter-control select {
min-width: 0;
min-height: 0;
padding: 10px 33px 10px 10px;
border: 1px solid #ffffff17;
border-radius: 6px;
outline: 0;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-color: #ffffff08;
background-image: url(/img/icon24+.png);
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 12px;
color: #c9c9c9;
font: inherit;
font-size: 14px;
font-weight: 400;
line-height: normal;
cursor: pointer;
}

.services-list-controls .services-filter-bar .services-clear-button, .services-filter-bar .services-clear-button, .services-clear-button {
min-width: 0;
min-height: 0;
padding: 10px 13px;
border: 1px solid #adadad;
border-radius: 6px;
outline: 0;
background: transparent;
color: #535353;
font: inherit;
font-size: 14px;
font-weight: 400;
line-height: normal;
cursor: pointer;
}

.services-list-controls .services-filter-bar .services-clear-button:hover, .services-filter-bar .services-clear-button:hover, .services-clear-button:hover {
background: rgba(255, 255, 255, .48);
}

/* ===== Мобильная адаптация общих блоков ===== */
@media (max-width: 820px) {
.products-hero-top, .services-hero-top {
display: grid;
}

.products-hero-actions, .services-hero-actions {
justify-content: flex-start;
}
}

@media (max-width: 760px) {
.products-menu-header header, .services-top-panel {
width: 100%;
max-width: 100%;
min-width: 0;
align-items: stretch;
box-sizing: border-box;
}

.products-top-controls, .services-top-controls {
width: 100%;
max-width: 100%;
min-width: 0;
order: 1;
flex-direction: column;
align-items: stretch;
gap: 0;
margin: 0;
padding: 0;
}

.products-top-controls .toolbar, .services-search-box {
order: 1;
width: calc(100% - 28px);
min-width: 0;
max-width: 640px;
margin: 0 auto 10px;
box-sizing: border-box;
flex: 0 0 auto;
}

.products-search-box, .products-menu-header .products-search-box, .services-search-box {
width: 100%;
}

.products-top-controls__switcher, .services-top-category-nav__switcher {
order: 2;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 0;
width: calc(100% - 20px);
max-width: 640px;
margin: auto;
border: 1px solid #ffffff1f;
border-radius: 6px;
}

.products-top-category-nav__mode, .services-top-category-nav__mode {
}

.products-top-category-nav__mode:hover, .services-top-category-nav__mode:hover {
transform: none;
border-color: transparent;
background: rgba(255, 255, 255, .04);
}

.products-top-category-nav__mode--disabled, .products-top-category-nav__mode--disabled:hover, .services-top-category-nav__mode--disabled, .services-top-category-nav__mode--disabled:hover {
opacity: .62;
background: transparent;
color: rgba(255, 255, 255, .72);
}


.products-top-category-nav, .services-top-category-nav {
width: 100%;
padding: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
overflow: visible;
}

.products-top-category-nav__rail, .services-top-category-nav__rail {
display: block;
width: 100%;
min-width: 0;
}

.products-top-category-nav__arrow, .services-top-category-nav__arrow {
display: none !important;
}

.products-top-category-nav__viewport, .services-top-category-nav__viewport {
width: 100%;
min-width: 0;
padding: 0 0 2px 14px;
box-sizing: border-box;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x proximity;
-webkit-overflow-scrolling: touch;
}

.products-top-category-nav__track, .services-top-category-nav__track {
min-width: max-content;
padding-right: 14px;
}

.products-top-category-card, .services-top-category-card {
scroll-snap-align: start;
}

.products-top-category-card:hover, .services-top-category-card:hover {
transform: none;
border-color: transparent;
background: transparent;
}

.spacer,
.products-menu-header .spacer {
order: 3;
}
}

@media (max-width: 520px) {
.products-page-lead, .services-page-lead {
font-size: 13px !important;
}

.products-filter-bar, .services-filter-bar, .services-filters {
justify-content: flex-start;
}

.products-filter-control, .services-filter-control, .services-filters label {
justify-content: space-between;
box-sizing: border-box;
}

.products-hero-actions, .services-hero-actions {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
}
}

@media (max-width: 420px) {
.products-top-controls .toolbar, .products-top-controls__switcher, .services-search-box, .services-top-category-nav__switcher {
width: calc(100% - 20px);
}

.products-top-category-nav__viewport, .services-top-category-nav__viewport {
padding-left: 10px;
}

.products-top-category-nav__track, .services-top-category-nav__track {
padding-right: 10px;
}
}