/**
 * Compact category hero — all product_cat archives on mobile (v1.6.164).
 * Applies globally (no mobile storefront shell body class required).
 */

@media (max-width: 767px) {
	body.tax-product_cat main#main > .hero-section,
	body.tax-product_cat .hero-section[data-type="type-2"],
	body.tax-product_cat .hero-section[data-type="type-1"],
	body.tax-product_cat .hero-section {
		--hero-min-height: 0px !important;
		--min-height: 0px !important;
		--hero-height: auto !important;
		--container-height: auto !important;
		--hero-container-height: auto !important;
		min-height: 0 !important;
		height: auto !important;
		max-height: none !important;
		padding: 10px 16px 12px !important;
		margin: 0 !important;
		display: block !important;
		flex: none !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		background: #fdfaf6 !important;
		background-image: none !important;
		aspect-ratio: auto !important;
		text-align: center !important;
		overflow: visible !important;
	}

	body.tax-product_cat .hero-section .entry-header,
	body.tax-product_cat .hero-section .entry-header.ct-container-narrow,
	body.tax-product_cat .hero-section .hero-section-inner {
		min-height: 0 !important;
		height: auto !important;
		max-height: none !important;
		padding: 0 !important;
		margin: 0 auto !important;
		max-width: 100% !important;
		display: block !important;
		flex: none !important;
	}

	body.tax-product_cat .hero-section .page-title,
	body.tax-product_cat .hero-section h1.page-title,
	body.tax-product_cat .hero-section .hero-title,
	body.tax-product_cat .hero-section h1 {
		margin: 0 !important;
		font-size: 1.125rem !important;
		line-height: 1.25 !important;
		letter-spacing: 0.08em !important;
		text-transform: uppercase !important;
		color: #4b3621 !important;
		font-weight: 500 !important;
	}

	body.tax-product_cat .hero-section .page-description,
	body.tax-product_cat .hero-section .page-description p {
		margin: 0.35rem 0 0 !important;
		font-size: 0.6875rem !important;
		line-height: 1.45 !important;
		color: #5a5a5a !important;
		max-width: 100% !important;
	}

	body.tax-product_cat .hero-section .ct-media-container,
	body.tax-product_cat .hero-section .ct-image-container,
	body.tax-product_cat .hero-section .ct-hero-media,
	body.tax-product_cat .hero-section .ct-background-image,
	body.tax-product_cat .hero-section picture,
	body.tax-product_cat .hero-section figure {
		display: none !important;
		height: 0 !important;
		min-height: 0 !important;
		max-height: 0 !important;
		overflow: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}

	body.tax-product_cat .hero-section + .ct-container,
	body.tax-product_cat .hero-section + .ct-container[data-vertical-spacing] {
		padding-top: 0 !important;
		margin-top: 0 !important;
		--theme-content-vertical-spacing: 0 !important;
	}

	/* Duplicate title block below Blocksy hero */
	body.tax-product_cat .hero-section + .ct-container .woocommerce-products-header,
	body.tax-product_cat .hero-section + .ct-container .woocommerce-products-header h1 {
		display: none !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
	}

	/* Categories without type-2 hero — compact WC header */
	body.tax-product_cat .woocommerce-products-header,
	body.tax-product_cat .page-header[data-background] {
		min-height: 0 !important;
		height: auto !important;
		padding: 10px 16px 12px !important;
		margin: 0 0 0.5rem !important;
		background: #fdfaf6 !important;
	}

	body.tax-product_cat .woocommerce-products-header__title,
	body.tax-product_cat .woocommerce-products-header h1,
	body.tax-product_cat .page-header[data-background] .page-title {
		font-size: 1.125rem !important;
		margin: 0 !important;
		letter-spacing: 0.08em !important;
	}

	body.tax-product_cat .woocommerce-products-header .term-description,
	body.tax-product_cat .page-header[data-background] .term-description,
	body.tax-product_cat .term-description {
		font-size: 0.6875rem !important;
		line-height: 1.45 !important;
		margin: 0.35rem auto 0 !important;
	}
}


/* v1.6.130 – 25 Oct 2026: category quick-filter links as swipeable pill buttons */
.rw-shop-filters{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:4px 0 12px;margin:8px 0 4px}
.rw-shop-filters::-webkit-scrollbar{display:none}
.rw-shop-filters .rw-shop-filter-btn{flex:0 0 auto;display:inline-flex;align-items:center;white-space:nowrap;padding:8px 14px;border:1px solid #d9cbb3;border-radius:999px;background:#fff;color:#1a1a1a;font-size:12px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;line-height:1.2}
.rw-shop-filters .rw-shop-filter-btn:hover,.rw-shop-filters .rw-shop-filter-btn:focus{background:#1a1a1a;color:#fff;border-color:#1a1a1a}
@media (min-width:900px){.rw-shop-filters{flex-wrap:wrap;overflow:visible}}
