/*
 * Shop archives and product cards (templates archive-product, product-search-results).
 * Blocksy look: 25% filter sidebar from 1000px, filters above the grid from 769px, a bottom-sheet
 * overlay below; 3 columns from 690px, 1 below. Cards: white, 3:4 image, centred text.
 * Any Product Template with the class "reflect-cards" gets the card look.
 * Grey text is darker than Blocksy's #999 and the rose links are ink: both failed WCAG contrast.
 */

/* ---------- Layout ---------- */
.reflect-shop__collection { --reflect-filters-gap: 5%; }
.reflect-shop__collection > * { margin-block: 0; }
/* The collection's own notices container comes first; it takes a full row above filters and grid. */
.reflect-shop__collection > .wc-block-components-notices { flex: 0 0 100%; grid-column: 1 / -1; }
/* A failed card add scrolls this region into view; keep it below the sticky header (155/110/86px). */
.reflect-shop__collection .wc-block-components-notice-banner { scroll-margin-top: 175px; }
@media (width <= 999.98px) { .reflect-shop__collection .wc-block-components-notice-banner { scroll-margin-top: 130px; } }
@media (width <= 689.98px) { .reflect-shop__collection .wc-block-components-notice-banner { scroll-margin-top: 100px; } }
.reflect-shop__collection > .wc-block-components-notices:has(.wc-block-components-notice-banner) { margin-bottom: 25px; }
.reflect-shop__content { min-width: 0; }
.reflect-shop__content > * + * { margin-block-start: 0; }

@media (width >= 1000px) {
	.reflect-shop__collection { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 var(--reflect-filters-gap); }
	.reflect-shop__collection > .reflect-shop__filters { flex: 0 0 25%; padding-right: 53px; box-sizing: border-box; }
	.reflect-shop__content { flex: 1 1 0; }
}
@media (769px <= width <= 999.98px) {
	.reflect-shop__collection > .reflect-shop__filters { padding: 53px 53px 0; margin-bottom: 50px; } /* Blocksy's panel starts 53px lower */
}
@media (width <= 768.98px) {
	/* Toolbar row: filter button | sort; then the grid. */
	.reflect-shop__collection { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 15px; }
	.reflect-shop__content { display: contents; }
	.reflect-shop__collection > .reflect-shop__filters { grid-column: 1; grid-row: 1; align-self: start; margin-bottom: 25px; }
	.reflect-shop__content > .reflect-shop__sorting { grid-column: 2; grid-row: 1; align-self: start; }
	.reflect-shop__content > :not(.reflect-shop__sorting) { grid-column: 1 / -1; }
}

/* ---------- Toolbar: active filters, sorting ---------- */
.reflect-shop__active { display: block; }
.reflect-shop__active .wp-block-woocommerce-product-filter-active:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 25px; }
.reflect-shop__active .wc-block-product-filter-removable-chips__items { gap: 8px 20px; }
.reflect-shop__active .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item {
	border: 0; border-radius: 14px; padding: 0; gap: 4px; min-height: 28px;
	font-size: var(--wp--preset--font-size--13); font-weight: 600; color: var(--wp--preset--color--palette-color-1);
}
.reflect-shop__active .wc-block-product-filter-removable-chips__remove-icon { width: 18px; height: 18px; }
.reflect-shop__active .wp-block-woocommerce-product-filter-clear-button .wp-block-buttons { margin: 0; }
.reflect-shop__active .reflect-shop__clear .wp-block-button__link {
	min-height: 0; padding: 0; background: none; color: var(--wp--preset--color--palette-color-1);
	font-size: var(--wp--preset--font-size--13); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.reflect-shop__active .reflect-shop__clear .wp-block-button__link:is(:hover, :focus) { color: var(--wp--preset--color--palette-color-1); text-decoration: none; }

.reflect-shop__sorting { display: flex; justify-content: flex-end; margin-bottom: 25px; font-size: inherit; }
.reflect-shop__sorting.woocommerce.wc-block-catalog-sorting .woocommerce-ordering { margin: 0 0 0 auto; }
.reflect-shop__sorting select.orderby {
	width: 380px; max-width: 100%; height: var(--wp--custom--form--field-height); margin: 0;
	padding: 0 var(--wp--custom--form--select-padding-right) 0 15px; border: var(--wp--custom--form--border); border-radius: var(--wp--custom--form--radius);
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23474747' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center;
	appearance: none; color: var(--wp--preset--color--palette-color-3); font-family: inherit; font-size: var(--wp--preset--font-size--14); letter-spacing: inherit; cursor: pointer;
}
.reflect-shop__sorting select.orderby:focus { border-color: var(--wp--custom--form--border-focus-color); outline: 2px solid var(--wp--preset--color--palette-color-1); outline-offset: 2px; }
@media (width <= 768.98px) {
	.reflect-shop__sorting { margin-bottom: 0; }
}
@media (width <= 689.98px) {
	/* Blocksy shows only a sort icon on phones; the select still opens the native picker. */
	.reflect-shop__sorting select.orderby {
		width: 34px; height: 34px; padding: 0; color: transparent;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='1.6'%3E%3Cpath d='M7 4v16M3 8l4-4 4 4M17 20V4M13 16l4 4 4-4'/%3E%3C/svg%3E") no-repeat center;
	}
	.reflect-shop__sorting select.orderby option { color: var(--wp--preset--color--palette-color-3); }
}

/* ---------- Filters ---------- */
.reflect-shop__filters { display: block; font-size: var(--wp--preset--font-size--16); }
.reflect-shop__filters .wc-block-product-filters__content,
.reflect-shop__filters .wc-block-product-filters__overlay-content { gap: 0; }
.reflect-shop__filters-title.reflect-shop__filters-title { margin: 0 0 20px; color: var(--wp--preset--color--palette-color-1); font-weight: 700; letter-spacing: 0.03em; line-height: 1.5; }
.reflect-filter { margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.reflect-filter:last-child { border-bottom: 0; }
.reflect-filter > * + * { margin-block-start: 0; }
.reflect-filter .reflect-filter__title {
	margin: 0 0 10px; color: #666; font-size: var(--wp--preset--font-size--12); font-weight: 700;
	line-height: 1.65; letter-spacing: 0.05em; text-transform: uppercase;
}

/* Category tree (core/categories); inc/shop.php adds the counts' span and the toggles. */
.reflect-filter__categories { margin: 0; padding: 0; list-style: none; }
.reflect-filter__categories ul { margin: 2px 0 0 4px; padding: 0 0 0 14px; list-style: none; border-left: 1px solid rgba(0, 0, 0, 0.06); }
.reflect-filter__categories li { display: flex; flex-wrap: wrap; align-items: center; margin: 0; }
.reflect-filter__categories li > a { flex: 1 1 0; padding: 5px 0; color: var(--wp--preset--color--palette-color-3); font-size: var(--wp--preset--font-size--13); line-height: 1.4; }
.reflect-filter__categories li > a:hover { color: var(--wp--preset--color--palette-color-1); }
.reflect-filter__categories li > ul { flex: 0 0 calc(100% - 4px); }
.reflect-filter__categories .current-cat > a { color: var(--wp--preset--color--palette-color-1); font-weight: 700; }
.reflect-filter__categories .reflect-cat-count { order: 0; color: #666; font-size: var(--wp--preset--font-size--11); }
.reflect-filter__categories li > a:has(+ .reflect-cat-count) { flex: 0 1 auto; padding-right: 4px; }
.reflect-filter__categories li > .reflect-cat-count { flex: 1 1 0; }
.reflect-cat-toggle {
	display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
	border: 0; background: none; color: #767676; cursor: pointer; transition: transform 0.25s ease, color 0.2s;
}
.reflect-cat-toggle::before {
	content: ""; width: 10px; height: 6px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
}
.reflect-cat-toggle:hover, .reflect-cat-toggle[aria-expanded="true"] { color: var(--wp--preset--color--palette-color-1); }
.reflect-cat-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.reflect-cat-toggle[aria-expanded="false"] + ul { display: none; }

/* Product search (core/search, post_type=product): it opens the product search results. */
.reflect-filter__search .wp-block-search__inside-wrapper { padding: 0; border: 0; }
.reflect-filter__brands select {
	width: 100%; height: var(--wp--custom--form--field-height); padding: 0 32px 0 12px; border: 1px solid #ddd; border-radius: 0;
	background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23767676'/%3E%3C/svg%3E") no-repeat right 12px center;
	appearance: none; color: var(--wp--preset--color--palette-color-3); font-family: inherit; font-size: var(--wp--preset--font-size--14); letter-spacing: inherit; cursor: pointer;
}
/* The search field is a Blocksy form field (form tokens), not a select. */
.reflect-filter__search .wp-block-search__input {
	width: 100%; height: var(--wp--custom--form--field-height); padding: var(--wp--custom--form--field-padding); border: var(--wp--custom--form--border); border-radius: var(--wp--custom--form--radius);
	background: transparent; color: var(--wp--preset--color--palette-color-3); font-family: inherit; font-size: var(--wp--preset--font-size--16); letter-spacing: inherit;
}
.reflect-filter__search .wp-block-search__input:focus,
.reflect-filter__brands select:focus { border-color: var(--wp--custom--form--border-focus-color); outline: 2px solid var(--wp--preset--color--palette-color-1); outline-offset: 2px; }

/* Colour and size chips. */
.reflect-filter .wc-block-product-filter-chips { font-size: var(--wp--preset--font-size--13); }
.reflect-filter .wc-block-product-filter-chips__items { gap: 6px; }
.reflect-filter .wc-block-product-filter-chips__item {
	display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid #ddd; border-radius: 16px;
	color: var(--wp--preset--color--palette-color-3); font-weight: 500; transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.reflect-filter .wc-block-product-filter-chips__item:hover { border-color: var(--wp--preset--color--palette-color-1); }
.reflect-filter .wc-block-product-filter-chips__item[aria-checked="true"] { border-color: var(--wp--preset--color--palette-color-1); background: var(--wp--preset--color--palette-color-1); color: #fff; }
.reflect-filter .is-style-swatch .wc-block-product-filter-chips__items { gap: 8px; }
.reflect-filter .is-style-swatch .wc-block-product-filter-chips__item:not(:has(.wc-block-product-filter-chips__swatch--no-color)) {
	width: 28px; height: 28px; padding: 2px; border: 2px solid transparent; border-radius: 50%; background: none;
}
.reflect-filter .is-style-swatch .wc-block-product-filter-chips__item:hover { border-color: var(--wp--preset--color--palette-color-2); }
.reflect-filter .is-style-swatch .wc-block-product-filter-chips__item[aria-checked="true"] { border-color: var(--wp--preset--color--palette-color-1); background: none; }
.reflect-filter .is-style-swatch .wc-block-product-filter-chips__swatch { width: 20px; height: 20px; border: 0.5px solid #ddd; }
.reflect-filter .wc-block-product-filter-chips__show-more,
.reflect-filter .wc-block-product-filter-checkbox-list__show-more {
	margin-top: 8px; color: var(--wp--preset--color--palette-color-1); font-size: var(--wp--preset--font-size--13); font-weight: 600; text-underline-offset: 3px;
}

/* Price. */
.reflect-filter--price .wc-block-product-filter-price-slider__content { row-gap: 12px; column-gap: 8px; }
.reflect-filter--price .wc-block-product-filter-price-slider__range { --range-color: var(--wp--preset--color--palette-color-1); }
.reflect-filter--price .wc-block-product-filter-price-slider .text input[type="text"] {
	box-sizing: border-box; max-width: none; width: 100%; height: var(--wp--custom--form--field-height); padding: var(--wp--custom--form--field-padding);
	border: var(--wp--custom--form--border); border-radius: var(--wp--custom--form--radius); background: transparent;
	color: var(--wp--preset--color--palette-color-3); font-size: var(--wp--preset--font-size--16); font-family: inherit; letter-spacing: inherit;
}

/* Wide screens: show the filters in place. WooCommerce does this only above settings.viewport.tablet (1000px);
   Blocksy did it from 769px. Same rules as WooCommerce's inline ones. */
@media (width > 768.98px) {
	.reflect-shop__filters.is-mobile-overlay { display: flex; flex-direction: column; }
	.reflect-shop__filters.is-mobile-overlay :is(.wc-block-product-filters__overlay-header, .wc-block-product-filters__overlay-footer, .wc-block-product-filters__open-overlay) { display: none; }
	.reflect-shop__filters.is-mobile-overlay .wc-block-product-filters__overlay { position: relative; inset: 0; z-index: auto; pointer-events: auto; background: inherit; color: inherit; transition: none; flex-grow: 1; }
	.reflect-shop__filters.is-mobile-overlay .wc-block-product-filters__overlay-wrapper { width: auto; height: auto; background: inherit; color: inherit; }
	.reflect-shop__filters.is-mobile-overlay .wc-block-product-filters__overlay-dialog { position: relative; width: auto; transform: none; transition: none; background: inherit; color: inherit; }
	.reflect-shop__filters.is-mobile-overlay .wc-block-product-filters__overlay-content { padding: 0; overflow: visible; flex-grow: 1; background: inherit; color: inherit; }
}

/* Phones and small tablets: Blocksy's bottom sheet. */
@media (width <= 768.98px) {
	.reflect-shop__filters .wc-block-product-filters__open-overlay {
		display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
		background: var(--wp--preset--color--palette-color-1); color: #fff; font-size: var(--wp--preset--font-size--13); font-weight: 600; cursor: pointer;
	}
	.reflect-shop__filters .wc-block-product-filters__open-overlay svg { width: 18px; height: 18px; }
	.reflect-shop__filters .wc-block-product-filters__open-overlay span { padding: 0; }
	.reflect-shop__filters .wc-block-product-filters__overlay { z-index: 100000; }
	.reflect-shop__filters .wc-block-product-filters__overlay-dialog {
		inset: auto 0 0 0; width: 100%; max-height: 85vh; border-radius: 16px 16px 0 0; background: #fff;
		color: var(--wp--preset--color--palette-color-3); box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
		transform: translateY(100%); visibility: hidden; transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.35s;
	}
	.reflect-shop__filters.is-overlay-opened .wc-block-product-filters__overlay { background-color: rgba(0, 0, 0, 0.4); }
	.reflect-shop__filters.is-overlay-opened .wc-block-product-filters__overlay-dialog { transform: translateY(0); visibility: visible; transition-delay: 0s; }
	/* The header (grab handle, close button) floats over the content, so the title sits beside the close button. */
	.reflect-shop__filters .wc-block-product-filters__overlay-header {
		position: absolute; inset: 0 0 auto 0; z-index: 2; padding: 22px 20px 0; pointer-events: none;
	}
	.reflect-shop__filters .wc-block-product-filters__overlay-header::before {
		content: ""; position: absolute; top: 10px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #ddd;
	}
	.reflect-shop__filters .wc-block-product-filters__close-overlay {
		width: 32px; height: 32px; justify-content: center; border-radius: 50%; background: var(--wp--preset--color--palette-color-9); cursor: pointer; pointer-events: auto;
	}
	.reflect-shop__filters .wc-block-product-filters__close-overlay svg { width: 20px; height: 20px; }
	.reflect-shop__filters .wc-block-product-filters__overlay-content { padding: 22px 20px 0; overflow-y: auto; }
	.reflect-shop__filters .reflect-shop__filters-title { margin: 0; padding: 0 44px 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
	.reflect-shop__filters .wc-block-product-filters__overlay-footer { padding: 12px 20px 20px; box-shadow: none; border-top: 1px solid rgba(0, 0, 0, 0.06); }
	.reflect-shop__filters .wc-block-product-filters__apply { min-height: 44px; font-size: var(--wp--preset--font-size--15); }
	.reflect-shop__filters.is-overlay-opened .wc-block-product-filters__overlay-content .wp-block-group > div { margin: 0; }
}

/* ---------- Product grid ---------- */
.reflect-cards.wc-block-product-template.is-flex-container {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--custom--card--gap);
}
.reflect-cards.reflect-cards.wc-block-product-template.is-flex-container.is-flex-container > li { width: auto; margin: 0; }
@media (width <= 689.98px) {
	.reflect-cards.wc-block-product-template.is-flex-container { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Card ---------- */
.reflect-cards > .wc-block-product {
	display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0 20px 20px;
	border-radius: var(--wp--custom--radius--control); background: var(--wp--preset--color--palette-color-8);
	box-shadow: var(--wp--preset--shadow--card); text-align: center;
}
.reflect-cards > .wc-block-product > * { order: 10; max-width: 100%; margin: 0; }
/* The add-to-cart form's wrappers step aside so price and category sit between the choices and the button. */
.reflect-cards > .wc-block-product > .wc-block-components-notices,
.reflect-cards .wc-block-add-to-cart-with-options,
.reflect-cards .wc-block-add-to-cart-with-options > .wp-block-group { display: contents; }
.reflect-cards .wc-block-add-to-cart-with-options > * { order: 10; margin: 0; }

.reflect-cards .reflect-card__image { order: 1; align-self: stretch; max-width: none; margin: 0 -20px var(--wp--custom--card--element-spacing); }
.reflect-cards .reflect-card__image a { position: relative; display: block; aspect-ratio: var(--wp--custom--card--aspect-ratio); overflow: hidden; border-radius: var(--wp--custom--radius--control) var(--wp--custom--radius--control) 0 0; }
.reflect-cards .reflect-card__image img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.reflect-cards .reflect-card__image .wc-block-components-product-image__inner-container { position: absolute; inset: 0; pointer-events: none; }
/* Hover: the first gallery image (reflect-shop cards.php), not while a colour's image shows. */
.reflect-cards .reflect-card__hover { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 0.3s ease; }
@media (hover: hover) {
	.reflect-cards .reflect-card__image:not(.is-colour-chosen) a:hover .reflect-card__hover { opacity: 1; }
}
.reflect-cards .wc-block-components-product-sale-badge {
	position: absolute; top: 15px; left: 15px; margin: 0; padding: 5px 10px; border: 0; border-radius: 0;
	background: var(--wp--preset--color--palette-color-1); color: #fff; font-size: var(--wp--preset--font-size--12); font-weight: 600; line-height: 1.1; letter-spacing: 0.03em; text-transform: none;
}
.reflect-cards .wc-block-components-product-sale-badge__text::after { content: "!"; }

.reflect-cards .reflect-card__title { order: 2; align-self: stretch; margin: 0 0 var(--wp--custom--card--meta-spacing); line-height: 1.2; font-weight: var(--wp--custom--card--title-font-weight); letter-spacing: -0.02em; }
.reflect-cards .reflect-card__title a { display: -webkit-box; overflow: hidden; color: var(--wp--preset--color--palette-color-4); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.reflect-cards .wp-block-woocommerce-add-to-cart-with-options-variation-selector { order: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px; }
.reflect-cards .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name { display: none; }
.reflect-cards .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute .wp-block-group { margin: 0; }
.reflect-cards .wc-block-product-filter-chips { font-size: var(--wp--preset--font-size--11); }
.reflect-cards .wc-block-product-filter-chips__items { justify-content: center; gap: 6px; }
.reflect-cards .wc-block-product-filter-chips__item {
	display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 10px;
	border: 1px solid var(--wp--preset--color--palette-color-1); border-radius: var(--wp--custom--radius--control); background: transparent;
	color: var(--wp--preset--color--palette-color-1); font-weight: 600; line-height: 1; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.reflect-cards .wc-block-product-filter-chips__item:hover { background: var(--wp--preset--color--palette-color-9); }
.reflect-cards .wc-block-product-filter-chips__item[aria-checked="true"] { background: var(--wp--preset--color--palette-color-1); color: #fff; }
.reflect-cards .wc-block-product-filter-chips__item:disabled { opacity: 0.25; }
.reflect-cards .is-style-swatch .wc-block-product-filter-chips__items { gap: 7px; }
.reflect-cards .is-style-swatch .wc-block-product-filter-chips__item:not(:has(.wc-block-product-filter-chips__swatch--no-color)) {
	width: 24px; min-width: 24px; height: 24px; padding: 2px; border: 1.5px solid transparent; border-radius: 50%; background: none;
}
.reflect-cards .is-style-swatch .wc-block-product-filter-chips__item:hover { border-color: var(--wp--preset--color--palette-color-2); background: none; }
.reflect-cards .is-style-swatch .wc-block-product-filter-chips__item[aria-checked="true"] { border-color: var(--wp--preset--color--palette-color-1); background: none; }
.reflect-cards .is-style-swatch .wc-block-product-filter-chips__swatch { width: 18px; height: 18px; border: 0.5px solid #ddd; }
/* Keyboard focus on card and filter chips (WooCommerce's swatch rule sets outline: none). */
.reflect-cards .wc-block-product-filter-chips__item:focus-visible,
.reflect-filter .wc-block-product-filter-chips__item:focus-visible { outline: 2px solid var(--wp--preset--color--palette-color-1); outline-offset: 2px; }

.reflect-cards .reflect-card__meta { order: 4; color: var(--wp--preset--color--palette-color-3); font-weight: var(--wp--custom--card--meta-font-weight); line-height: 1.65; letter-spacing: 0.03em; text-transform: uppercase; }
.reflect-cards .reflect-card__meta a { color: inherit; }
.reflect-cards .reflect-card__meta a:hover { color: var(--wp--preset--color--palette-color-2); }
.reflect-cards .reflect-card__meta :is(a ~ a, .wp-block-post-terms__separator) { display: none; }

.reflect-cards .reflect-card__price { order: 5; margin-top: var(--wp--custom--card--meta-spacing); }
.reflect-cards .reflect-card__price .wc-block-components-product-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 6px; color: var(--wp--preset--color--palette-color-1); font-weight: 600; line-height: 1.65; }
.reflect-cards .reflect-card__price ins { order: 1; text-decoration: none; background: none; }
.reflect-cards .reflect-card__price del { order: 2; font-size: 0.8em; opacity: 0.7; }

/* Variation text, stock line and quantity belong to the product page, not the card. */
.reflect-cards :is(.wp-block-woocommerce-add-to-cart-with-options-variation-description, .wp-block-woocommerce-product-stock-indicator, .wc-block-add-to-cart-with-options__quantity-selector) { display: none; }

.reflect-cards .wp-block-woocommerce-product-button { order: 6; margin-top: var(--wp--custom--card--meta-spacing); }
.reflect-cards .wc-block-components-product-button__button,
.reflect-cards .wp-block-woocommerce-product-button .wp-block-button__link {
	min-height: var(--wp--custom--button--min-height); padding: 10px 14px; border: 0; border-radius: 10px;
	background: var(--wp--preset--color--palette-color-1); color: #fff; font-size: var(--wp--preset--font-size--13); font-weight: 600;
	line-height: 1.5; letter-spacing: 0.02em; transition: background-color 0.25s, color 0.25s;
}
.reflect-cards .wc-block-components-product-button__button:is(:hover, :focus-visible) { background: var(--wp--preset--color--palette-color-2); color: #fff; }
/* Variable product without a full choice: Blocksy's muted "pending" button, darker text for contrast. */
.reflect-cards .wc-block-add-to-cart-with-options.is-invalid .wc-block-components-product-button__button,
.reflect-cards .wc-block-components-product-button__button.disabled { background: #e0dbd2; color: #5c5c5c; opacity: 1; cursor: default; }
.reflect-cards .wc-block-components-notice-banner { order: 7; margin: 10px 0 0; font-size: var(--wp--preset--font-size--13); text-align: left; }

/* ---------- Pagination ---------- */
.reflect-shop__pagination.reflect-shop__pagination {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: var(--wp--custom--content-vertical-spacing);
	font-size: var(--wp--preset--font-size--14); font-weight: 600;
}
.reflect-shop__pagination > * { margin: 0; }
.reflect-shop__pagination .wp-block-query-pagination-numbers { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: center; }
.reflect-shop__pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 41px; height: 40px; margin: 0 5px; padding: 0 8px;
	border: 2px solid transparent; border-radius: 4px; color: var(--wp--preset--color--palette-color-3);
}
.reflect-shop__pagination a.page-numbers:hover { border-color: var(--wp--preset--color--palette-color-5); color: var(--wp--preset--color--palette-color-1); }
.reflect-shop__pagination .page-numbers.current { background: var(--wp--preset--color--palette-color-1); color: #fff; }
.reflect-shop__pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 17px; border: 2px solid var(--wp--preset--color--palette-color-5); border-radius: 4px;
	color: var(--wp--preset--color--palette-color-3); font-size: var(--wp--preset--font-size--12); letter-spacing: 0.03em; text-transform: uppercase;
}
.reflect-shop__pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover { border-color: var(--wp--preset--color--palette-color-1); color: var(--wp--preset--color--palette-color-1); }
.reflect-shop__pagination .wp-block-query-pagination-previous { grid-column: 1; justify-self: start; }
.reflect-shop__pagination .wp-block-query-pagination-next { grid-column: 3; justify-self: end; }
.reflect-shop__pagination :is(.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow) { margin: 0; font-size: 16px; line-height: 1; }
@media (width <= 689.98px) {
	.reflect-shop__pagination .wp-block-query-pagination-numbers { display: none; }
}

/* ---------- Search results ---------- */
.reflect-shop__title { margin: 0 0 30px; }
