/* Стили, которые не выражаются через theme.json. Размеры — с досок design/canvas/project (1440 и 390). */

:root {
	--rs-orange: var(--wp--preset--color--orange);
	--rs-dark: var(--wp--preset--color--dark);
	--rs-orange-text: var(--wp--preset--color--orange-text);
	--rs-light: var(--wp--preset--color--light);
	--rs-peach: var(--wp--preset--color--peach);
	--rs-green: var(--wp--preset--color--green);
	--rs-muted: var(--wp--preset--color--muted);
	--rs-line: var(--wp--preset--color--line);
	--rs-footer-text: #D8D2CB;
	--rs-footer-line: #3A332D;
	--rs-gutter: clamp(16px, 3vw, 32px);
	--rs-mobile-nav: 72px;
}

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
a:hover { color: var(--rs-orange-text); }
.rs-tabular, .rs-phones__tel, .wc-block-mini-cart__amount { font-variant-numeric: tabular-nums; }

/* ---------- Верхняя полоса ---------- */
.rs-topbar { background: var(--rs-dark); color: #fff; font-size: 14px; }
.rs-topbar__in { min-height: 40px; gap: 8px 24px; }
.rs-topbar__nav { gap: 24px; }
.rs-topbar a, .rs-topbar a:hover { color: #fff; }
.rs-phones--topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.rs-phones__hours { color: var(--rs-footer-text); }
.rs-phones__tel { font-weight: 600; white-space: nowrap; text-decoration: none; }

/* ---------- Шапка ---------- */
.rs-header { background: #fff; border-bottom: 1px solid var(--rs-line); }
.rs-header__row { padding-block: 16px; gap: 16px 24px; align-items: center; }

.rs-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--rs-dark); }
.rs-logo:hover { color: var(--rs-dark); text-decoration: none; }
.rs-logo__img { width: 52px; height: 64px; object-fit: contain; }
.rs-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.rs-logo__name { font-family: var(--wp--preset--font-family--unbounded); font-weight: 700; font-size: 20px; white-space: nowrap; }
.rs-logo__tagline { font-size: 13px; color: var(--rs-muted); white-space: nowrap; }

.rs-header__catalog .wp-block-button__link {
	display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px;
}
.rs-header__catalog .wp-block-button__link::before {
	content: ""; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rs-header__row > .dgwt-wcas-search-wrapp,
.rs-header__row .dgwt-wcas-search-wrapp { flex: 1 1 320px; max-width: none; min-width: 0; }

.rs-header__account a { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px; color: var(--rs-dark); font-weight: 500; text-decoration: none; }

.rs-header__cart .wc-block-mini-cart__button {
	display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px;
	border-radius: 10px; background: var(--rs-light); color: var(--rs-dark);
}
.rs-header__cart .wc-block-mini-cart__amount { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 16px; }
.rs-header__cart .wc-block-mini-cart__amount::before { content: "Корзина"; font-size: 13px; font-weight: 400; color: var(--rs-muted); }
.wc-block-mini-cart__badge { background: var(--rs-orange) !important; color: var(--rs-dark) !important; font-weight: 700; }

.rs-phones--call, .rs-header__row > .rs-header__menu.wp-block-navigation { display: none; }
.rs-header > * + * { margin-block-start: 0; }

.rs-header__sections { padding-bottom: 14px; gap: 8px 28px; font-weight: 500; width: 100%; }
.rs-header__sections .wp-block-navigation__container { gap: 8px 28px; width: 100%; }
.rs-header__sections a { color: var(--rs-dark); }
.rs-header__sections .rs-accent > a.wp-block-navigation-item__content { color: var(--rs-orange-text); font-weight: 600; }
.rs-header__sections .rs-push-right { margin-left: auto; }
.rs-header__sections .rs-badge-new > a.wp-block-navigation-item__content { display: inline-flex; align-items: center; gap: 8px; }
.rs-badge-new > a::after {
	content: "Новинка"; padding: 2px 8px; border-radius: 6px; background: var(--rs-dark); color: #fff;
	font-size: 12px; font-weight: 600; line-height: 1.5;
}

/* ---------- Подвал ---------- */
.rs-footer { background: var(--rs-dark); color: var(--rs-footer-text); font-size: 15px; padding-block: 56px; }
.rs-footer a { color: var(--rs-footer-text); }
.rs-footer a:hover { color: #fff; }
.rs-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.rs-footer__about { display: flex; flex-direction: column; gap: 14px; }
.rs-footer__about p { margin: 0; line-height: 1.5; }
.rs-logo--footer .rs-logo__img { width: 44px; height: 54px; }
.rs-logo--footer .rs-logo__name { font-size: 18px; color: #fff; }
.rs-footer__col summary, .rs-footer__title { color: #fff; font-weight: 700; list-style: none; }
.rs-footer__col summary::-webkit-details-marker { display: none; }
.rs-footer__col > nav, .rs-footer__col .wp-block-navigation__container { gap: 10px; margin-top: 10px; }
.rs-footer .wp-block-navigation a { color: var(--rs-footer-text); }
.rs-phones--footer { display: flex; flex-direction: column; gap: 10px; }
.rs-phones--footer .rs-phones__tel { color: #fff; font-size: 18px; }
.rs-requisites { margin: 32px 0 0; font-size: 13px; }
.rs-footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rs-footer-line); font-size: 14px; gap: 12px 24px; }
.rs-footer__bottom p { margin: 0; }
.rs-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (min-width: 782px) {
	.rs-footer__col summary { pointer-events: none; }
}

/* ---------- Нижнее меню телефона ---------- */
.rs-bottom-nav { display: none; }

@media (max-width: 781px) {
	body { padding-bottom: var(--rs-mobile-nav); }

	.rs-topbar, .rs-header__catalog, .rs-header__account, .rs-header__cart, .rs-header__sections { display: none !important; }

	.rs-header__row { padding-block: 10px 14px; gap: 10px; flex-wrap: wrap; }
	.rs-header__row > .rs-header__menu.wp-block-navigation { display: block; order: 0; }
	.rs-header__row > .rs-logo { order: 1; flex: 1; gap: 8px; }
	.rs-phones--call { display: grid; order: 2; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--rs-dark); }
	.rs-header__row > .dgwt-wcas-search-wrapp, .rs-header__row .dgwt-wcas-search-wrapp { order: 3; flex: 1 1 100%; }
	.rs-logo__img { width: 34px; height: 42px; }
	.rs-logo__name { font-size: 16px; }
	.rs-header .rs-logo__tagline { display: none; }

	.rs-header__menu .wp-block-navigation__responsive-container-open {
		width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--rs-light); color: var(--rs-dark);
	}
	.rs-header__menu .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 16px; }
	.rs-header__menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 18px; font-weight: 500; }

	.rs-footer { padding-block: 32px calc(32px + var(--rs-mobile-nav)); }
	.rs-footer__cols { grid-template-columns: 1fr; gap: 0; }
	.rs-footer__about { margin-bottom: 24px; }
	.rs-footer__col { border-top: 1px solid var(--rs-footer-line); }
	.rs-footer__col:last-of-type { border-bottom: 1px solid var(--rs-footer-line); }
	.rs-footer__col summary { display: flex; justify-content: space-between; align-items: center; height: 52px; cursor: pointer; }
	.rs-footer__col summary::after { content: "+"; font-weight: 400; font-size: 20px; }
	.rs-footer__col[open] summary::after { content: "−"; }
	.rs-footer__col > nav { padding-bottom: 16px; }
	/* Порядок как на досках *-Mobile: логотип, телефоны, разделы, документы, ©; описания под логотипом нет. */
	.rs-footer__about { order: -2; margin-bottom: 20px; }
	.rs-footer__about p { display: none; }
	.rs-logo--footer .rs-logo__img { width: 36px; height: 44px; }
	.rs-logo--footer .rs-logo__name { font-size: 16px; }
	.rs-phones--footer { order: -1; margin-bottom: 24px; }
	.rs-phones--footer .rs-footer__title { display: none; }
	.rs-phones--footer .rs-phones__tel { font-size: 20px; }
	.rs-footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 8px; margin-top: 20px; padding-top: 0; border-top: 0; font-size: 13px; }
	.rs-footer__legal { flex-direction: column; gap: 8px; }

	.rs-bottom-nav {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--rs-mobile-nav);
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
		border-top: 1px solid var(--rs-line); background: #fff;
	}
	.rs-bottom-nav__item {
		position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		color: var(--rs-muted); text-decoration: none; font-size: 12px; font-weight: 500;
	}
	.rs-bottom-nav__item[aria-current="page"] { color: var(--rs-dark); font-weight: 600; }
	.rs-bottom-nav__item:hover { color: var(--rs-dark); text-decoration: none; }
	.rs-bottom-nav__cart .wc-block-mini-cart { position: static; }
	.rs-bottom-nav__cart .wc-block-mini-cart__button { padding: 0; color: inherit; background: none; }
	.rs-bottom-nav__cart .wc-block-mini-cart__button::after { content: ""; position: absolute; inset: 0; }
	.rs-bottom-nav__cart .wc-block-mini-cart__badge { font-size: 11px; }
	/* Корзина и оформление: свой значок со счётчиком вместо скрытой мини-корзины (доска Cart-Mobile). */
	.rs-bottom-nav__icon { position: relative; display: grid; }
	.rs-bottom-nav__badge { position: absolute; top: -6px; right: -10px; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--rs-orange); color: var(--rs-dark); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
	.rs-bottom-nav__badge[hidden] { display: none; }
}

@media (max-width: 781px) {
	.rs-bottom-nav__cart .wc-block-mini-cart__icon { width: 24px; height: 24px; }
	.rs-bottom-nav__cart .wc-block-mini-cart__quantity-badge { display: grid; }
}

/* ---------- Каталог ---------- */
.rs-catalog { padding-top: 24px; padding-bottom: 0; }
.rs-catalog > * + * { margin-block-start: 0; }
.rs-breadcrumbs, .rs-breadcrumbs a { font-size: 14px; color: var(--rs-muted); }
.rs-breadcrumbs .woocommerce-breadcrumb { margin: 0; font-size: 14px; } /* у блока класс has-small-font-size (13 px) — текущая страница была мельче ссылок */

.rs-catalog-head__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 12px; }
.rs-catalog-head h1 { margin: 0; font-size: 40px; line-height: 1.1; }
.rs-catalog-head__count { color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-catalog-head__subcats ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip {
	display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1.5px solid var(--rs-line);
	border-radius: 999px; background: #fff; color: var(--rs-dark); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.rs-chip:hover { border-color: var(--rs-dark); color: var(--rs-dark); text-decoration: none; }
.rs-chip__count { color: var(--rs-muted); font-variant-numeric: tabular-nums; }

.rs-catalog__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 28px; }
.rs-catalog__grid > * { margin: 0; }

/* Список */
.rs-catalog__bar { gap: 12px 24px; min-height: 44px; }
.rs-catalog__bar .woocommerce-result-count { margin: 0; font-size: 15px; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-sorting select, .rs-sorting .orderby {
	height: 44px; padding: 0 44px 0 14px; border: 1.5px solid var(--rs-line); border-radius: 10px; background-color: #fff; color: var(--rs-dark); font: 600 15px var(--wp--preset--font-family--onest);
}
.rs-sorting .woocommerce-ordering { margin: 0; display: flex; align-items: center; gap: 12px; }
.rs-sorting .woocommerce-ordering::before { content: "Сортировка"; font-size: 15px; color: var(--rs-muted); }

.rs-products .wc-block-product-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.rs-products .wc-block-product { display: flex; margin: 0 !important; width: auto !important; }

/* Карточка */
.rs-card { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--rs-line); border-radius: 16px; overflow: hidden; background: #fff; }
.rs-card > * { margin: 0 !important; }
.rs-card__media { position: relative; height: 240px; display: grid; place-items: center; padding: 20px; }
.rs-card__media .wc-block-components-product-image { margin: 0; width: 100%; }
.rs-card__media img { width: 100%; height: 200px !important; object-fit: contain !important; }
.outofstock .rs-card__media img { opacity: .45; }
.rs-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.rs-badge { padding: 5px 10px; border-radius: 6px; background: var(--rs-dark); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1.2; }
.rs-badge--rasprodazha { background: var(--rs-orange); color: var(--rs-dark); }
.rs-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0 20px; }
.rs-card__body > * { margin: 0; }
.rs-card__brand, .rs-card__brand a { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-muted); text-decoration: none; }
.rs-card__title { margin: 0; font-family: var(--wp--preset--font-family--onest); font-size: 16px; font-weight: 600; line-height: 1.35; min-height: 43px; }
.rs-card__title a { color: var(--rs-dark); text-decoration: none; }
.rs-card__title a:hover { color: var(--rs-orange-text); }
.rs-card-meta { font-size: 14px; color: var(--rs-muted); }
.rs-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 20px 20px; }
.rs-card__foot > * { margin: 0 !important; }
.rs-card__price .wc-block-components-product-price, .rs-card__price { display: flex; flex-direction: column; gap: 2px; text-align: left; font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.outofstock .rs-card__price { color: var(--rs-muted); }
.remsport-store-price { display: block; font-size: 13px; font-weight: 400; color: var(--rs-muted); white-space: nowrap; }
.remsport-store-price s { text-decoration-thickness: 1px; }
.rs-card__button .wp-block-button__link, .rs-card__button .wc-block-components-product-button__button {
	display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding: 0 16px; margin: 0;
	border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.instock .rs-card__button .wp-block-button__link, .instock .rs-card__button .wc-block-components-product-button__button {
	width: 44px; padding: 0; font-size: 0; background: var(--rs-orange); color: var(--rs-dark);
}
.instock .rs-card__button .wp-block-button__link::before, .instock .rs-card__button .wc-block-components-product-button__button::before {
	content: ""; width: 22px; height: 22px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.5L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.5L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.onbackorder .rs-card__button .wp-block-button__link, .onbackorder .rs-card__button .wc-block-components-product-button__button { background: var(--rs-dark); color: #fff; }
.outofstock .rs-card__button .wp-block-button__link, .outofstock .rs-card__button .wc-block-components-product-button__button {
	gap: 6px; padding: 0; background: none; color: var(--rs-muted); font-size: 14px;
}
.outofstock .rs-card__button .wp-block-button__link::before, .outofstock .rs-card__button .wc-block-components-product-button__button::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--rs-muted);
}
.rs-card__button .wc-block-components-product-button__button--added::after, .rs-card__button .added_to_cart { display: none; }

/* Страницы */
.rs-pagination { margin-top: 40px; gap: 8px; }
.rs-pagination .page-numbers, .rs-pagination .wp-block-query-pagination-next {
	min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--rs-line); border-radius: 10px;
	color: var(--rs-dark); text-decoration: none; font-weight: 600;
}
.rs-pagination .page-numbers.current { border-color: var(--rs-dark); background: var(--rs-dark); color: #fff; }
.rs-pagination .page-numbers.dots { border: 0; }

.rs-catalog__about { max-width: 860px; padding: 72px 0 80px; }
.rs-catalog__about h2 { font-size: 26px; font-weight: 600; }
.rs-catalog__about p { line-height: 1.6; }

@media (max-width: 1100px) {
	.rs-products .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.rs-catalog { padding-top: 16px; }
	.rs-catalog-head h1 { font-size: 28px; }
	.rs-catalog__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
	.rs-products .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
	.rs-card__media { height: 168px; padding: 12px; }
	.rs-card__media img { height: 144px !important; }
	.rs-card__body { padding: 0 12px; }
	.rs-card__title { font-size: 14px; min-height: 38px; }
	.rs-card__foot { flex-direction: column; align-items: stretch; padding: 10px 12px 12px; }
	.rs-card__price, .rs-card__price .wc-block-components-product-price { font-size: 18px; }
	.instock .rs-card__button .wp-block-button__link, .instock .rs-card__button .wc-block-components-product-button__button { width: 100%; }
	.rs-catalog__about { padding: 48px 0 56px; }
}
.remsport-site-price { white-space: nowrap; }
.rs-catalog > .rs-catalog__about { margin-left: 0 !important; margin-right: auto !important; }
.rs-catalog__about h2, .rs-catalog__about h3, .rs-catalog__about strong:only-child { display: block; margin: 1.6em 0 .6em; font-family: var(--wp--preset--font-family--onest); font-size: 20px; font-weight: 700; }
/* SEO-текст раздела и бренда (блок remsport/term-about, ответ Павла 01.12): длинный — 3 строки с затуханием и «Подробнее».
   Текст целиком в HTML, раскрывает <details> без скрипта (:has); короткий — целиком, без кнопки.
   Сворачиваем только там, где есть :has() (без него раскрыть нечем): иначе текст целиком и кнопки нет. */
.rs-about__text { line-height: 1.6; }
.rs-about__text > * { margin-block: 0 .6em; }
.rs-about__text > :first-child { margin-top: 0; }
.rs-about__text > :last-child { margin-bottom: 0; }
.rs-about__more { display: none; margin: 4px 0 0; }
@supports selector(:has(*)) {
	.rs-about__more { display: block; }
	/* 3 строки по 1,6em и один отступ между абзацами; третья строка гаснет. */
	.rs-about--long .rs-about__text {
		max-height: 5.4em; overflow: hidden;
		-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.6em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.6em), transparent);
	}
	.rs-about--long:has(.rs-about__more[open]) .rs-about__text { max-height: none; -webkit-mask-image: none; mask-image: none; }
}
.rs-about__more summary {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; list-style: none; cursor: pointer;
	color: var(--rs-orange-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.rs-about__more summary::-webkit-details-marker { display: none; }
.rs-about__more summary::after {
	content: ""; width: 16px; height: 16px; background: currentColor; transition: transform .15s;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rs-about__more[open] summary::after { transform: rotate(180deg); }
.rs-about__more[open] .rs-about__open, .rs-about__more:not([open]) .rs-about__close { display: none; }
.rs-about__more summary:focus-visible { outline: 2px solid var(--rs-orange); outline-offset: 2px; border-radius: 4px; }
/* Каталог на телефоне: подразделы плиткой в 2 колонки, «Фильтры» и сортировка в один ряд (доска Catalog-Mobile). */
@media (max-width: 781px) {
	.rs-catalog-head h1 { font-size: 26px; }
	.rs-catalog-head__count { font-size: 14px; }
	.rs-catalog-head__subcats ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
	.rs-catalog-head__subcats li { display: flex; }
	.rs-chip { flex: 1; height: auto; min-height: 56px; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.3; white-space: normal; display: block; align-content: center; }
	.rs-catalog__grid { grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 0; }
	.rs-catalog__list, .rs-catalog__bar { display: contents; }
	.rs-catalog__filters { grid-column: 1; grid-row: 1; }
	.rs-catalog__bar .wc-block-catalog-sorting { grid-column: 2; grid-row: 1; margin: 0; }
	.rs-catalog__bar .wc-block-product-results-count { grid-column: 1 / -1; grid-row: 2; margin: 10px 0 0; }
	.rs-catalog__bar .woocommerce-result-count { font-size: 13px; }
	.rs-products { grid-column: 1 / -1; grid-row: 3; }
	.rs-sorting .woocommerce-ordering::before { content: none; }
	.rs-sorting .woocommerce-ordering, .rs-sorting select, .rs-sorting .orderby { width: 100%; }
	.rs-products .wc-block-product-template { gap: 10px; }
}
@media (max-width: 781px) {
	.rs-catalog .rs-catalog__list, .rs-catalog .rs-catalog__bar { display: contents; }
	.rs-chip__count { margin-left: 4px; }
	.rs-card__title { min-height: 55px; line-height: 1.3; }
	.rs-card-meta { font-size: 12px; }
	.rs-card__price, .rs-card__price .wc-block-components-product-price { font-size: 17px; }
	.remsport-store-price { font-size: 12px; }
	.instock .rs-card__button .wp-block-button__link, .instock .rs-card__button .wc-block-components-product-button__button { gap: 8px; font-size: 14px; }
	.instock .rs-card__button .wp-block-button__link::before, .instock .rs-card__button .wc-block-components-product-button__button::before { width: 18px; height: 18px; }
	.rs-card__button, .rs-card__button .wp-block-button__link, .rs-card__button .wc-block-components-product-button__button { width: 100%; }
	.outofstock .rs-card__button .wp-block-button__link, .outofstock .rs-card__button .wc-block-components-product-button__button { font-size: 13px; }
}
@media (max-width: 781px) { .rs-sorting select, .rs-sorting .orderby { padding: 0 32px 0 12px; font-size: 14px; } }

/* ---------- Страница товара (доски Product-Desktop / Product-Mobile) ---------- */
.rs-product { padding-top: 20px; }
.rs-product > * + * { margin-block-start: 0; }
.rs-product__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; margin-top: 24px; }
.rs-product__grid > * { margin: 0; }
.rs-product__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.rs-product__buy { flex: 0 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.rs-product__main > *, .rs-product__buy > * { margin: 0 !important; }

/* Галерея */
.rs-gallery { gap: 16px; }
.rs-gallery .wc-block-product-gallery-large-image { position: relative; height: 600px; padding: 40px; border: 1px solid var(--rs-line); border-radius: 20px; background: #fff; }
.rs-gallery .wc-block-product-gallery-large-image__container, .rs-gallery .wc-block-product-gallery-large-image__wrapper { height: 100%; }
.rs-gallery .wc-block-product-gallery-large-image img { width: 100%; height: 100% !important; object-fit: contain; }
.rs-gallery .rs-badges { top: 20px; left: 20px; z-index: 2; }
.rs-badge--save { background: var(--rs-peach); color: var(--rs-orange-text); font-size: 13px; letter-spacing: 0; padding: 6px 12px; }
.rs-gallery .wc-block-product-gallery-thumbnails { gap: 12px; }
.rs-gallery .wc-block-product-gallery-thumbnails__thumbnail { width: 96px; height: 96px; padding: 8px; border: 1.5px solid var(--rs-line); border-radius: 12px; background: #fff; }
.rs-gallery .wc-block-product-gallery-thumbnails__thumbnail--active, .rs-gallery .wc-block-product-gallery-thumbnails__thumbnail__image--is-active { border-color: var(--rs-dark); }

/* Вкладки */
.rs-tabs .wc-tabs { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; border-bottom: 1px solid var(--rs-line); overflow-x: auto; scrollbar-width: none; }
.rs-tabs .wc-tabs::before, .rs-tabs .wc-tabs::after { content: none; }
.rs-tabs .wc-tabs li { margin: 0; padding: 0; border: 0; background: none; }
.rs-tabs .wc-tabs li a {
	display: flex; align-items: center; height: 56px; margin-bottom: -1px; padding: 0 18px; border-bottom: 3px solid transparent;
	color: var(--rs-muted); font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.rs-tabs .wc-tabs li.active a { border-bottom-color: var(--rs-orange); color: var(--rs-dark); font-weight: 600; }
.rs-tabs .wc-tab { margin: 0; padding: 0; }
.rs-tabs .wc-tab > * + * { margin-top: 24px; }
.rs-tab-text { font-size: 17px; line-height: 1.6; }
.rs-tab-text p { margin: 0 0 14px; }
.rs-tab-text h3 { margin: 0 0 8px; font-family: var(--wp--preset--font-family--onest); font-size: 17px; font-weight: 700; }
/* Подзаголовки из перенесённых описаний — не крупнее текста вкладки (на доске их нет). */
.rs-tab-text h2, .rs-tab-text h4 { margin: 24px 0 8px; font-family: var(--wp--preset--font-family--onest); font-size: 19px; font-weight: 700; line-height: 1.35; }
.rs-specs { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--rs-line); border-radius: 16px; overflow: hidden; font-size: 15px; }
.rs-specs > div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 20px; border-bottom: 1px solid var(--rs-line); }
.rs-specs > div:last-child { border-bottom: 0; }
.rs-specs dt { color: var(--rs-muted); }
.rs-specs dd { margin: 0; font-weight: 600; text-align: right; }
.rs-terms { margin: 0; display: flex; flex-direction: column; font-size: 16px; }
.rs-terms > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--rs-line); }
.rs-terms dt { font-weight: 600; }
.rs-terms dd { margin: 0; color: var(--rs-muted); }
.rs-terms__pay { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: var(--rs-muted); }
.rs-terms__pay a { color: var(--rs-orange-text); font-weight: 600; }

/* Покупка */
.rs-brand-line { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-muted); }
.rs-brand-line a { color: var(--rs-muted); }
.rs-product__title { margin: 8px 0 0 !important; font-size: 40px; font-weight: 700; line-height: 1.1; }
.rs-product__lead { margin-top: 8px !important; font-size: 16px; color: var(--rs-muted); }
.rs-product__lead p { margin: 0; }
/* Бренд, название и подпись — одной группой с зазором 8 px (доски Product-*, Shoes-*). */
.rs-product__head { display: flex; flex-direction: column; gap: 8px; }
.rs-product__head > * { margin: 0 !important; }
.rs-atc { display: flex; flex-direction: column; gap: 24px; }
.rs-atc form { display: flex; flex-direction: column; gap: 24px; }
.rs-variations { display: flex; flex-direction: column; gap: 24px; }
.rs-variation { gap: 10px !important; margin: 0 !important; }
.rs-variation .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name { font-size: 15px; font-weight: 600; }
.rs-variation .wc-block-product-filter-chips__items { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-variation .wc-block-product-filter-chips__item {
	height: 44px; padding: 0 16px; border: 1.5px solid var(--rs-line); border-radius: 999px; background: #fff; color: var(--rs-dark);
	font: 500 15px var(--wp--preset--font-family--onest); cursor: pointer;
}
.rs-variation .wc-block-product-filter-chips__item:hover { border-color: var(--rs-dark); }
.rs-variation .wc-block-product-filter-chips__item[aria-checked="true"] { border-color: var(--rs-dark); background: var(--rs-dark); color: #fff; font-weight: 600; }
.rs-variation .wc-block-product-filter-chips__item.is-sold-out { color: var(--rs-muted); text-decoration: line-through; }
.rs-variation .wc-block-product-filter-chips__item.is-sold-out[aria-checked="true"] { color: #fff; }
.rs-variation .wc-block-product-filter-chips__item:disabled { opacity: .45; cursor: not-allowed; }
/* Фасовки и размеры — плитками в 3 колонки, как на доске. */
.rs-variation:has([id^="attribute_pa_fasovka-"]) .wc-block-product-filter-chips__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rs-variation .wc-block-product-filter-chips__item[id^="attribute_pa_fasovka-"] { height: 56px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.rs-variation .wc-block-product-filter-chips__item[id^="attribute_pa_fasovka-"][aria-checked="true"] { border-width: 2px; background: #fff; color: var(--rs-dark); }
.rs-variation .wc-block-product-filter-chips__item[id^="attribute_pa_fasovka-"].is-sold-out[aria-checked="true"] { color: var(--rs-muted); }
/* Сетка фасовок и размеров — на всю ширину колонки: блок чипов WooCommerce иначе сжимается по содержимому. */
.rs-variation:has([id^="attribute_pa_fasovka-"], [id^="attribute_pa_razmer-"]) .wc-block-product-filter-chips { align-self: stretch; }
.rs-variation:has([id^="attribute_pa_fasovka-"], [id^="attribute_pa_razmer-"]) .wc-block-product-filter-chips__items { flex: 1 1 auto; min-width: 0; }
/* Между блоками формы — ровно 24 px, как на доске (без лишних отступов «потока» и пустой обёртки вариации). */
.rs-atc > .rs-offer { margin-top: 0; }
.rs-atc > .single_variation_wrap { display: contents; }
@media (min-width: 782px) { .rs-atc .rs-buy:not(:has(.rs-buy__button)) { display: none; } } /* «нет в наличии»: пустая строка кнопки */

.rs-offer { display: flex; flex-direction: column; gap: 16px; }
.rs-offer__price-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 18px 20px; border-radius: 12px; background: var(--rs-peach); }
.rs-offer__price { font-size: 36px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-offer__store-col { display: flex; flex-direction: column; gap: 2px; }
.rs-offer__store { font-size: 15px; color: var(--rs-muted); }
.rs-offer__save { font-size: 15px; font-weight: 600; color: var(--rs-orange-text); }
.rs-offer__save:empty { display: none; }
.rs-offer__stock { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--rs-line); border-radius: 12px; }
.rs-offer__title { font-size: 15px; font-weight: 700; }
.rs-offer__shop { display: flex; gap: 12px; align-items: flex-start; }
.rs-offer__shop.is-terms { padding-top: 12px; border-top: 1px solid var(--rs-line); }
.rs-offer__icon { flex: none; margin-top: 1px; color: var(--rs-dark); }
.rs-offer__icon.is-yes { color: var(--wp--preset--color--green); }
.rs-offer__icon.is-no { color: var(--rs-muted); }
.rs-offer__icon[hidden] { display: none; }
.rs-offer__shop-text { display: flex; flex-direction: column; }
.rs-offer__line { font-weight: 500; }
.rs-offer__line b { font-weight: 600; }
.rs-offer__state { font-weight: 600; color: var(--rs-muted); }
.rs-offer__shop.is-in .rs-offer__state { color: var(--wp--preset--color--green); }
.rs-offer__shop small { font-size: 14px; color: var(--rs-muted); }
.rs-offer__shop small a { color: var(--rs-orange-text); font-weight: 600; white-space: nowrap; }
.rs-offer__terms { font-size: 14px; line-height: 1.5; }
.rs-offer__note { display: flex; flex-direction: column; gap: 2px; }
.rs-offer__note[hidden] { display: none; }
.rs-offer__note b { font-size: 15px; }
.rs-offer__note span { font-size: 14px; color: var(--rs-muted); }
.rs-offer__note.is-out a { align-self: flex-start; color: var(--rs-orange-text); font-weight: 600; font-size: 17px; }
.rs-offer-bar { display: none; }

.rs-buy { gap: 12px !important; align-items: stretch; margin: 0 !important; }
.rs-buy > * { margin: 0 !important; }
.rs-buy .wc-block-components-quantity-selector {
	display: flex; align-items: center; height: 52px; margin: 0; border: 1.5px solid var(--rs-line); border-radius: 10px; overflow: hidden; background: #fff;
}
.rs-buy .wc-block-components-quantity-selector__button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--rs-dark); cursor: pointer; }
.rs-buy .wc-block-components-quantity-selector input { width: 44px; height: 100%; border: 0; text-align: center; font: 600 16px var(--wp--preset--font-family--onest); -moz-appearance: textfield; }
.rs-buy__button { flex: 1; }
.rs-buy__button .wc-block-components-product-button__button {
	width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px;
	background: var(--rs-orange); color: var(--rs-dark); font: 600 16px var(--wp--preset--font-family--onest);
}
.rs-buy__button .wc-block-components-product-button__button::before {
	content: ""; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L20 8H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L20 8H6.2'/%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rs-buy__button .wc-block-components-product-button__button.disabled { opacity: .5; }

/* Как проходит заказ */
.rs-steps { margin: 0; }
.rs-steps > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--rs-orange-text); font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
.rs-steps > summary::-webkit-details-marker { display: none; }
.rs-steps > summary::after { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.rs-steps[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.rs-steps__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rs-steps__list li { display: flex; gap: 14px; align-items: flex-start; }
.rs-steps__num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--rs-dark); color: #fff; font-size: 14px; font-weight: 700; }
.rs-steps__text { display: flex; flex-direction: column; font-size: 14px; color: var(--rs-muted); }
.rs-steps__text b { font-size: 15px; color: var(--rs-dark); }
.rs-steps__terms { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.rs-steps__terms a { color: var(--rs-orange-text); }
/* На странице товара шаги и «Условия заказа» — на светлой плашке (доски Product-*). */
.rs-product__buy .rs-steps__list { margin-top: 12px; padding: 20px 20px 14px; border-radius: 12px 12px 0 0; background: var(--rs-light); }
.rs-product__buy .rs-steps > .rs-steps__terms { margin: 0; padding: 0 20px 20px; border-radius: 0 0 12px 12px; background: var(--rs-light); }

/* Похожие товары */
.rs-related { padding: 72px 0 80px; }
.rs-related > * { margin: 0; }
.rs-related__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.rs-related__title { margin: 0; font-size: 30px; font-weight: 600; }
.rs-related__all { font-weight: 600; color: var(--rs-orange-text); }
.rs-products--related .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }

@media (max-width: 1100px) {
	.rs-products--related .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.rs-product { padding-top: 12px; }
	.rs-product__grid { display: flex; flex-direction: column; gap: 24px; margin-top: 12px; }
	.rs-product .rs-product__main { display: contents; }
	.rs-gallery { order: 1; width: 100%; }
	.rs-product__buy { order: 2; flex: none; width: 100%; gap: 20px; }
	.rs-product__buy .rs-steps__list { padding: 16px 16px 12px; gap: 12px; }
	.rs-product__buy .rs-steps > .rs-steps__terms { padding: 0 16px 16px; }
	.rs-tab-text h2, .rs-tab-text h4 { font-size: 17px; }
	.rs-related__head { flex-wrap: nowrap; }
	.rs-related__what { display: none; }
	.rs-tabs { order: 3; width: 100%; }
	.rs-gallery .wc-block-product-gallery-large-image { height: 320px; padding: 20px; border-radius: 16px; }
	.rs-gallery .wc-block-product-gallery-thumbnails__thumbnail { width: 64px; height: 64px; }
	.rs-product__title { font-size: 26px; }
	.rs-tabs .wc-tabs li a { height: 48px; padding: 0 12px; font-size: 15px; }
	.rs-tab-text { font-size: 15px; }
	.rs-offer__price { font-size: 28px; }
	/* Цена и кнопка — внизу над нижним меню. */
	.rs-buy {
		position: sticky; bottom: var(--rs-mobile-nav); z-index: 40; flex-wrap: wrap !important;
		margin-inline: calc(-1 * var(--rs-gutter)) !important; padding: 10px var(--rs-gutter); border-top: 1px solid var(--rs-line); background: #fff;
	}
	.rs-offer-bar { display: flex; flex-direction: column; justify-content: center; margin-right: auto !important; }
	.rs-offer-bar__price { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
	.rs-offer-bar__store { font-size: 12px; color: var(--rs-muted); white-space: nowrap; }
	.rs-buy .wc-block-components-quantity-selector { height: 48px; }
	.rs-buy__button { flex: 0 1 auto; }
	.rs-buy__button .wc-block-components-product-button__button { height: 48px; padding: 0 18px; }
	.rs-related { padding: 48px 0 56px; }
	.rs-related__title { font-size: 22px; }
	.rs-products--related .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rs-gallery .wc-block-product-gallery-large-image { box-sizing: border-box; width: 100%; }
/* Вкладки: перебиваем рамки и «ушки» вкладок WooCommerce. */
.rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--rs-line); overflow-x: auto; scrollbar-width: none; }
.rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs::before, .rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs::after { content: none; display: none; border: 0; }
.rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs li::before, .rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs li::after { content: none; display: none; border: 0; box-shadow: none; }
.rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs li a { padding: 0 18px; color: var(--rs-muted); font-weight: 500; }
.rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs li.active a { color: var(--rs-dark); font-weight: 600; border-bottom-color: var(--rs-orange); }
.rs-product .rs-tabs .woocommerce-tabs .panel { margin: 0; padding: 0; }
.rs-buy .rs-buy__button { flex: 1 1 auto !important; }
@media (max-width: 781px) {
	.rs-product .rs-tabs .woocommerce-tabs ul.tabs.wc-tabs li a { padding: 0 12px; }
	.rs-buy .rs-buy__button { flex: 0 1 auto !important; }
}
@media (max-width: 781px) {
	/* В нижней панели — только цена и кнопка (доска Product-Mobile); количество меняется в корзине. */
	.rs-buy { flex-wrap: nowrap !important; align-items: center; }
	.rs-buy .wp-block-woocommerce-add-to-cart-with-options-quantity-selector { display: none !important; }
	.rs-buy .rs-buy__button { flex: 0 0 auto !important; }
}
@media (max-width: 781px) {
	/* Панель цены закреплена над нижним меню на всей странице товара, а не только в пределах формы. */
	.rs-buy { position: fixed; left: 0; right: 0; bottom: var(--rs-mobile-nav); margin: 0 !important; }
	body.single-product { padding-bottom: calc(var(--rs-mobile-nav) + 72px); }
}

/* ---------- Обувь: размеры и окно «Таблица размеров» (доски Shoes-*) ---------- */
.rs-variation:has([id^="attribute_pa_razmer-"]) .wc-block-product-filter-chips__items { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.rs-variation .wc-block-product-filter-chips__item[id^="attribute_pa_razmer-"] { height: 48px; padding: 0; border-radius: 10px; font-size: 16px; font-variant-numeric: tabular-nums; }
.rs-atc form:has(.rs-size-chart), .rs-atc:has(.rs-size-chart) { position: relative; }
/* У обуви кнопка «В корзину» на всю ширину, без количества (доска Shoes-Desktop); количество меняется в корзине. */
.rs-atc:has([id^="attribute_pa_razmer-"]) .rs-buy .wp-block-woocommerce-add-to-cart-with-options-quantity-selector { display: none; }
.rs-size-chart { position: absolute; top: -12px; right: 0; margin: 0 !important; }
.rs-size-chart__open {
	display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--rs-orange-text); font: 600 16px var(--wp--preset--font-family--onest); text-decoration: underline; text-underline-offset: 3px;
}
.rs-size-chart__open::before {
	content: ""; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='7.5' width='19' height='9' rx='1.5'/%3E%3Cpath d='M6.5 7.5v3M10.5 7.5v4.5M14.5 7.5v3M18.5 7.5v4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='7.5' width='19' height='9' rx='1.5'/%3E%3Cpath d='M6.5 7.5v3M10.5 7.5v4.5M14.5 7.5v3M18.5 7.5v4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rs-size-chart__dialog {
	width: min(760px, calc(100vw - 32px)); max-height: min(872px, calc(100vh - 48px)); padding: 0; border: 0; border-radius: 20px;
	background: #fff; color: var(--rs-dark); box-shadow: 0 24px 64px rgba(27, 23, 20, .35);
}
.rs-size-chart__dialog[open] { display: flex; flex-direction: column; }
.rs-size-chart__dialog::backdrop { background: rgba(27, 23, 20, .6); }
.rs-size-chart__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 32px; border-bottom: 1px solid var(--rs-line); }
.rs-size-chart__head h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; }
.rs-size-chart__sub { margin: 4px 0 0; font-size: 15px; color: var(--rs-muted); }
.rs-size-chart__close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--rs-line); border-radius: 10px; background: #fff; color: var(--rs-dark); cursor: pointer; }
.rs-size-chart__tabs { display: flex; gap: 4px; margin: 20px 32px 0; padding: 4px; align-self: flex-start; border-radius: 12px; background: var(--rs-light, #F2F0ED); }
.rs-size-chart__tabs button { height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--rs-muted); font: 500 15px var(--wp--preset--font-family--onest); cursor: pointer; }
.rs-size-chart__tabs button[aria-selected="true"] { background: #fff; color: var(--rs-dark); font-weight: 600; box-shadow: 0 1px 3px rgba(27, 23, 20, .15); }
.rs-size-chart__scroll { padding: 12px 32px 0; overflow-y: auto; }
.rs-size-chart__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; font-variant-numeric: tabular-nums; }
.rs-size-chart__table[hidden] { display: none; }
.rs-size-chart__table th { position: sticky; top: 0; padding: 10px 12px; background: #fff; box-shadow: inset 0 -1.5px 0 var(--rs-dark); text-align: left; font-size: 14px; font-weight: 600; color: var(--rs-muted); }
.rs-size-chart__table td { padding: 10px 12px; border-bottom: 1px solid var(--rs-line); }
.rs-size-chart__table td.is-yes { color: var(--wp--preset--color--green); font-weight: 600; }
.rs-size-chart__table td.is-no { color: var(--rs-muted); }
.rs-size-chart__table tr.is-selected td { background: var(--rs-peach); font-weight: 700; }
.rs-size-chart__how { margin: 0; padding: 16px 32px 24px; border-top: 1px solid var(--rs-line); }
.rs-size-chart__how summary { cursor: pointer; font-weight: 600; color: var(--rs-orange-text); }
.rs-size-chart__how p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--rs-muted); }

@media (max-width: 781px) {
	.rs-variation:has([id^="attribute_pa_razmer-"]) .wc-block-product-filter-chips__items { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.rs-size-chart__open { font-size: 15px; }
	/* На телефоне окно на весь экран, таблица прокручивается внутри. */
	.rs-size-chart__dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
	.rs-size-chart__head { padding: 12px 8px 12px 16px; }
	.rs-size-chart__head h2 { font-size: 20px; }
	.rs-size-chart__sub { font-size: 13px; }
	.rs-size-chart__tabs { margin: 12px 16px 0; }
	.rs-size-chart__scroll { flex: 1; padding: 8px 16px 0; }
	.rs-size-chart__table th, .rs-size-chart__table td { padding: 10px 6px; font-size: 14px; }
	.rs-size-chart__how { padding: 12px 16px 20px; }
}

/* ---------- Поиск: поле FiboSearch в шапке, подсказки, страница результатов (доски Search-*) ---------- */
.rs-header .dgwt-wcas-search-wrapp.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp {
	display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 6px 0 16px; box-sizing: border-box;
	border: 1.5px solid var(--rs-dark); border-radius: 10px; background: #fff; /* на всех досках рамка поля тёмная */
}
.rs-header .dgwt-wcas-search-wrapp.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp:focus-within { border-color: var(--rs-dark); }
.rs-header .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp::before {
	content: ""; flex: none; width: 20px; height: 20px; background: var(--rs-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rs-header .dgwt-wcas-search-wrapp.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
	flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
	font: 400 16px var(--wp--preset--font-family--onest); color: var(--rs-dark);
}
.rs-header .dgwt-wcas-search-wrapp.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
	position: static; flex: none; height: 40px; min-height: 0; padding: 0 18px; border-radius: 8px;
	background: var(--rs-dark); color: #fff; font: 600 15px var(--wp--preset--font-family--onest); text-transform: none;
}
.rs-header .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before { display: none; }
.rs-header .dgwt-wcas-search-wrapp .dgwt-wcas-preloader { right: 96px !important; }
/* Телефон (Home-/Search-Mobile): поле 48 px без кнопки «Найти» — по касанию открывается поиск на весь экран. */
@media (max-width: 781px) {
	.rs-header .dgwt-wcas-search-wrapp.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp { height: 48px; padding-right: 14px; }
	.rs-header .dgwt-wcas-search-wrapp.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit { display: none; }
	.rs-header .dgwt-wcas-search-wrapp .dgwt-wcas-preloader { right: 8px !important; }
}

/* Выпадающие подсказки (FiboSearch добавляет их в конец body). */
.dgwt-wcas-suggestions-wrapp {
	margin-top: 8px; padding: 8px 0; border: 1px solid var(--rs-line) !important; border-radius: 14px;
	background: #fff; box-shadow: 0 18px 48px rgba(27, 23, 20, .28); font-family: var(--wp--preset--font-family--onest);
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion { padding: 8px 16px; color: var(--rs-dark); }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-selected { background: var(--rs-light); }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	padding-top: 6px; padding-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-muted); border: 0;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline-v + .dgwt-wcas-suggestion-headline-v,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax + .dgwt-wcas-suggestion-headline { margin-top: 8px; border-top: 1px solid var(--rs-line); }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 0; padding-bottom: 0; font-size: 15px; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-tax .dgwt-wcas-st { font-weight: 400; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-breadcrumbs { display: none; }   /* путь «в Спортивное питание > …» — на доске только название */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-cat::before {
	content: ""; flex: none; width: 20px; height: 20px; background: var(--rs-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si { width: 52px; flex: none; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img { width: 52px; height: 52px; max-height: none; object-fit: contain; border: 0; border-radius: 8px; padding: 0; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp { align-items: center; gap: 14px; padding-left: 14px; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-meta { align-self: center; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st { font-size: 15px; font-weight: 600; line-height: 1.3; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st strong { font-weight: 800; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--rs-dark); }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .remsport-store-price { display: none; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
	justify-content: center; height: 48px; margin: 8px 16px 4px; padding: 0; border-radius: 10px; background: var(--rs-light);
	font-weight: 600; text-transform: none;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more .dgwt-wcas-st-more { padding: 0; font-size: 15px; font-weight: 600; color: var(--rs-dark); }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-more-total { display: none; } /* на досках Search-* — «Все результаты» без числа */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more { width: auto; } /* иначе 100% + поля 16 px вылезали за правый край */
/* Поиск на весь экран (телефон): кнопка «назад» без серого квадрата, линия под полем — как на Search-Mobile. */
.dgwt-wcas-om-bar { border-bottom: 1px solid var(--rs-line); }
.dgwt-wcas-om-bar button.dgwt-wcas-om-return, .dgwt-wcas-om-bar button.dgwt-wcas-om-return:active,
.dgwt-wcas-om-bar button.dgwt-wcas-om-return:focus, .dgwt-wcas-om-bar button.dgwt-wcas-om-return:hover { background: transparent; }
.dgwt-wcas-om-bar button.dgwt-wcas-om-return svg path { fill: var(--rs-dark); }

/* Телефон: подсказки на весь экран — без рамки и тени. */
.dgwt-wcas-om-bar .dgwt-wcas-suggestions-wrapp { margin-top: 0; border: 0 !important; border-top: 1px solid var(--rs-line) !important; border-radius: 0; box-shadow: none; }

/* Страница результатов */
.rs-search { padding-top: 24px; padding-bottom: 72px; }
.rs-search > * + * { margin-block-start: 0; }
.rs-search:has(.rs-search-empty) .rs-breadcrumbs { display: none; }
.rs-search-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 20px; }
.rs-search-head h1 { margin: 0; font-size: 36px; line-height: 1.15; }
.rs-search-head__notice { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 20px; border-radius: 12px; background: var(--rs-peach); font-size: 17px; line-height: 1.45; align-self: stretch; }
.rs-search-head__notice svg { flex: none; color: var(--rs-orange-text); }
.rs-search-head__count { font-size: 15px; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-search__products .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rs-search__products .rs-pagination { margin-top: 32px; }

.rs-search-empty { display: flex; flex-direction: column; gap: 56px; margin-top: 32px; }
.rs-search-empty h1, .rs-search-empty h2, .rs-search-empty p { margin: 0; }
.rs-search-empty__panel { display: flex; gap: 32px; align-items: flex-start; padding: 40px; border-radius: 20px; background: var(--rs-light); }
.rs-search-empty__icon { flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--rs-orange-text); }
.rs-search-empty__body { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.rs-search-empty h1 { font-size: 32px; line-height: 1.2; }
.rs-search-empty__body p { font-size: 18px; line-height: 1.5; }
.rs-search-empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.rs-search-empty__call, .rs-search-empty__catalog {
	display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; box-sizing: border-box;
	border-radius: 10px; font-weight: 600; text-decoration: none;
}
.rs-search-empty__call, .rs-search-empty__call:hover { background: var(--rs-orange); color: var(--rs-dark); text-decoration: none; }
.rs-search-empty__catalog, .rs-search-empty__catalog:hover { border: 1.5px solid var(--rs-dark); background: #fff; color: var(--rs-dark); text-decoration: none; }
.rs-search-empty__shop { font-size: 15px; color: var(--rs-muted); }
.rs-search-empty__shop b { color: var(--rs-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-search-empty__section { display: flex; flex-direction: column; gap: 16px; }
.rs-search-empty__section h2 { font-size: 26px; font-weight: 600; }
.rs-search-empty__queries, .rs-search-empty__cats { list-style: none; margin: 0; padding: 0; }
.rs-search-empty__queries { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-search-empty__queries a {
	display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--rs-line); border-radius: 999px;
	color: var(--rs-dark); text-decoration: none; font-weight: 600; font-size: 15px;
}
.rs-search-empty__queries a:hover { border-color: var(--rs-dark); color: var(--rs-dark); text-decoration: none; }
.rs-search-empty__queries svg { color: var(--rs-muted); }
.rs-search-empty__cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rs-search-empty__cats a {
	display: flex; justify-content: space-between; gap: 12px; height: 180px; padding: 22px; box-sizing: border-box; overflow: hidden;
	border: 1px solid var(--rs-line); border-radius: 16px; background: #fff; color: var(--rs-dark); text-decoration: none;
}
.rs-search-empty__cats a:hover { border-color: var(--rs-dark); color: var(--rs-dark); text-decoration: none; }
.rs-search-empty__cats span { max-width: 150px; font-size: 18px; font-weight: 600; line-height: 1.25; }
.rs-search-empty__cats img { width: 130px; height: 136px; object-fit: contain; align-self: flex-end; }

@media (max-width: 1100px) {
	.rs-search__products .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rs-search-empty__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.rs-search { padding-top: 16px; padding-bottom: 32px; }
	.rs-search-head { gap: 14px; margin-top: 14px; }
	.rs-search-head h1 { font-size: 22px; line-height: 1.2; }
	.rs-search-head__notice { align-items: flex-start; gap: 10px; padding: 12px 14px; font-size: 15px; }
	.rs-search-head__count { font-size: 14px; }
	.rs-search__products .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
	.rs-search-empty { gap: 32px; margin-top: 8px; }
	.rs-search-empty__panel { flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; }
	.rs-search-empty__icon { width: 56px; height: 56px; }
	.rs-search-empty__icon svg { width: 28px; height: 28px; }
	.rs-search-empty__body { gap: 12px; max-width: none; align-self: stretch; }
	.rs-search-empty h1 { font-size: 22px; }
	.rs-search-empty__body p { font-size: 16px; }
	.rs-search-empty__actions { flex-direction: column; align-items: stretch; padding-top: 0; }
	.rs-search-empty__shop { font-size: 14px; line-height: 1.45; text-align: center; }
	.rs-search-empty__section { gap: 12px; }
	.rs-search-empty__section h2 { font-size: 20px; }
	.rs-search-empty__queries { gap: 8px; }
	.rs-search-empty__queries a { padding: 0 16px; border-width: 1px; font-size: 14px; }
	.rs-search-empty__cats { gap: 10px; }
	.rs-search-empty__cats a { flex-direction: column; gap: 6px; height: 156px; padding: 14px; border-radius: 14px; }
	.rs-search-empty__cats span { max-width: none; font-size: 15px; }
	.rs-search-empty__cats img { width: 96px; height: 80px; }
}
