/* =========================================================
   Product Hero — right column info panel
   Figma ref: node 272:52853 "info"
   ========================================================= */

.product-hero-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-inline: 16px;
}

/* ---- Concern / benefits line ---- */

.product-hero-info__benefits {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5;
	color: #383e44;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* ---- Title group ---- */

.product-hero-info__title-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.product-hero-info__line {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--product-line-color, #4c4d4f);
	text-transform: uppercase;
}

.product-hero-info__name {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.55;
	color: #383e44;
	text-transform: uppercase;
}

/* ---- Tag (bordered box) ---- */

.product-hero-info__tag {
	display: inline-block;
	padding: 9px 13px;
	border: 1px solid var(--product-line-color, #4c4d4f);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--product-line-color, #4c4d4f);
	align-self: flex-start;
}

/* ---- Description ---- */

.product-hero-info__description {
	font-size: 1rem;
	line-height: 1.5;
	color: #4c4d4f;
}

.product-hero-info__description p {
	margin-block: 0 0.5em;
}

.product-hero-info__description p:last-child {
	margin-bottom: 0;
}

.product-hero-info__description strong,
.product-hero-info__description b {
	font-weight: 700;
}

/* ---- Format / size ---- */

.product-hero-info__format {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: #4c4d4f;
}

/* ---- Star rating (matches product-card continuous fill) ---- */

.product-hero-info__rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.product-hero-info__stars {
	position: relative;
	display: inline-flex;
	line-height: 1;
}

.product-hero-info__stars-empty,
.product-hero-info__stars-filled {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0;
	line-height: 1;
}

.product-hero-info__stars svg {
	width: 14px;
	height: 14px;
	display: block;
	flex-shrink: 0;
}

.product-hero-info__stars-empty {
	color: #d8d8d8;
}

.product-hero-info__stars-filled {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #383e44;
}

.product-hero-info__score {
	font-size: 0.875rem;
	color: #4b5563;
	line-height: 1;
}

/* ---- Display price (catalog-only) ---- */

.product-hero-info__price {
	margin: 4px 0 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	color: #383e44;
	letter-spacing: 0.01em;
}

/* ---- Купи + price (reveals shop partners) ---- */

.product-hero-info__buy {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100%;
	max-width: 22rem;
	margin: 4px 0 0;
	padding: 1.05rem 1.5rem;
	border: 1px solid #1a2340;
	border-radius: 0.5rem;
	background: #1a2340;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
}

.product-hero-info__buy::before {
	content: "";
	position: absolute;
	top: -1px;
	right: -1px;
	bottom: -1px;
	left: -1px;
	background: #1a2340;
	transition: transform 0.25s ease;
	transform: translateX(0);
}

.product-hero-info__buy-label {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.65em;
	transition: color 0.25s ease;
}

.product-hero-info__buy-sep {
	display: block;
	flex-shrink: 0;
	width: 1.5px;
	height: 1.2em;
	background: currentColor;
	transform: translateY(1px);
}

@media (hover: hover) {
	.product-hero-info__buy:hover::before {
		transform: translateX(-100%);
	}

	.product-hero-info__buy:hover {
		background: #fff;
		color: #1a2340;
	}

	.product-hero-info__buy:hover .product-hero-info__buy-label {
		color: #1a2340;
	}
}

.product-hero-info__buy:focus-visible::before {
	transform: translateX(-100%);
}

.product-hero-info__buy:focus-visible {
	background: #fff;
	color: #1a2340;
	outline: 2px solid #1a2340;
	outline-offset: 2px;
}

.product-hero-info__buy:focus-visible .product-hero-info__buy-label {
	color: #1a2340;
}

/* ---- Shop partner logos ---- */

.product-hero-info__partners {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	margin: 1.75rem 0;
	max-width: 22rem;
}

.product-hero-info__partners[hidden] {
	display: none;
}

.product-hero-info__partners-label {
	margin: 0;
	color: #4c4d4f;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
}

.product-hero-info__partners-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: 1.5rem 1.75rem;
}

.product-hero-info__partner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 4.5rem;
	text-decoration: none;
}

.product-hero-info__partner-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 4.5rem;
	object-fit: contain;
}

@media (hover: hover) {
	.product-hero-info__partner--link:hover {
		opacity: 0.75;
	}
}

.product-hero-info__partner--link:focus-visible {
	opacity: 0.75;
	outline: 2px solid #1a2340;
	outline-offset: 4px;
}

@media (min-width: 480px) {
	.product-hero-info__partners-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---- Variant note (Disponible en… / Наличен и в…) ---- */

.product-hero-info__variant-note {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	color: #4c4d4f;
}

/* ---- Variants (linked swatches, up to 6 per row) ---- */

.product-hero-info__variants {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: min(100%, calc(6 * 5.125rem + 5 * 0.75rem));
	box-sizing: border-box;
}

.product-hero-info__variant {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	flex: 0 0 8.75rem;
	width: 8.75rem;
	text-decoration: none;
	color: inherit;
}

.product-hero-info__variant--link {
	position: relative;
	z-index: 1;
	cursor: pointer;
}

.product-hero-info__variant--link:focus-visible {
	outline: 2px solid var(--color-text, #1a1a1a);
	outline-offset: 4px;
}

.product-hero-info__variant-img-wrap {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 0;
	overflow: hidden;
	background: #e8e8e8;
	flex-shrink: 0;
}

.product-hero-info__variants--circle .product-hero-info__variant-img-wrap {
	border-radius: 50%;
}

.product-hero-info__variant-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
	pointer-events: none;
}

.product-hero-info__variant-label {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.2;
	color: #4c4d4f;
	text-align: center;
	cursor: inherit;
}

@media (hover: hover) {
	.product-hero-info__variant--link:hover .product-hero-info__variant-img {
		transform: scale(1.04);
	}
}

@media (min-width: 640px) {
	.product-hero-info__variants {
		gap: 0.75rem;
		max-width: min(100%, calc(6 * 5.125rem + 5 * 0.75rem));
	}

	.product-hero-info__variant-img-wrap {
		width: 100%;
	}

	.product-hero-info__variant {
		flex: 0 0 calc((100% - 3.75rem) / 6);
		width: calc((100% - 3.75rem) / 6);
	}
}

/* Mid widths: use full row width (desktop column layout starts at 1024) */
@media (min-width: 638px) and (max-width: 1023px) {
	.product-hero-info__variants {
		max-width: 100%;
		width: 100%;
		justify-content: flex-start;
	}

	.product-hero-info__variant {
		flex: 0 0 calc((100% - 3.75rem) / 6);
		width: calc((100% - 3.75rem) / 6);
	}
}

@media (max-width: 1023px) {
	.product-hero-info {
		display: contents;
	}

	.product-hero-info__title-group {
		order: 1;
		width: 100%;
		align-items: center;
		gap: 0;
		padding-bottom: 5px;
		text-align: center;
	}

	.product-hero-info__line {
		font-size: 1.25rem;
		line-height: 1.4;
		text-align: center;
		width: 100%;
	}

	.product-hero-info__name {
		font-size: 1.25rem;
		font-weight: 400;
		line-height: 1.4;
		color: #4c4d4f;
		text-align: center;
		width: 100%;
	}

	.product-hero-info__benefits {
		order: 3;
		font-size: 1rem;
		font-weight: 900;
		line-height: 1.5;
		text-transform: none;
		letter-spacing: 0;
	}

	.product-hero-info__tag {
		order: 4;
		margin-top: 8px;
	}

	.product-hero-info__description {
		order: 5;
		margin-top: 24px;
	}

	.product-hero-info__format {
		order: 6;
		margin-top: 16px;
	}

	.product-hero-info__price {
		order: 7;
	}

	.product-hero-info__buy {
		order: 7;
		max-width: none;
	}

	.product-hero-info__partners {
		order: 8;
		max-width: none;
		margin: 2rem auto;
	}

	.product-hero-info__variant-note {
		order: 9;
		margin-top: 0.5rem;
	}

	.product-hero-info__variants {
		order: 10;
		margin-top: 0.75rem;
		padding-bottom: 8px;
	}
}
