/**
 * Single product summary typography (Rocky tokens).
 * Caption xs 12 / body 14 / subhead 16 / title 28.
 */

.single-product div.product .product_title {
	margin-bottom: 0.5rem;
	font-size: var(--rocky-font-size-title);
	font-weight: var(--rocky-font-weight-medium);
	line-height: var(--rocky-line-height-tight);
	letter-spacing: 0;
	color: var(--rocky-color-text-primary);
}

@media (max-width: 768px) {
	.single-product div.product .product_title {
		font-size: var(--rocky-font-size-title-mobile);
	}
}

.single-product div.product .summary .rocky-pdp-summary-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin: 0 0 0.85rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid color-mix(in srgb, var(--rocky-color-text-primary) 12%, transparent);
	font-size: var(--rocky-font-size-sm);
	font-weight: var(--rocky-font-weight-normal);
	color: var(--rocky-color-text-muted);
}

.single-product div.product .summary .rocky-pdp-summary-meta__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	min-width: 0;
}

.single-product div.product .summary .rocky-pdp-summary-meta__sku,
.single-product div.product .summary .rocky-pdp-summary-meta__sold {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
}

.single-product div.product .summary .rocky-pdp-summary-meta__facts > * + * {
	margin-left: 0.75rem;
	padding-left: 0.75rem;
	border-left: 1px solid color-mix(in srgb, var(--rocky-color-text-primary) 18%, transparent);
}

.single-product div.product .summary .rocky-pdp-summary-meta .sku {
	color: var(--rocky-color-text-primary);
	font-weight: var(--rocky-font-weight-medium);
}

.single-product div.product .summary .rocky-pdp-summary-meta .rocky-wishlist-single {
	margin: 0;
	flex-shrink: 0;
}

.single-product div.product .summary .rocky-pdp-summary-meta .rocky-wishlist-toggle--single {
	width: auto;
	height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.single-product div.product .summary .rocky-pdp-summary-meta .rocky-wishlist-toggle--single svg {
	width: 1.05rem;
	height: 1.05rem;
}

.single-product div.product .summary .rocky-pdp-summary-meta .rocky-wishlist-single__label {
	text-transform: none;
	letter-spacing: 0;
	color: var(--rocky-color-text-primary);
}

.single-product div.product .summary .woocommerce-product-rating {
	font-size: var(--rocky-font-size-sm);
	font-weight: var(--rocky-font-weight-normal);
}

.single-product div.product .summary .rocky-pdp-price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin: 0.75rem 0 1rem;
}

.single-product div.product .summary .rocky-pdp-price-row p.price {
	margin: 0;
}

.single-product div.product .summary p.price {
	font-size: var(--rocky-font-size-subhead);
	font-weight: var(--rocky-font-weight-semibold);
	color: var(--rocky-color-text-primary);
	margin: 0.75rem 0 1rem;
}

.single-product div.product .summary .rocky-pdp-stock {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3em;
	margin: 0;
	font-size: var(--rocky-font-size-body);
	font-weight: var(--rocky-font-weight-medium);
	line-height: var(--rocky-line-height-tight);
	white-space: nowrap;
	color: var(--rocky-color-text-primary);
}

.single-product div.product .summary .rocky-pdp-stock--in .rocky-pdp-stock__value {
	color: var(--rocky-color-stock-in);
}

.single-product div.product .summary .rocky-pdp-stock--out .rocky-pdp-stock__value {
	color: var(--rocky-color-stock-out);
}

.single-product div.product .summary form.cart .stock,
.single-product div.product .summary .woocommerce-variation-availability {
	display: none;
}

.single-product div.product .summary .price ins {
	background: none;
	text-decoration: none;
	font-size: var(--rocky-font-size-subhead);
	font-weight: var(--rocky-font-weight-semibold);
	color: var(--rocky-color-text-primary);
}

.single-product div.product .summary .price del {
	opacity: 1;
	font-size: var(--rocky-font-size-body);
	font-weight: var(--rocky-font-weight-normal);
	color: var(--rocky-color-text-muted);
}

.single-product div.product .summary .woocommerce-product-details__short-description,
.single-product div.product .summary .woocommerce-product-details__short-description p {
	font-size: var(--rocky-font-size-body);
	font-weight: var(--rocky-font-weight-normal);
	line-height: var(--rocky-line-height-body);
}

.single-product .rocky-wishlist-single__label {
	font-size: var(--rocky-font-size-sm);
	font-weight: var(--rocky-font-weight-medium);
}

.single-product div.product .summary form.cart .quantity .qty,
.single-product div.product .summary .single_add_to_cart_button {
	font-size: var(--rocky-font-size-body);
}

.single-product div.product .summary .rocky-pdp-cart-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.single-product div.product .summary .rocky-pdp-cart-actions__row {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.75rem;
}

.single-product div.product .summary .rocky-pdp-cart-actions__row .quantity.rocky-pdp-quantity {
	flex: 0 0 auto;
	float: none;
	margin-right: 0;
}

.single-product div.product .summary .rocky-pdp-cart-actions__row .single_add_to_cart_button.button.alt:not(.rocky-pdp-buy-now__button) {
	flex: 1 1 auto;
	width: auto;
	min-height: 3rem;
	margin: 0;
	padding-left: 1rem;
	padding-right: 1rem;
	font-weight: var(--rocky-font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-radius: 0.5rem;
}

.single-product div.product .summary .rocky-pdp-quantity {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	min-width: 7.5rem;
	min-height: 3rem;
	padding: 0 0.35rem;
	border: 1px solid var(--rocky-color-text-primary);
	border-radius: 999px;
	background: var(--rocky-color-surface);
}

.single-product div.product .summary .rocky-pdp-quantity .qty {
	width: 2.25rem;
	min-width: 2.25rem;
	max-width: 2.75rem;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	font-weight: var(--rocky-font-weight-semibold);
	color: var(--rocky-color-text-primary);
	-webkit-appearance: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.single-product div.product .summary .rocky-pdp-quantity .qty:hover,
.single-product div.product .summary .rocky-pdp-quantity .qty:focus {
	outline: none;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.single-product div.product .summary .rocky-pdp-quantity .qty::-webkit-outer-spin-button,
.single-product div.product .summary .rocky-pdp-quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product div.product .summary .rocky-pdp-quantity__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 2rem;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-family: inherit;
	font-size: var(--rocky-font-size-md);
	font-weight: var(--rocky-font-weight-medium);
	line-height: 1;
	color: var(--rocky-color-text-primary);
	cursor: pointer;
}

.single-product div.product .summary .rocky-pdp-quantity__btn:hover,
.single-product div.product .summary .rocky-pdp-quantity__btn:focus-visible {
	background: color-mix(in srgb, var(--rocky-color-text-primary) 8%, transparent);
}

.single-product div.product .summary .rocky-pdp-buy-now__button {
	display: block;
	width: 100%;
	min-height: 3rem;
	margin: 0;
	padding-left: 1rem;
	padding-right: 1rem;
	font-size: var(--rocky-font-size-body);
	font-weight: var(--rocky-font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-radius: 0.5rem;
	background-color: var(--rocky-color-accent);
	border-color: var(--rocky-color-accent);
	color: var(--rocky-color-text-on-dark);
}

.single-product div.product .summary .rocky-pdp-buy-now__button:hover,
.single-product div.product .summary .rocky-pdp-buy-now__button:focus {
	background-color: var(--rocky-color-accent);
	border-color: var(--rocky-color-accent);
	color: var(--rocky-color-text-on-dark);
	opacity: 0.92;
}

.single-product div.product .summary .rocky-pdp-buy-now__button:disabled,
.single-product div.product .summary .rocky-pdp-buy-now__button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.single-product div.product .summary .rocky-pdp-service-info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1rem;
	list-style: none;
	margin: 0;
	padding: 1rem 1.1rem;
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--rocky-color-text-primary) 5%, var(--rocky-color-surface));
}

.single-product div.product .summary .rocky-pdp-service-info__item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-width: 0;
	margin: 0;
}

.single-product div.product .summary .rocky-pdp-service-info__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--rocky-color-text-primary);
	border-radius: 0.5rem;
	color: var(--rocky-color-text-primary);
	background: var(--rocky-color-surface);
}

.single-product div.product .summary .rocky-pdp-service-info__icon svg {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
}

.single-product div.product .summary .rocky-pdp-service-info__copy {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.single-product div.product .summary .rocky-pdp-service-info__title,
.single-product div.product .summary .rocky-pdp-service-info__text {
	font-size: var(--rocky-font-size-sm);
	font-weight: var(--rocky-font-weight-medium);
	line-height: 1.35;
	color: var(--rocky-color-text-primary);
}

.single-product div.product .summary .rocky-pdp-service-info__text {
	font-weight: var(--rocky-font-weight-normal);
	color: var(--rocky-color-text-muted);
}

.single-product div.product .summary .product_meta {
	font-size: var(--rocky-font-size-sm);
	font-weight: var(--rocky-font-weight-normal);
}

.single-product div.product .summary .product_meta a {
	font-weight: var(--rocky-font-weight-medium);
}

.single-product div.product .summary .rocky-pdp-summary-tabs {
	margin-top: 1.5rem;
}

.single-product div.product .summary .rocky-pdp-summary-tabs__tablist {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.25rem;
	overflow-x: auto;
	overflow-y: hidden;
	border-bottom: 1px solid var(--rocky-color-text-muted);
	margin: 0;
	padding: 0;
	-webkit-overflow-scrolling: touch;
}

.single-product div.product .summary .rocky-pdp-summary-tabs__tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin: 0 0 -1px;
	padding: 0.5rem 0;
	white-space: nowrap;
	cursor: pointer;
	font-family: inherit;
	font-size: var(--rocky-font-size-sm);
	font-weight: var(--rocky-font-weight-medium);
	line-height: var(--rocky-line-height-tight);
	color: var(--rocky-color-text-muted);
}

.single-product div.product .summary .rocky-pdp-summary-tabs__tab:hover,
.single-product div.product .summary .rocky-pdp-summary-tabs__tab:focus-visible {
	color: var(--rocky-color-text-primary);
}

.single-product div.product .summary .rocky-pdp-summary-tabs__tab[aria-selected="true"] {
	color: var(--rocky-color-text-primary);
	border-bottom-color: var(--rocky-color-text-primary);
}

.single-product div.product .summary .rocky-pdp-summary-tabs__panel {
	padding-top: 1rem;
	font-size: var(--rocky-font-size-body);
	font-weight: var(--rocky-font-weight-normal);
	line-height: var(--rocky-line-height-body);
	color: var(--rocky-color-text-primary);
}

.single-product div.product .summary .rocky-pdp-summary-tabs__panel > *:first-child {
	margin-top: 0;
}

.single-product div.product .summary .rocky-pdp-summary-tabs__panel > *:last-child {
	margin-bottom: 0;
}

/*
 * Storefront sets overflow-x:hidden on body/.site, which computes overflow-y
 * to auto and prevents position:sticky. clip hides horizontal bleed without
 * creating a scroll container.
 */
body.single-product,
body.single-product .site {
	overflow-x: clip;
}

/* Storefront clearfix (overflow:hidden) would clip sticky to the product box. */
.single-product div.product {
	overflow: visible;
}

.single-product div.product::after {
	content: "";
	display: table;
	clear: both;
}

/* Two-column stage: sticky gallery stays above related products. */
@media (min-width: 769px) {
	.single-product div.product .rocky-pdp-stage {
		display: flex;
		align-items: flex-start;
		width: 100%;
	}

	.single-product div.product .rocky-pdp-stage .woocommerce-product-gallery,
	.single-product div.product .rocky-pdp-stage .images,
	.storefront-full-width-content.single-product div.product .rocky-pdp-stage .woocommerce-product-gallery,
	.storefront-full-width-content.single-product div.product .rocky-pdp-stage .images {
		float: none;
		width: 50%;
		margin-right: 0;
		padding-right: 1.5rem;
		position: sticky;
		top: 1rem;
		align-self: flex-start;
	}

	.single-product div.product .rocky-pdp-stage .summary,
	.storefront-full-width-content.single-product div.product .rocky-pdp-stage .summary {
		float: none;
		width: 50%;
		margin-right: 0;
	}
}
