/* =====================================================================
   HH Shop — supplementary styles
   Design tokens live in theme.json. This file only handles things the
   block system can't express: header layout, hover states, WooCommerce
   product cards, footer link colours and responsive polish.
   Loaded on the front end AND in the editor (add_editor_style).
   ===================================================================== */

:root {
	--hhshop-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--hhshop-fast: 0.25s;
}

/* ---------- Base ---------- */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a {
	transition: color var(--hhshop-fast) var(--hhshop-ease),
		opacity var(--hhshop-fast) var(--hhshop-ease);
}

img {
	max-width: 100%;
	height: auto;
}

/* ---------- Buttons ---------- */
.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--hhshop-fast) var(--hhshop-ease),
		color var(--hhshop-fast) var(--hhshop-ease),
		border-color var(--hhshop-fast) var(--hhshop-ease);
}

/* Outline button style (registered in functions.php) */
.wp-block-button.is-style-hhshop-outline .wp-block-button__link {
	background-color: transparent;
	color: currentColor;
	box-shadow: inset 0 0 0 1.5px currentColor;
}
.wp-block-button.is-style-hhshop-outline .wp-block-button__link:hover,
.wp-block-button.is-style-hhshop-outline .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--base);
}

/* ---------- Group card style ---------- */
.wp-block-group.is-style-hhshop-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	padding: clamp(1.25rem, 3vw, 2rem);
}

/* Image hover zoom style */
.wp-block-image.is-style-hhshop-hover-zoom,
.hhshop-cat-card,
.hhshop-journal li > a:first-child,
.woocommerce ul.products li.product a img {
	overflow: hidden;
}
.wp-block-image.is-style-hhshop-hover-zoom img {
	transition: transform 0.6s var(--hhshop-ease);
}
.wp-block-image.is-style-hhshop-hover-zoom:hover img {
	transform: scale(1.05);
}

/* Divided columns style */
.wp-block-columns.is-style-hhshop-divided > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--border);
	padding-left: var(--wp--preset--spacing--40);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.hhshop-announcement p {
	line-height: 1.4;
}

.hhshop-header {
	position: sticky;
	top: 0;
	z-index: 100;
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	backdrop-filter: saturate(180%) blur(8px);
	background-color: rgba(255, 255, 255, 0.92) !important;
	transition: box-shadow var(--hhshop-fast) var(--hhshop-ease);
}
.hhshop-header.is-scrolled {
	box-shadow: 0 1px 0 var(--wp--preset--color--border), 0 6px 24px rgba(20, 20, 20, 0.06);
}

.hhshop-header__row {
	gap: 1.5rem;
}

/* Logo column shouldn't shrink */
.hhshop-header__brand {
	flex: 0 0 auto;
}

/* Nav takes the middle, tools sit at the end */
.hhshop-header .hhshop-nav {
	flex: 1 1 auto;
}
.hhshop-header__tools {
	flex: 0 0 auto;
}

/* Nav link hover underline */
.hhshop-nav .wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 2px;
}
.hhshop-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--hhshop-fast) var(--hhshop-ease);
}
.hhshop-nav .wp-block-navigation-item:hover .wp-block-navigation-item__content::after,
.hhshop-nav .current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Search button → icon only, sized nicely */
.hhshop-search .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0.35rem;
	min-width: 0;
	border: 0;
}
.hhshop-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.hhshop-search .wp-block-search__button:hover {
	color: var(--wp--preset--color--accent);
	background: transparent;
}

/* Mini-cart trigger */
.wc-block-mini-cart__button {
	color: var(--wp--preset--color--contrast);
	padding: 0.35rem;
}
.wc-block-mini-cart__button:hover {
	color: var(--wp--preset--color--accent);
}
.wc-block-mini-cart__amount {
	display: none;
}

/* Mobile navigation overlay */
.hhshop-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base);
	padding-top: var(--wp--preset--spacing--40);
}
.hhshop-nav
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-container-content {
	font-size: 1.4rem;
	gap: 1.25rem;
}
.hhshop-nav .wp-block-navigation__responsive-container-open svg,
.hhshop-nav .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

/* =====================================================================
   WOOCOMMERCE — product cards (works for legacy + block product grids)
   ===================================================================== */
/* Unify ALL product grids — classic (.woocommerce ul.products) AND block
   grids (.wc-block-grid, Product Collection) — into one responsive CSS grid.
   This overrides WooCommerce's float/flex widths so columns are reliable. */
.woocommerce ul.products,
.wc-block-grid__products,
.wp-block-woocommerce-product-template {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: clamp(1rem, 2.5vw, 2rem) clamp(0.75rem, 2vw, 1.5rem) !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}
.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-grid__products > li,
.wp-block-woocommerce-product-template > li {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}
@media (max-width: 1024px) {
	.woocommerce ul.products,
	.wc-block-grid__products,
	.wp-block-woocommerce-product-template {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}
@media (max-width: 781px) {
	.woocommerce ul.products,
	.wc-block-grid__products,
	.wp-block-woocommerce-product-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product {
	text-align: left;
	position: relative;
}

/* Product image: consistent portrait crop for fashion */
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img,
.wp-block-woocommerce-product-template .wc-block-components-product-image img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
	margin-bottom: 0.85rem;
	background: var(--wp--preset--color--surface);
	transition: transform 0.6s var(--hhshop-ease), opacity var(--hhshop-fast) var(--hhshop-ease);
}
.woocommerce ul.products li.product:hover a img,
.wc-block-grid__product:hover .wc-block-grid__product-image img,
.wp-block-woocommerce-product-template li:hover .wc-block-components-product-image img {
	transform: scale(1.04);
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem !important;
	font-weight: 600;
	letter-spacing: 0;
	padding: 0 !important;
	margin: 0 0 0.25rem !important;
	line-height: 1.3;
}

/* Price */
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
	color: var(--wp--preset--color--contrast) !important;
	font-size: 0.95rem !important;
	font-weight: 600;
}
.woocommerce ul.products li.product .price del {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
	opacity: 0.8;
	margin-right: 0.35rem;
}
.woocommerce ul.products li.product .price ins {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* Sale badge */
.woocommerce span.onsale,
.wc-block-grid__product .wc-block-grid__product-onsale {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	min-height: auto;
	min-width: auto;
	margin: 0;
	padding: 0.3rem 0.6rem;
	background: var(--wp--preset--color--accent);
	color: #fff;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
}

/* Add to cart button on cards */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	display: inline-block;
	margin-top: 0.6rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.7rem 1.2rem;
	transition: background-color var(--hhshop-fast) var(--hhshop-ease);
}
.woocommerce ul.products li.product .button:hover {
	background: var(--wp--preset--color--accent);
}

/* Star rating */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before {
	color: var(--wp--preset--color--contrast);
}

/* =====================================================================
   WOOCOMMERCE — shop archive header / sorting
   ===================================================================== */
.woocommerce .woocommerce-products-header__title,
.woocommerce-page h1.page-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	font-size: 0.85rem;
}
.woocommerce .woocommerce-ordering select,
.woocommerce select {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	background-color: #fff;
	font-size: 0.85rem;
}

/* =====================================================================
   WOOCOMMERCE — single product
   ===================================================================== */
.woocommerce div.product .product_title,
.wp-block-post-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.08;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--contrast);
	font-size: 1.5rem;
	font-weight: 600;
}
.woocommerce div.product p.price ins {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* Quantity + add to cart */
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	border-radius: 0;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.9rem 1.8rem;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--wp--preset--color--accent);
}
.woocommerce .quantity .qty {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	padding: 0.8rem 0.5rem;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	border-bottom-color: var(--wp--preset--color--border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border-radius: 0;
	background: transparent;
	border: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--wp--preset--color--contrast);
	border-radius: 0;
}
.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--wp--preset--color--contrast);
}

/* Cart & checkout block buttons */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border-radius: 0 !important;
	background: var(--wp--preset--color--contrast) !important;
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* =====================================================================
   CATEGORY SHOWCASE CARDS
   ===================================================================== */
.hhshop-cat-card img {
	transition: transform 0.7s var(--hhshop-ease);
}
.hhshop-cat-card:hover img {
	transform: scale(1.06);
}
.hhshop-cat-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 20, 20, 0) 40%, rgba(20, 20, 20, 0.55) 100%);
	pointer-events: none;
}
.hhshop-cat-card .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
}
.hhshop-cat-link a {
	color: #fff;
	text-decoration: none;
}
.hhshop-cat-card:hover .hhshop-cat-link a {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* =====================================================================
   JOURNAL / LATEST POSTS
   ===================================================================== */
.hhshop-journal.is-grid,
ul.wp-block-latest-posts.hhshop-journal {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: clamp(1.25rem, 3vw, 2.5rem) !important;
	margin-block: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.hhshop-journal > li {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}
@media (max-width: 781px) {
	.hhshop-journal.is-grid,
	ul.wp-block-latest-posts.hhshop-journal {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 560px) {
	.hhshop-journal.is-grid,
	ul.wp-block-latest-posts.hhshop-journal {
		grid-template-columns: 1fr !important;
	}
}
.hhshop-journal .wp-block-latest-posts__featured-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
	margin-bottom: 0.9rem;
}
.hhshop-journal .wp-block-latest-posts__post-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
	display: block;
	margin-bottom: 0.4rem;
}
.hhshop-journal .wp-block-latest-posts__post-date {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.35rem;
}

/* Blog grids on archive/index */
.hhshop-post-grid .wp-block-post-featured-image img {
	width: 100%;
	object-fit: cover;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.hhshop-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}
.hhshop-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.hhshop-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	font-size: 0.92rem;
}
.hhshop-footer h4 {
	margin-bottom: 1.1rem;
	color: #fff;
}
.hhshop-footer .hhshop-social a {
	color: #fff;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
	.hhshop-header__row {
		gap: 1rem;
	}
}

@media (max-width: 781px) {
	/* backdrop-filter on the header would trap the fixed mobile-menu overlay
	   inside the header box (filter/backdrop-filter create a containing block
	   for position:fixed). Disable it on mobile so the overlay covers the screen. */
	.hhshop-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background-color: var(--wp--preset--color--base) !important;
	}

	/* Header: logo left, hamburger + cart right */
	.hhshop-header__row {
		flex-wrap: nowrap;
		justify-content: space-between;
	}
	.hhshop-header .hhshop-nav {
		order: 3;
		flex: 0 0 auto;
	}
	.hhshop-header__tools {
		order: 2;
		margin-left: auto;
	}
	/* Hide the desktop search input expansion on very small screens is fine */

	/* Category showcase: 1 per row but keep some height */
	.hhshop-cat-card {
		min-height: 60vw !important;
	}

	/* Tighter section padding handled by clamp() in theme.json */
	.hhshop-footer__cols {
		gap: 2rem 1rem;
	}
}

@media (max-width: 600px) {
	/* Footer bottom bar centers when stacked */
	.hhshop-footer__bar {
		justify-content: center;
		text-align: center;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
	.hhshop-cat-card:hover img,
	.woocommerce ul.products li.product:hover a img {
		transform: none;
	}
}

/* =====================================================================
   OVERRIDES — logo size + flush full-bleed sections
   ===================================================================== */

/* Enlarged logo (2× the default 44px). Applied in CSS so it holds even if the
   Header part has been customised in the Site Editor. */
.hhshop-header .wp-block-site-logo,
.hhshop-header .wp-block-site-logo a,
.hhshop-header .wp-block-site-logo img,
.hhshop-header .custom-logo {
	width: 88px !important;
	max-width: 88px !important;
	height: auto !important;
}

/* Remove the default block-gap so the header, the hero/banner and every
   full-bleed section meet edge-to-edge (no white strips). Each section keeps
   its own internal padding, so spacing is preserved. */
.wp-site-blocks > * {
	margin-block-start: 0 !important;
}
.home .wp-site-blocks > main > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* =====================================================================
   HEADER — remove search (keep account + cart), tidy tools
   ===================================================================== */
.hhshop-header .wp-block-search,
.hhshop-header .hhshop-search {
	display: none !important;
}
/* Logo only — hide the text site title next to the logo */
.hhshop-header .wp-block-site-title {
	display: none !important;
}
.hhshop-header__tools {
	gap: 0.65rem !important;
}
/* Account icon matches the cart icon */
.hhshop-header .wp-block-woocommerce-customer-account a,
.hhshop-header .wp-block-woocommerce-customer-account {
	color: var(--wp--preset--color--contrast);
	display: inline-flex;
	align-items: center;
}
.hhshop-header .wp-block-woocommerce-customer-account svg,
.hhshop-header .wc-block-mini-cart__button svg {
	width: 22px;
	height: 22px;
}
.hhshop-header .wp-block-woocommerce-customer-account:hover {
	color: var(--wp--preset--color--accent);
}

/* =====================================================================
   SOLD OUT badge + out-of-stock treatment (shop loop)
   ===================================================================== */
.hhshop-soldout {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 3;
	background: var(--wp--preset--color--contrast);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	padding: 0.35rem 0.6rem;
}
.woocommerce ul.products li.product.outofstock a img {
	opacity: 0.5;
}
.woocommerce ul.products li.product.outofstock .onsale {
	display: none;
}
/* Block grids (homepage product-new / product-on-sale) */
.wc-block-grid__product:has(.hhshop-soldout) .wc-block-grid__product-image img {
	opacity: 0.5;
}
.wc-block-grid__product:has(.hhshop-soldout) .wc-block-grid__product-onsale {
	display: none;
}

/* =====================================================================
   SELECT2 (e.g. checkout pickup-point / parcel-locker selector)
   Fixes text overflowing below the box and matches the other fields.
   ===================================================================== */
.select2-container {
	width: 100% !important;
}
.select2-container--default .select2-selection--single {
	height: 48px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 48px !important;
	padding: 0 2.25rem 0 0.85rem !important;
	margin: 0 !important;
	color: var(--wp--preset--color--contrast);
	font-size: 0.95rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 46px;
	right: 0.5rem;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--wp--preset--color--contrast);
}
/* Dropdown panel */
.select2-dropdown {
	border-color: var(--wp--preset--color--border);
	border-radius: 0;
}
.select2-container--default .select2-results__option {
	font-size: 0.9rem;
	padding: 0.6rem 0.85rem;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
	background: var(--wp--preset--color--contrast);
	color: #fff;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	padding: 0.5rem 0.75rem;
}

/* =====================================================================
   SHOP — filter sidebar
   ===================================================================== */
.hhshop-shop__layout {
	align-items: flex-start;
}
.hhshop-shop__sidebar {
	font-size: 0.9rem;
}
.hhshop-shop__sidebar .hhshop-filter-title {
	margin-bottom: 0.7rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
/* Category list */
.hhshop-shop__sidebar .wc-block-product-categories ul,
.hhshop-shop__sidebar ul.product-categories {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}
.hhshop-shop__sidebar .wc-block-product-categories li,
.hhshop-shop__sidebar ul.product-categories li {
	margin: 0.1rem 0;
}
.hhshop-shop__sidebar .wc-block-product-categories a,
.hhshop-shop__sidebar ul.product-categories a {
	text-decoration: none;
	display: inline-block;
	padding: 0.25rem 0;
}
.hhshop-shop__sidebar .wc-block-product-categories a:hover {
	color: var(--wp--preset--color--accent);
}
.hhshop-shop__sidebar .wc-block-product-categories-list-item-count,
.hhshop-shop__sidebar .count {
	color: var(--wp--preset--color--muted);
}

/* Size filter chips */
.hhshop-size-filter {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.hhshop-size-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	color: var(--wp--preset--color--contrast);
	transition: background-color 0.2s var(--hhshop-ease), border-color 0.2s var(--hhshop-ease), color 0.2s var(--hhshop-ease);
}
.hhshop-size-chip:hover {
	border-color: var(--wp--preset--color--contrast);
}
.hhshop-size-chip.is-active {
	background: var(--wp--preset--color--contrast);
	color: #fff;
	border-color: var(--wp--preset--color--contrast);
}
.hhshop-size-clear {
	display: inline-block;
	margin-top: 0.85rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
	text-decoration: underline;
}

/* =====================================================================
   ALIGNMENT — equal-height product cards, pagination, single product
   ===================================================================== */

/* Equal-height cards: titles line up, CTA buttons pin to the bottom even
   when some cards have no price or a "Read more" instead of "Add to cart". */
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.woocommerce ul.products li.product > a:first-of-type {
	display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	min-height: 2.6em;
}
.woocommerce ul.products li.product .price {
	margin-bottom: 0.65rem;
	display: block;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin-top: auto;
	align-self: flex-start;
}

/* Pagination — centered, square, on-brand */
.woocommerce nav.woocommerce-pagination {
	margin-top: var(--wp--preset--spacing--40);
	text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	border: 0;
	margin: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 0.6rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--contrast);
	background: transparent;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--wp--preset--color--contrast);
	color: #fff;
	border-color: var(--wp--preset--color--contrast);
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: #fff;
}

/* Single product — clean 2-column layout (gallery | summary),
   tabs / related / upsells span the full width below. */
.single-product div.product {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(2rem, 4vw, 4.5rem);
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	width: auto !important;
	flex: 1 1 0;
	min-width: 0;
}
/* Tabs / related / upsells break to their own full-width row below */
.single-product div.product .woocommerce-tabs,
.single-product div.product .upsells,
.single-product div.product .related {
	flex: 1 1 100%;
	width: 100%;
	margin-top: var(--wp--preset--spacing--50);
	clear: both;
}
.single-product div.product .summary > .price {
	margin: 0.5rem 0 1.25rem;
}
.single-product div.product .summary .woocommerce-product-details__short-description {
	margin-bottom: 1.5rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
}
.single-product div.product .summary .product_meta {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}
/* Gallery slider: main image + tidy thumbnail navigation row */
.single-product .woocommerce-product-gallery {
	position: relative;
}
.single-product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 0;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	display: block;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li {
	width: calc(20% - 0.48rem) !important;
	margin: 0 !important;
	float: none !important;
	cursor: pointer;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	opacity: 0.55;
	transition: opacity 0.2s var(--hhshop-ease);
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
	opacity: 1;
}
/* Zoom trigger (magnifier) stays pinned to the main image corner */
.single-product .woocommerce-product-gallery__trigger {
	z-index: 4;
}
/* Related / upsells heading */
.single-product .related > h2,
.single-product .upsells > h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin-bottom: var(--wp--preset--spacing--30);
}

@media (max-width: 781px) {
	/* Stack with normal block flow (grid rows can collapse against the
	   flexslider gallery height and overlap the summary on mobile). */
	.single-product div.product {
		display: block;
	}
	.woocommerce.single-product div.product .woocommerce-product-gallery {
		position: static !important;
		margin-bottom: 1.75rem !important;
	}
	.single-product div.product .summary {
		margin-bottom: 1.75rem !important;
	}
}
/* Filter blocks (size / price / stock) */
.hhshop-shop__sidebar .wc-block-attribute-filter,
.hhshop-shop__sidebar .wc-block-stock-filter,
.hhshop-shop__sidebar .wc-block-price-filter {
	margin-bottom: 0.5rem;
}
.hhshop-shop__sidebar .wc-block-checkbox-list label,
.hhshop-shop__sidebar .wc-block-components-checkbox {
	font-size: 0.9rem;
}
.hhshop-shop__sidebar .wc-block-components-price-slider__range-input-progress {
	--range-color: var(--wp--preset--color--contrast);
}
/* Active filter chips */
.hhshop-shop__sidebar .wc-block-active-filters {
	margin-bottom: 1rem;
}
.hhshop-shop__sidebar .wc-block-active-filters__list-item-type,
.hhshop-shop__sidebar .wc-block-active-filters li {
	font-size: 0.85rem;
}
/* The legacy "Apply" / filter buttons inherit the theme button look */
.hhshop-shop__sidebar button,
.hhshop-shop__sidebar .wc-block-components-filter-submit-button {
	border-radius: 0 !important;
	background: var(--wp--preset--color--contrast);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
}
/* Result count + sorting row spacing in the products column */
.hhshop-shop__products .woocommerce-result-count {
	margin-bottom: 1.5rem;
}

/* =====================================================================
   MOBILE HEADER — clean reorder: logo left, account+cart+menu right
   ===================================================================== */
@media (max-width: 781px) {
	.hhshop-header .hhshop-header__row {
		flex-wrap: nowrap !important;
		gap: 0.4rem;
	}
	.hhshop-header__brand {
		order: 0;
		margin-right: auto;
		flex: 0 0 auto;
	}
	.hhshop-header .wp-block-woocommerce-customer-account {
		order: 1;
		flex: 0 0 auto;
	}
	.hhshop-header__tools {
		order: 2;
		flex: 0 0 auto;
		margin-left: 0;
	}
	.hhshop-header .hhshop-nav {
		order: 3;
		flex: 0 0 auto;
	}
	/* Logo a touch smaller on phones so the row breathes */
	.hhshop-header .wp-block-site-logo,
	.hhshop-header .wp-block-site-logo a,
	.hhshop-header .wp-block-site-logo img,
	.hhshop-header .custom-logo {
		width: 76px !important;
		max-width: 76px !important;
	}

	/* Shop: filter sidebar full width above the products */
	.hhshop-shop__layout {
		display: block;
	}
	.hhshop-shop__sidebar,
	.hhshop-shop__products {
		width: 100% !important;
		flex-basis: 100% !important;
	}
	.hhshop-shop__sidebar {
		margin-bottom: 2rem;
	}
}
