.rymia-product-page {
	--rpp-primary: #282828;
	--rpp-muted: #737373;
	--rpp-border: #dedede;
	--rpp-gallery-bg: #eef2f3;
	--rpp-button-bg: #282828;
	--rpp-button-text: #ffffff;
	--rpp-thumb-bg: #edf1f2;
	--rpp-word-transform: uppercase;
	--rpp-max: 1840px;
	--rpp-gap: 28px;
	box-sizing: border-box;
	color: var(--rpp-primary);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
	gap: clamp(36px, 3.4vw, 60px);
	margin: 0 auto;
	max-width: var(--rpp-max);
	padding: 0 clamp(16px, 3vw, 48px) 56px;
	width: 100%;
}

.rymia-product-page *,
.rymia-product-page *::before,
.rymia-product-page *::after {
	box-sizing: border-box;
}

.rpp-gallery {
	display: grid;
	gap: var(--rpp-gap);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: start;
}

.rpp-gallery__item {
	background: var(--rpp-gallery-bg);
	margin: 0;
	overflow: hidden;
	position: relative;
}

.rpp-gallery__item--hero {
	grid-column: 1 / -1;
}

.rpp-gallery__item img {
	display: block;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	object-position: center top;
	width: 100%;
}

.rpp-gallery__item:not(.rpp-gallery__item--hero) img {
	aspect-ratio: 1 / 1.08;
	min-height: 0;
}

.rpp-summary {
	min-width: 0;
}

.rpp-summary__inner {
	margin: 0 auto;
	max-width: 640px;
	padding-top: clamp(34px, 4.8vw, 68px);
	position: sticky;
	top: 24px;
}

.rpp-breadcrumbs {
	color: var(--rpp-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: 22px;
	text-transform: none;
}

.rpp-breadcrumbs a {
	color: var(--rpp-primary);
	text-decoration: none;
}

.rpp-title {
	color: var(--rpp-primary);
	font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
	font-size: 48px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.1;
	margin: 0 0 34px;
	text-transform: var(--rpp-word-transform);
}

.rpp-price {
	align-items: baseline;
	color: #000;
	display: flex;
	flex-wrap: wrap;
	font-size: 32px;
	font-weight: 500;
	gap: 8px 18px;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 8px 0 16px;
}

.rpp-price del {
	color: var(--rpp-primary);
	font-size: 22px;
	font-weight: 400;
	margin-right: 0;
	opacity: 0.45;
	order: 2;
}

.rpp-price ins {
	background: transparent;
	color: var(--rpp-primary);
	font-size: 32px;
	font-weight: 500;
	order: 1;
	text-decoration: none;
}

.rpp-installments {
	color: var(--rpp-muted);
	display: grid;
	font-size: 14px;
	line-height: 1.45;
	margin-bottom: 22px;
}

.rpp-cart {
	margin: 0 0 46px;
}

.rpp-cart__bar {
	align-items: stretch;
	display: grid;
	grid-template-columns: minmax(132px, 0.62fr) minmax(210px, 1.38fr) 54px;
	margin-top: 18px;
	min-height: 54px;
}

.rpp-quantity {
	border: 1px solid var(--rpp-primary);
	display: grid;
	grid-template-columns: 1fr 1.2fr 1fr;
	min-height: 54px;
	min-width: 0;
}

.rpp-quantity__button,
.rpp-quantity__input,
.rpp-add-to-bag,
.rpp-wishlist {
	appearance: none;
	border-radius: 0;
	font: inherit;
}

.rpp-quantity__button {
	background: #fff;
	border: 0;
	color: var(--rpp-primary);
	cursor: pointer;
	font-size: 16px;
}

.rpp-quantity__input {
	border: 0;
	color: var(--rpp-primary);
	font-size: 15px;
	text-align: center;
	width: 100%;
}

.rpp-quantity__input::-webkit-inner-spin-button,
.rpp-quantity__input::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}

.rpp-add-to-bag {
	background: var(--rpp-button-bg);
	border: 1px solid var(--rpp-button-bg);
	color: var(--rpp-button-text);
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	min-height: 54px;
	text-transform: var(--rpp-word-transform);
	transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.rpp-add-to-bag:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.rpp-add-to-bag:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.rpp-add-to-bag:active {
	transform: translateY(1px);
}

.rpp-wishlist {
	align-items: center;
	background: #fff;
	border: 0;
	color: var(--rpp-primary);
	cursor: pointer;
	display: flex;
	font-size: 34px;
	justify-content: center;
	line-height: 1;
	min-height: 54px;
}

.rpp-wishlist[aria-pressed="true"] {
	color: #b3414a;
}

.rpp-option-group {
	margin-bottom: 18px;
}

.rpp-option-label {
	color: var(--rpp-primary);
	display: block;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.rpp-color-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rpp-color-choice {
	cursor: pointer;
	display: block;
	position: relative;
}

.rpp-color-choice input {
	clip: rect(0 0 0 0);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.rpp-color-choice__image {
	align-items: center;
	background: var(--rpp-thumb-bg);
	border: 2px solid transparent;
	display: flex;
	height: 118px;
	justify-content: center;
	padding: 8px;
	width: 92px;
}

.rpp-color-choice input:checked + .rpp-color-choice__image {
	border-color: var(--rpp-primary);
}

.rpp-color-choice__image img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.rpp-color-choice__swatch {
	border: 1px solid var(--rpp-border);
	display: block;
	height: 100%;
	width: 100%;
}

.rpp-select {
	appearance: none;
	background:
		linear-gradient(45deg, transparent 50%, var(--rpp-muted) 50%) calc(100% - 28px) 50% / 7px 7px no-repeat,
		linear-gradient(135deg, var(--rpp-muted) 50%, transparent 50%) calc(100% - 23px) 50% / 7px 7px no-repeat,
		#fff;
	border: 1px solid var(--rpp-primary);
	color: var(--rpp-primary);
	font-size: 15px;
	min-height: 54px;
	padding: 10px 52px 10px 16px;
	width: 100%;
}

.rpp-panels {
	border-top: 1px solid var(--rpp-border);
	margin-top: 30px;
}

.rpp-panel {
	border-bottom: 1px solid var(--rpp-border);
}

.rpp-panel summary {
	align-items: center;
	color: var(--rpp-primary);
	cursor: pointer;
	display: flex;
	font-size: 18px;
	font-weight: 500;
	justify-content: space-between;
	letter-spacing: 0;
	list-style: none;
	padding: 20px 0;
	text-transform: uppercase;
}

.rpp-panel summary::-webkit-details-marker {
	display: none;
}

.rpp-panel[open] summary span {
	transform: rotate(45deg);
}

.rpp-panel__content {
	color: var(--rpp-muted);
	font-size: 15px;
	line-height: 1.7;
	padding: 0 0 24px;
}

.rpp-panel__content p {
	margin: 0 0 12px;
}

.rpp-panel__content p:last-child {
	margin-bottom: 0;
}

.rpp-related-products {
	box-sizing: border-box;
	color: var(--rpp-primary);
	margin: 0 auto;
	max-width: var(--rpp-max);
	padding: 18px clamp(16px, 3vw, 48px) 72px;
	width: 100%;
}

.rpp-related-products *,
.rpp-related-products *::before,
.rpp-related-products *::after {
	box-sizing: border-box;
}

.rpp-related-products__inner {
	border-top: 1px solid var(--rpp-border);
	padding-top: 38px;
}

.rpp-related-products__title {
	color: var(--rpp-primary);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 0 24px;
	text-transform: var(--rpp-word-transform);
}

.rpp-related-products__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rpp-related-card {
	color: var(--rpp-primary);
	display: grid;
	gap: 12px;
	min-width: 0;
	text-decoration: none;
}

.rpp-related-card__image {
	align-items: center;
	aspect-ratio: 3 / 4;
	background: var(--rpp-gallery-bg);
	display: flex;
	justify-content: center;
	overflow: hidden;
	width: 100%;
}

.rpp-related-card__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 180ms ease;
	width: 100%;
}

.rpp-related-card:hover .rpp-related-card__image img {
	transform: scale(1.03);
}

.rpp-related-card__placeholder {
	color: var(--rpp-muted);
	font-size: 14px;
	line-height: 1.4;
	padding: 18px;
	text-align: center;
}

.rpp-related-card__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: var(--rpp-word-transform);
}

.rpp-related-card__price {
	color: var(--rpp-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.rpp-related-card__price del {
	margin-right: 6px;
	opacity: 0.72;
}

.rpp-related-card__price ins {
	background: transparent;
	color: var(--rpp-primary);
	text-decoration: none;
}

.rymia-product-page--empty {
	display: block;
	padding: 32px;
}

@media (max-width: 1024px) {
	.rymia-product-page {
		grid-template-columns: 1fr;
		padding-top: 0;
	}

	.rpp-summary__inner {
		max-width: none;
		padding-top: 12px;
		position: static;
	}

	.rpp-related-products__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.rymia-product-page {
		gap: 24px;
		padding-left: 0;
		padding-right: 0;
	}

	.rpp-gallery {
		gap: 12px;
		grid-template-columns: 1fr;
	}

	.rpp-gallery__item img {
		min-height: 380px;
	}

	.rpp-gallery__item:not(.rpp-gallery__item--hero) img {
		aspect-ratio: 4 / 5;
	}

	.rpp-summary {
		padding: 0 16px 36px;
	}

	.rpp-title {
		font-size: 32px;
	}

	.rpp-cart__bar {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 54px;
		min-height: 54px;
	}

	.rpp-add-to-bag {
		font-size: 15px;
	}

	.rpp-wishlist {
		font-size: 32px;
	}

	.rpp-color-choice__image {
		height: 124px;
		width: 96px;
	}

	.rpp-related-products {
		padding: 8px 16px 48px;
	}

	.rpp-related-products__inner {
		padding-top: 28px;
	}

	.rpp-related-products__title {
		font-size: 20px;
	}

	.rpp-related-products__grid {
		gap: 18px 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
