/* -------------------------------------------------------------------------
 * Product category archive hub
 *
 * !important throughout this file is deliberate: Elementor's global Site
 * Settings styles and its element-level resets on button/a/select/ul load
 * after this file and win on cascade order for bare tags even without
 * higher specificity.
 * ---------------------------------------------------------------------- */

body.tax-product_cat,
body.tax-product_brand {
	overflow-x: clip !important;
}

body.tax-product_cat .site-main,
body.tax-product_cat #content,
body.tax-product_cat .page-content,
body.tax-product_brand .site-main,
body.tax-product_brand #content,
body.tax-product_brand .page-content {
	max-width: 1520px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.hec-cat {
	max-width: 1520px !important;
	margin: 0 auto !important;
	padding: 0 16px 48px !important;
	color: #1c1c1b !important;
	font-family: "Manrope", sans-serif !important;
}

.hec-cat__shell {
	display: grid !important;
	grid-template-columns: 280px minmax(0, 1fr) !important;
	gap: 32px 40px !important;
	align-items: start !important;
}

.hec-cat__layout {
	display: contents !important;
}

.hec-cat .hec-results {
	display: contents !important;
	max-width: none !important;
	margin: 0 !important;
	gap: 0 !important;
	grid-template-columns: none !important;
}

.hec-cat .hec-results__main {
	min-width: 0 !important;
}

.hec-cat__filters,
.hec-results__filters.hec-cat__filters {
	grid-column: 1 !important;
	grid-row: 1 !important;
}

.hec-cat__main {
	grid-column: 2 !important;
	grid-row: 1 !important;
	min-width: 0 !important;
}

.hec-cat__parent-reviews {
	grid-column: 2 !important;
	grid-row: 2 !important;
	min-width: 0 !important;
	overflow: visible !important;
}

.hec-cat__subcategory-reviews {
	grid-column: 1 / -1 !important;
	grid-row: 2 !important;
	min-width: 0 !important;
	overflow: visible !important;
}

/* Breadcrumbs */
.hec-cat__crumbs {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 6px !important;
	margin: 0 0 12px !important;
	font-size: 14px !important;
	color: #6b756e !important;
}

.hec-cat__crumbs a {
	color: #6b756e !important;
	text-decoration: none !important;
}

.hec-cat__crumbs a:hover {
	color: #1f5c3d !important;
	text-decoration: underline !important;
}

.hec-cat__crumb-sep {
	color: #b8bfb8 !important;
}

.hec-cat__brand-logo {
	display: block !important;
	max-width: 220px !important;
	max-height: 88px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	margin: 0 0 16px !important;
}

.hec-cat__title {
	margin: 0 0 8px !important;
	font-size: 32px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	color: #1c1c1b !important;
}

.hec-cat__desc {
	margin: 0 0 24px !important;
	color: #6b756e !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

.hec-cat__section {
	margin-bottom: 48px !important;
}

.hec-cat__section-title {
	margin: 0 0 20px !important;
	font-size: 24px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	color: #1c1c1b !important;
}

.hec-cat__section-bar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	margin-bottom: 20px !important;
}

.hec-cat__section-bar .hec-cat__section-title {
	margin-bottom: 0 !important;
}

.hec-cat__see-all {
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #1f5c3d !important;
	text-decoration: none !important;
}

.hec-cat__see-all:hover {
	text-decoration: underline !important;
}

/* Mobile "Filters" toggle button lives at the top of .hec-cat__main. */
.hec-cat .hec-filters-toggle {
	margin: 0 0 16px !important;
}

/* Sidebar filters — green accordion headers */
.hec-cat .hec-filter {
	border-bottom: none !important;
	margin-bottom: 10px !important;
}

.hec-cat .hec-filter__head {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	background: none !important;
	color: #1C1C1B !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 0 !important;
	font-size: 18px !important;
	line-height: 28px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

.hec-cat .hec-filter__toggle::before,
.hec-cat .hec-filter__toggle::after {
	background: #1C1C1B !important;
}

.hec-cat .hec-filter__body {
	padding: 14px 4px 8px !important;
}

.hec-cat .hec-filter__checks label {
	font-size: 14px !important;
	color: #46514a !important;
}

.hec-cat .hec-filter__count {
	background: #eef1ee !important;
	border-radius: 999px !important;
	padding: 1px 7px !important;
	font-size: 11px !important;
	color: #6b756e !important;
}

.hec-cat .hec-filter__swatches--grid {
	display: grid !important;
	grid-template-columns: repeat(6, 1fr) !important;
	gap: 8px !important;
}

.hec-cat .hec-swatch--filter {
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	height: auto !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	position: relative !important;
}

.hec-cat .hec-swatch--filter span {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	border-radius: 6px !important;
	/* color only — PHP sets background-image inline per swatch; a shorthand
	   `background` !important here would reset that image to none and win
	   over the (non-!important) inline style, flattening every swatch. */
	background-color: #d7dcd7 !important;
	background-size: cover !important;
	background-position: center !important;
	border: 1px solid #dcdcd8 !important;
}

.hec-cat .hec-swatch--filter.is-active span {
	outline: 2px solid #245230 !important;
	outline-offset: 1px !important;
}

.hec-cat .hec-size-pill {
	border: 1px solid #d7dcd7 !important;
	background: #fff !important;
	border-radius: 4px !important;
	padding: 6px 16px !important;
	font-size: 16px !important;
	line-height: 24px !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
}

.hec-cat .hec-size-pill.is-active {
	border-color: #245230 !important;
	color: #245230 !important;
	background: #f3f8f5 !important;
}

.hec-cat__dynamic.is-loading {
	opacity: 0.55 !important;
	pointer-events: none !important;
	transition: opacity 0.15s ease !important;
}

.hec-cat .hec-price__inputs input {
	border-radius: 8px !important;
	border: 1px solid #DCDCD8 !important;
}

.hec-cat .hec-price__ranges {
	position: relative !important;
	height: 36px !important;
	margin: 14px 0 8px !important;
}

.hec-cat .hec-price__track {
	position: absolute !important;
	top: 50% !important;
	left: 0 !important;
	right: 0 !important;
	height: 4px !important;
	transform: translateY(-50%) !important;
	background: #e6e9e6 !important;
	border-radius: 999px !important;
	pointer-events: none !important;
	z-index: 1 !important;
}

.hec-cat .hec-price__fill {
	position: absolute !important;
	top: 0 !important;
	height: 100% !important;
	background: #245230 !important;
	border-radius: 999px !important;
}

.hec-cat .hec-price__range {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background: transparent !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

.hec-cat .hec-price__range--max {
	z-index: 3 !important;
}

.hec-cat .hec-price__range::-webkit-slider-runnable-track {
	height: 4px !important;
	background: transparent !important;
	border: none !important;
}

.hec-cat .hec-price__range::-moz-range-track {
	height: 4px !important;
	background: transparent !important;
	border: none !important;
}

.hec-cat .hec-price__range::-webkit-slider-thumb {
	appearance: none !important;
	-webkit-appearance: none !important;
	pointer-events: auto !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	border: 2px solid #245230 !important;
	background: #fff !important;
	cursor: pointer !important;
	margin-top: -7px !important;
}

.hec-cat .hec-price__range::-moz-range-thumb {
	pointer-events: auto !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	border: 2px solid #245230 !important;
	background: #fff !important;
	cursor: pointer !important;
}

.hec-cat .hec-price__range:focus {
	outline: none !important;
}

.hec-cat .hec-price__range:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px rgba(36, 82, 48, 0.25) !important;
}

.hec-cat .hec-price__range:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 3px rgba(36, 82, 48, 0.25) !important;
}

/* Buttons — !important beats Elementor / theme global button CSS */
.hec-cat .primary-button,
.hec-cat a.primary-button,
.hec-cat button.primary-button,
.hec-cat input.primary-button[type="submit"],
.hec-cat input.primary-button[type="button"],
.hec-cat .hec-btn.primary-button,
.hec-cat .hec-filter__head {
	box-sizing: border-box !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}

.hec-cat .primary-button,
.hec-cat a.primary-button,
.hec-cat button.primary-button,
.hec-cat input.primary-button[type="submit"],
.hec-cat input.primary-button[type="button"],
.hec-cat .hec-btn.primary-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	background-color: #245230 !important;
	color: #fff !important;
	font-family: "Manrope", sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 24px !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 12px 24px !important;
	text-decoration: none !important;
	cursor: pointer !important;
	min-height: auto !important;
	width: auto !important;
	max-width: none !important;
}

.hec-cat .primary-button:hover,
.hec-cat a.primary-button:hover,
.hec-cat button.primary-button:hover,
.hec-cat .hec-btn.primary-button:hover {
	background-color: #1f5c3d !important;
	color: #fff !important;
}

/* Product grids */
.hec-cat__top-picks,
.hec-cat__products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 28px 24px !important;
}

/* Product cards on category archive */
.hec-cat .hec-pcard {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

.hec-cat .hec-pcard__media {
	position: relative !important;
	display: block !important;
	background: #ededed !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	aspect-ratio: 1 / 1 !important;
}

.hec-cat .hec-pcard__media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.hec-cat .hec-pcard__wish {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	z-index: 2 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.92) !important;
	color: #1c1c1b !important;
	cursor: pointer !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.hec-cat .hec-pcard__title {
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #1c1c1b !important;
	text-decoration: none !important;
}

.hec-cat .hec-pcard__rating {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 6px !important;
	font-size: 13px !important;
	color: #6b756e !important;
}

.hec-cat .hec-pcard__rating .star-rating {
	font-size: 14px !important;
	color: #f5a623 !important;
}

.hec-cat .hec-pcard__bottom {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	min-height: 28px !important;
}

.hec-cat .hec-pcard__swatches {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
}

.hec-cat .hec-pcard__swatches .hec-swatch {
	width: 22px !important;
	height: 22px !important;
	border-radius: 4px !important;
	border: 1px solid #dcdcd8 !important;
}

.hec-cat .hec-swatch__more {
	font-size: 12px !important;
	color: #6b756e !important;
	font-weight: 500 !important;
}

.hec-cat .hec-pcard__sizes {
	border: 1px solid #d7dcd7 !important;
	border-radius: 999px !important;
	padding: 4px 10px !important;
	font-size: 11px !important;
	color: #6b756e !important;
	white-space: nowrap !important;
	background: #fff !important;
}

.hec-cat .hec-pcard__price {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	gap: 4px !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
}

.hec-cat .hec-pcard__price-main {
	font-weight: 700 !important;
	color: #1f5c3d !important;
}

.hec-cat .hec-pcard__price-suffix {
	font-size: 13px !important;
	font-weight: 400 !important;
	color: #6b756e !important;
}

/* Popular brands row */
.hec-cat__brands {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 16px !important;
}

.hec-cat__brands .hec-brand-card {
	min-height: 96px !important;
	padding: 20px 16px !important;
	border: 1px solid #e6e9e6 !important;
	border-radius: 12px !important;
	background: #fff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.hec-cat__brands .hec-brand-card img {
	max-height: 48px !important;
	max-width: 100% !important;
	object-fit: contain !important;
}

/* Browse by category */
.hec-cat__subcats {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 20px !important;
}

.hec-cat-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 20px !important;
	padding: 28px 24px 24px !important;
	background: #f7f3ea !important;
	border-radius: 16px !important;
	text-decoration: none !important;
	color: #1c1c1b !important;
	transition: box-shadow 0.15s ease, transform 0.15s ease !important;
}

.hec-cat-card:hover {
	box-shadow: 0 8px 24px rgba(20, 40, 28, 0.08) !important;
	transform: translateY(-2px) !important;
}

.hec-cat-card__media {
	display: block !important;
	width: 100% !important;
}

.hec-cat-card__hero {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 220px !important;
}

.hec-cat-card__hero img {
	max-width: 100% !important;
	max-height: 220px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	display: block !important;
}

.hec-cat-card__name {
	font-size: 20px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	text-align: center !important;
	color: #1c1c1b !important;
}

/* Sort + pagination */
.hec-cat .hec-results__sort select {
	border: 1px solid #d7dcd7 !important;
	border-radius: 8px !important;
	padding: 8px 30px 8px 12px !important;
	font-size: 13px !important;
	background: #fff !important;
}

.hec-cat .hec-results__more .hec-btn,
.hec-cat .hec-results__more .primary-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px 24px !important;
	border-radius: 8px !important;
	background-color: #245230 !important;
	color: #fff !important;
	border: none !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	cursor: pointer !important;
}

.hec-cat .hec-results__pagination .page-numbers.current {
	background: #245230 !important;
	color: #fff !important;
}

.hec-cat__empty {
	padding: 24px 0 !important;
	color: #6b756e !important;
	font-size: 14px !important;
}

.hec-cat__subcategory-reviews {
	margin-top: 48px !important;
}

.hec-cat__subcategory-reviews .hec-reviews {
	max-width: none !important;
	padding: 0 !important;
}

.hec-cat__subcategory-reviews .hec-reviews__header {
	justify-content: space-between !important;
}

.hec-cat__subcategory-reviews .hec-reviews__title {
	font-size: 24px !important;
	text-align: left !important;
}

.hec-cat__subcategory-reviews .hec-reviews__nav {
	position: static !important;
	transform: none !important;
	margin-right: 0 !important;
	gap: 4px !important;
}

@media (max-width: 1100px) {
	.hec-cat__shell {
		grid-template-columns: 240px minmax(0, 1fr) !important;
		gap: 24px !important;
	}

	.hec-cat__brands {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.hec-cat .hec-filter__swatches--grid {
		grid-template-columns: repeat(5, 1fr) !important;
	}
}

@media (max-width: 900px) {
	.hec-cat__shell {
		grid-template-columns: 1fr !important;
	}

	.hec-cat__filters,
	.hec-results__filters.hec-cat__filters {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

	.hec-cat__main {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.hec-cat__parent-reviews,
	.hec-cat__subcategory-reviews {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}

	.hec-cat__top-picks,
	.hec-cat__products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.hec-cat__subcats {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	/* Colors smaller on mobile: more, tighter swatches instead of a few big ones. */
	.hec-cat .hec-filter__swatches--grid {
		grid-template-columns: repeat(7, 1fr) !important;
		gap: 6px !important;
	}
	.hec-cat .hec-swatch--filter {
		max-width: 28px !important;
	}
	.hec-cat .hec-pcard__swatches .hec-swatch {
		width: 18px !important;
		height: 18px !important;
	}
}

@media (max-width: 560px) {
	.hec-cat__top-picks,
	.hec-cat__products,
	.hec-cat__subcats,
	.hec-cat__brands {
		grid-template-columns: 1fr !important;
	}

	.hec-cat .hec-filter__swatches--grid {
		grid-template-columns: repeat(6, 1fr) !important;
		gap: 5px !important;
	}
	.hec-cat .hec-swatch--filter {
		max-width: 24px !important;
	}
	.hec-cat .hec-pcard__swatches .hec-swatch {
		width: 16px !important;
		height: 16px !important;
	}
}
