/*
Theme Name: CycleMotion
Description: Своя тема магазина вместо Woodmart. Шрифт, цвета, кнопки и скругления — как у карточки товара (cm-card).
Version: 0.1.8
Author: CycleMotion
Text Domain: cm-theme
*/

/*
 * Единый стиль витрины (образец — карточка товара, docs/STORE_DESIGN_PLAN.md):
 *   шрифт — только Inter со своего сервера; толщины 400 текст · 500 второстепенное · 600 подписи · 700 заголовки ·
 *   800 цена, главный заголовок, кнопки; размеры 12 · 13 · 14 · 15 (текст) · 16 · 18 · 20 · 22 · 24 · 28 · 32 · 34 · 40 · 48;
 *   кнопки — .cm-btn (оранжевая) и .cm-btn--ghost (белая с рамкой), поля — общий блок «поля ввода» ниже.
 */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cm-font: Inter, Arial, sans-serif;
  --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-w: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
/* телефоны не увеличивают шрифт сами (iOS в повороте, Chrome на Android): размеры — только из шкалы */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.cm-noscroll { overflow: hidden; }
body { margin: 0; background: #fff; color: var(--cm-text); font: 15px/1.5 var(--cm-font); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cm-accent-dark); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.cm-wrap { width: 100%; max-width: var(--cm-w); margin-inline: auto; padding-inline: 20px; }
.cm-icon { display: block; width: 22px; height: 22px; }
.cm-page { min-height: 50vh; }

/* кнопки — как в карточке: главная оранжевая с тёмным текстом, вторая белая с рамкой */
.cm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 1px solid var(--cm-accent); border-radius: 16px; background: var(--cm-accent); color: var(--cm-text); font: 800 15px/1.2 var(--cm-font); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.cm-btn:hover { border-color: var(--cm-accent-dark); background: var(--cm-accent-dark); color: var(--cm-text); }
.cm-btn--ghost { border-color: #dedede; background: #fff; }
.cm-btn--ghost:hover { border-color: var(--cm-accent); background: #fff; color: var(--cm-text); }

/* поля ввода — одни на весь сайт */
.cm-req input[type="text"], .cm-req input[type="url"], .cm-req textarea,
.woocommerce form .input-text, .woocommerce form input[type="text"], .woocommerce form input[type="email"],
.woocommerce form input[type="password"], .woocommerce form input[type="tel"], .woocommerce form textarea, .woocommerce form select,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #e3ded6; border-radius: 14px; background: #fff;
  color: var(--cm-text); font: 15px/1.4 var(--cm-font); }
.cm-req input:focus, .cm-req textarea:focus, .woocommerce form .input-text:focus, .woocommerce form input:focus,
.woocommerce form textarea:focus, .woocommerce form select:focus, .woocommerce form .form-row .input-text:focus {
  border-color: var(--cm-accent); box-shadow: 0 0 0 3px rgba(242, 140, 40, .15); outline: none; }

/* ---------- шапка ---------- */
.cm-topbar { background: #171717; color: #fff; font-size: 13px; }
.cm-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.cm-topbar__soc { display: flex; gap: 16px; }
.cm-topbar a { color: #fff; }
.cm-topbar a:hover { color: var(--cm-accent); }
.cm-topbar__req { font-weight: 700; }

.cm-header { position: relative; z-index: 50; border-bottom: 1px solid var(--cm-line); background: #fff; }
.cm-header__main { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.cm-logo { flex: none; }
.cm-logo img { display: block; width: 190px; height: auto; }
.cm-nav { display: flex; flex: 1; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-weight: 700; font-size: 14px; }
.cm-burger { display: none; padding: 6px; border: 0; background: none; color: var(--cm-text); cursor: pointer; }
.cm-actions { display: flex; flex: none; align-items: center; gap: 16px; }
.cm-act { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.cm-act--list .cm-act__count, .cm-act--cart .cm-act__count {
  position: absolute; top: -8px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--cm-accent); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.cm-cart-badge { display: inline-flex; align-items: center; }
.cm-act__sum { white-space: nowrap; }

.cm-header__sub { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; }

/* меню «Категории» */
.cm-cm { position: relative; flex: none; }
.cm-cm__btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border: 1px solid var(--cm-line); border-radius: 14px; background: var(--cm-soft); color: var(--cm-text); font: 700 15px var(--cm-font); cursor: pointer; }
.cm-cm__drop { position: absolute; top: 100%; left: 0; display: none; padding-top: 8px; }
.cm-cm:hover .cm-cm__drop, .cm-cm.is-open .cm-cm__drop { display: block; }
.cm-cm__roots { position: relative; width: 300px; margin: 0; padding: 6px; border: 1px solid var(--cm-line); border-radius: 18px; background: #fff; box-shadow: 0 14px 36px rgba(23, 23, 23, .08); list-style: none; }
.cm-cm__rootlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 700; line-height: 20px; }
/* стрелка — у раздела есть подразделы */
.cm-cm__rootlink--sub::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; opacity: .4; transform: rotate(45deg); }
/* открытый раздел выбирает theme.js (класс is-active), не :hover: по пути к панели курсор проходит над соседними разделами */
.cm-cm__root.is-active > .cm-cm__rootlink { background: var(--cm-accent-soft); color: var(--cm-accent-dark); }
.cm-cm__root.is-active > .cm-cm__rootlink::after { opacity: 1; }
/* панель не ниже списка разделов: от любого раздела к ней можно вести мышь прямо вправо */
.cm-cm__panel { position: absolute; top: -1px; left: 100%; display: none; width: calc(var(--cm-cols, 3) * 248px + 52px); min-width: 400px; min-height: calc(100% + 2px); max-height: calc(100vh - 200px); overflow: hidden auto; padding: 20px 26px 10px; border: 1px solid var(--cm-line); border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(23, 23, 23, .1); }
.cm-cm__root.is-active > .cm-cm__panel { display: block; }
.cm-cm__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--cm-line); }
.cm-cm__title { min-width: 0; font-size: 18px; font-weight: 700; }
.cm-cm__all { color: var(--cm-accent-dark); font-size: 14px; font-weight: 700; white-space: nowrap; }
.cm-cm__groups { margin: 0; padding: 0; columns: var(--cm-cols, 3); column-gap: 28px; list-style: none; }
.cm-cm__groups > li { padding-bottom: 16px; break-inside: avoid; }
.cm-cm__group { display: block; padding: 4px 0; font-weight: 700; line-height: 1.3; }
.cm-cm__subs { margin: 2px 0 0 1px; padding: 0; border-left: 2px solid var(--cm-line); list-style: none; }
.cm-cm__subs a { display: block; padding: 4px 0 4px 12px; color: var(--cm-muted); font-size: 14px; line-height: 1.3; }
.cm-cm__subs a:hover { color: var(--cm-accent-dark); }

/* поиск */
.cm-search { position: relative; flex: 1; }
.cm-search input[type="search"] { width: 100%; height: 46px; padding: 0 52px 0 18px; border: 1px solid #e3ded6; border-radius: 14px; background: var(--cm-soft); color: var(--cm-text); font: 15px var(--cm-font); }
.cm-search input[type="search"]:focus { border-color: var(--cm-accent); background: #fff; box-shadow: 0 0 0 3px rgba(242, 140, 40, .15); outline: none; }
.cm-search button { position: absolute; top: 4px; right: 4px; width: 38px; height: 38px; padding: 8px; border: 0; background: none; color: var(--cm-muted); cursor: pointer; }
.cm-search__results { position: absolute; top: 100%; right: 0; left: 0; z-index: 60; margin-top: 8px; padding: 6px; border: 1px solid var(--cm-line); border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(23, 23, 23, .1); }
.cm-search__results a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.cm-search__results a:hover { background: var(--cm-soft); }
.cm-search__results img { width: 48px; height: 48px; object-fit: contain; }
.cm-search__results b { display: block; margin-top: 2px; font-weight: 800; }
.cm-search__none { padding: 10px; color: var(--cm-muted); }

/* мобильная панель */
.cm-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .45); }
.cm-drawer[hidden] { display: none; }
.cm-drawer__panel { width: min(340px, 88vw); height: 100%; overflow-y: auto; padding: 16px 20px 24px; background: #fff; }
.cm-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cm-drawer__top button { padding: 4px; border: 0; background: none; color: var(--cm-text); cursor: pointer; }
/* пункты одного уровня — одной толщины; у раскрывающихся — стрелка вместо треугольника браузера */
.cm-drawer summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; }
.cm-drawer summary::-webkit-details-marker { display: none; }
.cm-drawer summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: -4px 4px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .45; transform: rotate(45deg); transition: transform .15s ease; }
.cm-drawer details[open] > summary::after { margin-top: 3px; opacity: 1; transform: rotate(225deg); }
.cm-drawer details[open] > summary { color: var(--cm-accent-dark); }
.cm-drawer__section > summary { padding-top: 6px; color: var(--cm-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cm-drawer .cm-drawer__section[open] > summary { color: var(--cm-muted); }
.cm-drawer__tree { margin: 0; padding: 0; list-style: none; }
.cm-drawer__tree .cm-drawer__tree { padding-left: 14px; border-left: 2px solid var(--cm-line); }
.cm-drawer__tree a { display: block; padding: 11px 0; font-size: 15px; font-weight: 600; }
.cm-drawer__tree .cm-drawer__tree a, .cm-drawer__tree .cm-drawer__tree summary { font-weight: 500; }
.cm-drawer__tree .cm-drawer__all { display: block; padding: 11px 0 11px 16px; color: var(--cm-accent-dark); font-size: 15px; font-weight: 600; }
.cm-drawer__links { display: grid; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--cm-line); }
.cm-drawer__links a { padding: 11px 0; font-size: 15px; font-weight: 600; }

/* ---------- заголовок страницы: крошки и заголовок на белом, как у карточки ---------- */
.cm-title { padding-top: 22px; }
.cm-crumbs { color: #777; font-size: 13px; line-height: 1.35; }
.cm-crumbs a { color: #5f5f5f; }
.cm-crumbs a:hover { color: var(--cm-text); }
.cm-crumbs__sep { margin-inline: 8px; color: #b5afa6; }
.cm-title__h { margin: 14px 0 0; font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }

.cm-content { padding-block: 28px 56px; }
.cm-prose { color: #2b2b2b; font-size: 15px; line-height: 1.65; }
/* текст — от левого края, как заголовок страницы, строка не шире 880 px; сетки брендов и списков — во всю ширину */
.cm-prose > * { max-width: 880px; }
.cm-prose > .cm-brands, .cm-prose > .cm-listpage { max-width: none; }
.cm-prose h2 { margin: 32px 0 12px; color: var(--cm-text); font-size: 24px; }
.cm-prose h3 { margin: 24px 0 8px; color: var(--cm-text); font-size: 18px; }
.cm-prose h4 { margin: 0 0 16px; color: var(--cm-text); font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.cm-prose a { color: var(--cm-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.cm-prose table { width: 100%; border-collapse: collapse; }
.cm-prose td, .cm-prose th { padding: 10px 12px; border: 1px solid var(--cm-line); text-align: left; }

/* FAQ: вопрос раскрывает ответ */
.cm-faq { margin: 0 0 10px; border: 1px solid var(--cm-line); border-radius: 18px; background: #fff; }
.cm-faq summary { position: relative; padding: 18px 56px 18px 22px; color: var(--cm-text); font-size: 16px; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: ""; position: absolute; top: 50%; right: 24px; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.cm-faq[open] summary::after { margin-top: -2px; transform: rotate(225deg); }
.cm-faq summary:hover, .cm-faq[open] summary { color: var(--cm-accent-dark); }
.cm-faq__a { padding: 0 22px 6px; }
.cm-faq__a > :first-child { margin-top: 0; }

/* «О компании» */
.cm-about__lead { margin: 0 0 24px; color: var(--cm-text); font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.cm-about__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cm-about__item { padding: 22px; border: 1px solid var(--cm-line); border-radius: 24px; background: #fff; }
.cm-prose .cm-about__item h3 { margin: 0 0 8px; }
.cm-about__item p { margin: 0; }
.cm-about__kicker { margin: -4px 0 16px; color: var(--cm-accent-dark); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cm-stats__item { padding: 22px; border-radius: 24px; background: var(--cm-soft); }
.cm-stats__item strong { display: block; color: var(--cm-text); font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.cm-stats__item span { display: block; margin-top: 6px; color: var(--cm-muted); font-size: 14px; line-height: 1.4; }
.cm-reviews { display: grid; gap: 16px; }
.cm-reviews__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.cm-reviews iframe { display: block; border: 0; }
.cm-reviews__video { max-width: 720px; overflow: hidden; border-radius: 24px; background: #171717; aspect-ratio: 16 / 9; }
.cm-reviews__video iframe { width: 100%; height: 100%; }

/* ---------- каталог ---------- */
.cm-shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 24px 48px; }
.cm-shop-filters-btn { display: none; }
.woocommerce-result-count { margin: 10px 0 16px; color: var(--cm-muted); font-size: 14px; }
.woocommerce-ordering { margin-bottom: 16px; }
.woocommerce-ordering select { height: 40px; padding: 0 12px; border: 1px solid var(--cm-line); border-radius: 12px; background: #fff; font: 14px var(--cm-font); }

ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
ul.products::before, ul.products::after { content: none !important; }
/* [class*=columns-] — перебить woocommerce-smallscreen.css: на телефоне он ставил плитке float и ширину 48% ячейки сетки */
.woocommerce ul.products li.product, .woocommerce ul.products[class*="columns-"] li.product, ul.products li.product { clear: none; position: relative; float: none; width: auto; margin: 0; padding: 12px; border: 1px solid var(--cm-line); border-radius: 18px; background: #fff; transition: box-shadow .15s ease; }
ul.products li.product:hover { box-shadow: 0 14px 36px rgba(23, 23, 23, .08); }
/* у поставщиков фото любых пропорций: рамка — квадрат, фото вписано целиком */
.woocommerce ul.products li.product a img, ul.products li.product img { aspect-ratio: 1 / 1; width: 100%; height: auto; margin: 0 0 10px; object-fit: contain; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, ul.products .woocommerce-loop-product__title { margin: 0 0 8px; padding: 0; color: var(--cm-text); font-size: 14px; font-weight: 600; line-height: 1.35; }
.woocommerce ul.products li.product .price, ul.products .price { display: block; color: var(--cm-text); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.woocommerce ul.products li.product .price del { color: var(--cm-faint); font-size: 13px; font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .onsale { top: 12px; left: 12px; right: auto; min-width: 0; min-height: 0; margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--cm-accent); color: var(--cm-text); font-size: 12px; font-weight: 700; line-height: 20px; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--cm-accent); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background-color: var(--cm-line); }

.cm-tile-btn { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--cm-line); border-radius: 50%; background: #fff; color: var(--cm-muted); cursor: pointer; }
.cm-tile-btn--cmp { top: 52px; }
.cm-tile-btn:hover, .cm-tile-btn.is-on { border-color: var(--cm-accent); color: var(--cm-accent-dark); }
.cm-tile-btn--fav.is-on svg { fill: currentColor; }

.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 0; padding: 0; border: 0; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: block; min-width: 38px; padding: 8px 12px; border: 1px solid var(--cm-line); border-radius: 10px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul li span.current { border-color: var(--cm-accent); background: var(--cm-accent-soft); color: var(--cm-accent-dark); font-weight: 700; }

/* ---------- главная ---------- */
.cm-hero { position: relative; }
.cm-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cm-hero__track::-webkit-scrollbar { display: none; }
.cm-hero__slide { flex: 0 0 100%; scroll-snap-align: start; background-color: #171717; background-position: center; background-size: cover; color: #fff; }
.cm-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: 480px; padding-block: 32px; }
.cm-hero__text h2 { margin: 0 0 14px; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.cm-hero__text p { margin: 0 0 22px; font-size: 16px; }
.cm-hero__img { width: 100%; max-height: 420px; object-fit: contain; }
.cm-hero__dots { position: absolute; right: 0; bottom: 14px; left: 0; display: flex; justify-content: center; gap: 8px; }
.cm-hero__dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.cm-hero__dots button.is-active { background: var(--cm-accent); }

.cm-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 24px; }
.cm-banner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 20px; overflow: hidden; border-radius: 18px; background-color: #171717; background-position: center; background-size: cover; color: #fff; }
.cm-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 60%); }
.cm-banner:hover { color: #fff; }
.cm-banner__title, .cm-banner__more { position: relative; }
.cm-banner__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.cm-banner__more { color: var(--cm-accent); font-weight: 700; }

.cm-block { padding-block: 24px; }
@media (min-width: 901px) { .cm-block ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } } /* 8 товаров главной — ровно два ряда */
.cm-block__h { margin: 0 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; text-align: center; }
.cm-block__sub { max-width: 760px; margin: 0 auto 22px; color: var(--cm-muted); text-align: center; }
.cm-block__more { margin: 22px 0 0; text-align: center; }

.cm-why { margin-top: 16px; padding-block: 40px; background: var(--cm-soft); }
.cm-why__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cm-why__item { padding: 22px; border: 1px solid var(--cm-line); border-radius: 24px; background: #fff; }
/* иконки — контурные в круге, как преимущества на карточке */
.cm-why__icon, .cm-service__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cm-accent-soft); color: var(--cm-accent-dark); }
.cm-why__icon .cm-icon, .cm-service__icon .cm-icon { width: 26px; height: 26px; }
.cm-why__item h3 { margin: 16px 0 8px; font-size: 16px; }
.cm-why__item p { margin: 0; color: var(--cm-muted); font-size: 14px; }

.cm-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 32px; }
.cm-service { display: flex; align-items: center; gap: 14px; color: var(--cm-muted); font-size: 13px; line-height: 1.35; }
.cm-service strong { display: block; margin-bottom: 4px; color: var(--cm-text); font-size: 14px; }

/* ---------- подвал ---------- */
.cm-footer { background: #171717; color: #b5afa6; font-size: 14px; }
.cm-footer a { color: #fff; }
.cm-footer a:hover { color: var(--cm-accent); }
.cm-footer li a { color: #b5afa6; }
.cm-footer li a:hover { color: #fff; }
.cm-footer__cols { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: 32px 48px; padding-block: 48px 32px; }
.cm-footer__logo { display: block; width: 170px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.cm-footer__h { margin: 0 0 16px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.cm-footer p { margin: 0 0 6px; }
.cm-footer ul { margin: 0; padding: 0; list-style: none; }
.cm-footer li { padding: 4px 0; }
.cm-footer__soc { display: flex; gap: 14px; margin-top: 10px !important; }
.cm-footer__copy { padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8b8379; font-size: 13px; }

/* ---------- форма заявки ---------- */
.cm-req { max-width: 560px; margin: 24px 0; padding: 26px; border: 1px solid var(--cm-line); border-radius: 24px; background: var(--cm-soft); }
.cm-req label { color: var(--cm-text); font-size: 14px; font-weight: 600; }
.cm-req input[type="text"], .cm-req input[type="url"], .cm-req textarea { margin-top: 6px; font-weight: 400; }
.cm-req__hp { position: absolute; left: -9999px; }
.cm-req__note { color: var(--cm-muted); font-size: 13px; }
.cm-req--ok { font-weight: 700; }

/* ---------- бренды ---------- */
.cm-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cm-prose .cm-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px 12px; border: 1px solid var(--cm-line); border-radius: 18px; color: var(--cm-text); text-align: center; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.cm-prose .cm-brand:hover { border-color: var(--cm-accent); box-shadow: 0 14px 36px rgba(23, 23, 23, .08); color: var(--cm-text); }
.cm-brand__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
.cm-brand__logo img { width: auto; max-width: 100%; height: auto; max-height: 64px; object-fit: contain; }
.cm-brand__word { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; text-transform: uppercase; }
.cm-brand small { color: var(--cm-faint); font-size: 12px; }

/* ---------- избранное и сравнение ---------- */
.cm-listpage__rm { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--cm-muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.cm-compare { overflow-x: auto; }
.cm-compare table { min-width: 640px; }
.cm-compare thead th { vertical-align: top; font-weight: 700; }
.cm-compare thead img { display: block; width: 160px; height: 160px; margin-bottom: 8px; object-fit: contain; }
.cm-compare__price { font-weight: 800; }
.cm-compare tbody th { color: var(--cm-muted); font-weight: 400; }

/* ---------- корзина, оформление, аккаунт ---------- */
/* кнопки WooCommerce и блоков корзины — как .cm-btn */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce .button.alt, .woocommerce button.button.alt,
.woocommerce a.button.alt, .wc-block-components-button:not(.is-link), .wp-block-woocommerce-empty-cart-block .wp-block-button__link,
.wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border: 1px solid var(--cm-accent); border-radius: 16px; background: var(--cm-accent); color: var(--cm-text);
  font: 800 15px/1.2 var(--cm-font); text-decoration: none; }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover, .wc-block-components-button:not(.is-link):hover,
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
  border-color: var(--cm-accent-dark); background: var(--cm-accent-dark); color: var(--cm-text); }
.woocommerce .widget_price_filter .price_slider_amount .button { min-height: 40px; padding: 0 18px; font-size: 14px; }
.wc-block-grid__product-add-to-cart .wp-block-button__link { min-height: 42px; border-color: #dedede; background: #fff; font-size: 14px; }
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover { border-color: var(--cm-accent); background: #fff; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border: 1px solid var(--cm-line); border-radius: 18px; background: var(--cm-soft); color: var(--cm-text); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--cm-accent-dark); }

/* вход и регистрация */
.woocommerce .u-columns h2, .woocommerce-MyAccount-content h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password { margin: 16px 0 0; padding: 26px; border: 1px solid var(--cm-line); border-radius: 24px; background: #fff; }
.woocommerce form .form-row label { color: var(--cm-text); font-size: 14px; font-weight: 600; }
.woocommerce form .form-row .required { color: var(--cm-accent-dark); }
.woocommerce form .show-password-input { top: 50%; transform: translateY(-50%); }
.woocommerce .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font-weight: 400; }
.woocommerce-LostPassword a, .woocommerce-privacy-policy-text a { color: var(--cm-accent-dark); }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; margin: 0; padding: 6px; border: 1px solid var(--cm-line); border-radius: 18px; list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--cm-accent-soft); color: var(--cm-accent-dark); }

/* корзина и оформление (блоки WooCommerce) */
.wc-block-components-title, .wc-block-cart__totals-title, .wc-block-components-checkout-step__title { font-weight: 700 !important; letter-spacing: -0.02em; }
.wc-block-components-product-name { color: var(--cm-text); font-weight: 600; }
.wc-block-components-product-name:hover { color: var(--cm-accent-dark); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .wc-block-components-product-price { font-weight: 800; }
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input { border-color: #e3ded6 !important; border-radius: 14px !important; }
.wc-block-components-text-input input:focus, .wc-block-components-textarea:focus { border-color: var(--cm-accent) !important; box-shadow: 0 0 0 3px rgba(242, 140, 40, .15) !important; outline: none; }
.wc-block-components-radio-control__input:checked, .wc-block-components-checkbox__input:checked { border-color: var(--cm-accent); background: var(--cm-accent); }
.wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-sidebar .wc-block-components-panel, .wc-block-cart .wc-block-components-sidebar { border-color: var(--cm-line); border-radius: 18px; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { border-radius: 14px; box-shadow: inset 0 0 0 2px var(--cm-accent); }
/* пустая корзина: без смайлика и точек, ссылка — кнопкой, новинки — плитками каталога */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before { display: none; }
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { margin: 24px 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.wp-block-woocommerce-empty-cart-block > p:not(.wc-block-cart__empty-cart__title) a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border: 1px solid #dedede; border-radius: 16px; background: #fff; color: var(--cm-text); font-weight: 800; text-decoration: none; }
.wp-block-woocommerce-empty-cart-block > p:not(.wc-block-cart__empty-cart__title) a:hover { border-color: var(--cm-accent); }
.wp-block-woocommerce-empty-cart-block .wp-block-separator { display: none; }
.wp-block-woocommerce-empty-cart-block h2 { margin-top: 48px; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.wc-block-grid__products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 !important; }
.wc-block-grid__product { width: auto !important; max-width: none !important; margin: 0 !important; padding: 12px !important; border: 1px solid var(--cm-line) !important; border-radius: 18px; background: #fff; text-align: left !important; }
.wc-block-grid__product-link { color: var(--cm-text); text-decoration: none; }
.wc-block-grid__product-image img { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; }
.wc-block-grid__product-title { margin: 10px 0 8px !important; color: var(--cm-text); font-size: 14px !important; font-weight: 600 !important; line-height: 1.35; }
.wc-block-grid__product-add-to-cart .wp-block-button__link { font-size: 14px !important; }
.wc-block-grid__product-price { margin: 0 0 12px !important; color: var(--cm-text); font-size: 18px !important; font-weight: 800; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1180px) {
  .cm-nav { display: none; }
  .cm-burger { display: block; }
  .cm-header__main { justify-content: space-between; }
  .cm-why__grid, .cm-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cm-cm { display: none; }
  .cm-act__label, .cm-act__sum { display: none; }
  .cm-shop-layout { grid-template-columns: minmax(0, 1fr); }
  .cm-shop-filters-btn { display: block; width: 100%; padding: 12px; border: 1px solid var(--cm-line); border-radius: 12px; background: var(--cm-soft); font: 700 15px var(--cm-font); cursor: pointer; }
  .cm-sidebar { display: none; }
  .cm-sidebar.is-open { display: block; }
  .cm-hero__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cm-hero__text h2 { font-size: 28px; }
  .cm-hero__img { max-height: 240px; }
  .cm-banners { grid-template-columns: minmax(0, 1fr); }
  .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-banner { min-height: 200px; }
  .cm-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-title__h { font-size: 24px; }
}
@media (max-width: 560px) {
  .cm-logo img { width: 150px; }
  .cm-actions { gap: 12px; }
  .cm-why__grid, .cm-services, .cm-about__grid { grid-template-columns: minmax(0, 1fr); }
  .cm-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .cm-footer__col:first-child { grid-column: 1 / -1; }
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
