/**
 * Achol Core – Shop / Archive
 * Version: 1.12.30 — React filter sidebar parity — React prototype visual parity
 */

/* ========================================
   ARCHIVE HEADER
   ======================================== */
.achol-shop-header {
	background: var(--achol-color-soft-neutral);
	text-align: center;
	padding: 2rem 1rem;
}

@media (min-width: 768px) {
	.achol-shop-header {
		padding: 2.5rem 1rem;
	}
}

.achol-shop-header__eyebrow {
	margin: 0;
	font-size: var(--achol-font-size-xs);
	font-weight: var(--achol-font-weight-medium);
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--achol-color-primary);
}

.achol-shop-header__title {
	margin: 0.5rem 0 0;
	font-size: 1.5rem;
	font-weight: var(--achol-font-weight-semibold);
	color: var(--achol-color-secondary);
}

@media (min-width: 768px) {
	.achol-shop-header__title {
		font-size: 2.25rem;
	}
}

.achol-shop-header__desc {
	margin: 0.75rem auto 0;
	max-width: 36rem;
	font-size: var(--achol-font-size-sm);
	color: var(--achol-color-text-muted);
}

/* ========================================
   TOOLBAR
   ======================================== */
.achol-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 1rem 0;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid var(--achol-color-border-light);
}

.achol-shop-toolbar__count {
	font-size: var(--achol-font-size-sm);
	color: var(--achol-color-text-muted);
	flex: 1 1 auto;
}

.achol-shop-toolbar__count .woocommerce-result-count {
	margin: 0;
}

.achol-shop-toolbar__sort {
	margin-left: auto;
}

.achol-shop-toolbar__sort .woocommerce-ordering {
	margin: 0;
}

.achol-shop-toolbar__sort select {
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	border: 1px solid var(--achol-color-border);
	border-radius: var(--achol-radius-sm);
	background: var(--achol-color-background);
	font-size: var(--achol-font-size-sm);
	font-family: inherit;
	color: var(--achol-color-secondary);
}

.achol-shop-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--achol-color-border);
	border-radius: var(--achol-radius-sm);
	background: var(--achol-color-background);
	font-size: var(--achol-font-size-sm);
	font-weight: var(--achol-font-weight-medium);
	font-family: inherit;
	color: var(--achol-color-secondary);
	cursor: pointer;
}

@media (min-width: 1024px) {
	.achol-shop-filter-toggle {
		display: none;
	}
}

/* ========================================
   LAYOUT: sidebar + grid
   ======================================== */
.achol-shop-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	padding-bottom: 3rem;
}

@media (min-width: 1024px) {
	.achol-shop--has-sidebar .achol-shop-layout {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 2rem;
	}
}

.achol-shop-main {
	min-width: 0;
}

/* ========================================
   SIDEBAR / FILTERS — React parity
   ======================================== */
.achol-shop-sidebar {
	display: none;
}

@media (min-width: 1024px) {
	.achol-shop-sidebar {
		display: block;
		position: sticky;
		top: 6rem;
		align-self: start;
		max-height: calc(100vh - 7rem);
		overflow-y: auto;
		padding-right: 0.25rem;
	}
	.achol-shop-sidebar__footer {
		display: none;
	}
	.achol-shop-sidebar__close {
		display: none;
	}
}

/* Mobile filter drawer — opens from right (React) */
.achol-shop-sidebar.is-open {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 70;
	background: rgba(10, 10, 10, 0.5);
	padding: 0;
}

.achol-shop-sidebar.is-open .achol-shop-sidebar__inner {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	bottom: 0;
	width: min(22rem, 85vw);
	max-width: 24rem;
	background: #fff;
	padding: 1.25rem 1.25rem 5.5rem;
	overflow: auto;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
}

.achol-shop-sidebar__inner {
	display: flex;
	flex-direction: column;
}

.achol-shop-sidebar__body {
	flex: 1 1 auto;
}

.achol-shop-sidebar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--achol-color-border, #e8e2d8);
}

@media (min-width: 1024px) {
	.achol-shop-sidebar__head {
		display: none;
	}
}

.achol-shop-sidebar__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--achol-color-secondary, #0a0a0a);
}

.achol-shop-sidebar__close {
	display: inline-flex;
	width: 2.25rem;
	height: 2.25rem;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
	color: var(--achol-color-secondary, #0a0a0a);
	border-radius: 4px;
}

.achol-shop-sidebar__close:hover {
	color: var(--achol-color-primary, #ff751f);
}

.achol-shop-sidebar__footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 1.25rem;
	padding-bottom: max(1rem, env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid var(--achol-color-border, #e8e2d8);
}

.achol-shop-sidebar__apply {
	width: 100%;
	min-height: 2.75rem;
	border-radius: 4px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--achol-color-primary, #ff751f) !important;
	border: 1px solid var(--achol-color-primary, #ff751f) !important;
	color: #fff !important;
	cursor: pointer;
}

/* Filter blocks */
.achol-shop-filter-block {
	margin-bottom: 2rem;
}

.achol-shop-filter-block__title,
.achol-shop-filter-block .widget-title {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--achol-color-secondary, #0a0a0a);
}

.achol-shop-filter-block ul,
.achol-shop-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.achol-shop-filter-block li {
	margin: 0 0 0.65rem;
}

.achol-shop-filter-block a,
.achol-shop-filter-block label {
	font-size: 0.875rem;
	color: var(--achol-color-text-muted, #706a62);
	text-decoration: none;
}

.achol-shop-filter-block a:hover {
	color: var(--achol-color-secondary, #0a0a0a);
}

/* Checkbox-style filter rows */
.achol-shop-filter-check {
	display: flex !important;
	align-items: center;
	gap: 0.65rem;
	cursor: pointer;
	color: var(--achol-color-text-muted, #706a62) !important;
	text-decoration: none !important;
	font-size: 0.875rem !important;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.achol-shop-filter-check:hover {
	color: var(--achol-color-secondary, #0a0a0a) !important;
}

.achol-shop-filter-check__box {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	border: 1.5px solid var(--achol-color-border, #e8e2d8);
	border-radius: 3px;
	background: #fff;
	position: relative;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.achol-shop-filter-check.is-checked .achol-shop-filter-check__box,
.achol-shop-filter-list li.is-active .achol-shop-filter-check__box {
	background: var(--achol-color-primary, #ff751f);
	border-color: var(--achol-color-primary, #ff751f);
}

.achol-shop-filter-check.is-checked .achol-shop-filter-check__box::after,
.achol-shop-filter-list li.is-active .achol-shop-filter-check__box::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.achol-shop-filter-check__label {
	flex: 1 1 auto;
}

/* Size pills */
.achol-shop-filter-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.achol-shop-filter-size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--achol-color-border, #e8e2d8);
	border-radius: 4px;
	background: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--achol-color-secondary, #0a0a0a) !important;
	text-decoration: none !important;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.achol-shop-filter-size:hover {
	border-color: var(--achol-color-primary, #ff751f);
	color: var(--achol-color-primary, #ff751f) !important;
}

.achol-shop-filter-size.is-active {
	border-color: var(--achol-color-primary, #ff751f);
	color: var(--achol-color-primary, #ff751f) !important;
	background: var(--achol-color-primary-light, #ffe4d1);
}

/* Price filter */
.achol-shop-price-filter__values {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--achol-color-secondary, #0a0a0a);
}

.achol-shop-price-filter__sep {
	color: var(--achol-color-text-muted, #706a62);
}

.achol-shop-price-filter__sliders {
	position: relative;
	height: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.35rem;
}

.achol-shop-price-filter__range {
	width: 100%;
	accent-color: var(--achol-color-primary, #ff751f);
	cursor: pointer;
	height: 0.35rem;
}

.achol-shop-price-filter__hint {
	margin: 0.5rem 0 0.75rem;
	font-size: 0.75rem;
	color: var(--achol-color-text-muted, #706a62);
}

.achol-shop-price-filter__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.85rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 1px solid var(--achol-color-border, #e8e2d8);
	border-radius: 4px;
	background: #fff;
	color: var(--achol-color-secondary, #0a0a0a);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.achol-shop-price-filter__submit:hover {
	border-color: var(--achol-color-primary, #ff751f);
	color: var(--achol-color-primary, #ff751f);
}

.achol-shop-filter-clear {
	display: inline-block;
	font-size: 0.8125rem !important;
	font-weight: 500;
	color: var(--achol-color-primary, #ff751f) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.achol-shop-filter-clear:hover {
	color: var(--achol-color-primary-hover, #e0630f) !important;
}

/* WooCommerce widgets inside sidebar */
.achol-shop-sidebar .widget,
.achol-shop-filter-block.widget {
	margin-bottom: 2rem;
}

.achol-shop-sidebar .woocommerce-widget-layered-nav-list,
.achol-shop-sidebar .wc-block-product-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.achol-shop-sidebar .woocommerce-widget-layered-nav-list__item,
.achol-shop-sidebar .wc-block-product-categories-list-item {
	margin: 0 0 0.65rem;
}

.achol-shop-sidebar .price_slider_wrapper .ui-slider {
	background: var(--achol-color-border, #e8e2d8);
	border: 0;
	height: 4px;
	margin: 1rem 0;
}

.achol-shop-sidebar .price_slider_wrapper .ui-slider-range {
	background: var(--achol-color-primary, #ff751f);
}

.achol-shop-sidebar .price_slider_wrapper .ui-slider-handle {
	background: #fff;
	border: 2px solid var(--achol-color-primary, #ff751f);
	border-radius: 50%;
	width: 1rem;
	height: 1rem;
	top: -6px;
	cursor: pointer;
}

.achol-shop-sidebar .price_slider_amount .button {
	background: var(--achol-color-primary, #ff751f) !important;
	border-color: var(--achol-color-primary, #ff751f) !important;
	color: #fff !important;
	border-radius: 4px;
	font-size: 0.75rem;
	text-transform: uppercase;
	font-weight: 600;
}

/* Filter toggle button */
.achol-shop-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.85rem !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 1px solid var(--achol-color-border, #e8e2d8) !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: var(--achol-color-secondary, #0a0a0a) !important;
}

.achol-shop-filter-toggle:hover {
	border-color: var(--achol-color-primary, #ff751f) !important;
	color: var(--achol-color-primary, #ff751f) !important;
}

@media (min-width: 1024px) {
	.achol-shop-filter-toggle {
		display: none !important;
	}
}

/* Wider sidebar column on desktop */
@media (min-width: 1024px) {
	.achol-shop--has-sidebar .achol-shop-layout {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 2.5rem;
	}
}


/* ========================================
   PRODUCT GRID
   ======================================== */
.achol-shop ul.products,
body.achol-shop ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	clear: both;
}

@media (min-width: 640px) {
	.achol-shop ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	body.achol-shop-cols-3 ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	body.achol-shop-cols-4 ul.products,
	.achol-shop ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	body.achol-shop-cols-5 ul.products {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.achol-shop ul.products::before,
.achol-shop ul.products::after {
	display: none !important;
}

.achol-shop ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	padding: 0;
}

/* Hide default WC loop chrome we replace */
.achol-shop ul.products li.product .woocommerce-loop-product__title,
.achol-shop ul.products li.product .price,
.achol-shop ul.products li.product .button,
.achol-shop ul.products li.product .added_to_cart {
	/* kept inside our card markup when used */
}

/* Pagination */
.achol-shop .woocommerce-pagination {
	margin-top: 2.5rem;
	text-align: center;
}

.achol-shop .woocommerce-pagination ul {
	display: inline-flex;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.achol-shop .woocommerce-pagination a,
.achol-shop .woocommerce-pagination span {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--achol-color-border);
	border-radius: var(--achol-radius-sm);
	font-size: var(--achol-font-size-sm);
	color: var(--achol-color-secondary);
	text-decoration: none;
}

.achol-shop .woocommerce-pagination .current {
	background: var(--achol-color-secondary);
	border-color: var(--achol-color-secondary);
	color: #fff;
}

.achol-shop .woocommerce-pagination a:hover {
	border-color: var(--achol-color-primary);
	color: var(--achol-color-primary);
}

body.achol-filter-open {
	overflow: hidden;
}

/* Container wrapper for catalog */
.achol-shop .achol-shop-container,
.woocommerce-page .achol-shop-container {
	width: 100%;
	max-width: var(--achol-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--achol-gutter-mobile);
	padding-right: var(--achol-gutter-mobile);
}

@media (min-width: 768px) {
	.achol-shop .achol-shop-container,
	.woocommerce-page .achol-shop-container {
		padding-left: var(--achol-gutter);
		padding-right: var(--achol-gutter);
	}
}


/* -------------------------------------------------------------------------- */
/* 1.13.26 — Mobile shop filters: one-tap drawer, toolbar, header safe        */
/* -------------------------------------------------------------------------- */

/* Toolbar: Filter + Sort on first row, count second (no awkward wrap) */
@media (max-width: 1023px) {
	.achol-shop-toolbar {
		display: grid !important;
		grid-template-columns: auto 1fr !important;
		grid-template-areas:
			"filter sort"
			"count count" !important;
		align-items: center !important;
		gap: 0.65rem 0.75rem !important;
	}
	.achol-shop-filter-toggle {
		grid-area: filter !important;
		justify-self: start !important;
	}
	.achol-shop-toolbar__sort {
		grid-area: sort !important;
		margin-left: 0 !important;
		justify-self: stretch !important;
		width: 100% !important;
		min-width: 0 !important;
	}
	.achol-shop-toolbar__sort .woocommerce-ordering,
	.achol-shop-toolbar__sort select {
		width: 100% !important;
		max-width: 100% !important;
	}
	.achol-shop-toolbar__count {
		grid-area: count !important;
		flex: none !important;
	}
}

/* Drawer above sticky header; prevent empty / clipped body */
.achol-shop-sidebar.is-open {
	display: block !important;
	position: fixed !important;
	inset: 0 !important;
	z-index: 10050 !important; /* above site header */
	background: rgba(10, 10, 10, 0.45) !important;
}

.achol-shop-sidebar.is-open .achol-shop-sidebar__inner {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: min(22rem, 92vw) !important;
	max-width: 100% !important;
	background: #fff !important;
	padding: 0 !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	box-shadow: -8px 0 28px rgba(0, 0, 0, 0.14) !important;
}

.achol-shop-sidebar.is-open .achol-shop-sidebar__head {
	flex: 0 0 auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin: 0 !important;
	padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.85rem !important;
	border-bottom: 1px solid var(--achol-color-border, #e8e2d8) !important;
	background: #fff !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 2 !important;
}

.achol-shop-sidebar.is-open .achol-shop-sidebar__title {
	font-size: 1.05rem !important;
	font-weight: 600 !important;
}

.achol-shop-sidebar.is-open .achol-shop-sidebar__body {
	flex: 1 1 auto !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch !important;
	padding: 1rem 1.15rem 1.25rem !important;
	min-height: 0 !important;
}

.achol-shop-sidebar.is-open .achol-shop-sidebar__footer {
	flex: 0 0 auto !important;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	padding: 0.85rem 1.15rem max(0.85rem, env(safe-area-inset-bottom)) !important;
	background: #fff !important;
	border-top: 1px solid var(--achol-color-border, #e8e2d8) !important;
	z-index: 2 !important;
}

body.achol-filter-open {
	overflow: hidden !important;
	touch-action: none !important;
}

/* WC / block filters inside drawer: show content, avoid nested empty drawer UI */
.achol-shop-sidebar.is-open .wc-block-components-filter-wrapper,
.achol-shop-sidebar.is-open .wp-block-woocommerce-filter-wrapper,
.achol-shop-sidebar.is-open .wc-block-product-filter {
	display: block !important;
}

.achol-shop-sidebar.is-open .wc-block-components-drawer,
.achol-shop-sidebar.is-open .wc-block-components-drawer__screen-overlay {
	position: static !important;
	inset: auto !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	background: transparent !important;
	height: auto !important;
	max-height: none !important;
}

.achol-shop-sidebar.is-open .wc-block-components-drawer__content {
	position: static !important;
	transform: none !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	box-shadow: none !important;
	overflow: visible !important;
}

/* Hide redundant nested "Filter products" chrome when already in our drawer */
.achol-shop-sidebar.is-open .wc-block-components-drawer__close,
.achol-shop-sidebar.is-open button.wc-block-components-drawer__close {
	display: none !important;
}

.achol-shop-sidebar .widget {
	margin: 0 0 1.35rem !important;
}

.achol-shop-sidebar .widget:last-child {
	margin-bottom: 0 !important;
}



/* 1.13.87 — Infinite scroll (hide pagination completely) */
.achol-shop .woocommerce-pagination,
.achol-shop nav.woocommerce-pagination,
.woocommerce nav.woocommerce-pagination,
.woocommerce-pagination {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

.achol-shop-infinite {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1.5rem 1rem 2rem;
	clear: both;
}

.achol-shop-infinite__sentinel {
	width: 100%;
	height: 1px;
	pointer-events: none;
}

.achol-shop-infinite__status {
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--achol-color-text-muted, #706a62);
	text-align: center;
	padding: 0.5rem 1rem;
}

.achol-shop-infinite__status.is-loading {
	color: var(--achol-color-primary, #ff751f);
}

.achol-shop-infinite__status.is-end {
	color: var(--achol-color-text-muted, #706a62);
	opacity: 0.85;
}


/* -------------------------------------------------------------------------- */
/* 1.13.111 — Shop/Category: side pad 0.75rem, card gap = homepage             */
/* -------------------------------------------------------------------------- */

.achol-shop .achol-shop-container,
.woocommerce-page .achol-shop-container,
body.tax-product_cat .achol-shop-container,
body.tax-product_tag .achol-shop-container,
body.post-type-archive-product .achol-shop-container {
	padding-left: 0.75rem !important;
	padding-right: 0.75rem !important;
}

@media (min-width: 768px) {
	.achol-shop .achol-shop-container,
	.woocommerce-page .achol-shop-container,
	body.tax-product_cat .achol-shop-container,
	body.tax-product_tag .achol-shop-container,
	body.post-type-archive-product .achol-shop-container {
		padding-left: 0.75rem !important;
		padding-right: 0.75rem !important;
	}
}

/* Product card gap — match homepage (--achol-home-card-gap ≈ 0.65 / 0.75) */
.achol-shop ul.products,
body.achol-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.post-type-archive-product ul.products,
.woocommerce ul.products {
	gap: 0.65rem !important;
}

@media (min-width: 768px) {
	.achol-shop ul.products,
	body.achol-shop ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products,
	body.post-type-archive-product ul.products,
	.woocommerce ul.products {
		gap: 0.75rem !important;
	}
}


/* -------------------------------------------------------------------------- */
/* 1.13.112 — Aarong-style sticky horizontal filter bar (no sidebar)           */
/* -------------------------------------------------------------------------- */

.achol-shop--no-sidebar .achol-shop-layout,
.achol-shop-layout--no-sidebar {
	display: block !important;
	grid-template-columns: 1fr !important;
}

.achol-shop--no-sidebar .achol-shop-sidebar {
	display: none !important;
}

.achol-shop-filterbar {
	position: sticky;
	top: var(--achol-header-height-mobile, 64px);
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid var(--achol-color-border, #e8e4de);
	margin: 0 0 1rem;
}

@media (min-width: 1024px) {
	.achol-shop-filterbar {
		top: var(--achol-header-height, 76px);
	}
}

/* Announce bar + sticky header stack — approximate */
body.admin-bar .achol-shop-filterbar {
	top: calc(var(--achol-header-height-mobile, 64px) + 32px);
}
@media (min-width: 1024px) {
	body.admin-bar .achol-shop-filterbar {
		top: calc(var(--achol-header-height, 76px) + 32px);
	}
}

.achol-shop-filterbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.65rem 0.75rem;
	max-width: var(--achol-container-max, 1440px);
	margin: 0 auto;
}

.achol-shop-filterbar__count {
	font-size: 0.8rem;
	color: var(--achol-color-muted, #6b6560);
	white-space: nowrap;
}
.achol-shop-filterbar__count .woocommerce-result-count {
	margin: 0;
}

.achol-shop-filterbar__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	flex: 1 1 auto;
	min-width: 0;
}

.achol-shop-chip {
	position: relative;
}

.achol-shop-chip__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--achol-color-border, #e0dcd6);
	border-radius: 9999px;
	background: #fff;
	color: var(--achol-color-text, #1a1a1a);
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.achol-shop-chip__btn:hover,
.achol-shop-chip__btn[aria-expanded="true"],
.achol-shop-chip__btn.is-active {
	border-color: var(--achol-color-primary, #ff751f);
	color: var(--achol-color-primary, #ff751f);
}

.achol-shop-chip__btn svg {
	opacity: 0.7;
}

.achol-shop-chip__panel {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	z-index: 50;
	min-width: 200px;
	max-width: min(320px, 90vw);
	padding: 0.75rem;
	background: #fff;
	border: 1px solid var(--achol-color-border, #e8e4de);
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.achol-shop-chip__panel[hidden] {
	display: none !important;
}

.achol-shop-chip__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 260px;
	overflow-y: auto;
}

.achol-shop-chip__list li {
	margin: 0;
}

.achol-shop-chip__list a {
	display: block;
	padding: 0.45rem 0.5rem;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	font-size: 0.875rem;
}

.achol-shop-chip__list a:hover,
.achol-shop-chip__list li.is-active a {
	background: var(--achol-color-soft-neutral, #f5f2ed);
	color: var(--achol-color-primary, #ff751f);
}

.achol-shop-price-filter--chip .achol-shop-price-filter__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}

.achol-shop-price-filter--chip label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.75rem;
	color: var(--achol-color-muted, #6b6560);
}

.achol-shop-price-filter--chip input[type="number"] {
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--achol-color-border, #e0dcd6);
	border-radius: 6px;
	font-size: 0.875rem;
	width: 100%;
}

.achol-shop-price-filter--chip .achol-shop-price-filter__apply {
	width: 100%;
	padding: 0.5rem;
	font-size: 0.8125rem;
}

.achol-shop-filterbar__sort {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
	flex-shrink: 0;
}

.achol-shop-filterbar__sort-label {
	font-size: 0.8125rem;
	color: var(--achol-color-muted, #6b6560);
	white-space: nowrap;
}

.achol-shop-filterbar__sort .woocommerce-ordering {
	margin: 0;
}

.achol-shop-filterbar__sort select {
	border: 1px solid var(--achol-color-border, #e0dcd6);
	border-radius: 6px;
	padding: 0.35rem 1.75rem 0.35rem 0.6rem;
	font-size: 0.8125rem;
	background: #fff;
	max-width: 160px;
}

/* Hide legacy toolbar if any leftover */
.achol-shop--no-sidebar .achol-shop-toolbar {
	display: none !important;
}

@media (max-width: 640px) {
	.achol-shop-filterbar__inner {
		padding: 0.5rem 0.75rem;
	}
	.achol-shop-filterbar__count {
		width: 100%;
		order: -1;
	}
	.achol-shop-filterbar__sort-label {
		display: none;
	}
}


/* -------------------------------------------------------------------------- */
/* 1.13.113 — Filter bar sync with header hide + side drawer                   */
/* -------------------------------------------------------------------------- */

.achol-shop-filterbar {
	position: sticky !important;
	top: var(--achol-header-stack, var(--achol-header-height-mobile, 64px)) !important;
	z-index: 45 !important;
	transition: top 0.25s ease;
	background: #fff !important;
}

@media (min-width: 1024px) {
	.achol-shop-filterbar {
		top: var(--achol-header-stack, var(--achol-header-height, 76px)) !important;
	}
}

/* Header hidden on scroll → filter bar goes to top */
html.achol-header-hidden .achol-shop-filterbar {
	top: 0 !important;
}

body.admin-bar html.achol-header-hidden .achol-shop-filterbar,
html.achol-header-hidden body.admin-bar .achol-shop-filterbar {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar html.achol-header-hidden .achol-shop-filterbar,
	html.achol-header-hidden body.admin-bar .achol-shop-filterbar {
		top: 46px !important;
	}
}

.achol-shop-filterbar__heading {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--achol-color-text, #1a1a1a);
	white-space: nowrap;
	margin-right: 0.15rem;
}

/* Side drawer */
.achol-shop-drawer {
	position: fixed;
	inset: 0;
	z-index: 10050;
	pointer-events: none;
	visibility: hidden;
}

.achol-shop-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.achol-shop-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.achol-shop-drawer.is-open .achol-shop-drawer__backdrop {
	opacity: 1;
}

.achol-shop-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(360px, 92vw);
	background: #fff;
	box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.28s ease;
}

.achol-shop-drawer.is-open .achol-shop-drawer__panel {
	transform: translateX(0);
}

.achol-shop-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.1rem;
	border-bottom: 1px solid var(--achol-color-border, #e8e4de);
	flex-shrink: 0;
}

.achol-shop-drawer__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.achol-shop-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
	border-radius: 8px;
}

.achol-shop-drawer__close:hover {
	background: var(--achol-color-soft-neutral, #f5f2ed);
}

.achol-shop-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 1rem 1.1rem 1.5rem;
}

.achol-shop-drawer__section {
	display: none;
	margin-bottom: 1.25rem;
}

.achol-shop-drawer__section.is-active {
	display: block;
}

.achol-shop-drawer__section-title {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.achol-shop-drawer__foot {
	padding: 0.85rem 1.1rem;
	border-top: 1px solid var(--achol-color-border, #e8e4de);
	flex-shrink: 0;
}

.achol-shop-drawer__foot .achol-shop-filter-clear {
	font-size: 0.875rem;
	color: var(--achol-color-primary, #ff751f);
	text-decoration: none;
}

body.achol-shop-drawer-open {
	overflow: hidden;
}


/* -------------------------------------------------------------------------- */
/* 1.13.114 — Breadcrumb, scroll-hide meta, accordion drawer                   */
/* -------------------------------------------------------------------------- */

/* Hide old page title header */
.achol-shop-header {
	display: none !important;
}

.achol-shop-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	padding: 0.75rem 0.75rem 0.35rem;
	font-size: 0.8125rem;
	color: var(--achol-color-muted, #6b6560);
	transition: opacity 0.2s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
	max-height: 4rem;
	overflow: hidden;
}

.achol-shop-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.achol-shop-breadcrumb a:hover {
	color: var(--achol-color-primary, #ff751f);
}

.achol-shop-breadcrumb__sep {
	opacity: 0.5;
}

.achol-shop-breadcrumb__current {
	color: var(--achol-color-text, #1a1a1a);
	font-weight: 500;
}

.achol-shop-meta {
	padding: 0.25rem 0.75rem 0.5rem;
	font-size: 0.8rem;
	color: var(--achol-color-muted, #6b6560);
	transition: opacity 0.2s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
	max-height: 3rem;
	overflow: hidden;
}

.achol-shop-meta .woocommerce-result-count {
	margin: 0;
}

/* Scroll-hide elements */
[data-achol-shop-scrollhide].is-scroll-hidden {
	opacity: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	pointer-events: none;
}

/* Accordion in drawer */
.achol-shop-acc {
	border-bottom: 1px solid var(--achol-color-border, #e8e4de);
}

.achol-shop-acc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: inherit;
	text-align: left;
}

.achol-shop-acc__icon {
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1;
	color: var(--achol-color-muted, #6b6560);
}

.achol-shop-acc__body {
	padding: 0 0 1rem;
}

.achol-shop-acc__body[hidden] {
	display: none !important;
}

/* When section highlighted from chip, force open via JS class */
.achol-shop-drawer__section { display: block; } /* legacy */

.achol-shop-filterbar__count {
	display: none !important; /* count moved to meta row */
}


/* -------------------------------------------------------------------------- */
/* 1.13.115 — Hide Shop H1, breadcrumb visible, filterbar under header         */
/* -------------------------------------------------------------------------- */

/* Kill WooCommerce / theme archive titles on catalog */
body.achol-shop .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header,
body.achol-shop .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title,
body.post-type-archive-product h1.page-title,
body.tax-product_cat h1.page-title,
body.achol-shop .page-header,
body.achol-shop .entry-header,
.achol-shop-header,
.achol-shop-header__title,
.achol-shop-header__eyebrow {
	display: none !important;
}

/* Breadcrumb always visible (until scroll-hide JS) */
.achol-shop-breadcrumb {
	display: flex !important;
	visibility: visible !important;
	opacity: 1;
	max-height: 4rem !important;
	padding: 0.85rem 0.75rem 0.4rem !important;
	position: relative;
	z-index: 1;
}

.achol-shop-breadcrumb.is-scroll-hidden {
	opacity: 0 !important;
	max-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
}

/* Meta (Showing results) below filter bar */
.achol-shop-meta {
	padding: 0.5rem 0.75rem 0.75rem !important;
	position: relative;
	z-index: 1;
}

/* Sticky filter bar — sit BELOW sticky header, not under it */
.achol-shop-filterbar {
	position: sticky !important;
	top: var(--achol-header-stack, 64px) !important;
	z-index: 90 !important; /* below typical header (~100–1000) but above content */
	background: #fff !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
	.achol-shop-filterbar {
		top: var(--achol-header-stack, 76px) !important;
	}
}

/* When header hides on scroll, filter bar goes to top */
html.achol-header-hidden .achol-shop-filterbar {
	top: 0 !important;
}

body.admin-bar .achol-shop-filterbar {
	top: calc(var(--achol-header-stack, 64px) + 32px) !important;
}

html.achol-header-hidden body.admin-bar .achol-shop-filterbar,
body.admin-bar html.achol-header-hidden .achol-shop-filterbar {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .achol-shop-filterbar {
		top: calc(var(--achol-header-stack, 64px) + 46px) !important;
	}
	html.achol-header-hidden body.admin-bar .achol-shop-filterbar,
	body.admin-bar html.achol-header-hidden .achol-shop-filterbar {
		top: 46px !important;
	}
}


/* -------------------------------------------------------------------------- */
/* 1.13.116 — Filterbar under header, no z-fight / overlap                     */
/* -------------------------------------------------------------------------- */

.achol-shop-filterbar {
	position: sticky !important;
	/* JS sets inline top from header getBoundingClientRect().bottom */
	top: var(--achol-filterbar-top, var(--achol-header-stack, 64px)) !important;
	z-index: 900 !important; /* below header (1000) — header always wins if frames overlap */
	background: #fff !important;
	transition: top 0.2s ease;
	will-change: top;
}

/* Kill older fixed top rules that fight JS */
html.achol-header-hidden .achol-shop-filterbar {
	/* JS drives top; keep rule soft */
	top: var(--achol-filterbar-top, 0px) !important;
}

body.admin-bar .achol-shop-filterbar {
	/* rect.bottom already accounts for admin bar offset of sticky header */
	top: var(--achol-filterbar-top, var(--achol-header-stack, 64px)) !important;
}


/* -------------------------------------------------------------------------- */
/* 1.13.130 — Mobile: Filters gear + Sort By on ONE sticky row (Aarong)        */
/* -------------------------------------------------------------------------- */

.achol-shop-filterbar__filters {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
}

.achol-shop-filterbar__gear {
	display: none; /* desktop: chips instead */
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--achol-color-border, #e0dcd6);
	border-radius: 8px;
	background: #fff;
	color: var(--achol-color-text, #1a1a1a);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.achol-shop-filterbar__gear:hover,
.achol-shop-filterbar__gear:focus-visible {
	border-color: var(--achol-color-primary, #ff751f);
	color: var(--achol-color-primary, #ff751f);
	outline: none;
}

@media (max-width: 767px) {
	.achol-shop-filterbar__inner {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 0.5rem !important;
		padding: 0.55rem 0.75rem !important;
	}

	/* Left: Filters: + gear */
	.achol-shop-filterbar__filters {
		display: flex !important;
		align-items: center !important;
		gap: 0.35rem !important;
	}

	.achol-shop-filterbar__heading {
		font-size: 0.8125rem !important;
		font-weight: 600 !important;
	}

	.achol-shop-filterbar__gear {
		display: inline-flex !important;
	}

	/* Hide desktop chips on mobile */
	.achol-shop-filterbar__chips {
		display: none !important;
	}

	/* Right: Sort By + select — same row */
	.achol-shop-filterbar__sort {
		display: flex !important;
		align-items: center !important;
		gap: 0.35rem !important;
		margin-left: auto !important;
		flex-shrink: 1 !important;
		min-width: 0 !important;
	}

	.achol-shop-filterbar__sort-label {
		display: inline !important;
		font-size: 0.8125rem !important;
		color: var(--achol-color-muted, #6b6560) !important;
		white-space: nowrap !important;
	}

	.achol-shop-filterbar__sort .woocommerce-ordering {
		margin: 0 !important;
	}

	.achol-shop-filterbar__sort select {
		max-width: 9.5rem !important;
		font-size: 0.8125rem !important;
		padding: 0.4rem 1.6rem 0.4rem 0.55rem !important;
		border-radius: 8px !important;
	}
}

@media (min-width: 768px) {
	.achol-shop-filterbar__gear {
		display: none !important;
	}
	.achol-shop-filterbar__chips {
		display: flex !important;
	}
}


/* -------------------------------------------------------------------------- */
/* 1.13.131 — Dual-handle price range (drawer + professional track)            */
/* -------------------------------------------------------------------------- */

.achol-shop-price-filter--range .achol-shop-price-filter__values {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--achol-color-text, #1a1a1a);
}

.achol-shop-price-filter--range .achol-shop-price-filter__sep {
	color: var(--achol-color-muted, #6b6560);
	font-weight: 400;
}

.achol-shop-price-filter__track-wrap {
	position: relative;
	height: 28px;
	margin: 0.25rem 0 1rem;
	display: flex;
	align-items: center;
}

.achol-shop-price-filter__track-bg {
	position: absolute;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 999px;
	background: #e8e2d8;
	pointer-events: none;
}

.achol-shop-price-filter__track-fill {
	position: absolute;
	height: 4px;
	border-radius: 999px;
	background: var(--achol-color-primary, #ff751f);
	pointer-events: none;
	z-index: 1;
}

.achol-shop-price-filter--range .achol-shop-price-filter__range {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	height: 28px;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	z-index: 2;
}

.achol-shop-price-filter--range .achol-shop-price-filter__range--max {
	z-index: 3;
}

.achol-shop-price-filter--range .achol-shop-price-filter__range::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
	border: none;
}

.achol-shop-price-filter--range .achol-shop-price-filter__range::-moz-range-track {
	height: 4px;
	background: transparent;
	border: none;
}

.achol-shop-price-filter--range .achol-shop-price-filter__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--achol-color-primary, #ff751f);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	cursor: grab;
	margin-top: -9px;
}

.achol-shop-price-filter--range .achol-shop-price-filter__range::-moz-range-thumb {
	pointer-events: auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--achol-color-primary, #ff751f);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	cursor: grab;
}

.achol-shop-price-filter--range .achol-shop-price-filter__range:active::-webkit-slider-thumb {
	cursor: grabbing;
	box-shadow: 0 0 0 4px rgba(255, 117, 31, 0.2);
}

.achol-shop-price-filter--range .achol-shop-price-filter__row--nums {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
	margin-bottom: 0.85rem;
}

.achol-shop-price-filter--range .achol-shop-price-filter__row--nums label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--achol-color-muted, #6b6560);
}

.achol-shop-price-filter--range .achol-shop-price-filter__row--nums input[type="number"] {
	width: 100%;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--achol-color-border, #e0dcd6);
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--achol-color-text, #1a1a1a);
	box-sizing: border-box;
}

.achol-shop-price-filter--range .achol-shop-price-filter__apply {
	width: 100%;
}
