/* Product page (Figma: product-desktop 1440, product-mobile 390). Info, volume chips, "О воде" and the delivery bar.
   The photo slider is components/gallery.css. */
.product {
	display: flex;
	justify-content: center;
	background: var(--color-white);
}

/* Figma desktop: the text column starts at x=240, the photo box ends at x=1364, gap 40 */
.product__body {
	display: grid;
	grid-template-columns: minmax(0, 544fr) minmax(0, 540fr);
	align-items: end;
	column-gap: 40px;
	width: 100%;
	max-width: 1440px;
	padding: 0 76px 0 240px;
}

.product__info {
	max-width: 544px;
	min-width: 0;
}

.product__gallery {
	min-width: 0;
	max-width: 540px;
	width: 100%;
}

.product-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	color: #000;
}

.product-info__title {
	max-width: 479px;
	margin: 0;
	font-size: 32px;
	font-weight: 500;
	line-height: 32px;
	letter-spacing: -0.005em;
	color: #000;
}

.product-info__main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.product-info__desc {
	margin: 0;
	font-size: 18px;
	line-height: 1.56;
	color: #000;
	opacity: 0.8;
}

.product-info__note {
	margin: 0;
	font-size: 15px;
	font-style: italic;
	font-weight: 300;
	line-height: 1.43;
	color: #000;
	opacity: 0.8;
}

.product-info__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	width: 100%;
}

/* Figma: the order button on this page is 234x57 (the shared lg button is 276x67; its layers are in percents) */
.product-info .product-info__order.button--lg {
	width: 234px;
	height: 57px;
}

.product-info .product-info__order .button__label {
	font-size: 18px;
	line-height: 1.38;
}

.product-info__cost {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	line-height: 1.43;
	color: #999;
}

.product-info__cost-icon {
	flex: none;
}

/* Volume and bottle picker */
.product-picker {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #3c3c43;
}

.product-picker__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

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

.product-picker__label {
	flex: none;
	font-size: 16px;
	line-height: 1.5;
	color: #3c3c43;
}

.product-picker__chips,
.product-picker__bottles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-picker__bottles {
	flex-wrap: nowrap;
}

.product-picker__text {
	font-size: 16px;
	line-height: 1.5;
	color: #000;
	opacity: 0.8;
}

.product-picker__value {
	min-width: 0;
}

.vchip {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 38px;
	padding: 4px 12px;
	border-radius: 100px;
	background: var(--color-soft-blue);
	color: var(--color-blue);
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: -0.005em;
	transition: background-color var(--dur-fast, 160ms) ease, color var(--dur-fast, 160ms) ease, transform var(--dur-fast, 160ms) var(--ease-out, ease-out);
}

.vchip__num {
	font-family: var(--font-numbers);
	font-weight: 400;
}

.vchip__unit {
	font-weight: 500;
}

.vchip[aria-current] {
	background: var(--color-blue);
	color: var(--color-white);
}

.vchip:focus {
	outline: none;
}

.vchip:focus-visible,
.bchip:focus-visible {
	outline: 3px solid rgba(0, 106, 200, 0.35);
	outline-offset: 2px;
}

@media (hover: hover) {
	.vchip:not([aria-current]):hover {
		background: #d4e9fc;
	}
}

.vchip:active {
	transform: scale(0.96);
}

.bchip {
	display: flex;
	align-items: center;
	height: 28px;
	padding: 2px 12px;
	border: 2px solid #f4f9fd;
	border-radius: 10px;
	background: var(--color-white);
	font-size: 16px;
	line-height: 1.5;
	color: #000;
	white-space: nowrap;
	transition: border-color var(--dur-fast, 160ms) ease, transform var(--dur-fast, 160ms) var(--ease-out, ease-out);
}

.bchip[aria-current] {
	border-color: var(--color-blue);
}

@media (hover: hover) {
	.bchip:not([aria-current]):hover {
		border-color: rgba(0, 106, 200, 0.4);
	}
}

.bchip:active {
	transform: scale(0.97);
}

/* Variant switch: short crossfade of the description, bottle line and photo (assets/js/product.js) */
.product [data-desc],
.product [data-bottle-value],
.product__gallery-swap {
	transition: opacity 0.18s ease;
}

.product.is-swapping [data-desc],
.product.is-swapping [data-bottle-value],
.product.is-swapping .product__gallery-swap {
	opacity: 0;
}

.product.is-swapping .product__gallery-swap {
	transition-duration: 0.16s;
}

/* "О воде" block (Figma: container 1440, padding 60 120, title 316 + points 596) */
.water {
	display: flex;
	justify-content: center;
	padding: 60px 40px 0;
	background: var(--color-white);
}

.water__body {
	display: flex;
	align-items: center;
	gap: 48px;
	width: 100%;
	max-width: 1200px;
	padding: 0 120px;
}

.water__intro {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 24px;
	width: 316px;
	min-height: 179px;
}

/* Figma: "О воде" sits in a 38px line pulled 8px into the brand line (30px) */
.water__title {
	display: flex;
	flex-direction: column;
	margin: 1px 0 0;
	font-weight: 500;
	color: #000;
}

.water__eyebrow {
	margin-bottom: -8px;
	font-size: 20px;
	line-height: 38px;
}

.water__brand {
	font-size: 24px;
	line-height: 30px;
	letter-spacing: -0.005em;
}

.water__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.43;
	color: #000;
	opacity: 0.64;
}

.water__points {
	display: grid;
	grid-template-columns: repeat(2, 298.5px);
	gap: 16px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.water__point {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.water__icon {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	transition: transform 0.35s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (hover: hover) {
	.water__point:hover .water__icon {
		transform: scale(1.05);
	}
}

.water__point-text {
	display: flex;
	align-items: center;
	min-height: 56px;
	font-size: 15px;
	line-height: 1.43;
	color: rgba(0, 0, 0, 0.8);
}

.product-delivery {
	display: flex;
	justify-content: center;
	padding: 60px 24px;
	background: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
	.product [data-desc],
	.product [data-bottle-value],
	.product__gallery-swap,
	.vchip,
	.bchip,
	.water__icon {
		transition: none;
	}

	.vchip:active,
	.bchip:active,
	.water__point:hover .water__icon {
		transform: none;
	}
}

/* Medium widths: the paddings shrink with the viewport, the two columns share what is left */
@media (max-width: 1439px) {
	.product__body {
		padding: 0 clamp(32px, 5.28vw, 76px) 0 clamp(32px, 16.67vw, 240px);
	}

	.water__body {
		padding: 0 clamp(0px, calc(100vw - 1200px), 120px);
	}
}

@media (max-width: 1199px) {
	.product-picker__bottles {
		flex-wrap: wrap;
	}

	.water {
		padding-inline: 32px;
	}

	.water__body {
		gap: 40px;
		padding: 0;
	}

	.water__points {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1099px) {
	.product__body {
		column-gap: 32px;
		padding: 24px 32px 0;
	}

	.product-info__title {
		font-size: 28px;
		line-height: 30px;
	}
}

/* Stacked: photo on top, text below */
@media (max-width: 899px) {
	.product__body {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;
		padding: 24px 32px 0;
	}

	.product__gallery {
		order: -1;
		max-width: 480px;
	}

	.product__info {
		max-width: 544px;
		width: 100%;
	}

	.water__body {
		flex-direction: column;
		align-items: flex-start;
		max-width: 544px;
		gap: 24px;
	}

	.water__intro {
		width: 100%;
		min-height: 0;
	}

	.water__points {
		width: 100%;
	}
}

/* Mobile (Figma 390): photo 260 in a 342 column, texts 13/16, chips 28 and 24 high */
@media (max-width: 767px) {
	.product__body {
		gap: 20px;
		padding: 20px 24px 0;
	}

	.product__gallery {
		--gallery-size: 260px;
		max-width: none;
	}

	.product-info {
		gap: 16px;
	}

	.product-info__title {
		max-width: none;
		font-size: 24px;
		font-weight: 600;
		line-height: 26px;
	}

	.product-info__main {
		gap: 16px;
	}

	.product-picker {
		gap: 8px;
	}

	.product-picker__row {
		gap: 8px;
	}

	.product-picker__label,
	.product-picker__text {
		font-size: 13px;
		line-height: 1.43;
	}

	.product-picker__chips {
		gap: 4px;
	}

	.product-picker__bottles {
		gap: 8px;
	}

	.vchip {
		height: 28px;
		padding: 0 10px;
		font-size: 18px;
		line-height: 1.56;
	}

	.vchip__unit {
		font-weight: 400;
	}

	.bchip {
		height: 24px;
		padding: 2px 12px;
		border-width: 1.5px;
		font-size: 13px;
		line-height: 1.43;
	}

	.product-info__desc {
		font-size: 16px;
		line-height: 1.5;
	}

	.product-info__note {
		font-size: 13px;
		line-height: 1.43;
	}

	.product-info__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.product-info .product-info__order.button--lg {
		width: 100%;
	}

	.product-info__cost {
		justify-content: center;
		font-size: 13px;
	}

	.water {
		padding: 40px 24px 0;
	}

	.water__body {
		align-items: stretch;
		gap: 20px;
		padding: 0;
	}

	.water__intro {
		padding-left: 16px;
	}

	.water__points {
		grid-template-columns: minmax(0, 298.5px);
		gap: 16px;
		justify-content: center;
	}

	.product-delivery {
		padding: 40px 24px;
	}
}
