/* Single product template. Loaded by inc/assets.php when a product is viewed. */

.product-page__breadcrumb {
	margin-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.product-page__breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.product-page__main {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr);
	align-items: start;
	gap: var(--wp--preset--spacing--40);
}

/* Gallery */

.product-gallery {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: var(--wp--preset--spacing--20);
}

.product-gallery__rail {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-gallery__thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	padding: var(--wp--preset--spacing--10);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.product-gallery__thumb[aria-pressed="true"] {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
}

.product-gallery__thumb-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 62px;
}

.product-gallery__thumb-media img {
	width: auto;
	max-height: 100%;
	object-fit: contain;
}

.product-gallery__thumb-label {
	display: block;
	overflow: hidden;
	max-width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product-gallery__stage {
	position: relative;
	padding: var(--wp--preset--spacing--35);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--base);
}

.product-gallery__item {
	margin: 0;
}

.product-gallery__zoom {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.product-gallery__image {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.product-gallery__hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.product-gallery__video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 12px;
}

/* Lightbox */

.astm-lightbox[hidden] {
	display: none;
}

.astm-lightbox {
	display: flex;
	position: fixed;
	z-index: 120;
	inset: 0;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--30);
	border: 0;
	background: rgb(18 36 59 / 0.82);
}

.astm-lightbox img {
	max-width: min(92vw, 1100px);
	max-height: 88vh;
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	object-fit: contain;
}

.astm-lightbox__close {
	display: inline-flex;
	position: absolute;
	top: var(--wp--preset--spacing--20);
	inset-inline-end: var(--wp--preset--spacing--20);
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}

/* Summary */

.product-summary__title {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--xx-large);
}

.product-summary__subtitle {
	margin: 0.35rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

.product-highlights {
	display: grid;
	gap: 0.75rem;
	margin: var(--wp--preset--spacing--30) 0;
	padding: 0;
	list-style: none;
}

.product-highlights__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--wp--preset--color--contrast);
}

.product-highlights__icon {
	display: inline-flex;
	color: var(--wp--preset--color--accent);
}

/* Buy box */

.astm-buy {
	padding: var(--wp--preset--spacing--35);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--base);
}

.astm-buy__stock {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.astm-buy__dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #17915f;
}

.astm-buy__stock--out .astm-buy__dot {
	background: #b23a3a;
}

.astm-buy__shipping {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding-bottom: var(--wp--preset--spacing--20);
	border-bottom: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.astm-buy__shipping-icon {
	color: var(--wp--preset--color--primary);
}

.astm-buy__shipping strong {
	display: block;
	color: var(--wp--preset--color--contrast);
}

.astm-buy__shipping small {
	display: block;
	margin-top: 0.15rem;
	font-size: inherit;
}

.astm-buy__price {
	margin: var(--wp--preset--spacing--20) 0;
}

.astm-buy__amount {
	display: block;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1.1;
}

.astm-buy__amount del {
	margin-inline-end: 0.5rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
}

.astm-buy__tax {
	display: block;
	margin-top: 0.25rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.astm-buy .price,
.astm-buy .stock {
	display: none;
}

/* Options */

.astm-options {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}

.astm-option-group {
	margin: 0;
	padding: 0;
	border: 0;
}

.astm-option-group__title {
	padding: 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.astm-option-group__description,
.astm-option-group__hint {
	margin: 0.25rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.astm-option-list {
	display: grid;
	gap: 0.75rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.astm-option-item {
	position: relative;
}

.astm-option__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.astm-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	cursor: pointer;
}

.astm-option__input:checked + .astm-option {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
	background: var(--wp--preset--color--base);
}

.astm-option__input:focus-visible + .astm-option {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.astm-option__mark {
	flex: none;
	position: relative;
	width: 20px;
	height: 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
}

.astm-option-group[data-type="checkbox"] .astm-option__mark {
	border-radius: 6px;
}

.astm-option__input:checked + .astm-option .astm-option__mark {
	border-color: var(--wp--preset--color--accent);
}

.astm-option__input:checked + .astm-option .astm-option__mark::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: inherit;
	background: var(--wp--preset--color--accent);
}

.astm-option-item.is-disabled .astm-option {
	opacity: 0.55;
	cursor: not-allowed;
}

.astm-option__media {
	flex: none;
	width: 54px;
}

.astm-option__media img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.astm-option__icon {
	flex: none;
	color: var(--wp--preset--color--primary);
}

.astm-option__body {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.astm-option__label {
	flex: 1 0 100%;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.astm-option__badge {
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: 12px;
}

.astm-option__price {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.astm-option__note {
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--accent);
	font-size: 12px;
}

.astm-option__qty {
	display: block;
	margin-top: 0.5rem;
	padding-inline-start: calc(20px + 0.75rem);
}

.astm-option__qty input {
	width: 5rem;
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	font: inherit;
}

/* Add to cart */

.astm-buy form.cart {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
}

.astm-buy .quantity {
	display: flex;
	align-items: center;
	overflow: hidden;
	max-width: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
}

.astm-buy .quantity input.qty {
	flex: 1;
	width: auto;
	min-width: 0;
	padding: 0.85rem 0.5rem;
	border: 0;
	background: none;
	font: inherit;
	text-align: center;
	-moz-appearance: textfield;
}

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

.astm-quantity__step {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	align-self: stretch;
	border: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}

.astm-quantity__label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.astm-buy button.single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.9rem 1.5rem;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.astm-buy button.single_add_to_cart_button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.astm-buy__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: var(--wp--preset--spacing--20) 0 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.astm-buy__notice {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-top: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20);
	border-radius: 10px;
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}

.astm-buy__notice-icon {
	color: var(--wp--preset--color--accent);
}

.astm-buy__notice p {
	margin: 0;
}

/* Bundle */

.product-bundle {
	margin-top: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--base);
}

.product-bundle__title {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-large);
}

.product-bundle__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: var(--wp--preset--spacing--40);
}

.product-bundle__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
}

.product-bundle__figure {
	flex: 1;
	max-width: 200px;
}

.product-bundle__figure img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.product-bundle__plus {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-large);
}

.product-bundle__list {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 var(--wp--preset--spacing--20);
	padding: 0;
	list-style: none;
}

.product-bundle__row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
}

.product-bundle__thumb {
	flex: none;
	width: 44px;
}

.product-bundle__thumb img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.product-bundle__name {
	flex: 1;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
}

.product-bundle__name a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.product-bundle__note,
.product-bundle__qty {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.product-bundle__price {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	white-space: nowrap;
}

.product-bundle__total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
}

.product-bundle__total strong {
	font-size: var(--wp--preset--font-size--x-large);
}

.product-bundle__was {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
}

.product-bundle__saving {
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
}

.product-bundle__form {
	margin: 0;
}

.product-bundle__submit {
	justify-content: center;
	width: 100%;
	padding: 0.9rem 1.5rem;
}

/* Sections and upsells */

.product-sections {
	margin-top: var(--wp--preset--spacing--40);
}

.product-sections .comment-form,
.product-sections .comments {
	margin-top: var(--wp--preset--spacing--20);
}

.upsells.products {
	margin-top: var(--wp--preset--spacing--40);
}

.upsells.products > h2 {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-large);
}

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

.upsells.products ul.products li.product {
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	text-align: center;
}

.upsells.products ul.products li.product a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

@media (max-width: 64em) {
	.product-page__main {
		grid-template-columns: 1fr;
	}

	.product-bundle__inner {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 48em) {
	.product-gallery {
		grid-template-columns: 1fr;
	}

	.product-gallery__rail {
		flex-direction: row;
		overflow-x: auto;
		order: 2;
	}

	.product-gallery__thumb {
		width: 92px;
	}

	.product-bundle {
		padding: var(--wp--preset--spacing--30);
	}
}
