/* Левая колонка каталога в стиле карточки товара (цвета и скругления — как в cm-card.css). Только body.cm-shop
   (страницы каталога, includes/shop-filters.php). Шрифт — шрифт сайта, как у плиток товаров рядом. */
.cm-shop {
  --cm-text: #171717;
  --cm-muted: #6d6d6d;
  --cm-faint: #9a9a9a;
  --cm-line: #ece8e1;
  --cm-soft: #faf8f5;
  --cm-accent: #f28c28;
  --cm-accent-dark: #d87210;
  --cm-accent-soft: #fff3e6;
}

/* ---------- блоки колонки ---------- */
.cm-shop .cm-widget {
  margin: 0 0 12px;
  padding: 16px 16px 14px;
  border: 1px solid var(--cm-line);
  border-radius: 18px;
  background: #fff;
}
.cm-shop .cm-widget__title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--cm-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
/* блок свойства: заголовок — вся строка со стрелкой, содержимое скрыто, пока блок свёрнут */
.cm-shop .cm-filter .cm-widget__title {
  position: relative;
  margin-bottom: 0;
  padding-inline-end: 32px;
  cursor: pointer;
}
.cm-shop .cm-filter .cm-widget__title:after {
  content: "";
  position: absolute;
  top: 5px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--cm-text);
  border-bottom: 2px solid var(--cm-text);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.cm-shop .cm-filter.is-open .cm-widget__title:after {
  top: 9px;
  transform: rotate(-135deg);
}
.cm-shop .cm-filter .cm-widget__title ~ * {
  margin-top: 12px;
}
.cm-shop .cm-filter:not(.is-open) .cm-widget__title ~ * {
  display: none;
}

/* ---------- значения фильтров: строки с флажком ---------- */
.cm-shop .cm-filter ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cm-shop .cm-filter ul li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}
.cm-shop .cm-filter ul li:hover {
  background: var(--cm-soft);
}
.cm-shop .cm-filter ul a {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 36px;
  padding: 6px 8px;
  color: var(--cm-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.cm-shop .cm-filter ul a:before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-inline-end: 10px;
  border: 1.5px solid #cfcac2;
  border-radius: 6px;
  background: #fff;
}
.cm-shop .cm-filter ul a:hover:before {
  border-color: var(--cm-accent);
}
.cm-shop .cm-filter ul li.chosen a:before {
  border-color: var(--cm-accent);
  background: var(--cm-accent) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.cm-shop .cm-filter ul li.chosen a {
  font-weight: 700;
}
/* количество — серым рядом с названием */
.cm-shop .cm-filter ul .count {
  flex: none;
  margin-inline: 0 8px;
  color: var(--cm-faint);
  font-size: 13px;
  font-weight: 500;
}
.cm-shop .cm-filter ul li.chosen .count {
  color: var(--cm-accent-dark);
}

/* ---------- поиск, «Показать все», «Ничего не найдено» ---------- */
.cm-shop .cm-f-search {
  position: relative;
  display: block;
  margin: 0 0 8px;
}
.cm-shop .cm-f-search:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cm-shop .cm-f-search input {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 14px 0 36px;
  border: 1px solid var(--cm-line);
  border-radius: 999px;
  background: var(--cm-soft);
  color: var(--cm-text);
  font-size: 14px;
  box-shadow: none;
}
.cm-shop .cm-f-search input:focus {
  border-color: var(--cm-accent);
  background: #fff;
  outline: none;
}
.cm-shop .cm-f-hidden {
  display: none !important;
}
.cm-shop .cm-f-empty {
  padding: 6px 8px;
  color: var(--cm-muted);
  font-size: 13px;
}
.cm-shop .cm-f-empty[hidden],
.cm-shop .cm-f-more[hidden] {
  display: none;
}
.cm-shop .cm-f-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  margin: 6px 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cm-accent-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
}
.cm-shop .cm-f-more:after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}
.cm-shop .cm-f-more.is-expanded:after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.cm-shop .cm-f-more:hover {
  color: var(--cm-text);
  background: none;
}

/* ---------- категории ---------- */
.cm-shop .cm-cats__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--cm-soft);
  color: var(--cm-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.cm-shop .cm-cats__back:hover {
  background: #f3efe9;
  color: var(--cm-text);
}
.cm-shop .cm-cats__arrow {
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.cm-shop .cm-cats__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 6px;
  padding: 0 8px;
  color: var(--cm-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.cm-shop .cm-cats__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cm-shop .cm-cats__list li {
  margin: 0;
  padding: 0;
}
.cm-shop .cm-cats__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 10px;
  color: var(--cm-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cm-shop .cm-cats__list a:hover {
  background: var(--cm-soft);
  color: var(--cm-text);
}
.cm-shop .cm-cats__item.is-current a {
  background: var(--cm-accent-soft);
  color: var(--cm-accent-dark);
  font-weight: 700;
}
.cm-shop .cm-cats__count {
  flex: none;
  color: var(--cm-faint);
  font-size: 13px;
  font-weight: 500;
}
.cm-shop .cm-cats__item.is-current .cm-cats__count {
  color: var(--cm-accent-dark);
}

/* ---------- цена ---------- */
.cm-shop .cm-sidebar .widget_price_filter .price_slider_amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cm-shop .cm-sidebar .widget_price_filter .price_label {
  order: -1;
  color: var(--cm-muted);
  font-size: 14px;
}
.cm-shop .cm-sidebar .widget_price_filter .price_label span {
  color: var(--cm-text);
  font-weight: 700;
}
/* кнопка — главная кнопка сайта (оранжевая, как «Добавить в корзину»), только ниже */
.cm-shop .cm-sidebar .widget_price_filter .price_slider_amount .button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--cm-accent);
  border-radius: 14px;
  background: var(--cm-accent);
  color: var(--cm-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.cm-shop .cm-sidebar .widget_price_filter .price_slider_amount .button:hover {
  border-color: var(--cm-accent-dark);
  background: var(--cm-accent-dark);
  color: var(--cm-text);
}
.cm-shop .cm-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
  border-radius: 50%;
}
.cm-shop .cm-sidebar .widget_price_filter .clear {
  display: none;
}
