/* Brand defaults: unlayered Elementor styles override this layer. */
@layer pogi-vendor, pogi-theme;
@layer pogi-theme {
/* WooCommerce-specific customization layer (shop, single product and status styles). */

/* Elementor archive products keep WooCommerce's result count, ordering, and pagination. */
.elementor-location-archive .hp-archive--products .elementor-widget-wc-archive-products .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0 var(--v-grid-gap-md);
}
.hp-archive--products .woocommerce > * { grid-column: 1 / -1; min-width: 0; }
.hp-archive--products .woocommerce > .woocommerce-result-count {
	grid-column: 1;
	align-self: center;
	float: none;
	margin: 0 0 1.5rem;
	color: var(--hp-color-muted);
	font-size: var(--v-font-size-sm);
}
.hp-archive--products .woocommerce > .woocommerce-ordering { grid-column: 2; float: none; margin: 0 0 1.5rem; }
.hp-archive--products .woocommerce-ordering select {
	min-height: 44px;
	max-width: 100%;
	padding: 0.65rem 2rem 0.65rem 1rem;
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-button);
	background: var(--hp-color-surface);
	color: var(--hp-color-heading);
	font: 500 var(--v-font-size-sm)/1.4 var(--hp-font-body);
}
.hp-archive--products .woocommerce-ordering select:focus-visible { outline: 2px solid var(--hp-color-brand-primary); outline-offset: 3px; }
.elementor-location-archive .hp-archive--products .elementor-widget-wc-archive-products .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem var(--v-grid-gap-lg);
	margin: 0;
	padding: 0;
}
.hp-archive--products ul.products::before, .hp-archive--products ul.products::after { content: none; }
.elementor-location-archive .hp-archive--products .woocommerce ul.products li.product {
	float: none;
	clear: none;
	width: auto;
	min-width: 0;
	margin: 0;
}
@media (max-width: 1024px) {
	.elementor-location-archive .hp-archive--products .elementor-widget-wc-archive-products .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.elementor-location-archive .hp-archive--products .elementor-widget-wc-archive-products .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.hp-archive--products .woocommerce > .woocommerce-ordering { grid-column: 1; }
	.hp-archive--products .woocommerce > .woocommerce-result-count { margin-bottom: 0.75rem; }
	.hp-archive--products .woocommerce-ordering select { width: 100%; }
	.elementor-location-archive .hp-archive--products .elementor-widget-wc-archive-products .woocommerce ul.products { column-gap: var(--v-grid-gap-sm); }
}
@media (max-width: 359px) {
	.elementor-location-archive .hp-archive--products .elementor-widget-wc-archive-products .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); }
}

/* Cover WooCommerce actions outside the feature-specific forms as well. */

/* Native shop and product taxonomy archives: share the header's boxed shell and fluid section spacing. */
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: var(--v-grid-gap-md);
	width: 100%;
	max-width: var(--v-width-wide);
	margin-inline: auto;
	padding: var(--hp-section-space) var(--hp-container-gutter) var(--v-section-space-xl);
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > * {
	grid-column: 1 / -1;
	min-width: 0;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > .woocommerce-breadcrumb {
	margin: 0 0 var(--v-space-md);
	color: var(--hp-color-muted);
	font-size: var(--v-font-size-sm);
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-products-header {
	margin-block-end: var(--v-section-space-sm);
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-products-header__title {
	margin: 0;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-products-header .page-description {
	max-width: var(--v-width-reading);
	margin-block-start: var(--v-space-md);
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > .woocommerce-result-count,
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > .woocommerce-ordering {
	float: none;
	align-self: center;
	margin: 0 0 var(--v-grid-gap-lg);
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > .woocommerce-result-count {
	grid-column: 1;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > .woocommerce-ordering {
	grid-column: 2;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-ordering select {
	width: 100%;
	min-height: 44px;
	padding: var(--v-space-sm) var(--v-space-md);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--v-radius-sm);
	background-color: var(--hp-color-surface);
	color: var(--hp-color-text);
	font: inherit;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-ordering select:focus-visible,
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > ul.products > li.product > a:focus-visible {
	outline: 2px solid var(--hp-color-brand-primary);
	outline-offset: 4px;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hp-section-space) var(--v-grid-gap-lg);
	margin: 0;
	padding: 0;
}

/* WooCommerce's float clearers must not become empty grid cells. */
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > ul.products::before,
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > ul.products::after {
	content: none;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > ul.products > li.product {
	float: none;
	clear: none;
	width: auto;
	min-width: 0;
	margin: 0;
}

@media (max-width: 1024px) {
	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main {
		grid-template-columns: minmax(0, 1fr);
	}

	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > .woocommerce-result-count {
		margin-block-end: var(--v-space-sm);
	}

	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > .woocommerce-ordering {
		grid-column: 1;
	}

	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > ul.products {
		column-gap: var(--v-grid-gap-sm);
	}
}

@media (max-width: 359px) {
	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main > ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

.woocommerce span.onsale,
.woocommerce-page span.onsale {
	background: var(--hp-woo-sale-badge-bg);
	color: var(--hp-woo-sale-badge-text);
	border-radius: 999px;
	font-size: var(--v-font-size-xs);
	padding: 0.25rem 0.5rem;
}

.woocommerce .stock.in-stock {
	color: var(--hp-woo-stock-ok);
}

.woocommerce .stock.out-of-stock {
	color: var(--hp-woo-stock-out);
}

/* Single product variation swatches */
.single-product .hp-variation-select-wrap {
	display: grid;
	gap: 0.6rem;
}

.single-product .hp-variation-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
}

.single-product .hp-variation-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 2rem;
	height: 2rem;
	border: 1px solid color-mix(in srgb, var(--hp-color-border) 85%, #000000);
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	transition: transform var(--hp-duration-fast) var(--hp-ease-standard), box-shadow var(--hp-duration-fast) var(--hp-ease-standard), border-color var(--hp-duration-fast) var(--hp-ease-standard), opacity var(--hp-duration-fast) var(--hp-ease-standard);
}

.single-product .hp-variation-swatch:hover,
.single-product .hp-variation-swatch:focus-visible {
	transform: translateY(-1px);
	border-color: var(--hp-color-brand-primary);
	box-shadow: var(--hp-shadow-focus);
	outline: none;
}

.single-product .hp-variation-swatch.is-selected {
	border-color: var(--hp-color-brand-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--hp-color-brand-primary) 35%, transparent);
}

.single-product .hp-variation-swatch.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.single-product .hp-variation-swatch__chip {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: inherit;
	background: var(--hp-swatch-color, #d9d9d9);
	background-image: var(--hp-swatch-image, none);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.single-product .hp-variation-swatch--text {
	width: auto;
	height: auto;
	padding: 0.45rem 0.65rem;
	border-radius: var(--hp-radius-button);
	font-size: var(--v-font-size-xs);
	font-weight: 600;
	line-height: 1;
	text-transform: capitalize;
	background: var(--hp-color-surface);
	color: var(--hp-color-text);
}

.single-product .hp-variation-swatches--size {
	gap: 0.45rem;
}

.single-product .hp-variation-swatch--size {
	width: auto;
	height: auto;
	min-width: 2.2rem;
	padding: 0.45rem 0.6rem;
	border-radius: var(--hp-radius-button);
	font-size: var(--v-font-size-xs);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: var(--hp-color-surface);
	color: var(--hp-color-text);
	box-shadow: none;
}

.single-product .hp-variation-swatch--size .screen-reader-text {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	color: inherit;
}

.single-product .hp-variation-swatch--size::after {
	content: none;
	display: none;
}

.single-product .hp-variation-swatch[data-label]::after {
	content: attr(data-label);
	position: absolute;
	left: 50%;
	top: calc(-100% - 12px);
	transform: translate(-50%, 8px);
	opacity: 0;
	pointer-events: none;
	white-space: nowrap;
	padding: 0.35rem 0.55rem;
	border-radius: 999px;
	font-size: 0.68rem;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #ffffff;
	background: rgba(16, 16, 16, 0.92);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
	transition: opacity var(--hp-duration-fast) var(--hp-ease-standard), transform var(--hp-duration-fast) var(--hp-ease-standard);
	z-index: 5;
}

.single-product .hp-variation-swatch:hover::after,
.single-product .hp-variation-swatch:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.hp-swatches-ready .single-product .hp-variation-select-wrap > select {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	margin: -1px;
	border: 0;
	padding: 0;
}

/* Single product: gallery-led buying experience. */
.single-product .site-main {
	padding-block: clamp(2rem, 4vw, 4.5rem);
}

.single-product .elementor-location-single {
	box-sizing: border-box;
	display: flow-root;
	width: 100%;
	max-width: var(--v-width-wide);
	margin-inline: auto;
	padding-inline: var(--hp-container-gutter);
}

.single-product .site-main div.product {
	display: flow-root;
	max-width: 100%;
	margin-inline: auto;
}

/* The product shell owns the gutters; atomic columns retain authored padding. */
html:root :where(:is(.elementor-location-single[data-elementor-type="product"], .elementor-location-single[data-elementor-type="product"] > .elementor-section-wrap) > .e-con.e-atomic-element) {
	column-gap: var(--v-grid-gap-md);
}
html:root :where(:is(.elementor-location-single[data-elementor-type="product"], .elementor-location-single[data-elementor-type="product"] > .elementor-section-wrap) > .e-con.e-atomic-element,
:is(.elementor-location-single[data-elementor-type="product"], .elementor-location-single[data-elementor-type="product"] > .elementor-section-wrap) > .e-con.e-atomic-element > .e-con.e-atomic-element) {
	padding-inline: 0;
}

/* Fit the main image and a compact thumbnail rail within the desktop viewport. */
.single-product {
	--hp-product-sticky-top: calc(var(--hp-header-clearance, 104px) + var(--v-space-lg));
}
.single-product .elementor-location-single {
	padding-block: var(--v-space-lg);
}
body.single-product.woocommerce div.product div.images.woocommerce-product-gallery {
	position: relative;
	padding: 0;
	margin-bottom: 0;
	border: 1px solid var(--hp-color-border);
	border-radius: var(--v-radius-lg);
	background: var(--hp-color-surface);
	overflow: hidden;
}
.single-product div.product .woocommerce-product-gallery__image > a {
	display: block;
}
.single-product div.product .woocommerce-product-gallery__image > a > img {
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 0;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs {
	position: relative;
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 12px;
	border-top: 1px solid var(--hp-color-border);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
	flex: 0 0 64px;
	width: 64px;
	margin: 0;
	padding: 2px;
	border: 1px solid transparent;
	border-radius: var(--v-radius-sm);
	overflow: hidden;
	transition: border-color var(--hp-duration-fast);
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: 58px;
	object-fit: contain;
	border-radius: 4px;
	opacity: 1;
	cursor: pointer;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs li:has(img.flex-active),
body.single-product.woocommerce div.product div.images .flex-control-thumbs li:hover {
	border-color: var(--hp-color-brand-primary);
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs img:focus-visible {
	outline: 2px solid var(--hp-color-brand-primary);
	outline-offset: -2px;
}
.single-product div.product .woocommerce-product-gallery__trigger {
	z-index: 3;
	border: 1px solid var(--hp-color-border);
	box-shadow: 0 2px 8px rgb(0 30 60 / 8%);
}

.single-product div.product .summary {
	display: grid;
	align-content: start;
	gap: 1.25rem;
	padding: clamp(0.25rem, 1.5vw, 1.25rem) 0 0;
}

.single-product div.product .product_title {
	margin: 0;
	font-family: var(--hp-font-heading);
	/* font-size: clamp(2.15rem, 3.4vw, 4rem);
	line-height: 0.98; */
	letter-spacing: -0.055em;
	color: var(--hp-color-heading);
	font-size: var(--v-font-size-xl);
}

.single-product div.product p.price,
.single-product div.product span.price {
	margin: -0.55rem 0 0;
	font-size: clamp(1.3rem, 1.8vw, 1.7rem);
	color: var(--hp-color-brand-primary);
}

.single-product div.product form.cart {
	margin: 0;
	padding: clamp(1.25rem, 2.2vw, 1.75rem);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--v-radius-md);
	background: var(--hp-color-surface-alt);
}

.single-product div.product table.variations {
	margin: 0;
	border: 0;
}

.single-product div.product table.variations tr {
	display: grid;
	grid-template-columns: minmax(5.5rem, 22%) 1fr;
	gap: 1rem;
	align-items: start;
	padding-block: 0.85rem;
	border-bottom: 1px solid color-mix(in srgb, var(--hp-color-border) 70%, transparent);
}

.single-product div.product table.variations tr:last-child {
	border-bottom: 0;
}

.single-product div.product table.variations th,
.single-product div.product table.variations td {
	padding: 0;
	border: 0;
	background: transparent;
}

.single-product div.product table.variations th label {
	font-size: var(--v-font-size-sm);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hp-color-heading);
}

.single-product div.product .single_variation_wrap {
	/* margin-top: 1.25rem; */
}

.single-product div.product .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 0.75rem;
}

.single-product div.product .quantity .qty {
	/* width: 100%; */
	min-height: 3.35rem;
	border: 1px solid var(--hp-color-border);
	border-radius: var(--v-radius-sm);
	background: var(--hp-color-surface);
	color: var(--hp-color-heading);
	font: inherit;
	font-weight: 700;
	text-align: center;
}

.single-product div.product .single_add_to_cart_button { width: 100%; }

html:root body.single-product div.product .single_add_to_cart_button.hp-is-adding {
	cursor: wait;
	opacity: 0.8;
	transform: none;
}

.single-product div.product .single_add_to_cart_button.hp-is-adding::before {
	content: "";
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-inline-end: 0.6em;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	vertical-align: -0.1em;
	animation: hp-add-to-cart-spin 700ms linear infinite;
}

.single-product div.product .single_add_to_cart_button.hp-is-added::before {
	content: "✓";
	margin-inline-end: 0.6em;
}

.hp-add-to-cart-status {
	clear: both;
	grid-column: 1 / -1;
	font-size: var(--v-font-size-sm);
	line-height: 1.5;
	color: var(--hp-color-heading);
}

.hp-add-to-cart-status:not(:empty) {
	padding-top: 1rem;
}

.hp-add-to-cart-status a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.hp-add-to-cart-status.is-error {
	color: #a12622;
}

.hp-add-to-cart-status .woocommerce-error {
	margin-bottom: 0.5rem;
}

@keyframes hp-add-to-cart-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.single-product div.product .single_add_to_cart_button {
		transition: none;
	}
	.single-product div.product .single_add_to_cart_button.hp-is-adding::before {
		animation: none;
	}
}

.single-product div.product .woocommerce-tabs {
	/* margin-top: clamp(2rem, 4vw, 4rem); */
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--v-radius-lg);
	background: var(--hp-color-surface);
}

.single-product div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
}

.single-product div.product .woocommerce-tabs ul.tabs::before,
.single-product div.product .woocommerce-tabs ul.tabs li::before,
.single-product div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.single-product div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--v-radius-sm);
	background: transparent;
}

.single-product div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.65rem 0.85rem;
	color: var(--hp-color-muted);
	font-size: var(--v-font-size-xs);
	font-weight: 800;
}

.single-product div.product .woocommerce-tabs ul.tabs li.active {
	background: color-mix(in srgb, var(--hp-color-brand-primary) 10%, transparent);
}

.single-product div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--hp-color-brand-primary);
}

.single-product div.product .woocommerce-Tabs-panel {
	margin: 0;
	color: var(--hp-color-text);
	font-size: var(--v-font-size-md);
	line-height: var(--hp-line-height-relaxed);
}

.single-product div.product .woocommerce-Tabs-panel h2 {
	margin: 0 0 0.75rem;
	font-size: var(--v-font-size-xl);
	letter-spacing: var(--hp-letter-spacing-tight);
	color: var(--hp-color-heading);
}

/* Sticky belongs to the Elementor gallery column or the native gallery, never both. */
@media (min-width: 1025px) {
	.single-product .elementor-location-single .e-con:has(> .elementor-widget-woocommerce-product-images),
	body.single-product.woocommerce .site-main div.product > div.images.woocommerce-product-gallery {
		position: sticky;
		top: var(--hp-product-sticky-top);
		align-self: flex-start;
	}
	.single-product div.product .woocommerce-product-gallery__image > a > img {
		/* A stable image height prevents FlexSlider clipping when the header compacts. */
		max-height: max(280px, calc(100svh - var(--hp-header-reserved-clearance, 104px) - var(--v-space-lg) - 120px));
	}
}
@media (prefers-reduced-motion: reduce) {
	body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
		transition: none;
	}
}

@media (max-width: 767px) {
	.single-product .site-main {
		padding-block: 1.25rem 2.5rem;
	}

	.single-product div.product .summary {
		gap: 1rem;
		padding-top: 1.5rem;
	}

	.single-product div.product .product_title {
		font-size: clamp(2rem, 11vw, 3rem);
	}

	.single-product div.product table.variations tr {
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}

	.single-product div.product .woocommerce-variation-add-to-cart {
		grid-template-columns: 3.8rem 1fr;
	}

	.single-product div.product .woocommerce-tabs ul.tabs {
		overflow-x: auto;
	}
}

@media (max-width: 767px) {
	.single-product .hp-variation-swatch {
		width: 1.85rem;
		height: 1.85rem;
	}

	.single-product .hp-variation-swatch__chip {
		width: 1.35rem;
		height: 1.35rem;
	}
}

}

/* Express payment: collapsed until a wallet button can show (assets/js/express-checkout.js).
   Collapsed rather than display:none so Stripe can still size its iframes.
   !important because WooCommerce's block styles are unlayered. */
@layer pogi-theme {
.hp-express-check .wc-block-components-express-payment:not(.hp-express-available),
.hp-express-check .wc-block-components-express-payment:not(.hp-express-available) + .wc-block-components-express-payment-continue-rule {
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	visibility: hidden;
}
.hp-express-check .wc-block-components-express-payment__event-buttons > li.hp-express-unavailable {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
}
}
