/**
 * Single Product — visual design + UX refinement.
 *
 * Premium VPure PDP language: Arvo display headings, Lato body, red as the
 * only typographic accent, generous editorial spacing, native WooCommerce
 * functionality untouched. Loaded on is_product() only.
 */

/* ============================================
   Page scaffold + container
   ============================================ */

.single-product-page {
	padding-block: 20px 72px;
	background: var(--color-background);
}

.single-product-page > .container {
	max-width: 1240px;
	padding-inline: 24px;
}

/* ============================================
   Breadcrumb: quiet navigation
   ============================================ */

.single-product-page .shop-breadcrumb {
	margin-bottom: 28px;
}

.single-product-page .shop-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.single-product-page .shop-breadcrumb__link {
	color: var(--color-text-muted);
	text-decoration: none;
}

.single-product-page .shop-breadcrumb__link:hover {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-product-page .shop-breadcrumb__item--sep {
	color: var(--color-border);
}

.single-product-page .shop-breadcrumb__item--current {
	color: var(--color-text);
	font-weight: 700;
	max-width: 320px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ============================================
   Hero: 55% gallery / 45% summary
   ============================================ */

.sp-hero {
	display: grid;
	grid-template-columns: 1.22fr 1fr;
	gap: 48px;
	align-items: start;
	margin-bottom: 76px;
}

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

.sp-hero__gallery {
	position: relative;
	min-width: 0;
}

.sp-hero__gallery .woocommerce-product-gallery {
	max-width: 100%;
}

/* Main stage: soft showcase panel, never crops the product. */
.sp-hero__gallery .woocommerce-product-gallery__image {
	background: var(--color-surface);
	border-radius: 16px;
	padding: 32px;
	overflow: hidden;
}

.sp-hero__gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 0;
	background: transparent;
	transition: transform var(--transition-normal);
}

.sp-hero__gallery .woocommerce-product-gallery__image:hover img {
	transform: scale(1.015);
}

/* Zoom control: dedicated top-right slot, clear of the sale badge.
   WooCommerce renders a raw emoji here; replace it with a crisp SVG mark
   so the control matches the Phosphor icon language on every device. */
.sp-hero__gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 16px;
	right: 16px;
	left: auto;
	bottom: auto;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--color-text);
	text-indent: 0;
	font-size: 0;
}

.sp-hero__gallery .woocommerce-product-gallery__trigger::before {
	display: none;
}

.sp-hero__gallery .woocommerce-product-gallery__trigger span {
	display: none;
}

.sp-hero__gallery .woocommerce-product-gallery__trigger::after {
	content: "";
	width: 18px;
	height: 18px;
	background: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='none' stroke='%23333333' stroke-width='20' stroke-linecap='round'%3E%3Ccircle cx='112' cy='112' r='72'/%3E%3Cline x1='168' y1='168' x2='216' y2='216'/%3E%3C/svg%3E");
}

/* Sale badge: top-left, own space, never overlapped. */
.sp-hero__gallery .onsale {
	position: absolute;
	top: 16px;
	left: 16px;
	right: auto;
	z-index: 2;
	margin: 0;
	padding: 7px 14px;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
}

/* Thumbnails: compact strip. */
.sp-hero__gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.sp-hero__gallery .flex-control-thumbs li {
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid transparent;
	transition: border-color var(--transition-fast);
}

.sp-hero__gallery .flex-control-thumbs li:hover {
	border-color: var(--color-border);
}

.sp-hero__gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 8px;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity var(--transition-fast);
}

.sp-hero__gallery .flex-control-thumbs li.flex-active img,
.sp-hero__gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
}

.sp-hero__gallery .flex-control-thumbs li.flex-active {
	border-color: var(--color-primary);
}

/* ---------- Summary ---------- */

.sp-hero__summary {
	min-width: 0;
	padding-top: 4px;
}

/* Category eyebrow: the one small red accent. */
.sp-eyebrow {
	margin: 0 0 10px;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sp-eyebrow a {
	color: var(--color-primary);
	text-decoration: none;
}

.sp-eyebrow a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sp-hero__summary .product_title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 3vw, 2.875rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.005em;
	text-align: left;
	margin: 0 0 12px;
	color: var(--color-text);
}

.sp-hero__summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

.sp-hero__summary .woocommerce-product-rating:empty {
	display: none;
}

.sp-hero__summary .woocommerce-product-rating .star-rating {
	color: var(--color-primary);
}

.sp-hero__summary .woocommerce-product-rating a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.sp-hero__summary .woocommerce-product-rating a:hover {
	color: var(--color-primary);
}

/* Pricing: red selling price + card-language MRP. */
.sp-hero__summary p.price,
.sp-hero__summary span.price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 4px;
	font-family: var(--font-body);
	font-size: clamp(1.75rem, 2.5vw, 2.125rem);
	font-weight: 700;
	color: var(--color-primary);
	margin: 0 0 16px;
}

.sp-hero__summary .price del {
	position: relative;
	display: inline-block;
	font-size: 0.58em;
	font-weight: 400;
	color: var(--color-text-muted);
	text-decoration: none;
	order: 2;
}

.sp-hero__summary .price del::after {
	content: "";
	position: absolute;
	left: -3px;
	right: -3px;
	top: 50%;
	height: 1px;
	background: currentColor;
	opacity: 0.85;
	transform: rotate(-8deg);
	transform-origin: center;
	pointer-events: none;
}

.sp-hero__summary .price ins {
	text-decoration: none;
	order: 1;
}

/* Short introduction. */
.sp-hero__summary .woocommerce-product-details__short-description {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--color-text);
	max-width: 60ch;
	margin-bottom: 24px;
}

.sp-hero__summary .woocommerce-product-details__short-description p {
	margin: 0 0 0.75em;
}

.sp-hero__summary .woocommerce-product-details__short-description:empty {
	display: none;
}

/* ---------- Quantity + Add to Cart ---------- */

.sp-hero__summary form.cart {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin: 0 0 20px;
}

.sp-hero__summary form.cart.variations_form {
	flex-wrap: wrap;
}

/* Premium stepped quantity control. */
.sp-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background: var(--color-white);
	overflow: hidden;
}

.sp-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-height: 52px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
	transition:
		background-color var(--transition-fast),
		color var(--transition-fast);
}

.sp-qty__btn svg {
	width: 16px;
	height: 16px;
}

.sp-qty__btn:hover {
	background: var(--color-surface);
	color: var(--color-primary);
}

.sp-qty__btn:active {
	transform: scale(0.94);
}

.sp-qty__btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

.sp-qty .quantity {
	display: flex;
}

.sp-qty .quantity .qty {
	width: 48px;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-text);
	-moz-appearance: textfield;
	appearance: textfield;
}

.sp-qty .quantity .qty::-webkit-outer-spin-button,
.sp-qty .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sp-qty .quantity .qty:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

/* Dominant CTA. */
.sp-hero__summary .single_add_to_cart_button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 1 1 auto;
	min-height: 54px;
	padding: 12px 32px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	transition:
		background-color var(--transition-fast),
		transform var(--transition-fast),
		box-shadow var(--transition-fast);
}

.sp-hero__summary .single_add_to_cart_button svg {
	width: 20px;
	height: 20px;
	flex: none;
	transition:
		opacity var(--transition-fast),
		transform var(--transition-fast);
}

.sp-hero__summary .single_add_to_cart_button:hover {
	background: var(--color-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.sp-hero__summary .single_add_to_cart_button:active {
	transform: translateY(0) scale(0.99);
}

.sp-hero__summary .single_add_to_cart_button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.sp-hero__summary .single_add_to_cart_button:disabled,
.sp-hero__summary .single_add_to_cart_button.disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Button states (JS-enhanced; native submit still works without JS). */
.sp-hero__summary .single_add_to_cart_button.is-loading {
	pointer-events: none;
}

.sp-hero__summary .single_add_to_cart_button.is-loading svg {
	opacity: 0;
	transform: scale(0.6);
}

.sp-hero__summary .single_add_to_cart_button.is-loading::after {
	content: "";
	position: absolute;
	left: 28px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	animation: vpure-sp-spin 0.7s linear infinite;
}

@keyframes vpure-sp-spin {
	to {
		transform: rotate(360deg);
	}
}

.sp-hero__summary .single_add_to_cart_button.is-success {
	background: var(--color-accent-green, #72a032);
}

/* Stock + meta: quiet information block. */
.sp-hero__summary .stock {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 4px;
}

.sp-hero__summary .stock.in-stock {
	color: var(--color-accent-green);
}

.sp-hero__summary .stock.out-of-stock {
	color: var(--color-primary);
}

.sp-hero__summary .product_meta {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 0.8125rem;
	line-height: 2;
	color: var(--color-text-muted);
}

.sp-hero__summary .product_meta .sku_wrapper,
.sp-hero__summary .product_meta .posted_in,
.sp-hero__summary .product_meta .tagged_as {
	display: flex;
	gap: 24px;
}

/*.sp-hero__summary .product_meta .sku_wrapper > :first-child,*/
/*.sp-hero__summary .product_meta .posted_in > :first-child,*/
/*.sp-hero__summary .product_meta .tagged_as > :first-child {*/
/*	flex: 0 0 130px;*/
/*}*/

.sp-hero__summary .product_meta .sku,
.sp-hero__summary .product_meta a {
	color: var(--color-text);
	font-weight: 700;
	text-decoration: none;
}

.sp-hero__summary .product_meta a:hover {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Variations (native WooCommerce markup). */
.sp-hero__summary .variations {
	width: 100%;
	margin-bottom: 4px;
}

.sp-hero__summary .variations th,
.sp-hero__summary .variations td {
	padding: 6px 8px 6px 0;
	vertical-align: middle;
	text-align: left;
}

.sp-hero__summary .variations .label label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 700;
}

.sp-hero__summary .variations select {
	width: 100%;
	max-width: 340px;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-text);
}

.sp-hero__summary .reset_variations {
	font-size: 0.8125rem;
}

/* Reassurance strip: subtle, icon-led. */
.sp-reassurance {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.sp-reassurance__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--color-text-muted);
}

.sp-reassurance__icon {
	display: inline-flex;
	color: var(--color-text);
}

.sp-reassurance__icon svg {
	width: 20px;
	height: 20px;
}

/* ============================================
   Benefits row + information tabs
   ============================================ */

.sp-benefits,
.sp-info {
	margin-bottom: 84px;
}

.sp-benefits__title,
.related.products > h2,
.upsells.products > h2 {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	text-align: left;
	margin: 0 0 24px;
	color: var(--color-text);
}

/* Tab bodies reuse the same prose/spec foundations. */
.sp-tab-body {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--color-text);
}

.sp-tab-body--prose {
	max-width: 76ch;
}

.sp-tab-body--prose p,
.sp-tab-body--prose ul,
.sp-tab-body--prose ol {
	margin: 0 0 1em;
}

.sp-tab-body--prose h1,
.sp-tab-body--prose h2,
.sp-tab-body--prose h3,
.sp-tab-body--prose h4 {
	font-family: var(--font-display);
}

.sp-tab-list {
	margin: 0;
	padding-left: 1.25em;
}

.sp-tab-body--specs .shop_table.woocommerce-product-attributes {
	max-width: 720px;
}

.shop_table.woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.shop_table.woocommerce-product-attributes th,
.shop_table.woocommerce-product-attributes td {
	padding: 10px 16px 10px 0;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

.shop_table.woocommerce-product-attributes th {
	font-weight: 400;
	color: var(--color-text-muted);
}

.shop_table.woocommerce-product-attributes td {
	font-weight: 700;
	color: var(--color-text);
}

/* ---------- Tabs (desktop) / accordions (mobile) ---------- */

.sp-tabs__bar {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid var(--color-border);
	margin-bottom: 32px;
	overflow-x: auto;
	scrollbar-width: none;
}

.sp-tabs__bar::-webkit-scrollbar {
	display: none;
}

.sp-tabs__tab {
	position: relative;
	padding: 12px 20px 14px;
	border: 0;
	background: transparent;
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.sp-tabs__tab:hover {
	color: var(--color-text);
}

.sp-tabs__tab:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
	border-radius: 4px;
}

.sp-tabs__tab.is-active {
	color: var(--color-text);
}

.sp-tabs__tab.is-active::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: -2px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--color-primary);
}

.sp-tabs__panel[hidden] {
	display: none;
}

/* Mobile accordion headers live inside each panel, desktop-hidden. */
.sp-tabs__acc-head {
	display: none;
}

.sp-tabs__acc-body {
	display: block;
}

/* ---------- Reviews (native WooCommerce) ---------- */

.sp-reviews__summary {
	margin-bottom: 28px;
}

.sp-reviews__score {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.sp-reviews__number {
	font-family: var(--font-display);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-text);
}

.sp-reviews__score .sp-stars__bg svg,
.sp-reviews__score .sp-stars__fg svg {
	width: 22px;
	height: 22px;
}

.sp-reviews__count {
	width: 100%;
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

.sp-reviews__empty {
	font-size: 0.9375rem;
	margin: 0;
}

.sp-reviews #reviews .woocommerce-Reviews-title {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 16px;
}

.sp-reviews ol.commentlist {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sp-reviews ol.commentlist li.review {
	padding: 20px 0;
	border-top: 1px solid var(--color-border);
}

.sp-reviews ol.commentlist li.review:last-child {
	border-bottom: 1px solid var(--color-border);
}

.sp-reviews .comment_container {
	display: flex;
	gap: 16px;
}

.sp-reviews img.avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex: none;
}

.sp-reviews .comment-text {
	flex: 1;
	min-width: 0;
}

.sp-reviews .comment-text .star-rating {
	color: var(--color-primary);
	margin-bottom: 6px;
}

.sp-reviews .comment-text .meta {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-bottom: 8px;
}

.sp-reviews .comment-text .meta strong {
	color: var(--color-text);
}

.sp-reviews .comment-text .description {
	font-size: 0.9375rem;
	line-height: 1.7;
}

.sp-reviews .comment-text .description p:last-child {
	margin-bottom: 0;
}

/* Review form. */
.sp-reviews #respond {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 2px solid var(--color-border);
}

.sp-reviews #reply-title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	display: block;
	margin-bottom: 16px;
}

.sp-reviews .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.sp-reviews .comment-form > p {
	margin: 0;
}

.sp-reviews .comment-form .comment-notes,
.sp-reviews .comment-form .comment-form-rating,
.sp-reviews .comment-form .comment-form-comment,
.sp-reviews .comment-form .comment-form-cookies-consent,
.sp-reviews .comment-form .form-submit {
	grid-column: 1 / -1;
}

.sp-reviews .comment-form label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	margin-bottom: 6px;
}

.sp-reviews .comment-form input[type="text"],
.sp-reviews .comment-form input[type="email"],
.sp-reviews .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background: var(--color-white);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-text);
}

.sp-reviews .comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

/* Rating input: Phosphor stars (WooCommerce's star font CSS is not loaded
   by this theme, so the text links get data-URI star faces instead).
   Native .selected/.active classes from WC's own script drive the fill. */
.sp-reviews .comment-form .stars {
	display: inline-flex;
	gap: 6px;
	margin: 0;
	font-size: 0;
}

.sp-reviews .comment-form .stars span {
	display: inline-flex;
	gap: 6px;
}

.sp-reviews .comment-form .stars a {
	display: inline-block;
	width: 28px;
	height: 28px;
	overflow: hidden;
	text-indent: -999em;
	text-decoration: none;
	background: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23e5e5e5'%3E%3Cpath d='M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z'/%3E%3C/svg%3E");
}

.sp-reviews .comment-form .stars:hover a,
.sp-reviews .comment-form .stars.selected a {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23D31E25'%3E%3Cpath d='M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z'/%3E%3C/svg%3E");
}

.sp-reviews .comment-form .stars a:hover ~ a,
.sp-reviews .comment-form .stars.selected a.active ~ a {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23e5e5e5'%3E%3Cpath d='M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z'/%3E%3C/svg%3E");
}

.sp-reviews .comment-form .stars a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.sp-reviews .comment-form .form-submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 36px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color var(--transition-fast),
		transform var(--transition-fast);
}

.sp-reviews .comment-form .form-submit input[type="submit"]:hover {
	background: var(--color-primary-dark);
	transform: translateY(-1px);
}

.sp-reviews .comment-form .form-submit input[type="submit"]:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}
.sp-benefits__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-benefits__item {
	padding: 20px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
}

.sp-benefits__item-title {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.sp-benefits__item-text {
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--color-text-muted);
	margin: 0;
}

/* FAQ: clean custom accordions. */
.sp-faq__list {
	display: flex;
	flex-direction: column;
	max-width: 820px;
	border-top: 1px solid var(--color-border);
}

.sp-faq__item {
	border-bottom: 1px solid var(--color-border);
}

.sp-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 4px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.9375rem;
	cursor: pointer;
	list-style: none;
}

.sp-faq__question::-webkit-details-marker {
	display: none;
}

.sp-faq__question::marker {
	content: "";
}

.sp-faq__question:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.sp-faq__icon {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--color-surface);
	color: var(--color-text);
}

.sp-faq__icon svg {
	width: 16px;
	height: 16px;
}

.sp-faq__icon-minus {
	display: none;
}

.sp-faq__item[open] .sp-faq__icon-plus {
	display: none;
}

.sp-faq__item[open] .sp-faq__icon-minus {
	display: inline-flex;
}

.sp-faq__item[open] .sp-faq__icon {
	background: var(--color-primary);
	color: var(--color-white);
}

.sp-faq__answer {
	padding: 0 4px 20px;
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--color-text-muted);
	max-width: 70ch;
}

/* ============================================
   Related + upsells (global product card grid)
   ============================================ */

.related.products,
.upsells.products {
	margin-bottom: 0;
}

.related.products ul.products,
.upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.related.products ul.products li,
.upsells.products ul.products li {
	min-width: 0;
}

.related.products ul.products li .product-card,
.upsells.products ul.products li .product-card {
	height: 100%;
}

/* Canonical PDP price (variable products): lowest variation price at
   load, selected variation price after choice. ONE visible price only.
   WooCommerce's own variation price block stays in the DOM for its logic
   but is never shown — the canonical container presents the same data. */
.sp-hero__summary .vp-product-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 4px;
	font-family: var(--font-body);
	font-size: clamp(1.75rem, 2.5vw, 2.125rem);
	font-weight: 700;
	color: var(--color-primary);
	margin: 0 0 16px;
}

.sp-hero__summary .vp-product-price del {
	position: relative;
	display: inline-block;
	font-size: 0.58em;
	font-weight: 400;
	color: var(--color-text-muted);
	text-decoration: none;
	order: 2;
}

.sp-hero__summary .vp-product-price del::after {
	content: "";
	position: absolute;
	left: -3px;
	right: -3px;
	top: 50%;
	height: 1px;
	background: currentColor;
	opacity: 0.85;
	transform: rotate(-8deg);
	transform-origin: center;
	pointer-events: none;
}

.sp-hero__summary .vp-product-price ins {
	text-decoration: none;
	order: 1;
}

.sp-hero__summary .woocommerce-variation-price {
	display: none !important;
}

.sp-hero__summary .woocommerce-variation-price .price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 4px;
	font-family: var(--font-body);
	font-size: clamp(1.75rem, 2.5vw, 2.125rem);
	font-weight: 700;
	color: var(--color-primary);
	margin: 0 0 8px;
}

.sp-hero__summary .woocommerce-variation-price .price del {
	position: relative;
	display: inline-block;
	font-size: 0.58em;
	font-weight: 400;
	color: var(--color-text-muted);
	text-decoration: none;
}

.sp-hero__summary .woocommerce-variation-price .price del::after {
	content: "";
	position: absolute;
	left: -3px;
	right: -3px;
	top: 50%;
	height: 1px;
	background: currentColor;
	opacity: 0.85;
	transform: rotate(-8deg);
	transform-origin: center;
	pointer-events: none;
}

.sp-hero__summary .woocommerce-variation-price .price ins {
	text-decoration: none;
}

.sp-hero__summary .woocommerce-variation-availability .stock {
	margin-bottom: 8px;
}

/* ---------- Variation pills (progressive enhancement over selects) ---------- */

.sp-hero__summary table.variations.is-enhanced {
	display: none;
}

.sp-var {
	margin: 0 0 16px;
}

.sp-var__label {
	margin: 0 0 10px;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.sp-var__label strong {
	color: var(--color-text);
}

.sp-var__options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sp-var__btn {
	min-width: 64px;
	padding: 11px 18px;
	border: 1px solid var(--color-border);
	border-radius: 11px;
	background: var(--color-white);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition:
		border-color var(--transition-fast),
		color var(--transition-fast),
		background-color var(--transition-fast),
		transform var(--transition-fast);
}

.sp-var__btn:hover {
	border-color: var(--color-text);
}

.sp-var__btn:active {
	transform: scale(0.97);
}

.sp-var__btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.sp-var__btn[aria-pressed="true"] {
	border-color: var(--color-primary);
	border-width: 2px;
	padding: 10px 17px;
	color: var(--color-primary);
	background: #fff5f5;
}

.sp-var__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* ---------- Buy Now (secondary CTA) ---------- */

.sp-buy-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin: 0 0 4px;
	padding: 12px 32px;
	border: 2px solid var(--color-primary);
	border-radius: var(--radius-pill);
	background: var(--color-white);
	color: var(--color-primary);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color var(--transition-fast),
		color var(--transition-fast),
		transform var(--transition-fast);
}

/* Sits right under the purchase form. */
.sp-hero__summary form.cart + .sp-buy-now {
	margin-top: 12px;
}

.sp-buy-now svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.sp-buy-now:hover {
	background: #fff0f0;
}

.sp-buy-now:active {
	transform: scale(0.99);
}

.sp-buy-now:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.sp-buy-now.is-loading {
	pointer-events: none;
	opacity: 0.75;
}

.sp-buy-message {
	margin: 8px 0 0;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-primary);
}

.sp-buy-message[hidden] {
	display: none;
}

/* ---------- Phosphor star rating ---------- */

.sp-stars {
	position: relative;
	display: inline-block;
	line-height: 0;
	color: var(--color-border);
}

.sp-stars__bg,
.sp-stars__fg {
	display: inline-flex;
	gap: 2px;
}

.sp-stars__bg svg,
.sp-stars__fg svg {
	width: 18px;
	height: 18px;
}

.sp-stars__fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--color-primary);
}

.sp-rating__value {
	font-weight: 700;
	color: var(--color-text);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 74.99em) {
	.sp-hero {
		gap: 32px;
	}
}

@media (max-width: 63.99em) {
	.sp-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 28px;
		margin-bottom: 64px;
	}

	.sp-hero__gallery .woocommerce-product-gallery__image {
		padding: 24px;
	}

	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

	.sp-benefits,
	.sp-info {
		margin-bottom: 64px;
	}
}

@media (max-width: 47.99em) {
	.single-product-page {
		padding-block: 12px 56px;
	}

	.single-product-page > .container {
		padding-inline: 16px;
	}

	.single-product-page .shop-breadcrumb {
		margin-bottom: 20px;
	}

	.single-product-page .shop-breadcrumb__item--current {
		max-width: 200px;
	}

	.sp-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		margin-bottom: 48px;
	}

	.sp-hero__gallery .woocommerce-product-gallery__image {
		padding: 20px;
		border-radius: 14px;
	}

	.sp-hero__gallery .flex-control-thumbs {
		gap: 8px;
		margin-top: 8px;
	}

	.sp-hero__summary {
		padding-top: 0;
	}

	.sp-hero__summary .product_title {
		font-size: clamp(1.625rem, 7vw, 2rem);
	}

	.sp-hero__summary p.price,
	.sp-hero__summary span.price,
	.sp-hero__summary .vp-product-price,
	.sp-hero__summary .woocommerce-variation-price .price {
		font-size: 1.625rem;
	}

	/* Mobile: tabs become accordions. */
	.sp-tabs__bar {
		display: none;
	}

	.sp-tabs__panel[hidden] {
		display: block;
	}

	.sp-tabs__acc-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		padding: 18px 4px;
		border: 0;
		border-bottom: 1px solid var(--color-border);
		background: transparent;
		font-family: var(--font-body);
		font-size: 0.9375rem;
		font-weight: 700;
		text-align: left;
		color: var(--color-text);
		cursor: pointer;
	}

	.sp-tabs__acc-head:focus-visible {
		outline: 2px solid var(--color-primary);
		outline-offset: -2px;
		border-radius: 4px;
	}

	.sp-tabs__acc-head .sp-faq__icon-minus {
		display: none;
	}

	.sp-tabs__panel.is-active .sp-tabs__acc-head .sp-faq__icon-plus {
		display: none;
	}

	.sp-tabs__panel.is-active .sp-tabs__acc-head .sp-faq__icon-minus {
		display: inline-flex;
	}

	.sp-tabs__panel.is-active .sp-tabs__acc-head .sp-faq__icon {
		background: var(--color-primary);
		color: var(--color-white);
	}

	.sp-tabs__acc-body {
		display: none;
		padding: 4px 4px 24px;
	}

	.sp-tabs__panel.is-active .sp-tabs__acc-body {
		display: block;
	}

	.sp-reviews .comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.sp-benefits__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.related.products ul.products,
	.upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.sp-benefits,
	.sp-info {
		margin-bottom: 48px;
	}

	.sp-hero__summary form.cart {
		flex-direction: column;
	}

	.sp-hero__summary .sp-qty {
		align-self: flex-start;
	}

	.sp-hero__summary .single_add_to_cart_button {
		flex: none;
		width: 100%;
	}

	.sp-hero__summary .product_meta .sku_wrapper,
	.sp-hero__summary .product_meta .posted_in,
	.sp-hero__summary .product_meta .tagged_as {
		gap: 16px;
	}

	/*.sp-hero__summary .product_meta .sku_wrapper > :first-child,*/
	/*.sp-hero__summary .product_meta .posted_in > :first-child,*/
	/*.sp-hero__summary .product_meta .tagged_as > :first-child {*/
	/*	flex-basis: 72px;*/
	/*}*/
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
	.sp-hero__gallery .woocommerce-product-gallery__image img,
	.sp-hero__gallery .flex-control-thumbs img,
	.sp-hero__gallery .flex-control-thumbs li,
	.sp-qty__btn,
	.sp-hero__summary .single_add_to_cart_button {
		transition: none;
	}

	.sp-hero__gallery .woocommerce-product-gallery__image:hover img {
		transform: none;
	}

	.sp-hero__summary .single_add_to_cart_button:hover {
		transform: none;
	}

	.sp-hero__summary .single_add_to_cart_button:active {
		transform: none;
	}

	.sp-hero__summary .single_add_to_cart_button.is-loading::after {
		animation-duration: 1.4s;
	}
}
