

body.kh-theme.single-product .product-container { padding: 26px 0 0; }

body.kh-theme.single-product .shop-container {
	max-width: 100%;
	padding: 0;
}

body.kh-theme .product-main .row.content-row {
	max-width: var(--kh-container) !important;
	margin: 0 auto !important;
	padding: 0 24px !important;
	display: grid;
	grid-template-columns: minmax(0, 46%) minmax(0, 54%);
	gap: 48px;
	align-items: start;
}

body.kh-theme .product-footer .container,
body.kh-theme .related-products-wrapper {
	max-width: var(--kh-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

body.kh-theme .product-main .row.content-row > .col {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	flex: none !important;
}

/* Галерея */
body.kh-theme .product-gallery .product-images {
	background: linear-gradient(170deg, #f7f8fc 0%, #eef1f8 100%);
	border: 1px solid var(--kh-line);
	border-radius: 22px;
	padding: 22px;
	overflow: hidden;
}

body.kh-theme .product-gallery .woocommerce-product-gallery__image img {
	border-radius: 14px;
	max-height: 560px;
	width: auto;
	margin: 0 auto;
	object-fit: contain;
}

body.kh-theme .product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

body.kh-theme .product-gallery .flex-control-thumbs li { margin: 0; }

body.kh-theme .product-gallery .flex-control-thumbs img {
	border-radius: 10px;
	border: 1px solid var(--kh-line);
	background: #fff;
	padding: 4px;
	opacity: .75;
	cursor: pointer;
}

body.kh-theme .product-gallery .flex-control-thumbs img:hover,
body.kh-theme .product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: #c7bdf5; }

/* Правый блок */
body.kh-theme .product-info.summary { padding: 4px 0 0 !important; }

body.kh-theme .product-info .product-title,
body.kh-theme .product-info h1.product-title {
	font-family: 'Manrope', sans-serif;
	font-size: clamp(24px, 2.6vw, 36px) !important;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.03em;
	color: var(--kh-ink);
	margin: 0 0 14px;
	text-transform: none;
}

body.kh-theme .product-info .price {
	font-family: 'Manrope', sans-serif;
	font-size: clamp(30px, 3vw, 40px);
	font-weight: 800;
	color: var(--kh-ink) !important;
	line-height: 1;
	margin: 0 0 6px;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

body.kh-theme .product-info .price del {
	font-size: .55em;
	color: var(--kh-muted);
	font-weight: 500;
}

body.kh-theme .product-info .price .woocommerce-Price-currencySymbol { font-size: .72em; }

body.kh-theme .kh-product-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 12px 0 20px;
	font-size: 13px;
	color: var(--kh-muted);
}

body.kh-theme .kh-product-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

body.kh-theme .kh-product-meta__item svg { width: 15px; height: 15px; color: #16a34a; }

body.kh-theme .kh-product-meta__item--stock { color: #15803d; font-weight: 600; }

/* Характеристики */
body.kh-theme .product-short-description {
	margin: 0 0 22px;
	padding: 18px 20px;
	background: #f8f9fd;
	border: 1px solid var(--kh-line);
	border-radius: 16px;
}

body.kh-theme .product-short-description p {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px dashed #e2e6f0;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--kh-ink-2);
}

body.kh-theme .product-short-description p:last-child { border-bottom: 0; padding-bottom: 0; }
body.kh-theme .product-short-description p:first-child { padding-top: 0; }

body.kh-theme .product-short-description p br { display: none; }

/* Заказ без корзины */
body.kh-theme .share-icons,
body.kh-theme .social-icons.share-row { display: none !important; }

body.kh-theme.single-product aside.widget_custom_html { display: none !important; }

body.kh-theme .woocommerce-tabs .panel .section,
body.kh-theme .woocommerce-tabs .panel .section-content {
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
}

body.kh-theme .woocommerce-tabs .panel .section > .bg { display: none !important; }

body.kh-theme .woocommerce-tabs .panel .row {
	margin: 0 !important;
	max-width: 100% !important;
}

body.kh-theme .woocommerce-tabs .panel .col {
	padding: 0 !important;
}

body.kh-theme .product-info .price h6,
body.kh-theme .price.product-page-price h6,
body.kh-theme .price-wrapper h6 {
	text-transform: none !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	color: var(--kh-muted) !important;
	margin: 6px 0 0 !important;
	line-height: 1.4 !important;
}

/* Мобильная навигация «предыдущий/следующий товар» — убираем */
body.kh-theme .next-prev-thumbs { display: none !important; }

body.kh-theme .kh-product-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 10px;
}

body.kh-theme .kh-product-cta .kh-btn {
	flex: 1 1 220px;
	min-height: 54px;
	border-radius: 14px;
	font-size: 15.5px;
}

body.kh-theme .kh-product-cta__note {
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--kh-muted);
}

/* Форма покупки */
body.kh-theme form.cart {
	display: flex;
	align-items: stretch;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 8px !important;
}

body.kh-theme form.cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--kh-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	height: 54px;
}

body.kh-theme form.cart .quantity input.qty {
	width: 64px;
	height: 100%;
	border: 0;
	text-align: center;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--kh-ink);
	background: transparent;
	-moz-appearance: textfield;
}

body.kh-theme form.cart .quantity input.qty::-webkit-outer-spin-button,
body.kh-theme form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

body.kh-theme form.cart .button,
body.kh-theme form.cart .single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 14px;
	background: var(--kh-grad);
	color: #fff !important;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: 0 14px 30px -14px rgba(79, 70, 229, .8);
	transition: transform .18s ease, box-shadow .18s ease;
}

body.kh-theme form.cart .button:hover,
body.kh-theme form.cart .single_add_to_cart_button:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 36px -16px rgba(79, 70, 229, .85);
}

body.kh-theme .product_meta {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--kh-line);
	font-size: 13px;
	color: var(--kh-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

body.kh-theme .product_meta .tagged_as {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

body.kh-theme .product_meta .tagged_as a,
body.kh-theme .product_meta a {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	min-height: 0 !important;
	padding: 5px 12px !important;
	margin: 0 !important;
	border: 1px solid var(--kh-line) !important;
	border-radius: 999px !important;
	background: var(--kh-line-2) !important;
	color: var(--kh-ink-2) !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}

body.kh-theme .product_meta .tagged_as a:hover,
body.kh-theme .product_meta a:hover {
	background: var(--kh-brand-soft) !important;
	border-color: #ddd6fe !important;
	color: var(--kh-brand) !important;
}

/* Хлебные крошки в карточке */
body.kh-theme .product-info .breadcrumbs {
	text-transform: none;
	font-size: 12.5px;
	color: var(--kh-muted);
	margin: 0 0 16px;
	letter-spacing: 0;
}

body.kh-theme .product-info .breadcrumbs a { color: var(--kh-muted) !important; }
body.kh-theme .product-info .breadcrumbs a:hover { color: var(--kh-brand) !important; }

/* Вкладки */
body.kh-theme .product-footer { margin-top: 44px; }

body.kh-theme .woocommerce-tabs {
	border: 1px solid var(--kh-line);
	border-radius: 22px;
	background: #fff;
	overflow: hidden;
	padding: 0;
}

body.kh-theme .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 14px 18px;
	list-style: none;
	background: #f8f9fd;
	border-bottom: 1px solid var(--kh-line);
}

body.kh-theme .woocommerce-tabs ul.tabs li {
	margin: 0;
	border: 0;
	background: transparent;
	border-radius: 10px;
}

body.kh-theme .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--kh-muted) !important;
	text-transform: none;
	box-shadow: none;
	border: 0;
	background: transparent;
}

body.kh-theme .woocommerce-tabs ul.tabs li.active {
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

body.kh-theme .woocommerce-tabs ul.tabs li.active a { color: var(--kh-ink) !important; }

body.kh-theme .woocommerce-tabs .panel {
	margin: 0 !important;
	padding: 26px 28px 30px !important;
	border: 0;
	font-size: 15.5px;
	line-height: 1.72;
	color: var(--kh-ink-2);
}

body.kh-theme .woocommerce-tabs .panel h2,
body.kh-theme .woocommerce-tabs .panel h3 {
	font-family: 'Manrope', sans-serif;
	color: var(--kh-ink);
	margin: 0 0 12px;
}

body.kh-theme .woocommerce-tabs .panel h2 { font-size: 22px; }
body.kh-theme .woocommerce-tabs .panel h3 { font-size: 18px; margin-top: 22px; }
body.kh-theme .woocommerce-tabs .panel p { margin: 0 0 12px; }
body.kh-theme .woocommerce-tabs .panel ul { padding-left: 20px; }

body.kh-theme .product-info .kh-price-note,
body.kh-theme .product-info .price h6 {
	display: block;
	margin: 6px 0 0;
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--kh-muted);
	text-transform: none;
	letter-spacing: 0;
}

/* Похожие товары */
body.kh-theme .related h2,
body.kh-theme .related h3,
body.kh-theme .related-products-wrapper h2,
body.kh-theme .related-products-wrapper h3 {
	font-family: 'Manrope', sans-serif;
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 800;
	letter-spacing: -.02em;
	text-transform: none;
	color: var(--kh-ink);
	margin: 0 0 18px;
}
body.kh-theme .related.products,
body.kh-theme .related-products-wrapper {
	margin-top: 48px;
	padding-top: 8px;
}

body.kh-theme .related > h2,
body.kh-theme .related-products-wrapper > h2,
body.kh-theme .related > h3 {
	font-family: 'Manrope', sans-serif;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--kh-ink);
	margin: 0 0 20px;
}

body.kh-theme .related .row.related-products,
body.kh-theme .related .products,
body.kh-theme .related .row {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0 !important;
}

body.kh-theme .related .row > .product-small.col {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	flex: none !important;
}

/* Блоки под карточкой товара */
body.kh-theme .kh-product-extra { margin: 10px auto 40px; }

body.kh-theme .kh-extra-block {
	margin-top: 18px;
	padding: 24px 26px;
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: 20px;
}

body.kh-theme .kh-extra-block .kh-seo__h2 {
	font-family: 'Manrope', sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--kh-ink);
	margin: 0 0 14px;
}

body.kh-theme .kh-sizes__item--link {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 8px;
	background: #f8f9fd;
	border: 1px solid var(--kh-line);
	font-size: 13px;
	color: var(--kh-ink-2);
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}

body.kh-theme .kh-sizes__item--link:hover {
	background: var(--kh-brand-soft);
	border-color: #ddd6fe;
	color: var(--kh-brand);
}

body.kh-theme .kh-faq--product {
	position: static;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

body.kh-theme .kh-extra-block .kh-block-link { display: inline-block; margin-top: 12px; }

@media (max-width: 768px) {
	body.kh-theme .kh-extra-block { padding: 18px 16px; border-radius: 16px; }
	body.kh-theme .kh-extra-block .kh-seo__h2 { font-size: 18px; }
}

/* Мобильная панель покупки */
.kh-buybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 800;
	display: none;
	align-items: center;
	gap: 14px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--kh-line);
	box-shadow: 0 -10px 30px -20px rgba(15, 23, 42, .4);
}

.kh-buybar__price {
	font-family: 'Manrope', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: var(--kh-ink);
	line-height: 1;
}

.kh-buybar__price del { font-size: .6em; color: var(--kh-muted); font-weight: 500; margin-right: 4px; }

.kh-buybar__btn { flex: 1; height: 48px; border-radius: 12px; }

@media (max-width: 992px) {
	body.kh-theme .product-main .row.content-row { grid-template-columns: 1fr; gap: 24px; }
	body.kh-theme .product-gallery .product-images { padding: 14px; border-radius: 18px; }
	body.kh-theme .related .row.related-products,
	body.kh-theme .related .products,
	body.kh-theme .related .row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 768px) {
	.kh-buybar { display: none; }
	body.kh-theme .product-info .product-title { font-size: 22px !important; }
	body.kh-theme .product-info .price { font-size: 28px; }
	body.kh-theme form.cart .button,
	body.kh-theme form.cart .single_add_to_cart_button { min-height: 50px; font-size: 15px; }
	body.kh-theme form.cart .quantity { height: 50px; }
	body.kh-theme .woocommerce-tabs ul.tabs { padding: 10px; overflow-x: auto; }
	body.kh-theme .woocommerce-tabs ul.tabs li a { padding: 8px 12px; font-size: 13.5px; white-space: nowrap; }
	body.kh-theme .woocommerce-tabs .panel { padding: 18px 16px 22px !important; font-size: 14.5px; }
	body.kh-theme .related .row.related-products,
	body.kh-theme .related .products,
	body.kh-theme .related .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	body.kh-theme .product-short-description { padding: 14px 14px; }
	body.kh-theme .product-short-description p { font-size: 13.5px; }
}
