/* -------------------------------------------------------------------------
   Карточка товара: две колонки
-------------------------------------------------------------------------- */

/* WooCommerce: хлебные крошки */
.woocommerce-breadcrumb {
	margin-top: 1em !important;
}

@media (min-width: 768px) {
	.single-product div.product.enclave-product-layout,
	.single-product div.product.ep-product {
		display: grid;
		grid-template-columns: 1fr 1fr;
		border-bottom: var(--b);
		flex-wrap: unset;
		gap: 0;
		align-items: start;
	}
	.single-product div.product.enclave-product-layout .ep-gallery-wrap,
	.single-product div.product.ep-product .ep-gallery-wrap {
		min-width: 0;
	}
	.single-product div.product.enclave-product-layout .ep-gallery-wrap .woocommerce-product-gallery,
	.single-product div.product.ep-product .ep-gallery-wrap .woocommerce-product-gallery {
		flex: unset;
		max-width: none;
		min-width: 0;
		width: 100% !important;
		float: none !important;
	}
	.single-product div.product.enclave-product-layout .summary.entry-summary,
	.single-product div.product.ep-product .summary.entry-summary {
		flex: unset;
		max-width: none;
		min-width: 0;
		overflow-wrap: break-word;
		word-break: break-word;
		padding: 32px;
		overflow: hidden;
	}
}

.single-product .product_meta {
	font-size: 0.9rem;
	color: #555;
	margin-top: 1rem;
}

.single-product .product_meta .meta_row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #e8e8e8;
}

.single-product .product_meta .meta_label {
	padding: 18px 0 6px 0;
    color: #817d7d;
    white-space: nowrap;
    flex-shrink: 0;
}

.single-product .product_meta .meta_value {
	text-align: right;
	text-transform: uppercase;
	color: #3a3838;
}

.single-product .product_meta a {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.2em;
}

.single-product .product_meta .enclave-meta-arrow {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	opacity: 0.5;
	transition: opacity 0.15s;
}

.single-product .product_meta a:hover .enclave-meta-arrow {
	opacity: 1;
}

.enclave-copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0 0 0 0.3em;
	cursor: pointer;
	color: #3a3838;
	opacity: 0.45;
	transition: opacity 0.15s;
	vertical-align: middle;
	line-height: 1;
}

.enclave-copy-btn svg {
	width: 14px;
	height: 14px;
	color: #3a3838;
}

.enclave-copy-btn:hover {
	opacity: 1;
}

.enclave-copy-btn .enclave-copy-btn__check {
	display: none;
}

.enclave-copy-btn--copied svg:first-of-type {
	display: none;
}

.enclave-copy-btn--copied .enclave-copy-btn__check {
	display: inline-block;
	color: #2a9d5c;
}

.enclave-product-brand {
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
	color: #555;
}
.enclave-product-brand a {
	color: inherit;
}

/* Метки товара — поверх галереи (как .pdp-badge-el в прототипе) */
.ep-product__tags {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}
.ep-product__tag {
	display: inline-block;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--w);
	background: var(--k);
	padding: 4px 9px;
	border-radius: 0;
	text-decoration: none;
	line-height: 1.4;
	font-family: var(--enclave-body-font);
	transition: background 0.1s, color 0.1s;
}
.ep-product__tag.y {
	background: var(--a);
	color: var(--k);
}
.ep-product__tag:hover {
	background: var(--k);
	color: var(--w);
}
.ep-product__tag.y:hover {
	background: var(--a);
	color: var(--k);
}

/* Блок «в корзину» сразу после краткого описания, до таблицы атрибутов */
.single-product .enclave-variation-panel-before-attrs {
	margin-bottom: 1.25rem;
}

.single-product .enclave-cart-btn-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	text-align: center;
}

.single-product .enclave-cart-btn-sep {
	opacity: 0.85;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.single-product .enclave-cart-btn-size {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	text-transform: uppercase;
}

/* Кнопка "В корзину" — стиль из 07-product-cart.css (brutalist, Bebas Neue) */

.single-product .enclave-cart-btn-sep {
	opacity: 0.85;
	font-weight: 400;
	letter-spacing: 0.02em;
	margin: 0 12px;
	height: 12px;
	display: inline-flex;
	align-items: center;
}

.single-product .enclave-cart-btn-sep::before {
	content: '';
	display: block;
	width: 1px;
	height: 12px;
	background: #3C3C3C;
	opacity: 0.3;
}

/* Скрыть количество на странице товара */
.single-product div.product form.cart .quantity {
	display: none !important;
}

/* Кнопки размеров */
.single-product .single_variation_wrap .woocommerce-variation {
	display: none !important;
}

.single-product form.variations_form table.variations {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	border: 0 !important;
}

/* Убрать линии между строками атрибутов */
.single-product form.variations_form table.variations tbody,
.single-product form.variations_form table.variations tbody tr,
.single-product form.variations_form table.variations tbody tr th,
.single-product form.variations_form table.variations tbody tr td {
	border: 0 !important;
	border-top: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.single-product form.variations_form hr {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	visibility: hidden !important;
}

.single-product .variations tr.enclave-attr-row-label th.label {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	white-space: normal;
	padding-right: 0;
	padding-bottom: 0.1rem;
	border: 0 !important;
}

.single-product .variations tr.enclave-attr-row-buttons td.value {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0;
	padding-top: 0;
	border-top: 0 !important;
}

.single-product .variations tr.enclave-attr-row-label,
.single-product .variations tr.enclave-attr-row-label th,
.single-product .variations tr.enclave-attr-row-label td {
	border: 0 !important;
}

.single-product form.variations_form table.variations th.label {
	width: 38%;
	max-width: 38%;
	min-width: 7.5rem;
	white-space: nowrap;
	padding-right: 0.75rem;
}

.single-product form.variations_form table.variations td.value {
	width: 62%;
	max-width: 62%;
}

.single-product .variations tr.enclave-size-row-label th.label {
	padding-top: 0.15rem;
}

/* Для размера заголовок не показываем. */
.single-product .variations tr.enclave-size-row-label {
	display: none;
}

.single-product .variations tr.enclave-size-row-buttons td.value {
	padding-top: 0;
}

.enclave-size-row .value {
	width: 100%;
}
.enclave-attribute-buttons,
.enclave-size-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.35rem;
}
.enclave-variation-btn,
.enclave-size-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 5.5rem;
	padding: 0.5rem 0.75rem;
	border: 2px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	background: #fafafa;
	transition: border-color 0.15s, background 0.15s;
}

/* Табы систем размеров (RU, UK, US, ANY...) */
.enclave-size-tabs {
	display: flex;
	gap: 1.25rem;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 0.5rem;
}
.enclave-size-tab {
	position: relative;
	padding: 0.25rem 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	color: #666;
	transition: color 0.15s;
}
.enclave-size-tab:hover {
	color: #333;
}
.enclave-size-tab--active {
	color: #111;
}
.enclave-size-tab--active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.5rem;
	height: 2px;
	background: #111;
}

/* Размерные кнопки фиксируем — строго 88x39 px */
body.single-product .enclave-size-btn,
body.single-product .enclave-variation-btn {
	width: 88px !important;
	min-width: auto !important;
	height: 40px !important;
	min-height: auto !important;
	padding: 0;
	box-sizing: border-box;
	font-size: 11px !important;
	line-height: 14px !important;
}
.enclave-variation-btn:hover,
.enclave-variation-btn:focus,
.enclave-size-btn:hover,
.enclave-size-btn:focus {
	border-color: #333;
	background: #fff;
}
.enclave-variation-btn.enclave-variation-btn--current,
.enclave-size-btn.enclave-size-btn--current,
.enclave-variation-btn.enclave-variation-btn--current:hover,
.enclave-variation-btn.enclave-variation-btn--current:focus,
.enclave-size-btn.enclave-size-btn--current:hover,
.enclave-size-btn.enclave-size-btn--current:focus {
	border-color: #1A1A1A;
	background: #1A1A1A;
	color: #fff;
}
.enclave-variation-btn.enclave-variation-btn--current .enclave-variation-label,
.enclave-size-btn.enclave-size-btn--current .enclave-size-label {
	color: #fff !important;
}
.enclave-variation-btn .enclave-variation-label,
.enclave-size-btn .enclave-size-label {
	font-weight: 400;
	font-size: 0.95rem;
}

body.single-product .enclave-size-btn .enclave-size-label {
	font-size: 11px;
}
.enclave-variation-btn.enclave-variation-btn--disabled {
	opacity: 0.45;
	border-color: #d0d0d0;
	background: #f3f3f3;
	color: #777;
	pointer-events: none;
	cursor: not-allowed;
}
body.single-product .enclave-size-btn .enclave-size-price {
	font-size: 9px;
	color: #111;
	opacity: 0.9;
	margin-top: 0.15rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.2rem;
	line-height: 1.1;
	white-space: nowrap;
	width: 100%;
}

/* Нет цены для превью размера */
body.single-product .enclave-size-btn .enclave-size-price .enclave-size-price-unavailable {
	display: block;
	width: 100%;
	font-size: 8px;
	font-weight: 500;
	line-height: 1.2;
	color: #666;
	text-align: center;
	white-space: normal;
	opacity: 1;
}

.enclave-size-btn.enclave-size-btn--current .enclave-size-price .enclave-size-price-unavailable {
	color: rgba(255, 255, 255, 0.88);
}
.enclave-size-btn.enclave-size-btn--current .enclave-size-price {
	color: #fff;
	opacity: 1;
}
.enclave-size-btn.enclave-size-btn--current .enclave-size-price,
.enclave-size-btn.enclave-size-btn--current .enclave-size-price .price,
.enclave-size-btn.enclave-size-btn--current .enclave-size-price .woocommerce-Price-amount,
.enclave-size-btn.enclave-size-btn--current .enclave-size-price .woocommerce-Price-amount.amount,
.enclave-size-btn.enclave-size-btn--current .enclave-size-price bdi,
.enclave-size-btn.enclave-size-btn--current .enclave-size-price .woocommerce-Price-currencySymbol {
	color: rgba(255, 255, 255, 0.75);
}

.enclave-one-size {
	margin: 1rem 0;
}
.enclave-one-size .enclave-size-btn {
	pointer-events: none;
	cursor: default;
}

table.variations .enclave-sr-only-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 640px) {
	.single-product form.variations_form table.variations th.label {
		width: auto;
		min-width: 0;
		white-space: normal;
	}
}

/* Рекомендации */
.enclave-recommendations {
	padding: 2rem 0 3rem;
	border-top: 1px solid #eee;
	margin-top: 2rem;
	clear: both;
}
.single-product div.product.enclave-product-layout .enclave-recommendations {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
}
.enclave-recommendations__title {
	font-size: 1.35rem;
	margin: 0 0 1rem;
}

/* Архив бренда */
.tax-product_brand .enclave-brand-archive__title {
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

.enclave-variation-label.enclave-size-label {
	line-height: 1.2;
}
