/*
 * THANK YOU TEACHER Brand Styles 3.0.0
 *
 * Принципы:
 *  - вся палитра — в CSS-переменных ниже;
 *  - правила привязаны к классам .tyt-* или к body.tyt-brand-active (специфичность вместо !important);
 *  - !important используется только там, где иначе не победить inline-стили чужого блока («Мои тренажёры»)
 *    и чтобы гарантированно скрыть родную шапку/подвал темы;
 *  - никаких внешних шрифтов и библиотек.
 */

:root {
	--tyt-navy: #14213D;
	--tyt-navy-2: #22365E;
	--tyt-gold: #D5A13A;
	--tyt-gold-2: #E0A82E;
	--tyt-gold-deep: #86600F;      /* золото для текста на светлом фоне (читаемый контраст) */
	--tyt-gold-soft: #F7EDCF;
	--tyt-cream: #FAF7F0;
	--tyt-cream-2: #FFFCF5;
	--tyt-white: #FFFFFF;
	--tyt-line: #E8DDBF;
	--tyt-text: #14213D;
	--tyt-text-soft: #42506B;
	--tyt-radius: 20px;
	--tyt-radius-sm: 12px;
	--tyt-shadow: 0 4px 18px rgba(20, 33, 61, .06);
	--tyt-shadow-hover: 0 10px 26px rgba(20, 33, 61, .11);
	--tyt-wrap: 1180px;
	--tyt-gutter: 24px;
	--tyt-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ==========================================================================
   1. База
   ========================================================================== */

body.tyt-brand-active {
	background: var(--tyt-cream);
	color: var(--tyt-text);
	font-family: var(--tyt-font);
}

body.tyt-brand-active :where(h1, h2, h3, h4, h5, h6) {
	color: var(--tyt-navy);
	font-family: var(--tyt-font);
	font-weight: 750;
	letter-spacing: -.015em;
}

.tyt-header a:focus-visible,
.tyt-footer a:focus-visible,
.tyt-home a:focus-visible,
.tyt-welcome a:focus-visible,
.woocommerce-MyAccount-navigation a:focus-visible {
	outline: 3px solid var(--tyt-gold);
	outline-offset: 2px;
}

.tyt-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* Родная шапка и подвал темы скрываются ТОЛЬКО если наша шапка/подвал есть на странице. */
body.tyt-brand-active:has(.tyt-header) .wp-site-blocks > header,
body.tyt-brand-active:has(.tyt-header) #masthead,
body.tyt-brand-active:has(.tyt-header) .site-header {
	display: none !important;
}
body.tyt-brand-active:has(.tyt-footer) .wp-site-blocks > footer,
body.tyt-brand-active:has(.tyt-footer) #colophon,
body.tyt-brand-active:has(.tyt-footer) .site-footer {
	display: none !important;
}

/* ==========================================================================
   2. Кнопки
   ========================================================================== */

.tyt-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: 14px;
	font-family: var(--tyt-font);
	font-size: 16px;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.tyt-btn:hover { transform: translateY(-1px); }

.tyt-btn--primary { background: var(--tyt-navy); border-color: var(--tyt-navy); color: #fff; }
.tyt-btn--primary:hover { background: var(--tyt-gold); border-color: var(--tyt-gold); color: var(--tyt-navy); }

.tyt-btn--accent { background: var(--tyt-gold); border-color: var(--tyt-gold); color: var(--tyt-navy); }
.tyt-btn--accent:hover { background: #fff; border-color: #fff; color: var(--tyt-navy); }

.tyt-btn--ghost { background: #fff; border-color: var(--tyt-line); color: var(--tyt-navy); }
.tyt-btn--ghost:hover { background: var(--tyt-gold-soft); border-color: var(--tyt-gold); color: var(--tyt-navy); }

/* Кнопки WooCommerce и блоков. Перечислены явно — обычные <button> сайта не затрагиваются. */
body.tyt-brand-active :is(a.button, button.button, input.button, #respond input#submit):not(.tyt-btn),
body.tyt-brand-active .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background),
body.tyt-brand-active .wc-block-components-button:not(.is-link, .outlined, .wc-block-components-notice-banner__dismiss) {
	box-sizing: border-box;
	min-height: 46px;
	padding: 0 24px;
	border: 2px solid var(--tyt-navy);
	border-radius: 14px;
	background: var(--tyt-navy);
	color: #fff;
	font-family: var(--tyt-font);
	font-size: 16px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
body.tyt-brand-active :is(a.button, button.button, input.button, #respond input#submit):not(.tyt-btn):hover,
body.tyt-brand-active .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-background):hover,
body.tyt-brand-active .wc-block-components-button:not(.is-link, .outlined, .wc-block-components-notice-banner__dismiss):hover {
	background: var(--tyt-gold);
	border-color: var(--tyt-gold);
	color: var(--tyt-navy);
}

/* Главное действие (оформить / в корзину) — золотая кнопка с тёмно-синим текстом. */
body.tyt-brand-active :is(a.button.alt, button.button.alt, input.button.alt, .checkout-button, #place_order),
body.tyt-brand-active .wc-block-cart__submit-button,
body.tyt-brand-active .wc-block-components-checkout-place-order-button {
	background: var(--tyt-gold);
	border-color: var(--tyt-gold);
	color: var(--tyt-navy);
}
body.tyt-brand-active :is(a.button.alt, button.button.alt, input.button.alt, .checkout-button, #place_order):hover,
body.tyt-brand-active .wc-block-cart__submit-button:hover,
body.tyt-brand-active .wc-block-components-checkout-place-order-button:hover {
	background: var(--tyt-navy);
	border-color: var(--tyt-navy);
	color: #fff;
}

/* ==========================================================================
   3. Шапка
   ========================================================================== */

.tyt-header {
	position: relative;
	z-index: 20;
	font-size: 16px;
	line-height: 1.4;
	background: var(--tyt-cream-2);
	border-bottom: 1px solid var(--tyt-line);
	box-shadow: 0 3px 16px rgba(20, 33, 61, .04);
}
.tyt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--tyt-wrap);
	margin: 0 auto;
	padding: 10px var(--tyt-gutter);
}

.tyt-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	color: var(--tyt-navy);
	text-decoration: none;
}
.tyt-brand__mark {
	display: block;
	flex: none;
	width: 112px;
	height: auto;
}
.tyt-brand__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	line-height: 1.1;
}
.tyt-brand__name {
	color: var(--tyt-navy);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: .09em;
	white-space: nowrap;
}
.tyt-brand__tagline {
	color: var(--tyt-gold-deep);
	font-size: 13px;
	font-weight: 650;
	letter-spacing: .02em;
}

.tyt-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}
.tyt-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--tyt-navy);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}
.tyt-nav__link:hover { background: var(--tyt-gold-soft); color: var(--tyt-navy); }
.tyt-nav__link.is-current { background: var(--tyt-gold-soft); box-shadow: inset 0 -3px 0 var(--tyt-gold); }

.tyt-nav__link--cart { padding: 0 20px; background: var(--tyt-navy); color: #fff; }
.tyt-nav__link--cart:hover { background: var(--tyt-gold); color: var(--tyt-navy); }
.tyt-nav__link--cart.is-current { background: var(--tyt-navy); color: #fff; box-shadow: inset 0 -3px 0 var(--tyt-gold); }

/* ==========================================================================
   4. Рабочая область: ширина и заголовки страниц
   ========================================================================== */

body.tyt-wide main > :not(.alignfull),
body.tyt-wide .wp-block-post-content > :not(.alignfull),
body.tyt-wide .site-main > *,
body.tyt-wide .wp-block-post-title,
body.tyt-wide .wp-block-query-title {
	max-width: var(--tyt-wrap);
	margin-left: auto;
	margin-right: auto;
}

body.tyt-wide .wp-block-post-title,
body.tyt-wide .wp-block-query-title,
body.tyt-wide .woocommerce-products-header__title,
body.tyt-wide .entry-title {
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.1;
}

/*
 * Блочная тема задаёт большие верхние отступы inline-стилями (style="margin-top:…"),
 * из-за них между шапкой и содержимым остаётся пустота. Перебить inline можно только через !important.
 */
body.tyt-wide main {
	margin-top: 0 !important;
	padding-top: 20px;
	padding-bottom: 40px;
}
body.tyt-wide main > .wp-block-group.alignfull:first-child {
	padding-top: 0 !important;
	padding-bottom: 8px !important;
}

/* Заголовок «THANK YOU TEACHER» над главной не нужен: название уже в шапке и в первом экране. */
body.tyt-page-home :is(.wp-block-post-title, .entry-title, .page-title) { display: none; }

/* ==========================================================================
   5. Главная страница
   ========================================================================== */

.tyt-home {
	width: 100%;
	max-width: var(--tyt-wrap);
	margin: 0 auto;
	padding: 8px 0 64px;
	color: var(--tyt-text);
	font-family: var(--tyt-font);
	font-size: 16px;
	line-height: 1.6;
}

.tyt-kicker {
	display: inline-block;
	margin: 0 0 12px;
	color: var(--tyt-gold-deep);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.tyt-kicker--light { color: #F1C96D; }

/* --- Первый экран --- */
.tyt-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
	align-items: center;
	gap: 32px;
	padding: 40px 48px;
	background: linear-gradient(135deg, #fff 0%, var(--tyt-cream-2) 58%, var(--tyt-gold-soft) 150%);
	border: 1px solid var(--tyt-line);
	border-radius: 28px;
	box-shadow: var(--tyt-shadow);
}
.tyt-hero__title {
	margin: 0 0 16px;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.12;
}
.tyt-hero__lead {
	max-width: 60ch;
	margin: 0;
	color: var(--tyt-text-soft);
	font-size: 18px;
	line-height: 1.6;
}
.tyt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}
.tyt-hero__visual {
	position: relative;
	display: grid;
	place-items: center;
}
.tyt-hero__visual::before {
	content: "";
	position: absolute;
	width: 86%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(213, 161, 58, .22), rgba(213, 161, 58, 0) 68%);
}
.tyt-hero__visual img {
	position: relative;
	display: block;
	width: 100%;
	max-width: 340px;
	height: auto;
}

/* --- Секции --- */
.tyt-section { margin-top: 64px; }
.tyt-section__head { margin-bottom: 24px; }
.tyt-section__head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
}
.tyt-section__title {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.15;
}
.tyt-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 2px;
	border-bottom: 2px solid var(--tyt-gold);
	color: var(--tyt-navy);
	font-weight: 750;
	text-decoration: none;
}
.tyt-link:hover { color: var(--tyt-gold-deep); }
.tyt-link .tyt-icon { width: 18px; height: 18px; }

/* --- Три карточки --- */
.tyt-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.tyt-feature {
	padding: 26px;
	background: #fff;
	border: 1px solid var(--tyt-line);
	border-radius: var(--tyt-radius);
	box-shadow: var(--tyt-shadow);
}
.tyt-feature__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--tyt-navy);
	color: var(--tyt-gold);
}
.tyt-feature__icon .tyt-icon { width: 26px; height: 26px; }
.tyt-feature__title { margin: 18px 0 8px; font-size: 20px; line-height: 1.25; }
.tyt-feature p { margin: 0; color: var(--tyt-text-soft); font-size: 16px; line-height: 1.6; }

/* --- Витрина на главной: 1 товар — крупная по центру, 2 — две по центру, больше — сетка --- */
.tyt-products {
	display: grid;
	gap: 22px;
	justify-content: center;
}
.tyt-products--single { grid-template-columns: minmax(0, 440px); }
.tyt-products--pair { grid-template-columns: repeat(2, minmax(0, 400px)); }
.tyt-products--trio { grid-template-columns: repeat(3, minmax(0, 380px)); }
.tyt-products--grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); justify-content: stretch; }

.tyt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--tyt-line);
	border-radius: var(--tyt-radius);
	box-shadow: var(--tyt-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tyt-card__media {
	display: block;
	background: var(--tyt-cream-2);
	border-bottom: 1px solid var(--tyt-line);
}
.tyt-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}
.tyt-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 24px;
}
.tyt-card__title { margin: 0; font-size: 20px; line-height: 1.3; }
.tyt-card__title a { color: var(--tyt-navy); text-decoration: none; }
.tyt-card__title a:hover { color: var(--tyt-gold-deep); }
.tyt-card__price { color: var(--tyt-gold-deep); font-size: 20px; font-weight: 800; }
.tyt-card__price del { color: var(--tyt-text-soft); font-size: .8em; font-weight: 500; opacity: .85; }
.tyt-card__price ins { text-decoration: none; }
.tyt-card__btn { width: 100%; margin-top: auto; }

.tyt-card__badge,
body.tyt-brand-active .onsale,
body.tyt-brand-active .wc-block-components-product-sale-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	right: auto;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 7px 13px;
	border: 0;
	border-radius: 999px;
	background: var(--tyt-gold);
	color: var(--tyt-navy);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.1;
	text-transform: none;
	box-shadow: 0 2px 8px rgba(20, 33, 61, .12);
}

.tyt-empty {
	padding: 34px;
	background: #fff;
	border: 1px dashed var(--tyt-line);
	border-radius: var(--tyt-radius);
	text-align: center;
}
.tyt-empty p { margin: 6px 0 0; color: var(--tyt-text-soft); }

/* --- О проекте --- */
.tyt-about {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	margin-top: 64px;
	padding: 36px 44px;
	background: var(--tyt-navy);
	border-radius: 28px;
	color: #fff;
}
.tyt-about__logo {
	display: grid;
	place-items: center;
	padding: 22px;
	background: var(--tyt-cream);
	border-radius: 22px;
}
.tyt-about__logo img { display: block; width: 100%; max-width: 196px; height: auto; }
.tyt-home .tyt-about__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.15;
}
.tyt-about p {
	max-width: 62ch;
	margin: 0 0 24px;
	color: rgba(255, 255, 255, .92);
	font-size: 17px;
	line-height: 1.65;
}

/* ==========================================================================
   6. Магазин (блочная тема: Product Collection) и классический список товаров
   ========================================================================== */

body.tyt-catalog .wp-block-query-title,
body.tyt-catalog .woocommerce-products-header__title { margin-bottom: 8px; }

.tyt-shop-intro {
	max-width: 760px;
	margin: 0 0 28px;
	padding: 20px 24px;
	background: linear-gradient(135deg, #fff, var(--tyt-cream-2));
	border: 1px solid var(--tyt-line);
	border-left: 5px solid var(--tyt-gold);
	border-radius: var(--tyt-radius-sm);
	box-shadow: var(--tyt-shadow);
}
.tyt-shop-intro__title { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.tyt-shop-intro p { margin: 0; color: var(--tyt-text-soft); font-size: 16px; line-height: 1.6; }

/* Сетка. Блоки: ul.wc-block-product-template; классика: ul.products. */
body.tyt-catalog .wp-block-woocommerce-product-collection .wc-block-product-template,
body.tyt-catalog.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.tyt-catalog.woocommerce ul.products::before,
body.tyt-catalog.woocommerce ul.products::after { display: none; }

/* 1 товар — крупная карточка по центру; 2 — две по центру; 3+ — адаптивная сетка. */
body.tyt-catalog--single .wp-block-woocommerce-product-collection .wc-block-product-template,
body.tyt-catalog--single.woocommerce ul.products {
	grid-template-columns: minmax(0, 440px);
	justify-content: center;
}
body.tyt-catalog--pair .wp-block-woocommerce-product-collection .wc-block-product-template,
body.tyt-catalog--pair.woocommerce ul.products {
	grid-template-columns: repeat(2, minmax(0, 400px));
	justify-content: center;
}

/* Карточка товара */
body.tyt-catalog .wc-block-product,
body.tyt-catalog.woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--tyt-line);
	border-radius: var(--tyt-radius);
	box-shadow: var(--tyt-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.tyt-catalog .wc-block-product .wc-block-components-product-image,
body.tyt-catalog.woocommerce ul.products li.product a:first-child img {
	margin: 0;
	background: var(--tyt-cream-2);
	border-bottom: 1px solid var(--tyt-line);
}
body.tyt-catalog .wc-block-product .wc-block-components-product-image img,
body.tyt-catalog.woocommerce ul.products li.product a img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 0;
}
body.tyt-catalog .wc-block-product > :not(.wc-block-components-product-image),
body.tyt-catalog.woocommerce ul.products li.product > :not(a:first-child) {
	margin-left: 22px;
	margin-right: 22px;
}
body.tyt-catalog .wc-block-product .wp-block-post-title,
body.tyt-catalog.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin-top: 18px;
	margin-bottom: 8px;
	padding: 0;
	font-size: 20px;
	line-height: 1.3;
	text-align: left;
}
body.tyt-catalog .wc-block-product .wp-block-post-title a,
body.tyt-catalog.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--tyt-navy); text-decoration: none; }
body.tyt-catalog .wc-block-product .wp-block-post-title a:hover { color: var(--tyt-gold-deep); }

body.tyt-catalog .wc-block-product .wc-block-components-product-price,
body.tyt-catalog.woocommerce ul.products li.product .price {
	margin: 0 0 14px;
	color: var(--tyt-gold-deep);
	font-size: 20px;
	font-weight: 800;
	text-align: left;
}
body.tyt-catalog .wc-block-product .wc-block-components-product-price { font-size: 20px !important; } /* пресет темы .has-small-font-size задаёт размер через !important */
body.tyt-catalog .wc-block-components-product-price del,
body.tyt-catalog.woocommerce ul.products li.product .price del { color: var(--tyt-text-soft); font-size: .8em; font-weight: 500; opacity: .85; }
body.tyt-catalog .wc-block-components-product-price ins,
body.tyt-catalog.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* Кнопка — на всю ширину карточки, прижата к низу. */
body.tyt-catalog .wc-block-product .wp-block-woocommerce-product-button,
body.tyt-catalog.woocommerce ul.products li.product .button {
	margin-top: auto;
	margin-bottom: 22px;
}
body.tyt-catalog .wc-block-product .wp-block-woocommerce-product-button { display: flex; flex-direction: column; text-align: left; }
body.tyt-catalog .wc-block-product .wc-block-components-product-button__button,
body.tyt-catalog.woocommerce ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
}
body.tyt-catalog .wc-block-product .added_to_cart {
	margin-top: 8px;
	color: var(--tyt-navy);
	font-weight: 700;
	text-align: center;
}

/* Бейдж скидки лежит внутри блока картинки */
body.tyt-catalog .wc-block-product .wp-block-woocommerce-product-sale-badge { position: absolute; inset: 0; pointer-events: none; }
body.tyt-catalog .wc-block-product .wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge { pointer-events: auto; }

body.tyt-catalog :is(.wp-block-woocommerce-product-results-count, .woocommerce-result-count) { color: var(--tyt-text-soft); }
body.tyt-catalog :is(.woocommerce-ordering, .wc-block-catalog-sorting) select {
	min-height: 44px;
	padding: 8px 12px;
	background-color: #fff;
	border: 1px solid #D9CCA6;
	border-radius: var(--tyt-radius-sm);
	color: var(--tyt-navy);
	font-family: var(--tyt-font);
	font-size: 15px;
}

/* Один товар: сортировка и «Показан единственный товар» не нужны (вернутся сами, когда товаров станет больше). */
body.tyt-catalog--single .wp-block-woocommerce-product-results-count,
body.tyt-catalog--single .wp-block-woocommerce-catalog-sorting,
body.tyt-catalog--single .woocommerce-result-count,
body.tyt-catalog--single .woocommerce-ordering { display: none; }
body.tyt-catalog--single .wp-block-group:has(> .wp-block-woocommerce-product-results-count):has(> .wp-block-woocommerce-catalog-sorting) { display: none; }

/* Один товар: заголовок и вступление по центру — витрина выглядит собранной. */
body.tyt-catalog--single :is(.wp-block-query-title, .woocommerce-products-header__title) { text-align: center; }
body.tyt-catalog--single .tyt-shop-intro { margin-left: auto; margin-right: auto; text-align: center; border-left-width: 1px; }

@media (hover: hover) and (pointer: fine) {
	.tyt-card:hover,
	body.tyt-catalog .wc-block-product:hover,
	body.tyt-catalog.woocommerce ul.products li.product:hover {
		transform: translateY(-3px);
		border-color: #DCC684;
		box-shadow: var(--tyt-shadow-hover);
	}
}

/* ==========================================================================
   7. Страница товара, корзина, оформление заказа
   ========================================================================== */

body.tyt-brand-active.single-product .woocommerce-product-gallery img {
	border-radius: var(--tyt-radius);
	border: 1px solid var(--tyt-line);
	background: var(--tyt-cream-2);
}
body.tyt-brand-active.single-product .wp-block-woocommerce-product-price,
body.tyt-brand-active.single-product .wc-block-components-product-price {
	color: var(--tyt-gold-deep);
	font-weight: 800;
}
body.tyt-brand-active.single-product .wc-block-components-product-price del { color: var(--tyt-text-soft); font-weight: 500; }
body.tyt-brand-active.single-product .wc-block-components-product-price ins { text-decoration: none; }
body.tyt-brand-active.single-product .single_add_to_cart_button { min-height: 52px; padding: 0 32px; }
body.tyt-brand-active .woocommerce-tabs .tabs { gap: 6px; }
body.tyt-brand-active .woocommerce-Tabs-panel,
body.tyt-brand-active .wp-block-woocommerce-product-details .woocommerce-tabs .panel {
	color: var(--tyt-text);
	line-height: 1.7;
}

/* Поля форм */
body.tyt-brand-active .woocommerce form .form-row :is(input.input-text, textarea, select),
body.tyt-brand-active .woocommerce-MyAccount-content :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select) {
	min-height: 46px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #D9CCA6;
	border-radius: var(--tyt-radius-sm);
	color: var(--tyt-text);
	font-size: 16px;
}
body.tyt-brand-active .woocommerce form .form-row :is(input.input-text, textarea, select):focus,
body.tyt-brand-active .woocommerce-MyAccount-content :is(input, textarea, select):focus {
	border-color: var(--tyt-gold);
	outline: 3px solid rgba(213, 161, 58, .35);
	outline-offset: 0;
}
body.tyt-brand-active .woocommerce form .form-row label { font-weight: 650; }

/* ==========================================================================
   8. Личный кабинет
   ========================================================================== */

/* Две колонки: меню слева, содержимое справа. Правило только для страницы, где меню есть. */
body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	align-items: start;
	gap: 24px;
}
/* Служебные clearfix-псевдоэлементы WooCommerce в сетке стали бы лишними ячейками и сдвинули меню. */
body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { content: none; display: none; }
body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper,
body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-message,
body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-error {
	grid-column: 1 / -1;
}
body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	position: sticky;
	top: 16px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--tyt-line);
	border-radius: var(--tyt-radius);
	box-shadow: var(--tyt-shadow);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	box-sizing: border-box;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 12px 16px 12px 22px;
	background: var(--tyt-cream-2);
	border: 1px solid var(--tyt-line);
	border-radius: 14px;
	color: var(--tyt-navy);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	width: 5px;
	height: 24px;
	margin-top: -12px;
	border-radius: 999px;
	background: var(--tyt-gold);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--tyt-gold-soft);
	border-color: var(--tyt-gold);
	color: var(--tyt-navy);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--tyt-navy);
	border-color: var(--tyt-navy);
	color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before { background: var(--tyt-gold-2); }

.woocommerce-account .woocommerce-MyAccount-content {
	min-width: 0;
	min-height: 420px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--tyt-line);
	border-radius: var(--tyt-radius);
	box-shadow: var(--tyt-shadow);
	color: var(--tyt-text);
	font-size: 16px;
	line-height: 1.65;
}
.woocommerce-account .woocommerce-MyAccount-content > :first-child { margin-top: 0; }

/* Стандартные два абзаца WooCommerce на «Главной» заменяет наш приветственный блок. */
body.tyt-account-dashboard .woocommerce-MyAccount-content > p:nth-of-type(-n+2) { display: none; }

.tyt-welcome {
	padding: 24px 26px;
	background: linear-gradient(135deg, rgba(213, 161, 58, .12), #fff 55%);
	border: 1px solid var(--tyt-line);
	border-left: 5px solid var(--tyt-gold);
	border-radius: var(--tyt-radius-sm);
}
.tyt-welcome__badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 12px;
	background: var(--tyt-navy);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
}
.tyt-welcome__title { margin: 0 0 8px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; }
.tyt-welcome__lead { margin: 0; color: var(--tyt-text-soft); font-size: 16px; line-height: 1.6; }

.tyt-quick {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	margin-top: 20px;
}
.tyt-quick__card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--tyt-line);
	border-radius: 14px;
	color: var(--tyt-navy);
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.tyt-quick__card:hover { background: var(--tyt-cream-2); border-color: var(--tyt-gold); transform: translateY(-1px); }
.tyt-quick__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--tyt-gold-soft);
	color: var(--tyt-navy);
}
.tyt-quick__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tyt-quick__text span { color: var(--tyt-text-soft); font-size: 14px; }

/*
 * Блок «Мои тренажёры» (его выводит ваш отдельный Code Snippet).
 * Плагин только стилизует его: находит по inline-рамке #d6b15e, по классу .tyt-my-trainers
 * или по классу/id со словом «trainer». Inline-стили можно перебить только через !important —
 * это единственное место, где он нужен.
 */
body.tyt-brand-active .woocommerce-MyAccount-content > div[style*="d6b15e" i],
body.tyt-brand-active .woocommerce-MyAccount-content .tyt-my-trainers,
body.tyt-brand-active .woocommerce-MyAccount-content > :is([class*="trainer" i], [id*="trainer" i]) {
	margin: 20px 0 0 !important;
	padding: 24px 26px !important;
	background: linear-gradient(135deg, #fff, var(--tyt-cream-2)) !important;
	border: 1px solid var(--tyt-line) !important;
	border-left: 5px solid var(--tyt-gold) !important;
	border-radius: var(--tyt-radius-sm) !important;
	box-shadow: var(--tyt-shadow) !important;
	color: var(--tyt-text) !important;
}
.woocommerce-MyAccount-content > div[style*="d6b15e" i] :is(h2, h3, h4),
.woocommerce-MyAccount-content .tyt-my-trainers :is(h2, h3, h4) {
	margin: 0 0 12px;
	color: var(--tyt-navy);
	font-size: 22px;
	line-height: 1.25;
}
.woocommerce-MyAccount-content > div[style*="d6b15e" i] ul,
.woocommerce-MyAccount-content .tyt-my-trainers ul { margin: 0 0 14px; padding-left: 20px; }
.woocommerce-MyAccount-content > div[style*="d6b15e" i] li,
.woocommerce-MyAccount-content .tyt-my-trainers li { margin: 4px 0; }

/* Таблицы (заказы, загрузки, адреса) */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border: 1px solid var(--tyt-line);
	border-radius: var(--tyt-radius-sm);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table :is(th, td) {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--tyt-line);
	text-align: left;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th { background: var(--tyt-cream); color: var(--tyt-navy); font-weight: 750; }
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:last-child :is(th, td) { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address { padding: 16px; background: var(--tyt-cream-2); border: 1px solid var(--tyt-line); border-radius: var(--tyt-radius-sm); }

/* Корзина / оформление: блок «Новинки магазина» (старые WooCommerce-блоки) и поля входа */
body.tyt-brand-active .wc-block-grid { display: block; width: 100%; max-width: none; }
body.tyt-brand-active .wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.tyt-brand-active .wc-block-grid .wc-block-grid__products > .wc-block-grid__product {
	position: relative;
	box-sizing: border-box;
	flex: none;
	width: auto;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0 0 18px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--tyt-line);
	border-radius: var(--tyt-radius);
	box-shadow: var(--tyt-shadow);
	text-align: left;
}
body.tyt-brand-active .wc-block-grid__product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--tyt-cream-2);
}
body.tyt-brand-active .wc-block-grid__product > :not(.wc-block-grid__product-link) {
	margin-left: 16px;
	margin-right: 16px;
}
body.tyt-brand-active .wc-block-grid__product-link { text-decoration: none; }
body.tyt-brand-active .wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 8px 20px;
}
body.tyt-brand-active .wc-block-grid__product-title { padding: 0 16px; margin-top: 12px; color: var(--tyt-navy); font-size: 17px; font-weight: 700; line-height: 1.3; }
body.tyt-brand-active .wc-block-grid__product-price { color: var(--tyt-gold-deep); font-size: 18px; font-weight: 800; }
body.tyt-brand-active .wc-block-grid__product-onsale {
	top: 10px;
	left: 10px;
	right: auto;
	padding: 4px 10px;
	background: var(--tyt-gold);
	border: 0;
	border-radius: 999px;
	color: var(--tyt-navy);
	font-size: 13px;
	font-weight: 800;
	text-transform: none;
}
body.tyt-brand-active .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }

/* ==========================================================================
   9. Подвал
   ========================================================================== */

.tyt-footer {
	margin-top: 40px;
	background: var(--tyt-navy);
	border-top: 4px solid var(--tyt-gold);
	color: #fff;
	font-family: var(--tyt-font);
	font-size: 16px;
	line-height: 1.5;
}
.tyt-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
	max-width: var(--tyt-wrap);
	margin: 0 auto;
	padding: 32px var(--tyt-gutter) 24px;
}
.tyt-footer__about strong { font-size: 18px; font-weight: 800; letter-spacing: .09em; }
.tyt-footer__about p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.5; }
.tyt-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tyt-footer__links a { color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.tyt-footer__links a:hover { color: #F1C96D; text-decoration: underline; }
.tyt-footer__bottom {
	max-width: var(--tyt-wrap);
	margin: 0 auto;
	padding: 14px var(--tyt-gutter) 22px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	color: rgba(255, 255, 255, .75);
	font-size: 14px;
}

/* ==========================================================================
   10. Адаптив
   ========================================================================== */

@media (max-width: 960px) {
	.tyt-hero { grid-template-columns: minmax(0, 1fr) 240px; padding: 32px 32px; gap: 20px; }
	.tyt-features, .tyt-steps { grid-template-columns: 1fr; }
	.tyt-about { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 30px; }
	.tyt-about__logo { padding: 16px; }
	body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 230px minmax(0, 1fr); }
}

@media (max-width: 760px) {
	:root { --tyt-gutter: 16px; }

	/* Шапка: название сверху, три кнопки ровным рядом снизу */
	.tyt-header__inner { flex-wrap: wrap; gap: 10px; padding: 10px var(--tyt-gutter) 12px; }
	.tyt-brand { width: 100%; gap: 12px; }
	.tyt-brand__mark { width: 88px; }
	.tyt-brand__name { font-size: 18px; letter-spacing: .06em; }
	.tyt-brand__tagline { font-size: 12px; }
	.tyt-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
	.tyt-nav__link { justify-content: center; padding: 0 8px; background: #fff; border: 1px solid var(--tyt-line); font-size: 15px; }
	.tyt-nav__link--cart { background: var(--tyt-navy); border-color: var(--tyt-navy); }
	.tyt-nav__link--cart.is-current { background: var(--tyt-navy); }

	/* Главная */
	.tyt-home { padding: 18px 0 48px; }
	.tyt-hero { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 22px; }
	.tyt-hero__visual { order: -1; }
	.tyt-hero__visual img { max-width: 210px; }
	.tyt-hero__lead { font-size: 17px; }
	.tyt-hero__actions .tyt-btn { flex: 1 1 100%; }
	.tyt-section { margin-top: 44px; }
	.tyt-products--pair,
	.tyt-products--trio { grid-template-columns: minmax(0, 440px); }
	.tyt-about { grid-template-columns: 1fr; gap: 22px; padding: 26px 20px; border-radius: 22px; }
	.tyt-about__logo { max-width: 190px; }

	/* Магазин */
	body.tyt-catalog--pair .wp-block-woocommerce-product-collection .wc-block-product-template,
	body.tyt-catalog--pair.woocommerce ul.products { grid-template-columns: minmax(0, 440px); }

	/* Кабинет: одна колонка, меню — компактная сетка 2×N */
	body.tyt-brand-active.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.woocommerce-account .woocommerce-MyAccount-navigation { position: static; padding: 10px; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.woocommerce-account .woocommerce-MyAccount-navigation li a { min-height: 48px; padding: 10px 10px 10px 20px; font-size: 15px; }
	.woocommerce-account .woocommerce-MyAccount-content { min-height: 0; padding: 20px 16px; }
	.tyt-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
	.tyt-brand__name { font-size: 16px; white-space: normal; }
	.tyt-brand__mark { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
	.tyt-btn, .tyt-card, .tyt-quick__card, body.tyt-catalog .wc-block-product { transition: none; }
	.tyt-btn:hover, .tyt-quick__card:hover { transform: none; }
}
body.tyt-brand-active .wc-block-grid__product-price ins { text-decoration: none; }

/* Уведомления WooCommerce («Товар добавлен в корзину» и т. п.) */
body.tyt-brand-active .wc-block-components-notice-banner {
	box-sizing: border-box;
	width: min(100% - 32px, var(--tyt-wrap));
	margin: 16px auto;
	padding: 14px 18px;
	border-radius: var(--tyt-radius-sm);
	font-size: 16px;
	line-height: 1.5;
}
body.tyt-brand-active .wc-block-components-notice-banner .wc-block-components-notice-banner__content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}
body.tyt-brand-active .wc-block-components-notice-banner .wc-block-components-notice-banner__content a.button {
	float: none;
	order: 2;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin: 0;
	padding: 6px 18px;
	background: var(--tyt-navy);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

/* Быстрые кнопки по рубрикам над витриной */
.tyt-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
}
body.tyt-catalog.tyt-catalog--single .tyt-filter,
body.tyt-catalog.tyt-catalog--pair .tyt-filter { justify-content: center; }
.tyt-filter__chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 16px;
	background: #fff;
	border: 1px solid var(--tyt-line);
	border-radius: 999px;
	color: var(--tyt-navy);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease;
}
.tyt-filter__chip:hover { background: var(--tyt-gold-soft); border-color: var(--tyt-gold); color: var(--tyt-navy); }
.tyt-filter__chip.is-active { background: var(--tyt-navy); border-color: var(--tyt-navy); color: #fff; }
.tyt-filter__chip:focus-visible { outline: 3px solid var(--tyt-gold); outline-offset: 2px; }

body.tyt-brand-active .wc-block-components-notice-banner { border-width: 1px; }
body.tyt-brand-active .wc-block-components-notice-banner.is-success .wc-block-components-notice-banner__content a.button.wc-forward {
	background: var(--tyt-navy);
	border: 0;
	color: #fff;
	box-shadow: none;
}
.tyt-nav__link { white-space: nowrap; }
@media (max-width: 900px) {
	.tyt-brand__tagline { display: none; }
}

/* WooCommerce задаёт цвет этой кнопки через !important — перекрываем только её. */
body.tyt-brand-active .wc-block-components-notice-banner > .wc-block-components-notice-banner__content a.wc-forward {
	background: var(--tyt-navy) !important;
	border: 0 !important;
	color: #fff !important;
	opacity: 1;
}
body.tyt-brand-active .wc-block-components-notice-banner[tabindex="-1"]:focus { outline: 0; }
@media (max-width: 900px) {
	.tyt-header__inner { gap: 12px; }
	.tyt-brand__name { font-size: 18px; letter-spacing: .06em; }
	.tyt-nav__link { padding-left: 12px; padding-right: 12px; }
}

/* Главная: «Как это работает» */
.tyt-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tyt-step {
	margin: 0;
	padding: 26px;
	background: var(--tyt-cream-2);
	border: 1px solid var(--tyt-line);
	border-radius: var(--tyt-radius);
}
.tyt-step__num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tyt-gold);
	color: var(--tyt-navy);
	font-size: 20px;
	font-weight: 800;
}
.tyt-step__title { margin: 16px 0 8px; font-size: 20px; line-height: 1.25; }
.tyt-step p { margin: 0; color: var(--tyt-text-soft); font-size: 16px; line-height: 1.6; }
