.hlq-commerce {
	box-sizing: border-box;
	color: var(--wp--preset--color--ink, #0f2c36);
}

/* Shop archive only: source card gutters, typography and native actions. */
.hlq-catalog {
	padding-inline: 2rem;
}

.hlq-catalog__layout {
	display: grid;
	grid-template-columns: minmax(11rem, calc(20% - 13px)) minmax(0, 1fr);
	align-items: start;
	gap: 26px;
}

.hlq-catalog__filters,
.hlq-catalog__products {
	min-width: 0;
}

.hlq-catalog__layout > .hlq-catalog__products {
	margin-block-start: 0;
	padding-inline-end: 1vw;
	padding-block-start: 10px;
}

.hlq-catalog__filters {
	padding-top: 4rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	color: var(--wp--preset--color--charcoal, #3f3f36);
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
}

.hlq-catalog__filters .wpc-filter-title,
.hlq-catalog__filters label,
.hlq-catalog__filters input {
	font: inherit;
}

.hlq-catalog__filters p:empty {
	display: none;
}

.hlq-catalog__filters input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--wp--preset--color--ink, #0f2c36);
}

.hlq-catalog__filters .wpc-filter-link {
	color: #000;
	text-decoration: none;
}

/* Keep the published inline sidebar available even when FE's popup mode or
 * JavaScript is unavailable. The real FE search and taxonomy links remain. */
.hlq-catalog__filters .wpc-filters-widget-content {
	display: block !important;
	position: static !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	width: auto !important;
	height: auto !important;
	max-height: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.hlq-catalog__filters .wpc-filters-widget-containers-wrapper,
.hlq-catalog__filters .wpc-filters-scroll-container {
	position: static !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

.hlq-catalog .wpc-filters-open-button-container,
.hlq-catalog__filters .wpc-filters-widget-top-container:has(.wpc-empty-chips-container),
.hlq-catalog__filters .wpc-filters-widget-controls-container,
.hlq-catalog__filters .wpc-widget-close-container,
.hlq-catalog .wpc-open-close-filters-button {
	display: none !important;
}

.hlq-catalog__filters .wpc-filters-section:last-child {
	margin-bottom: 0;
}

.hlq-catalog__filters .wpc-filters-widget-wrapper {
	padding: 0 !important;
}

.hlq-catalog__products .wc-block-product-template {
	gap: 16px 100px;
	margin: 0;
	padding: 0;
}

/* Preserve other editor-selected column counts. */
.hlq-catalog__products .wc-block-product-template.columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hlq-catalog__products .wc-block-product {
	position: relative;
	background-color: var(--wp--preset--color--white, #fff);
	min-width: 0;
}

.hlq-catalog__products .wp-block-post-title {
	margin: 16px 3.2px 0;
	padding-block: 0.5em;
	font-family: var(--wp--preset--font-family--kite-one, sans-serif);
	font-size: 1.6vw;
	font-style: italic;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
	text-transform: capitalize;
	overflow-wrap: normal;
	word-break: normal;
}

.hlq-catalog__products .wp-block-post-title a:not(:hover, :focus-visible) {
	text-decoration: none;
}

.hlq-catalog__products .wp-block-woocommerce-product-price {
	margin: 0 3.2px 7.2px;
	font-family: var(--wp--preset--font-family--kite-one, sans-serif);
	font-size: 14.4px;
	font-weight: 700;
	font-style: normal;
	line-height: 1.3;
}

.hlq-catalog__products .wp-block-woocommerce-product-price span {
	font-weight: inherit;
}

/* Style the existing Woo action and Quick View link; their real text and
 * accessible names stay in the DOM, and their handlers/URLs are unchanged. */
.hlq-catalog__products .wp-block-woocommerce-product-button,
.hlq-catalog__products .hlq-quick-view {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	margin: 0;
}

.hlq-catalog__products .wp-block-woocommerce-product-button {
	top: 52px;
}

.hlq-catalog__products .wp-block-woocommerce-product-button .wp-element-button,
.hlq-catalog__products .hlq-quick-view__trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	min-width: 40px;
	padding: 0;
	border: 1px solid rgb(15 44 54 / 15%);
	border-radius: 0;
	background: #fff;
	color: var(--wp--preset--color--ink, #0f2c36);
	font-size: 0;
	line-height: 1;
	text-decoration: none;
}

/* Match the live desktop hover overlay while keeping both real actions
 * visible for touch, and discoverable by keyboard before they receive focus. */
@media (hover: hover) and (pointer: fine) {
	.hlq-catalog__products .wc-block-product > .wp-block-woocommerce-product-button,
	.hlq-catalog__products .wc-block-product > .hlq-quick-view {
		opacity: 0;
		pointer-events: none;
	}

	.hlq-catalog__products .wc-block-product:hover > .wp-block-woocommerce-product-button,
	.hlq-catalog__products .wc-block-product:hover > .hlq-quick-view,
	.hlq-catalog__products .wc-block-product:focus-within > .wp-block-woocommerce-product-button,
	.hlq-catalog__products .wc-block-product:focus-within > .hlq-quick-view {
		opacity: 1;
		pointer-events: auto;
	}
}

@media (any-pointer: coarse) {
	.hlq-catalog__products .wc-block-product > .wp-block-woocommerce-product-button,
	.hlq-catalog__products .wc-block-product > .hlq-quick-view {
		opacity: 1;
		pointer-events: auto;
	}
}

.hlq-catalog__products .wp-block-woocommerce-product-button .wp-element-button > span {
	font-size: 0;
}

.hlq-catalog__products .wp-element-button:focus-visible,
.hlq-catalog__products .hlq-quick-view__trigger:focus-visible {
	outline: 3px solid var(--wp--preset--color--fern, #40927b);
	outline-offset: 2px;
}

.hlq-catalog__products .wp-block-woocommerce-product-button .wp-element-button::before,
.hlq-catalog__products .hlq-quick-view__trigger::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background: currentColor;
	mask: var(--hlq-catalog-action-icon) center / contain no-repeat;
}

.hlq-catalog__products .wp-block-woocommerce-product-button {
	--hlq-catalog-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2 3h3l2.5 12h11l3-9H6M8 19h.01M18 19h.01'/%3E%3C/svg%3E");
}

.hlq-catalog__products .hlq-quick-view {
	--hlq-catalog-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E");
}

.hlq-single-product {
	max-width: 1200px;
	margin: clamp(1.25rem, 6vw, 5rem) auto 0;
	padding-inline: 1.25rem;
}

.hlq-single-product__top {
	display: grid;
	grid-template-columns: minmax(0, 59fr) minmax(0, 41fr);
	align-items: start;
	gap: clamp(1.25rem, 3.5vw, 3.5rem);
	margin-block-end: clamp(2rem, 7vw, 5.625rem);
}

.hlq-single-product__gallery,
.hlq-single-product__summary {
	min-width: 0;
}

.hlq-single-product__gallery .woocommerce-product-gallery {
	float: none;
	width: 100%;
}

.hlq-single-product__top > .hlq-single-product__summary {
	margin-block-start: 0;
	border-bottom: 1px solid var(--wp--preset--color--ink, #0f2c36);
	box-shadow: 0 0 50px -10px rgb(0 0 0 / 17%);
	padding: clamp(1rem, 2vw, 2rem);
}

.hlq-single-product__summary .wp-block-post-title {
	margin-block: 0.5rem 1rem;
	font-family: var(--wp--preset--font-family--lucida, sans-serif);
	font-size: clamp(1.75rem, 3.4vw, 2.8125rem);
	line-height: 1.12;
}

.hlq-single-product__summary .wp-block-post-excerpt,
.hlq-single-product > .wp-block-woocommerce-product-details {
	font-family: var(--wp--preset--font-family--kite-one, sans-serif);
}

.hlq-single-product__summary .cart .single_add_to_cart_button {
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--ink, #0f2c36);
	border: 1px solid currentColor;
	border-radius: 0;
	padding: 0.875rem 1.875rem;
}

.hlq-single-product__summary .cart .single_add_to_cart_button:hover,
.hlq-single-product__summary .cart .single_add_to_cart_button:focus-visible {
	background: var(--wp--preset--color--ink, #0f2c36);
	color: var(--wp--preset--color--white, #fff);
}

.hlq-single-product > .wp-block-woocommerce-product-details {
	max-width: 1000px;
	margin-inline: auto;
}

.hlq-wholesale {
	width: min(100%, 1600px);
	margin: 2% auto 3%;
	padding-inline: clamp(1rem, 5vw, 4.375rem);
}

.hlq-wholesale > .wp-block-heading {
	margin-block-end: 2%;
	text-align: center;
	font-family: var(--wp--preset--font-family--lucida, sans-serif);
}

.hlq-wholesale > .wp-block-buttons {
	justify-content: center;
	margin-block-end: 2rem;
}

.hlq-wholesale > .wp-block-buttons .wp-element-button {
	background: var(--wp--preset--color--ink, #0f2c36);
	color: var(--wp--preset--color--white, #fff);
}

@media (max-width: 1024px) {
	.hlq-catalog__products .wc-block-product-template.columns-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hlq-catalog__products .wc-block-product-template {
		gap: 16px 50px;
	}

	.hlq-catalog__products .wp-block-post-title {
		font-size: 28px;
		line-height: 1;
	}
}

@media (max-width: 768px) {
	/* FE's mobile mode stages selections until Show is pressed, even with the
	 * native inline sidebar. Keep its real action reachable below the filters. */
	.hlq-catalog__filters .wpc-filters-widget-controls-container {
		display: block !important;
		position: static !important;
		width: auto !important;
		padding: 1rem 0 0;
		box-shadow: none;
	}
}

@media (max-width: 767px) {
	.hlq-catalog__products .wc-block-product-template.columns-5 {
		grid-template-columns: minmax(0, 1fr);
	}

	.hlq-catalog__layout,
	.hlq-single-product__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.hlq-catalog__filters {
		padding-top: 4rem;
		padding-inline-end: 16px;
	}

	.hlq-catalog__layout {
		gap: 14px;
	}

	.hlq-catalog__layout > .hlq-catalog__products {
		padding-inline: 10px;
	}

	.hlq-catalog__products .wc-block-product-template {
		gap: 1rem;
	}

	.hlq-single-product {
		margin-top: 1.25rem;
	}

	.hlq-wholesale {
		margin-block: 8% 20%;
		padding-inline: 6%;
	}
}

.hlq-slot-featured-products .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 48px 3.8%;
}

.hlq-slot-featured-products > .wp-block-woocommerce-product-collection {
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	grid-column: 1 / -1;
	min-width: 0;
	margin-block-start: 0;
}

.hlq-slot-featured-products .wc-block-product-template,
.hlq-wholesale-products-slot .wc-block-product-template {
	margin: 0;
	padding: 0;
}

.hlq-slot-featured-products .wp-block-post-title,
.hlq-wholesale-products-slot .wp-block-post-title {
	font-family: var(--wp--preset--font-family--kite-one, sans-serif);
	font-size: 1.1rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.hlq-slot-featured-products .wp-block-post-title a:not(:hover, :focus-visible),
.hlq-wholesale-products-slot .wp-block-post-title a:not(:hover, :focus-visible) {
	text-decoration: none;
}

.hlq-slot-featured-products .wp-block-woocommerce-product-button .wp-element-button,
.hlq-wholesale-products-slot .wp-block-woocommerce-product-button .wp-element-button {
	border-radius: 0;
}

@media (max-width: 1024px) {
	.hlq-slot-featured-products .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Home's standard Woo widget uses serif cards, separately from Shop.
 * The live font binding renders Subhead, including its synthetic italics. */
.hlq-slot-featured-products .wc-block-product {
	text-align: start;
}
.hlq-slot-featured-products .wp-block-post-title {
	margin: 16px 0 0;
	padding-block: 9.5px;
	font-family: "HLQ Home Source Minion", serif;
	font-size: 19px;
	text-align: start;
	font-weight: 400;
	font-style: italic;
	line-height: 1.5;
	text-transform: capitalize;
	overflow-wrap: normal;
	word-break: normal;
}

.hlq-slot-featured-products .wp-block-woocommerce-product-price {
	margin: 0 0 7.5px;
	font-family: "HLQ Home Source Minion", serif;
	font-size: 15px;
	text-align: start;
	font-weight: 400;
	font-style: italic;
	line-height: 1.5;
}

.hlq-slot-featured-products .wp-block-woocommerce-product-price span {
	font-weight: inherit;
}

.hlq-slot-featured-products .wp-block-woocommerce-product-button {
	justify-content: flex-start;
	text-align: start;
	margin: 0;
}

.hlq-slot-featured-products .wp-block-woocommerce-product-button .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--lake, #214053);
	border: 1px solid currentColor;
	border-radius: 0;
	padding: 7.416px 12px;
	font-family: "HLQ Home Source Minion", serif;
	font-size: 12px;
	letter-spacing: 1.5px;
	font-weight: 400;
	font-style: italic;
	line-height: 1;
	text-transform: uppercase;
}

.hlq-slot-featured-products .wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--fern, #40927b);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.hlq-slot-featured-products > .wp-block-woocommerce-product-collection {
		max-width: calc(100% - 20px);
	}

	.hlq-slot-featured-products .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 4%;
	}

	.hlq-slot-featured-products .wp-block-post-title,
	.hlq-slot-featured-products .wp-block-woocommerce-product-price {
		line-height: 1;
	}
}

/* Woo's empty/error checkout panels include padding in their full-width box. */
.wc-block-checkout-empty,
.wc-block-checkout-error {
	box-sizing: border-box;
}
