/* =========================================================================
   Бренд-шар absolute-teamsport.cy — лише перевизначення на токенах --tf-*.
   Підключається останнім на кожному маршруті (Assets::enqueue_brand_layer() батьківської теми).
   Основа — вигляд «Номер на спині» батьківської теми (осі variant = number у theme.json); відмінності Кіпру за
   концептом concept-home-cy.html (v1, 2026-11): чорні смуги (сервісна, хіро, м'ячі, футер), нахил 12° сигнальних
   кнопок, бейджів і міток, курсивні заголовки, червоний лише для знижок, зелений — лише з чорним текстом.
   ====================================================================== */

:root {
	/* Єдиний кут нахилу: сигнальні кнопки, бейджі, мітки (концепт: --lean). */
	--cy-lean: -12deg;
	--cy-lean-back: 12deg;
}

/* ---------- Логотип: двоярусний «ABSOLUTE TEAMSPORT / CYPRUS» (≈5,8:1) — вищий за батьківський (концепт: 40 px,
   на телефоні 28 px). ---------- */
.tf-bar .tf-wordmark .tf-brand-logo { block-size: 2.5rem; }
.tf-wordmark--footer .tf-brand-logo,
.tf-wordmark--drawer .tf-brand-logo { block-size: 2.25rem; }
@media (max-width: 47.99rem) {
	.tf-bar .tf-wordmark .tf-brand-logo { block-size: auto; max-block-size: 1.75rem; }
	.tf-wordmark--footer .tf-brand-logo,
	.tf-wordmark--drawer .tf-brand-logo { block-size: 2rem; }
}

/* ---------- Чорні смуги. Токени поверхні перевернуті всередині смуги: правила батьківської теми для світлих
   поверхонь «Номер на спині» малюють ту саму розмітку світлим по чорному без власних перевизначень. ---------- */
.tf-variant-header-number .tf-usp,
.tf-variant-surfaces-number :is(.tf-hero, .tf-balls, .tf-site-footer) {
	--tf-canvas: var(--wp--preset--color--surface-inverse);
	--tf-surface: var(--wp--preset--color--surface-inverse);
	--tf-surface-subtle: var(--wp--preset--color--surface-inverse-deep);
	--tf-text: var(--wp--preset--color--text-on-inverse);
	--tf-text-muted: var(--wp--preset--color--text-on-inverse-muted);
	--tf-border: var(--wp--custom--teamfootball--overlay--inverse-line);
	--tf-control-border: var(--wp--custom--teamfootball--overlay--inverse-line-strong);
	--tf-brand: var(--wp--preset--color--text-on-inverse-brand);
	--tf-focus: var(--wp--preset--color--focus-on-inverse);
	--tf-inverse: var(--wp--preset--color--surface-subtle);
	--tf-on-inverse: var(--wp--preset--color--text);
}
/* «У цій колекції» під хіро — світла смуга (концепт: .incol), хоч і всередині хіро: токени повертаються. */
.tf-variant-surfaces-number .tf-hero .tf-hero__strip {
	--tf-canvas: var(--wp--preset--color--canvas);
	--tf-surface: var(--wp--preset--color--surface);
	--tf-surface-subtle: var(--wp--preset--color--surface-subtle);
	--tf-text: var(--wp--preset--color--text);
	--tf-text-muted: var(--wp--preset--color--text-muted);
	--tf-border: var(--wp--preset--color--border);
	--tf-control-border: var(--wp--preset--color--control-border);
	--tf-brand: var(--wp--preset--color--brand);
	--tf-focus: var(--wp--preset--color--focus);
	--tf-inverse: var(--wp--preset--color--surface-inverse);
	--tf-on-inverse: var(--wp--preset--color--text-on-inverse);
	border-block-end: var(--tf-bw-divider) solid var(--tf-border);
}
.tf-variant-header-number .tf-usp { border-block-end-color: var(--tf-inverse); }
/* Сервісна смуга на десктопі — завжди один рядок (2026-11-23: чотири обіцянки й телефон переносились у три рядки):
   телефон праворуч, обіцянки — скільки вміщається, решта ховається (список обрізаний по висоті рядка, слова не
   переносяться). Тексти (крок content міграції) підібрані так, що всі чотири з телефоном вміщаються з ширини вікна
   ≈ 1260 px; на телефоні — бігучий рядок батьківської теми, на планшеті (48–64rem, телефон у шторці) — два рядки. */
@media (min-width: 64rem) {
	.tf-variant-header-number .tf-usp__inner { flex-wrap: nowrap; }
	.tf-variant-header-number .tf-usp__list { flex: 1 1 auto; min-inline-size: 0; max-block-size: 1lh; overflow: hidden; row-gap: 0; column-gap: var(--tf-space-5); }
	.tf-variant-header-number .tf-usp__list li { white-space: nowrap; }
	/* Телефон — останній у групі з розкладкою flow, і правило WordPress `:root :where(.is-layout-flow) > :last-child`
	   (0,2,0) обнуляло його нижній від'ємний відступ: смуга 44 px замість 36 і телефон на 4 px вище за обіцянки. */
	.tf-variant-header-number .tf-usp__inner > .tf-usp__contact { flex: none; margin-block: calc(var(--tf-space-2) * -1); }
}
/* Акція (Black Friday, тема 3.1.121) у сервісній смузі: батьківська тема пише текст смуги акції токенами «на чорному»
   (--tf-on-inverse*), а тут ці токени всередині смуги перевернуті вище — повертаємо світлі, інакше назва акції темна
   на чорному. */
.tf-variant-header-number .tf-usp.tf-usp--promo {
	--tf-on-inverse: var(--wp--preset--color--text-on-inverse);
	--tf-on-inverse-muted: var(--wp--preset--color--text-on-inverse-muted);
}
.tf-variant-surfaces-number .tf-hero { border-block-end: 0; }
.tf-variant-surfaces-number .tf-site-footer { border-block-start: 0; }
/* Світла секція м'ячів батьківської теми стоїть без внутрішніх відступів — на чорному смузі вони потрібні. */
.tf-variant-surfaces-number .tf-balls { padding-block: var(--tf-section-gap); }
/* Заголовки груп футера — моно, прямі, зелені (концепт: .footer h2). */
.tf-variant-surfaces-number .tf-site-footer :is(.tf-footer-heading, .tf-footer-subheading) { font-style: normal; text-transform: uppercase; color: var(--tf-brand); }

/* Плашки фото в смугах — світлі, як у каталозі: фото товару змішуються з плашкою (multiply). */
.tf-variant-surfaces-number :is(.tf-hero__visual, .tf-balls__visual),
.tf-variant-surfaces-number :is(.tf-hero, .tf-balls) .tf-mini__ph { background: var(--wp--preset--color--surface-subtle); }

/* Хіро: фото зрізане по діагоналі, під ним — зелена смуга (концепт: .hero__media). */
@media (min-width: 64rem) {
	.tf-variant-surfaces-number .tf-hero__visual { clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }
	/* Фото хіро Кіпру — квадратні банери з пекшотів (scripts/packshot-banner.py): тло рівно #F2F2F2, як плашка, товар —
	   у смузі ≈ 30–75 % висоти кадру. Рамка на десктопі — половина вікна × 34rem (на 2560 px — 2,35:1), і cover
	   зрізав підошву й п'яту (2026-11-23). Тут квадрат показується цілком, сторона — не більше 1,6 висоти рамки:
	   ріжеться лише порожнє тло згори й знизу (товар із тінню лишається з запасом ≥ 40 px), плашка довкола зливається
	   з тлом банера. Для фото на весь кадр (не пекшот на #F2F2F2) правило треба прибрати; відео (`--video`) воно не
	   стосується. */
	.tf-variant-surfaces-number .tf-hero__media:not(.tf-hero__media--video) img {
		inset-block: -30% auto;
		block-size: 160%;
		object-fit: contain;
		object-position: 55% 50%;
	}
}
@media (max-width: 63.99rem) {
	.tf-variant-surfaces-number .tf-hero__visual { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
}
.tf-variant-surfaces-number .tf-hero__visual::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	inline-size: 38%;
	block-size: 0.625rem;
	background: var(--tf-accent);
	z-index: 1;
}

/* Логотип на чорному футері: негатив (чорне → біле, зелений лишається зеленим, світлішим). */
.tf-variant-surfaces-number .tf-site-footer .tf-brand-logo { filter: invert(1) hue-rotate(180deg); }

/* Hummel (2026-11-23, власник): повний логотип — бджілка над написом «hummel» (`assets/images/brands/hummel.svg`, з
   офіційного SVG hummel.net без ювілейних цифр) замість шеврона батьківської теми. Майже квадратний, напис — нижня
   чверть: висота більша за інші марки, як у Mizuno, інакше напис дрібний. */
.tf-brand-mark--hummel { block-size: calc(var(--tf-brand-mark-size, 1.125rem) * 1.5); }

/* ---------- Нахил 12°: сигнальні кнопки — скошене зелене тло під прямим текстом (концепт: .btn-signal). ---------- */
.tf-button--signal,
.woocommerce a.button.alt,
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.woocommerce-cart .checkout-button,
.woocommerce-checkout #place_order {
	position: relative;
	isolation: isolate;
	background: none;
	padding-inline: var(--tf-space-6);
}
.tf-button--signal::before,
.woocommerce a.button.alt::before,
.wp-block-button:not(.is-style-outline) .wp-block-button__link::before,
.wp-block-woocommerce-cart .wc-block-cart__submit-button::before,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button::before,
.woocommerce-cart .checkout-button::before,
.woocommerce-checkout #place_order::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--tf-accent);
	transform: skewX(var(--cy-lean));
	transition: background var(--tf-motion-fast) var(--tf-easing);
}
.tf-button--signal:hover,
.woocommerce a.button.alt:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.woocommerce-cart .checkout-button:hover,
.woocommerce-checkout #place_order:hover { background: none; }
.tf-button--signal:hover::before,
.woocommerce a.button.alt:hover::before,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::before,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover::before,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover::before,
.woocommerce-cart .checkout-button:hover::before,
.woocommerce-checkout #place_order:hover::before { background: var(--tf-accent-hover); }
.tf-button--signal:is(:disabled, [aria-disabled="true"])::before { background: var(--tf-disabled); }
/* Друга кнопка хіро («Find by surface») — теж скошена, у пару до сигнальної (власник 2026-11-23): рамка й тло — на
   скошеному ::before на весь розмір кнопки разом із рамкою, текст прямий. Наведення — як у батьківській: світле тло,
   чорний текст. */
.tf-variant-surfaces-number .tf-hero__cta .tf-button--ghost {
	position: relative;
	isolation: isolate;
	border-color: transparent; /* tf-native-exception: transparent — рамку малює скошений ::before. */
	background: none;
}
.tf-variant-surfaces-number .tf-hero__cta .tf-button--ghost::before {
	content: "";
	position: absolute;
	inset: calc(var(--tf-bw-control) * -1);
	z-index: -1;
	border: var(--tf-bw-control) solid var(--tf-control-border);
	background: var(--tf-canvas);
	transform: skewX(var(--cy-lean));
	transition: background var(--tf-motion-fast) var(--tf-easing), border-color var(--tf-motion-fast) var(--tf-easing);
}
.tf-variant-surfaces-number .tf-hero__cta .tf-button--ghost:hover { background: none; }
.tf-variant-surfaces-number .tf-hero__cta .tf-button--ghost:hover::before { background: var(--tf-text); border-color: var(--tf-text); }

/* Бейджі: знижка — червоний (лише знижки), новинка — зелений з чорним текстом; обидва скошені. */
.tf-badge--sale,
.tf-variant-card-number .tf-card .tf-badge--sale,
.tf-badge--new,
.tf-variant-card-number .tf-card .tf-badge--new {
	position: relative;
	isolation: isolate;
	background: none;
}
.tf-badge--sale::before,
.tf-badge--new::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	transform: skewX(var(--cy-lean));
}
.tf-badge--sale { color: var(--wp--preset--color--text-on-inverse); }
.tf-badge--sale::before { background: var(--tf-danger); }
.tf-badge--new { color: var(--tf-on-accent); }
.tf-badge--new::before { background: var(--tf-accent); }
.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-sale-badge { background: var(--tf-danger); color: var(--wp--preset--color--text-on-inverse); }

/* Мітки: риска eyebrow — скошений зелений прямокутник; пункти сервісної смуги — скошені квадрати. */
.tf-eyebrow::before {
	inline-size: 1.125rem;
	block-size: 0.625rem;
	background: var(--tf-accent);
	transform: skewX(var(--cy-lean));
}
.tf-variant-header-number .tf-usp__list li::before { inline-size: 0.5rem; block-size: 0.5rem; transform: skewX(var(--cy-lean)); }
.tf-variant-surfaces-number .tf-step-num { transform: skewX(var(--cy-lean)); }
.tf-variant-surfaces-number .tf-step-num > * { transform: skewX(var(--cy-lean-back)); }

/* ---------- Курсив: заголовки й підписи шрифтом display — курсивом, великими літерами (концепт: h1–h3, вкладки,
   табло, кнопки хіро). Назви товарів (шрифт body) — прямі. ---------- */
.tf-variant-fonts-number :where(h1, h2, h3, h4),
.tf-variant-fonts-number :is(
	.tf-hero__tabs a,
	.tf-hero__meta dd,
	.tf-hero__cta .tf-button,
	.tf-hero__strip-title b,
	.tf-guided__est b,
	.tf-guided__step legend,
	.tf-surf__code,
	.tf-row__code,
	.tf-cat__title,
	.tf-filter__title,
	.tf-drawer__title,
	.tf-card .tf-badge--sale,
	.tf-card .tf-badge--new,
	.wc-block-components-checkout-step__title,
	.wc-block-cart__totals-title
) {
	font-style: italic;
}
.tf-variant-fonts-number :where(h1, h2, h3, h4) { text-transform: uppercase; }
.tf-variant-fonts-number :is(.tf-card__title, .tf-mini__name, .tf-notice h2) { font-style: normal; text-transform: none; }

/* ---------- Зелений як текст на світлому — лише темний відтінок (--tf-brand, 5,3:1); #64B32B — тло з чорним
   текстом або текст на чорному. ---------- */
.tf-variant-surfaces-number .tf-guided__est.is-zero b { color: var(--tf-brand); }
.woocommerce-account .form-row .required { color: var(--tf-danger); }
.tf-save-toggle--wishlist[aria-pressed="true"] { color: var(--tf-danger); }
