/* Single product page (includes/product-page.php, assets/js/product-page.js).
   Loads after woocommerce.css on product pages only. */
@layer pogi-vendor, pogi-theme;
@layer pogi-theme {

/* 1. Garment label above a short title */
.single-product .hp-product-label {
	margin: 0 0 0.35rem;
	font-size: var(--v-font-size-xs);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hp-color-muted);
}
.single-product div.product .product_title {
	line-height: 1.05;
	text-wrap: balance;
}

/* 2. Options: no box, label above, chosen value beside it */
.single-product div.product form.cart {
	padding: 0;
	border: 0;
	background: transparent;
}
.single-product div.product table.variations tr {
	grid-template-columns: 1fr;
	gap: 0.6rem;
	padding-block: 0 1.25rem;
	border-bottom: 0;
}
.single-product div.product table.variations th.label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
	text-align: start;
}
.single-product div.product table.variations th label::after {
	content: ":";
}
.single-product .hp-variation-chosen {
	font-size: var(--v-font-size-sm);
	font-weight: 500;
	color: var(--hp-color-text);
}
.single-product div.product table.variations tr.hp-is-missing th label {
	color: var(--hp-color-danger);
}
.single-product .hp-is-missing .hp-variation-swatches {
	animation: hp-nudge 300ms var(--hp-ease-standard, ease) 1;
}
@keyframes hp-nudge {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}
.single-product .hp-variation-swatch--size {
	min-width: 3rem;
	min-height: 2.75rem;
	font-size: var(--v-font-size-sm);
}
.single-product .hp-variation-swatch {
	width: 2.5rem;
	height: 2.5rem;
}
.single-product .hp-variation-swatch__chip {
	width: 1.9rem;
	height: 1.9rem;
}
.single-product .hp-variation-swatch--size.is-selected {
	background: var(--hp-color-heading);
	border-color: var(--hp-color-heading);
	color: var(--hp-color-surface);
}
.single-product div.product .reset_variations {
	font-size: var(--v-font-size-xs);
	color: var(--hp-color-muted);
}

/* 3. Add to cart stays full strength; add-to-cart.js explains what's missing */
html:root body.single-product div.product .single_add_to_cart_button.disabled {
	opacity: 1;
	cursor: pointer;
}
.single-product div.product .single_add_to_cart_button {
	min-height: 3.35rem;
}
.single-product .hp-add-to-cart-status.is-error {
	color: var(--hp-color-danger);
	font-weight: 600;
}

/* 4. Assurances */
.single-product .hp-product-assurances {
	display: grid;
	gap: 0.75rem;
	margin: 1.25rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--hp-color-border);
	list-style: none;
}
.single-product .hp-product-assurances > li {
	display: grid;
	grid-template-columns: 1.25rem 1fr;
	gap: 0.75rem;
	align-items: start;
	margin: 0;
	font-size: var(--v-font-size-sm);
	line-height: 1.45;
	color: var(--hp-color-text);
}
.single-product .hp-product-assurances .hp-icon {
	color: var(--hp-color-brand-primary);
}
.single-product .hp-product-assurances p,
.single-product .hp-product-assurances .hp-free-shipping__text {
	margin: 0;
	font-size: inherit;
}
.single-product .hp-product-assurances a {
	margin-inline-start: 0.25rem;
	color: var(--hp-color-heading);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.single-product .hp-product-shipping .hp-free-shipping {
	gap: 0.45rem;
}

/* 5. Size guide */
.single-product .hp-size-guide-trigger {
	margin-inline-start: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--hp-color-heading);
	font: inherit;
	font-size: var(--v-font-size-sm);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}
.hp-size-guide {
	width: min(40rem, calc(100vw - 2rem));
	max-height: min(85vh, 48rem);
	padding: 0;
	border: 0;
	border-radius: var(--v-radius-lg);
	background: var(--hp-color-surface);
	color: var(--hp-color-text);
	box-shadow: 0 24px 64px rgb(0 20 40 / 25%);
}
.hp-size-guide::backdrop {
	background: rgb(0 20 40 / 45%);
}
.hp-size-guide__header {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--hp-color-border);
	background: var(--hp-color-surface);
}
.hp-size-guide__header h2 {
	margin: 0;
	font-size: var(--v-font-size-lg);
	color: var(--hp-color-heading);
}
.hp-size-guide__close {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--hp-color-surface-alt);
	color: var(--hp-color-heading);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.hp-size-guide .hp-size-guide__section {
	padding: 1rem 1.25rem 1.25rem;
}
.hp-size-guide__section h3 {
	margin: 0 0 0.75rem;
	font-size: var(--v-font-size-md);
	color: var(--hp-color-heading);
}
.hp-size-guide__section h3 span {
	font-weight: 400;
	color: var(--hp-color-muted);
}
.hp-size-guide__section + .hp-size-guide__section {
	border-top: 1px solid var(--hp-color-border);
}
.hp-size-guide__scroll {
	overflow-x: auto;
}
.hp-size-guide__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: var(--v-font-size-sm);
	font-variant-numeric: tabular-nums;
}
.hp-size-guide__table th,
.hp-size-guide__table td {
	padding: 0.55rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--hp-color-border);
	background: transparent;
	text-align: start;
	white-space: nowrap;
}
.hp-size-guide__table thead th {
	font-size: var(--v-font-size-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hp-color-muted);
}
.hp-size-guide__table tbody th {
	color: var(--hp-color-heading);
}
.hp-size-guide__note {
	margin-top: 0.75rem;
	font-size: var(--v-font-size-xs);
	color: var(--hp-color-muted);
}
.hp-size-guide__note p { margin: 0 0 0.35rem; }

/* 6. Details accordions */
.single-product .hp-product-details {
	border-top: 1px solid var(--hp-color-border);
}
.single-product .hp-product-details__item {
	border-bottom: 1px solid var(--hp-color-border);
}
.single-product .hp-product-details__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 0;
	list-style: none;
	font-weight: 700;
	color: var(--hp-color-heading);
	cursor: pointer;
}
.single-product .hp-product-details__item > summary::-webkit-details-marker {
	display: none;
}
.single-product .hp-product-details__item > summary::after {
	content: "";
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	margin-inline-end: 0.25rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform var(--hp-duration-fast, 150ms);
}
.single-product .hp-product-details__item[open] > summary::after {
	transform: translateY(25%) rotate(-135deg);
}
.single-product .hp-product-details__item > summary:focus-visible {
	outline: 2px solid var(--hp-color-brand-primary);
	outline-offset: 2px;
}
.single-product .hp-product-details__panel {
	padding: 0 0 1.25rem;
	font-size: var(--v-font-size-sm);
	line-height: var(--hp-line-height-relaxed, 1.6);
	color: var(--hp-color-text);
}
.single-product .hp-product-details__panel > :first-child { margin-top: 0; }
.single-product .hp-product-details__panel > :last-child { margin-bottom: 0; }
.single-product .hp-product-details__panel .hp-size-guide__section + .hp-size-guide__section {
	margin-top: 1.25rem;
}
.single-product .hp-product-details .woocommerce-Reviews-title {
	display: none;
}
.single-product .hp-product-policy {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding-inline-start: 1.1rem;
}
.single-product .hp-product-policy__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
}
.single-product .hp-product-policy__links a {
	font-weight: 700;
	color: var(--hp-color-heading);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (max-width: 767px) {
	.single-product div.product .product_title {
		font-size: clamp(1.75rem, 8vw, 2.4rem);
	}
}
@media (prefers-reduced-motion: reduce) {
	.single-product .hp-is-missing .hp-variation-swatches { animation: none; }
	.single-product .hp-product-details__item > summary::after { transition: none; }
}
}
