/* Сторінка товару: оновлений вигляд блоку покупки, вкладок і «Схожих товарів».
   Підключається лише на is_product() (functions.php). Галерею, ярлики BeRocket і захист від CLS
   (inc/performance.php) не чіпаємо. Префікс body.single-product — щоб перебити css/style.css теми. */

/* ===== Заголовок, артикул, ціна ===== */

body.single-product .summary.entry-summary h1.prodName {
	margin: 0 0 6px;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: .2px;
}

body.single-product .summary .flex-betwen .sku_wrapper {
	font-size: 13px;
	color: #8a8f94;
}

body.single-product .summary .flex-betwen .sku_wrapper .sku {
	color: #6c757d;
}

body.single-product .summary.entry-summary p.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 18px 0 22px;
	font-size: 30px;
	line-height: 1.2;
}

body.single-product .summary.entry-summary p.price ins,
body.single-product .summary.entry-summary p.price > .amount {
	order: 0;
	font-size: 30px;
	font-weight: 700;
	text-decoration: none;
	color: #1F2427;
}

body.single-product .summary.entry-summary p.price ins,
body.single-product .summary.entry-summary p.price ins .amount {
	color: #009E42;
	text-decoration: none;
}

body.single-product .summary.entry-summary p.price del {
	order: 1;
	font-size: 17px;
	font-weight: 400;
	color: #8a8f94;
	opacity: 1;
}

body.single-product .summary.entry-summary p.price del .amount {
	color: #8a8f94;
}

body.single-product .summary.entry-summary p.price .screen-reader-text {
	position: absolute !important;
}

body.single-product .summary.entry-summary p.price .yx-pd-sale {
	order: 2;
	align-self: center;
	padding: 3px 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .5px;
	color: #fff;
	background: #009E42;
}

/* ===== Опції: струна (TM EPO), розмір ручки / розмір (свотчі) ===== */

body.single-product .summary .tc-epo-element-label-text,
body.single-product .summary table.variations td.label label {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #1F2427;
}

body.single-product .summary .tc-extra-product-options select {
	height: 46px;
	padding: 0 36px 0 14px;
	font-size: 15px;
	border: 1px solid #CCC;
	border-radius: 0;
	background-color: #fff;
}

body.single-product .summary .tc-extra-product-options select:focus {
	border-color: #1F2427;
	outline: none;
}

body.single-product .summary table.variations {
	margin: 0 0 8px;
}

body.single-product .summary table.variations td {
	padding: 0;
}

body.single-product .summary table.variations td.label {
	padding-bottom: 8px;
	line-height: 1.3;
}

body.single-product .summary table.variations td.label label {
	line-height: 1.3;
}

body.single-product .summary .single-product-variable-items.variable-items-wrapper .variable-item.button-variable-item {
	min-width: 44px;
	height: 40px;
	margin: 0 6px 6px 0;
	padding: 0 10px;
	font-size: 15px;
	color: #1F2427;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 0 0 1px #CCC;
	transition: box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

body.single-product .summary .single-product-variable-items.variable-items-wrapper .variable-item.button-variable-item:hover {
	box-shadow: 0 0 0 1px #1F2427;
}

body.single-product .summary .single-product-variable-items.variable-items-wrapper .variable-item.button-variable-item.selected {
	color: #fff;
	background: #1F2427;
	box-shadow: 0 0 0 1px #1F2427;
}

body.single-product .summary .single-product-variable-items .variable-item.button-variable-item .variable-item-span {
	padding: 0;
	color: inherit;
}

body.single-product .summary .single-product-variable-items .variable-item.disabled,
body.single-product .summary .single-product-variable-items .variable-item.out-of-stock {
	opacity: .4;
}

body.single-product .summary .woocommerce-variation-availability {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 14px;
	font-size: 14px;
	color: #009E42;
}

body.single-product .summary .woocommerce-variation-availability p.stock {
	margin: 0;
	color: inherit;
}

body.single-product .summary .woocommerce-variation-availability .out-of-stock,
body.single-product .summary p.stock.out-of-stock {
	color: #A00;
}

/* ===== Кількість + кнопки ===== */

body.single-product .summary .woocommerce-variation-add-to-cart,
body.single-product .summary form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin-top: 6px;
}

body.single-product .summary .woocommerce-variation-add-to-cart > .tc-totals-form,
body.single-product .summary form.cart:not(.variations_form) > .tc-totals-form {
	flex: 0 0 100%;
}

body.single-product .summary .quantity.yx-qty {
	display: inline-flex; /* на мобайлі кількість схована інлайн-стилем сайту (display:none !important) — так задумано */
	align-items: stretch;
	height: 52px;
	margin: 0;
	border: 1px solid #CCC;
}

body.single-product .summary .quantity.yx-qty input.qty {
	width: 44px;
	height: auto;
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	border: 0;
	-moz-appearance: textfield;
}

body.single-product .summary .quantity.yx-qty input.qty::-webkit-outer-spin-button,
body.single-product .summary .quantity.yx-qty input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

body.single-product .summary .yx-qty-btn {
	width: 40px;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: #1F2427;
	background: #fff;
	border: 0;
	cursor: pointer;
}

body.single-product .summary .yx-qty-btn:hover {
	background: #F6F6F6;
}

body.single-product .summary button.single_add_to_cart_button.button.alt {
	flex: 1 1 200px;
	height: 52px;
	margin: 0;
	padding: 0 24px;
	font-size: 15px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

body.single-product .summary button.awooc-custom-order-button.button {
	flex: 0 0 100%;
	order: 5;
	height: 50px;
	margin: 0;
	padding: 0 24px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #1F2427;
	background: #fff;
	border: 1px solid #1F2427 !important;
	border-radius: 0;
	box-shadow: inset 0 0 0 0 #1F2427;
	transition: color .3s ease, box-shadow .3s ease;
}

body.single-product .summary button.awooc-custom-order-button.button:hover {
	color: #fff;
	box-shadow: inset 700px 0 0 0 #1F2427;
}

/* ===== Блок «доставка / оплата / повернення» ===== */

body.single-product .summary .yx-pd-benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #EAEAEA;
}

body.single-product .summary .yx-pd-benefits li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #EAEAEA;
}

body.single-product .summary .yx-pd-benefits li:nth-child(odd) {
	border-right: 1px solid #EAEAEA;
}

body.single-product .summary .yx-pd-benefits a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	padding: 14px 12px 14px 0;
	font-size: 13px;
	line-height: 1.4;
	color: #6c757d;
	text-decoration: none;
}

body.single-product .summary .yx-pd-benefits li:nth-child(even) a {
	padding-left: 16px;
}

body.single-product .summary .yx-pd-benefits a:hover strong {
	text-decoration: underline;
}

body.single-product .summary .yx-pd-benefits strong {
	display: block;
	margin-bottom: 2px;
	font-size: 14px;
	font-weight: 700;
	color: #1F2427;
}

body.single-product .summary .yx-pd-benefits__icon {
	flex: 0 0 22px;
	margin-top: 1px;
	color: #009E42;
}

/* ===== Вкладки ===== */

body.single-product .woocommerce-tabs.wc-tabs-wrapper {
	margin-top: 48px;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 28px;
	margin: 0 0 28px;
	padding: 0;
	overflow-x: auto;
	border-bottom: 1px solid #EAEAEA;
	scrollbar-width: none;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs::-webkit-scrollbar {
	display: none;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs::before,
body.single-product .woocommerce-tabs ul.tabs.wc-tabs::after,
body.single-product .woocommerce-tabs ul.tabs.wc-tabs li::before,
body.single-product .woocommerce-tabs ul.tabs.wc-tabs li::after {
	display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs li {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	background: none !important;
	border: 0 !important;
	border-radius: 0;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
	display: block;
	margin-bottom: -1px;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
	color: #8a8f94;
	border-bottom: 2px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
	color: #1F2427;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a {
	color: #1F2427;
	border-bottom-color: #1F2427;
}

/* Текст опису — читабельна колонка */
body.single-product .woocommerce-Tabs-panel--description {
	max-width: 820px;
	font-size: 16px;
	line-height: 1.7;
	color: #212529;
}

body.single-product .woocommerce-Tabs-panel--description p {
	margin: 0 0 14px;
}

/* Характеристики — таблиця у дві колонки */
body.single-product .woocommerce-Tabs-panel--additional_information > h2 {
	display: none;
}

body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes {
	width: 100%;
	max-width: 820px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(odd) {
	background: #F8F8F8;
}

body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th,
body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
	vertical-align: middle;
	background: none;
	border: 0;
}

body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
	width: 40%;
	font-weight: 400;
	color: #6c757d;
}

body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
	font-weight: 500;
	font-style: normal;
	color: #1F2427;
}

body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td p {
	margin: 0;
	padding: 0;
}

/* ===== «Схожі товари» — картки як у каталозі ===== */

body.single-product section.related.products {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid #EAEAEA;
}

body.single-product section.related.products > h2 {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
}

body.single-product section.related ul.products li.product {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
}

body.single-product section.related ul.products li.product:hover {
	box-shadow: none !important;
	transform: none !important;
}

body.single-product section.related ul.products li.product .yx-card-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #F8F8F8;
}

body.single-product section.related ul.products li.product a.woocommerce-LoopProduct-link .yx-card-media img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 7%;
	object-fit: contain !important;
	mix-blend-mode: darken;
	transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

body.single-product section.related ul.products li.product .yx-card-media .yx-card-img-alt {
	opacity: 0;
}

body.single-product section.related ul.products li.product h2.woocommerce-loop-product__title {
	display: -webkit-box;
	height: auto !important;
	min-height: calc(2em * 1.35) !important;
	margin: 12px 0 6px;
	padding: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	color: #1F2427;
}

body.single-product section.related ul.products li.product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #1F2427;
}

body.single-product section.related ul.products li.product .price ins {
	padding: 0 !important;
	font-size: 17px;
	text-decoration: none;
	color: #009E42;
}

body.single-product section.related ul.products li.product .price del {
	order: 1;
	font-size: 13px;
	font-weight: 400;
	color: #8a8f94;
}

body.single-product section.related ul.products li.product .price .amount {
	text-decoration: none;
}

body.single-product section.related ul.products li.product .price .screen-reader-text {
	position: absolute !important;
}

body.single-product section.related ul.products li.product .wvs-archive-variations-wrapper,
body.single-product section.related ul.products li.product a.button.add_to_cart_button,
body.single-product section.related ul.products li.product .attribute-div {
	display: none !important;
}

@media (hover: hover) and (pointer: fine) {
	body.single-product section.related ul.products li.product:hover a.woocommerce-LoopProduct-link .yx-card-media img {
		transform: scale(1.04);
	}

	body.single-product section.related ul.products li.product:hover .yx-card-media .yx-card-img-alt {
		opacity: 1;
	}

	body.single-product section.related ul.products li.product:hover .yx-card-media--alt img.wp-post-image {
		opacity: 0;
	}

	body.single-product section.related ul.products li.product:hover h2.woocommerce-loop-product__title {
		color: #009E42;
	}
}

/* ===== Мобайл: закріплена панель покупки (js/product.js) ===== */

.yx-buybar {
	display: none;
}

@media (max-width: 991px) {
	body.single-product .summary.entry-summary p.price,
	body.single-product .summary.entry-summary p.price ins {
		font-size: 26px;
	}

	body.single-product .summary .yx-pd-benefits {
		grid-template-columns: 1fr;
	}

	body.single-product .summary .yx-pd-benefits li:nth-child(odd) {
		border-right: 0;
	}

	body.single-product .summary .yx-pd-benefits li:nth-child(even) a {
		padding-left: 0;
	}

	body.single-product .woocommerce-tabs ul.tabs.wc-tabs {
		gap: 20px;
	}

	body.single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
		font-size: 14px;
	}

	.yx-buybar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #EAEAEA;
		box-shadow: 0 -6px 20px rgba(31, 36, 39, .08);
		transform: translateY(110%);
		transition: transform .25s ease;
	}

	.yx-buybar.yx-buybar--on {
		transform: translateY(0);
	}

	/* кнопка теми «нагору» (#button) — над панеллю */
	body:has(.yx-buybar--on) #button {
		bottom: 84px;
		transition: bottom .25s ease;
	}

	.yx-buybar__price {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0 8px;
		min-width: 0;
		font-size: 18px;
		font-weight: 700;
		line-height: 1.2;
		color: #1F2427;
	}

	.yx-buybar__price ins {
		text-decoration: none;
		color: #009E42;
	}

	.yx-buybar__price del {
		order: 1;
		font-size: 13px;
		font-weight: 400;
		color: #8a8f94;
	}

	.yx-buybar__btn {
		flex: 0 0 auto;
		height: 46px;
		padding: 0 28px;
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 2px;
		text-transform: uppercase;
		color: #fff;
		background: #1F2427;
		border: 0;
		border-radius: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yx-buybar {
		transition: none;
	}
}

/* Ярлики BeRocket у «Схожих товарах» — плоский прапорець, як у каталозі (шаблон css-14, колір — з самого ярлика) */
body.single-product section.related ul.products li.product .berocket_better_labels {
	padding: 12px !important;
	pointer-events: none;
}

body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
}

body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) > span {
	position: relative !important;
	display: inline-block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 4px 10px !important;
	line-height: 1.3 !important;
	background: none !important;
	transform: none !important;
}

body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) > span > i {
	display: none !important;
}

body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) > span > i.template-span-before {
	position: absolute !important;
	clip-path: none !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	transform: none !important;
}

body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) > span > i.template-span-before::before,
body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) > span > i.template-span-before::after {
	display: none !important;
}

body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) > span > b {
	position: relative !important;
	z-index: 1 !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #fff !important;
	background: none !important;
	transform: none !important;
}

/* «Замовити в один клік»: тема тримає колір тексту з !important (css/style.css .awooc-custom-order-button) — на наведенні білий */
body.single-product .summary button.awooc-custom-order-button.button:hover,
body.single-product .summary button.awooc-custom-order-button.button:focus-visible {
	color: #fff !important;
}

/* ===== Галерея: мініатюри (Advanced Product Gallery, slick) ===== */
/* Поточне фото підсвічене, решта трохи приглушені; стрічка мініатюр більше не «безкінечна» (опція плагіна arrowinfinite вимкнена). */
body.single-product .wpgis-slider-nav .slick-slide {
	opacity: .55;
	cursor: pointer;
	transition: opacity .2s ease;
}

body.single-product .wpgis-slider-nav .slick-slide:hover,
body.single-product .wpgis-slider-nav .slick-slide.yx-thumb-active {
	opacity: 1;
}

body.single-product .wpgis-slider-nav .slick-slide img {
	box-sizing: border-box;
	border: 1px solid transparent;
	transition: border-color .2s ease;
}

body.single-product .wpgis-slider-nav .slick-slide.yx-thumb-active img {
	border-color: #1F2427;
}

/* ===== Підказка «Оберіть розмір…» (блок yx-variation-hint у functions.php: .yx-choose-msg + клас .yx-choose-hl на формі) ===== */
/* Замість жирного червоного тексту і великої рамки — плашка з іконкою; підсвічуються самі чипси, ряд злегка «струшується». */
body.single-product form.variations_form .yx-choose-msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 10px 0 16px;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #8A1C14;
	background: #FFF4F2;
	border-left: 3px solid #D0021B;
	animation: yx-msg-in .25s ease both;
}

body.single-product form.variations_form .yx-choose-msg::before {
	content: "!";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	color: #fff;
	background: #D0021B;
	border-radius: 50%;
}

body.single-product form.variations_form.yx-choose-hl .variable-items-wrapper,
body.single-product form.variations_form.yx-choose-hl select {
	outline: none !important;
	animation: yx-shake .4s ease;
}

body.single-product .summary form.variations_form.yx-choose-hl .single-product-variable-items.variable-items-wrapper .variable-item.button-variable-item:not(.selected) {
	box-shadow: 0 0 0 1px #D0021B;
}

body.single-product .summary form.variations_form.yx-choose-hl table.variations td.label label {
	color: #D0021B;
}

@keyframes yx-msg-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

@keyframes yx-shake {
	0%, 100% { transform: none; }
	25% { transform: translateX(-4px); }
	50% { transform: translateX(4px); }
	75% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: reduce) {
	body.single-product form.variations_form .yx-choose-msg,
	body.single-product form.variations_form.yx-choose-hl .variable-items-wrapper {
		animation: none;
	}
}

/* «Схожі товари»: смужка прогресу каруселі (js/product.js) і неактивні стрілки на краях */
body.single-product #carusel_poduct_related .yx-carousel-progress {
	position: relative;
	height: 2px;
	margin: 0 0 20px;
	overflow: hidden;
	background: #EAEAEA;
}

body.single-product #carusel_poduct_related .yx-carousel-progress[hidden] {
	display: none;
}

body.single-product #carusel_poduct_related .yx-carousel-progress span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: #1F2427;
	transition: transform .4s cubic-bezier(.165, .84, .44, 1), width .3s ease;
}

body.single-product #carusel_poduct_related .yx-arrow-off {
	opacity: .25;
	pointer-events: none;
	cursor: default;
}

/* ===== Наведення на кнопки покупки: кнопки зберігають свою роль (тема робила «заливку», і кнопки мінялися місцями:
   головна ставала білою, друга — темною). Тепер м'яка зміна відтінку. ===== */
body.single-product .summary button.single_add_to_cart_button.button.alt,
body.single-product .summary button.awooc-custom-order-button.button {
	box-shadow: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body.single-product .summary button.single_add_to_cart_button.button.alt:not(.disabled):hover,
body.single-product .summary button.single_add_to_cart_button.button.alt:not(.disabled):focus-visible {
	color: #fff;
	background: #000;
	border-color: #000;
}

body.single-product .summary button.awooc-custom-order-button.button:not(.disabled):hover,
body.single-product .summary button.awooc-custom-order-button.button:not(.disabled):focus-visible {
	color: #1F2427 !important;
	background: #F3F3F3 !important;
	border-color: #000 !important;
	box-shadow: inset 0 0 0 1px #000 !important;
}

/* ===== Мобайл-правки 2026-10-05 (див. catalog.css) ===== */
body.single-product section.related ul.products li.product h2.woocommerce-loop-product__title {
	padding: 0 !important;
	font-size: 15px !important;
}

@media (max-width: 767px) {
	body.single-product section.related ul.products li.product h2.woocommerce-loop-product__title {
		font-size: 14px !important;
	}

	body.single-product section.related ul.products li.product .berocket_better_labels {
		padding: 8px !important;
	}

	body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) > span {
		padding: 3px 7px !important;
	}

	body.single-product section.related .berocket_better_labels .br_alabel:has(> span > b.br-labels-css-14) > span > b {
		font-size: 10px !important;
		letter-spacing: .2px;
		white-space: nowrap;
	}
}

/* iPhone (Safari з плаваючою панеллю): fixed-елемент із bottom: 0 стоїть над панеллю браузера,
   а під ним просвічує сторінка. Продовжуємо білий фон панелі вниз за межі екрана. */
@media (max-width: 991px) {
	.yx-buybar::after {
		content: "";
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		height: 200px;
		background: #fff;
		pointer-events: none;
	}
}

/* ===== «Таблиця розмірів» (плагін ct-size-guide) =====
   Посилання плагін виводить над формою, тема ставила його position:absolute з підібраними top/bottom (style.css, кілька
   суперечливих правил) — на ПК воно висіло збоку від ціни, на телефоні наїжджало на кнопку «вгору». js/product.js
   переносить його в рядок назви атрибута (напр. «Розмір взуття»), праворуч; до переносу — приховане. */
body.single-product .summary form.cart > a.button_sg:not(.yx-sg-link) {
	visibility: hidden;
}

body.single-product .summary form.cart > a.button_sg.yx-sg-link {
	margin: 0 0 12px;
}

body.single-product .summary table.variations td.label.yx-sg-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding-right: 0;
}

body.single-product .summary a.button_sg.yx-sg-link {
	position: static !important;
	float: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	color: #1F2427;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.single-product .summary a.button_sg.yx-sg-link::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	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.6' stroke-linejoin='round'%3E%3Crect x='2' y='8' width='20' height='8' rx='1'/%3E%3Cpath d='M6 8v3M10 8v4M14 8v3M18 8v4'/%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.6' stroke-linejoin='round'%3E%3Crect x='2' y='8' width='20' height='8' rx='1'/%3E%3Cpath d='M6 8v3M10 8v4M14 8v3M18 8v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-product .summary a.button_sg.yx-sg-link:hover {
	color: #000;
	text-decoration-thickness: 2px;
}

/* Вікно з таблицею. Тема обмежувала вікно (top 140/30px) і контейнер таблиці (height: 200px на телефоні —
   видно 2 рядки, решта прокручувалась у маленькому віконці). */
.mfp-wrap:has(.ct-size-guide) {
	top: 0;
	bottom: 0;
	height: 100%;
	z-index: 100000;
}

.mfp-wrap:has(.ct-size-guide) .mfp-container {
	padding: 24px 16px;
}

.mfp-content > .ct-size-guide.sg {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	padding: 32px 32px 28px;
	background: #fff;
	text-align: left;
}

.ct-size-guide.sg .sg_title {
	margin: 0 40px 16px 0;
	font-size: 26px;
	line-height: 1.2;
	text-decoration: none;
	color: #1F2427;
}

.ct-size-guide.sg hr,
.ct-size-guide.sg .sg_content:empty {
	display: none;
}

.ct-size-guide.sg .sizeGuideTabContents {
	height: auto;
}

.ct-size-guide.sg .ct_table_container {
	height: auto !important;
	max-height: none;
	margin: 0 0 20px;
	overflow-x: auto;
	overflow-y: visible;
}

.ct-size-guide.sg .ct_table_container table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: 15px;
}

.ct-size-guide.sg .ct_table_container th,
.ct-size-guide.sg .ct_table_container td {
	height: auto;
	padding: 9px 8px !important;
	font-size: 15px !important;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	border: 0 !important;
	border-bottom: 1px solid #ECECEC !important;
}

.ct-size-guide.sg .ct_table_container th,
.ct-size-guide.sg .ct_table_container td {
	background: transparent;
}

.ct-size-guide.sg .ct_table_container tr:first-child th,
.ct-size-guide.sg .ct_table_container tr:first-child td {
	font-weight: 700;
	color: #1F2427;
	background: #F4F4F4;
	border-bottom: 2px solid #1F2427 !important;
}

/* тема: tr { height: 70px } і td { font-size: 16px !important } для всіх таблиць; плагін: смуги сірим на tr */
.ct-size-guide.sg .ct_table_container tr {
	height: auto;
	background: #fff;
}

.ct-size-guide.sg .ct_table_caption {
	margin: 0;
	font-size: 14px;
	font-style: normal;
	line-height: 1.55;
	color: #555;
}

.ct-size-guide.sg .ct_table_caption img {
	display: block;
	float: none;
	max-width: 100%;
	height: auto;
	margin: 14px auto;
}

.ct-size-guide.sg .mfp-close {
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	line-height: 36px;
	font-size: 30px;
	color: #1F2427;
	opacity: 1;
}

@media (max-width: 767px) {
	.mfp-wrap:has(.ct-size-guide) .mfp-container {
		padding: 0;
	}

	.mfp-content > .ct-size-guide.sg {
		min-height: 100vh;
		padding: 20px 16px 28px;
	}

	.ct-size-guide.sg .sg_title {
		font-size: 21px;
	}

	.ct-size-guide.sg .ct_table_container th,
	.ct-size-guide.sg .ct_table_container td {
		padding: 8px 6px !important;
		font-size: 14px !important;
	}

	.ct-size-guide.sg .mfp-close {
		position: fixed;
		top: 8px;
		right: 8px;
		background: #fff;
		border-radius: 50%;
		box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
	}
}

/* Підсвітка плагіна (ct-table-hovers): рядок і стовпець #999, клітинка під курсором синя з білим текстом — робимо м'якою. */
.ct-size-guide.sg .ct_table_container .ct-table-hover {
	color: #1F2427 !important;
	background: #F4F4F4 !important;
}

.ct-size-guide.sg .ct_table_container .ct-table-cursor {
	color: #1F2427 !important;
	background: #E2E2E2 !important;
}

body.single-product .summary a.button_sg.yx-sg-link:hover {
	background: none;
}
