/* ==========================================================================
   RoseSkinCo single product page.
   ========================================================================== */

/* --- Page frame -------------------------------------------------------- */

.single-product .site-main,
.single-product #primary {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--rsk-max);
	margin: 0 auto;
	padding: 0 var(--rsk-gutter);
}

.single-product .woocommerce-breadcrumb {
	margin: 20px 0 16px;
	font-size: 0.8125rem;
	color: var(--rsk-muted);
}

.single-product .woocommerce-breadcrumb a {
	color: var(--rsk-muted);
	text-decoration: none;
}

.single-product .woocommerce-breadcrumb a:hover { color: var(--rsk-ink); text-decoration: underline; }

.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	margin-bottom: 0;
}

@media (min-width: 1000px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 56px;
		align-items: start;
	}
}

@media (min-width: 1200px) {
	.single-product div.product { gap: 80px; }
}

/* Everything after the buy box spans the full width and bleeds to the edges. */
.single-product div.product > :not(.woocommerce-product-gallery):not(.summary) {
	grid-column: 1 / -1;
}

.rsk-product-sections,
.rsk-psection {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* 100vw includes the scrollbar; clip the few pixels that overhang. "clip"
   (unlike "hidden") keeps the sticky header and gallery working. */
body.single-product { overflow-x: clip; }

/* --- Gallery ----------------------------------------------------------- */

.woocommerce div.product div.images.woocommerce-product-gallery {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images > .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	background: var(--rsk-surface);
	border: var(--rsk-rule);
	border-radius: var(--rsk-radius);
}

.woocommerce div.product div.images img {
	display: block;
	width: 100%;
	height: auto;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	width: auto;
	float: none;
	margin: 0;
	list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	overflow: hidden;
	background: var(--rsk-surface);
	border: 1.5px solid transparent;
	border-radius: var(--rsk-radius);
	opacity: 0.75;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; }

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
	border-color: var(--rsk-ink);
	opacity: 1;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 40px;
	height: 40px;
	background: var(--rsk-bg);
	border: 1.5px solid var(--rsk-ink);
	border-radius: 50%;
}

/* --- Buy box ----------------------------------------------------------- */

.woocommerce div.product div.summary {
	float: none;
	width: auto;
	margin: 0;
}

.rsk-buy__head { margin-bottom: 14px; }

.rsk-buy__badge {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 12px 4px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rsk-ink);
	background: var(--rsk-blush);
	border-radius: var(--rsk-radius-pill);
}

.woocommerce div.product .product_title.rsk-buy__title {
	margin: 0;
	font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
	font-weight: 800;
	line-height: 1.02;
}

.rsk-buy__subtitle {
	margin: 8px 0 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--rsk-muted);
}

.rsk-buy__rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--rsk-ink);
}

.rsk-buy__rating .star-rating { margin: 0; color: var(--rsk-ink); }

.woocommerce div.product p.price.rsk-buy__price {
	margin: 0 0 18px;
	font-size: 1.625rem;
	font-weight: 800;
	color: var(--rsk-ink);
}

.woocommerce div.product p.price.rsk-buy__price del {
	margin-right: 8px;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--rsk-muted);
	opacity: 1;
}

.woocommerce div.product p.price.rsk-buy__price ins { text-decoration: none; }

.rsk-buy__highlights {
	display: grid;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.rsk-buy__highlights li {
	position: relative;
	padding-left: 30px;
	font-weight: 600;
	line-height: 1.45;
}

.rsk-buy__highlights li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 20px;
	height: 20px;
	background: var(--rsk-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.1-4.1 1.4-1.4 2.7 2.7 5.7-5.7 1.4 1.4-7.1 7.1z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.1-4.1 1.4-1.4 2.7 2.7 5.7-5.7 1.4 1.4-7.1 7.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Options and add to cart */

.woocommerce div.product form.cart {
	margin: 0 0 16px;
	padding-top: 20px;
	border-top: 1px solid var(--rsk-field-line);
}

.woocommerce div.product form.cart .variations {
	width: 100%;
	margin-bottom: 16px;
	border: 0;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	display: block;
	padding: 0;
	text-align: left;
	border: 0;
	background: none;
}

.woocommerce div.product form.cart .variations th label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.woocommerce div.product form.cart .variations select {
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	font-family: var(--rsk-font);
	font-size: 1rem;
	font-weight: 600;
	color: var(--rsk-ink);
	background-color: var(--rsk-bg);
	border: 1.5px solid var(--rsk-ink);
	border-radius: var(--rsk-radius);
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.8125rem;
	color: var(--rsk-muted);
}

.woocommerce div.product form.cart .woocommerce-variation-price { margin-bottom: 12px; }

.woocommerce div.product form.cart:not(.variations_form),
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

.woocommerce div.product form.cart:not(.variations_form) > :not(.quantity):not(.single_add_to_cart_button) {
	flex: 1 1 100%;
}

.woocommerce div.product form.cart div.quantity {
	float: none;
	margin: 0;
}

.woocommerce div.product form.cart .quantity .qty {
	width: 76px;
	height: 56px;
	padding: 0 8px;
	font-family: var(--rsk-font);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	color: var(--rsk-ink);
	background: var(--rsk-bg);
	border: 1.5px solid var(--rsk-ink);
	border-radius: var(--rsk-radius);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	flex: 1;
	float: none;
	min-height: 56px;
	font-size: 0.9375rem;
}

.woocommerce div.product form.cart .single_add_to_cart_button.loading {
	opacity: 0.7;
	cursor: progress;
}

.woocommerce div.product form.cart .single_add_to_cart_button.loading::after { display: none; }

.woocommerce div.product .stock {
	margin: 0 0 10px;
	font-weight: 600;
	color: var(--rsk-muted);
}

.woocommerce div.product .stock.out-of-stock { color: var(--rsk-ink); font-weight: 800; }

/* Bundle contents (WPC Product Bundles) */

.woocommerce div.product .woosb-wrap { margin: 0 0 18px; }

.woocommerce div.product .woosb-products {
	border: 1px solid var(--rsk-field-line);
	border-radius: var(--rsk-radius);
	overflow: hidden;
}

.woocommerce div.product .woosb-products .woosb-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--rsk-field-line);
}

.woocommerce div.product .woosb-products .woosb-product:last-child { border-bottom: 0; }

.woocommerce div.product .woosb-products .woosb-thumb img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	background: var(--rsk-surface);
	border-radius: var(--rsk-radius);
}

.woocommerce div.product .woosb-products .woosb-title { flex: 1; font-weight: 600; line-height: 1.3; }
.woocommerce div.product .woosb-products .woosb-price { font-weight: 600; color: var(--rsk-muted); }

/* Certification, trust row */

.rsk-buy__cert {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.rsk-buy__cert-icon {
	width: 22px;
	height: 22px;
	background: var(--rsk-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4.5 5.5v6c0 4.6 3.1 8.5 7.5 10 4.4-1.5 7.5-5.4 7.5-10v-6L12 2.5z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4.5 5.5v6c0 4.6 3.1 8.5 7.5 10 4.4-1.5 7.5-5.4 7.5-10v-6L12 2.5z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rsk-buy__trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	background: var(--rsk-surface);
	border: var(--rsk-rule);
	border-radius: var(--rsk-radius);
}

.rsk-buy__trust li {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 14px 8px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.rsk-buy__trust li + li { border-left: 1px solid var(--rsk-blush); }

.rsk-buy__trust-icon {
	width: 26px;
	height: 26px;
	background: var(--rsk-ink);
	-webkit-mask-position: center;
	        mask-position: center;
	-webkit-mask-size: contain;
	        mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	        mask-repeat: no-repeat;
}

.rsk-buy__trust-icon--truck {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9h-11zM13.5 9.5h4l3 3v3h-7z'/%3E%3Ccircle cx='6.5' cy='17' r='1.8'/%3E%3Ccircle cx='17' cy='17' r='1.8'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9h-11zM13.5 9.5h4l3 3v3h-7z'/%3E%3Ccircle cx='6.5' cy='17' r='1.8'/%3E%3Ccircle cx='17' cy='17' r='1.8'/%3E%3C/svg%3E");
}

.rsk-buy__trust-icon--shield {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4.5 5.5v6c0 4.6 3.1 8.5 7.5 10 4.4-1.5 7.5-5.4 7.5-10v-6L12 2.5z'/%3E%3Cpath d='M9 12h6M12 9v6'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4.5 5.5v6c0 4.6 3.1 8.5 7.5 10 4.4-1.5 7.5-5.4 7.5-10v-6L12 2.5z'/%3E%3Cpath d='M9 12h6M12 9v6'/%3E%3C/svg%3E");
}

.rsk-buy__trust-icon--heart {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.3-9-8.6C1.6 8.3 3.6 4.8 7 4.8c2 0 3.4 1 5 2.8 1.6-1.8 3-2.8 5-2.8 3.4 0 5.4 3.5 4 6.6C19 15.7 12 20 12 20z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.3-9-8.6C1.6 8.3 3.6 4.8 7 4.8c2 0 3.4 1 5 2.8 1.6-1.8 3-2.8 5-2.8 3.4 0 5.4 3.5 4 6.6C19 15.7 12 20 12 20z'/%3E%3C/svg%3E");
}

/* Description */

.rsk-buy__desc { margin: 0 0 20px; }

.rsk-buy__desc-body {
	font-size: 1rem;
	line-height: 1.7;
}

.rsk-buy__desc-body p { margin: 0 0 12px; }
.rsk-buy__desc-body strong,
.rsk-buy__desc-body b { font-weight: 700; }

.rsk-buy__desc.is-collapsed .rsk-buy__desc-body {
	max-height: 230px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(var(--rsk-ink) 60%, transparent);
	        mask-image: linear-gradient(var(--rsk-ink) 60%, transparent);
}

.rsk-buy__more {
	padding: 4px 0;
	font-family: var(--rsk-font);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rsk-ink);
	background: none;
	border: 0;
	border-bottom: 2px solid var(--rsk-accent);
	border-radius: 0;
	cursor: pointer;
}

.rsk-buy__more:hover,
.rsk-buy__more:focus { color: var(--rsk-ink); background: none; }

/* Accordions */

.rsk-buy__accordions { border-top: var(--rsk-rule); }

.rsk-acc { border-bottom: 1px solid var(--rsk-field-line); }

.rsk-acc__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.rsk-acc__title::-webkit-details-marker { display: none; }
.rsk-acc__title::marker { content: ""; }
.rsk-acc__title .rsk-icon { width: 20px; height: 20px; transition: transform 0.2s ease; }
.rsk-acc[open] .rsk-acc__title .rsk-icon { transform: rotate(180deg); }

.rsk-acc__body {
	padding: 0 0 16px;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.rsk-acc__body ul { margin: 0; padding-left: 18px; }
.rsk-acc__body p { margin: 0 0 10px; }

/* --- Sections below the buy box --------------------------------------- */

.rsk-psection {
	padding: 72px 0;
	border-top: var(--rsk-rule);
}

.rsk-product-sections { margin-top: 64px; border-top: var(--rsk-rule); }
.rsk-product-sections + .rsk-psection { margin-top: 0; }
.single-product div.product > .rsk-psection:first-of-type { margin-top: 64px; }

.rsk-psection__title {
	margin: 0 0 28px;
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
	font-weight: 800;
	line-height: 1.08;
	text-align: center;
}

.rsk-more { background: var(--rsk-surface); }

.rsk-footnotes {
	margin: 0;
	padding: 24px 0 8px;
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--rsk-muted);
}

/* Reviews: see assets/css/reviews.css */

/* --- Sticky add-to-cart bar ------------------------------------------- */

.rsk-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 35;
	background: var(--rsk-bg);
	border-top: var(--rsk-rule);
	transform: translateY(110%);
	transition: transform 0.3s var(--rsk-ease);
}

.rsk-sticky.is-visible { transform: translateY(0); }
.rsk-sticky[hidden] { display: none; }

.rsk-sticky__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.rsk-sticky__thumb img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	background: var(--rsk-surface);
	border-radius: var(--rsk-radius);
}

.rsk-sticky__text {
	display: grid;
	flex: 1;
	min-width: 0;
	line-height: 1.2;
}

.rsk-sticky__title {
	overflow: hidden;
	font-weight: 800;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rsk-sticky__price { font-size: 0.875rem; font-weight: 600; color: var(--rsk-muted); }
.rsk-sticky__price del { margin-right: 4px; }
.rsk-sticky__price ins { text-decoration: none; color: var(--rsk-ink); }

.rsk-sticky__btn { flex-shrink: 0; }

@media (max-width: 749px) {
	.rsk-sticky__thumb { display: none; }
	.rsk-sticky__btn { padding-left: 18px; padding-right: 18px; }
}

/* Notices */

.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-error,
.single-product .woocommerce-notices-wrapper .woocommerce-info {
	margin: 16px 0;
	color: var(--rsk-ink);
	background: var(--rsk-surface);
	border-top: 0;
	border-left: 4px solid var(--rsk-ink);
	border-radius: var(--rsk-radius);
}

.single-product .woocommerce-notices-wrapper .woocommerce-message::before { color: var(--rsk-ink); }
