/**
 * Shop archive layout — extracted from reference Shop – 舔狗糖果店.html (inline <style> block).
 */

/* layout */
#content .ast-container {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
}

/* sidebar */
#content .ast-container > #secondary.widget-area.secondary {
	width: 25% !important;
	flex: 0 0 25% !important;
	max-width: 25% !important;
	background-color: #111;
	border: 2px solid #39ff14;
	padding: 1rem;
	box-sizing: border-box;
	position: sticky;
	top: 6rem;
	margin: 0 !important;
}

.wm-sidebar-title {
	font-size: 1.25rem;
	font-weight: 900;
	color: #fff;
	background-color: #000;
	padding: 0.5rem;
	border: 1px solid #39ff14;
	margin-bottom: 1rem;
	text-align: center;
	font-family: "Noto Sans TC", sans-serif;
}

.wm-category-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 1.5rem 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-family: monospace;
	color: #9ca3af;
}

.wm-category-list li {
	margin: 0 !important;
	padding: 0 !important;
}

.wm-category-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid #222;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s;
}

.wm-category-list a span:first-child {
	transition: all 0.2s;
}

.wm-category-list a span:last-child {
	color: #333;
	font-size: 0.875rem;
}

.wm-category-list a:hover span:first-child {
	color: #39ff14;
}

.wm-category-list li.is-active a span:first-child {
	color: #ff00ff;
	font-weight: 700;
}

.wm-category-list li.is-active a span:last-child {
	color: #ff00ff;
	font-weight: 700;
}

.wm-category-list li.is-active a {
	pointer-events: none;
}

.wm-price-budget-section {
	margin-top: 1.5rem !important;
	padding-top: 1rem !important;
	border-top: 1px dashed #333 !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border-right: none !important;
	border-bottom: none !important;
	border-left: none !important;
}

.wm-price-budget-title {
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	color: #fff !important;
	margin: 0 0 1rem 0 !important;
	font-family: "Noto Sans TC", sans-serif !important;
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
	text-align: left !important;
}

.wm-range-wrap {
	margin-bottom: 1rem !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wm-range-input {
	width: 100% !important;
	height: 0.25rem !important;
	background: rgb(51, 51, 51) !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	cursor: pointer !important;
	accent-color: #39ff14 !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 0 0.5rem 0 !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
}

.wm-range-input::-webkit-slider-runnable-track {
	width: 100% !important;
	height: 0.25rem !important;
	background: rgb(51, 51, 51) !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.wm-range-input::-moz-range-track {
	width: 100% !important;
	height: 0.25rem !important;
	background: rgb(51, 51, 51) !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.wm-range-input::-webkit-slider-thumb {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 1rem !important;
	height: 1rem !important;
	background: #39ff14 !important;
	cursor: pointer !important;
	border-radius: 50% !important;
	border: none !important;
	box-shadow: none !important;
	margin-top: -0.375rem !important;
}

.wm-range-input::-moz-range-thumb {
	width: 1rem !important;
	height: 1rem !important;
	background: #39ff14 !important;
	cursor: pointer !important;
	border-radius: 50% !important;
	border: none !important;
	box-shadow: none !important;
}

.wm-range-labels {
	display: flex !important;
	justify-content: space-between !important;
	font-size: 0.75rem !important;
	color: #6b7280 !important;
	margin: 0 !important;
	line-height: 1 !important;
}

.wm-filter-btn {
	width: 100% !important;
	background-color: #333 !important;
	color: #fff !important;
	padding: 0.5rem 0 !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	border: 1px solid #4b5563 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	text-align: center !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	line-height: 1.25rem !important;
	outline: none !important;
}

.wm-filter-btn:hover {
	background-color: #39ff14 !important;
	color: #000 !important;
	border-color: #39ff14 !important;
}

@media (max-width: 1024px) {
	#content .ast-container {
		flex-direction: column !important;
		gap: 1rem;
	}

	#content .ast-container > #secondary.widget-area.secondary {
		width: 100% !important;
		flex: 0 0 100% !important;
		max-width: 100% !important;
		position: static !important;
		order: 1 !important;
		margin-bottom: 1rem !important;
	}

	#content .ast-container > #primary.content-area.primary {
		width: 100% !important;
		flex: 1 1 auto !important;
		max-width: 100% !important;
		order: 2 !important;
		margin: 2rem 0 !important;
	}
}

#content .ast-container > #primary.content-area.primary {
	flex: 1 1 auto;
	max-width: none;
	width: 100%;
}

@media (min-width: 922px) {
	.ast-left-sidebar #primary {
		border-left: none !important;
	}
}

@media (min-width: 993px) {
	.ast-left-sidebar #primary {
		padding-left: 0 !important;
	}
}

.woocommerce-js .woocommerce-ordering,
.woocommerce-js .woocommerce-result-count {
	margin: 0 !important;
}

.wm-shop-toolbar {
	background: #111;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem;
	margin-bottom: 1.5rem;
	gap: 1rem;
	border: 1px solid #333;
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.wm-shop-toolbar {
		flex-direction: column;
	}
}

.woocommerce-ordering {
	margin: 0 !important;
	width: auto;
}

.woocommerce-ordering select.orderby {
	height: auto !important;
	min-height: unset !important;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #fff !important;
	background-color: #000 !important;
	border: 1px solid #333 !important;
	padding: 0.25rem !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer;
	box-sizing: border-box !important;
	appearance: auto !important;
	-webkit-appearance: menulist !important;
	-moz-appearance: menulist !important;
	background-image: none !important;
	text-indent: 0 !important;
}

.woocommerce-ordering select.orderby:focus {
	border-color: #39ff14 !important;
	outline: none !important;
	box-shadow: none !important;
}

.woocommerce-ordering select.orderby option {
	color: #fff;
	background: #000;
}

.woocommerce-result-count {
	margin: 0 !important;
	font-size: 0.875rem !important;
	line-height: 1.25rem !important;
	color: #9ca3af !important;
}

.woocommerce-pagination {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 3rem;
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-pagination ul.page-numbers li {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none !important;
}

.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
	display: block;
	padding: 0.5rem 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s;
}

.woocommerce-pagination ul.page-numbers a {
	background: #000;
	color: #fff;
	border: 2px solid #333;
}

.woocommerce-pagination ul.page-numbers a:hover {
	border-color: #39ff14;
}

.woocommerce-pagination ul.page-numbers span.current {
	background: #39ff14;
	color: #000;
	border: 2px solid #39ff14;
}

.woocommerce-pagination ul.page-numbers span.page-numbers.dots {
	background: transparent;
	border: none;
	color: #9ca3af;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}
