.product-main-info {
	container: product-main-info / inline-size;
}

/* region images */
.product-images {
	overflow: hidden;
	user-select: none;
}
.product-image {
	display: block;
	width:100%;
	height: auto;
}

.product-images-gallery:not(.tns-slider) .product-image-wrapper:not(:first-child) {
	display: none;
}
.product-images .tns-liveregion {
	display: none;
}
.product-images .tns-controls-custom {
	position: absolute;
	pointer-events: none;
	inset:0;
	height: auto;
}
.product-images .tns-control-custom {
	position: absolute;
	top:50%;
	margin-top: calc(var(--tns-control-height) / -2);
}

.product-images .tns-control-custom[aria-disabled="true"] {
	display: none;
}
.product-images-arrow_left {
	left:5px;
}
.product-images-arrow_right {
	right:5px;
}

.product-images .tns-controls-custom button:before {
	content: '';
	display: block;
	position: relative;
	width: 90%;
	aspect-ratio: 1 / 1;
	border-radius: var(--border-radius);
}
/* endregion */

.product-title {
	font-size: 2.2857rem;
	font-weight: 700;
	margin-bottom: 0.625em;
}

/* region badges */
.product-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap:0.3em 0.5em;
}
.product-badge {
	border-radius: 0.5em;
	padding: 0.35em 0.71em;
	line-height: 1.1;
	font-weight: 800;
}
.product-badge svg {
	fill: currentColor;
	height: 1.2em;
	position: absolute;
	top:50%;
	margin-top: -0.6em;
	left:0;
}
.product-badge__with-svg {
	padding-left: 1.5em;
}
.product-badge_new {
	background: var(--notice-message-bg);
	color: var(--notice-message-color);
}
.product-badge_discount {
	background: var(--theme-green-light);
	color:var(--theme-green);
	display: flex;
	gap:0.5em;
	flex-wrap: wrap;
	align-items: baseline;
}
/* endregion */

/* region offer */
.product-offer {
	display: flex;
	gap:1em;
}

.product-price {
	font-size: 1.5714rem;
	font-weight: bold;
	flex-grow: 1;
	display: flex;
	align-items: center;
}
.product-price-old {
	text-decoration: line-through;
	color: var(--text-color2);
}
.product-price-discount-badge {
	background: var(--theme-green-light);
	color:var(--theme-green);
	font-weight: 800;
	font-size: 0.9em;
	line-height: 1.1;
	padding: 0.45em 0.5em 0.4em;
	border-radius: 1em;
}
.product-price-container {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap:0.5em 1em;
}
.product-price-old-wrapper {
	font-size: 0.8em;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap:0.5em 0.5em;
}


@container (width <= 420px) {
	.product-offer {
		flex-direction: column;
	}
	.product-offer:not(:first-child) {
		margin-top: 2em;
	}
	.product-add-to-cart {
		width: 100%;
	}
}

@container (width > 420px) {
	.product-offer {
		margin-top: 1em;
	}
	.product-price {
		background: var(--bg-main-darken5);
		border-radius: var(--border-radius);
		padding: 0.5em 1em;
		flex-grow: 1;
	}
}
/* endregion */

/* region stores */
.product-stores {
	margin-top: 2em;
	font-size: clamp(1rem, 3cqw, 1.07rem);
	padding-left: 3em;
}
.product-stores__icon {
	position: absolute;
	top:0;
	left:0;
	width: 2em;
	fill: hsl(from var(--bg-main) h s calc(l - 20));
}
.product-stores-title {
	font-weight: 600;
	margin-bottom: 0.5em;
	font-size: 1.07em;
}
.product-stores-list {
	display: flex;
	flex-wrap: wrap;
	gap:1em 2em;
}
/* endregion */

/* region characteristics */
.product-characteristics {
	font-size: clamp(1rem, 3.6cqw, 1.25rem);
	max-width: 100%;
	margin-top: 2em;
}
.product-characteristics th {
	text-align: left;
	color:var(--text-color2);
}

@container (max-width:299px) {
	.product-characteristics,
	.product-characteristics tbody,
	.product-characteristics tr,
	.product-characteristics td,
	.product-characteristics th {
		display: block;
		width: 100%;
	}
	.product-characteristics th {
		font-weight: 600;
	}
	.product-characteristics th:after {
		content: ':';
	}
	.product-characteristics tr {
		margin-top: 0.5em;
	}
}

@container (min-width:300px) {
	.product-characteristics th,
	.product-characteristics td {
		padding-top: 0.35em;
		padding-bottom: 0.35em;
		vertical-align: bottom;
	}
	.product-characteristics th:after,
	.product-characteristics td:before {
		content: '';
		display: block;
		position: absolute;
		bottom:0.45em;
		right: 0;
		border-bottom: 1px dashed var(--bg-main-darken10);
	}
	.product-characteristics th:after {
		left:2em;
	}
	.product-characteristics td:before {
		left:0;
	}
	.product-characteristics th > span,
	.product-characteristics td > span {
		background: var(--bg-main);
		z-index: 1;
	}
	.product-characteristics th > span {
		padding-right: 0.1em;
	}
	.product-characteristics th {
		font-weight: normal;
		padding-right: 1em;
	}
	.product-characteristics td {
		text-align: right;
	}
}
/* endregion */


.product-about {
	font-size: clamp(1rem, 3cqw, 1.14rem);
	margin-top: 2em;
}


@media all and (max-width: 839px) {
	main {
		margin-bottom: clamp(50px,10vw,100px);
	}
	.product-main.container {
		width: 100%;
	}
	.product-main-info {
		width: calc(100% - var(--container-offset-h) * 2);
		margin-left: auto;
		margin-right: auto;
	}
	.product-title {
		margin-top: 1em;
	}
	.product-add-to-cart {
		display: none;
	}
}

@media all and (min-width: 840px) {
	.product-main {
		display: flex;
		align-items: flex-start;
		gap:0 clamp(30px, 7.6vw, 100px);
	}
	.product-images {
		flex-shrink: 0;
		width: 50%;
		margin-bottom: 40px;
	}
	.product-main-info {
		flex-grow: 1;
	}
	.product-image,
	.product-images {
		border-radius: var(--border-radius);
	}
	.product-about-wrapper {
		margin-bottom: clamp(50px,10vw,100px);
	}
	
	.product-add-to-cart {
		white-space: nowrap;
		display: flex;
		flex-shrink: 0;
	}
	.product-add-to-cart .btn__content {
		gap:0.8em;
		width: 100%;
		height: 100%;
	}
	.product-add-to-cart:not(:hover, .in-cart) .icon-cart {
		opacity: 0.5;
	}
	.product-add-to-cart:not(.in-cart) .product-add-to-cart__in-cart,
	.product-add-to-cart.in-cart .product-add-to-cart__std {
		display: none;
	}
}

@media all and (min-width: 840px) and (max-width: 1099px) {
	.product-main:not(:has(.product-about)) .product-main-info {
		margin-bottom: clamp(50px,10vw,100px);
	}
}

@media all and (max-width: 1099px) {
	.product-main .product-about {display: none}
}

@media all and (min-width: 1100px) {
	.product-main:has(.product-about) + .product-about-wrapper {display: none}
	.product-main-info {
		margin-bottom: clamp(50px,10vw,100px);
	}
}