/**
 * Deportes Eli — Fase 4.3 / refinamiento Nike
 * Panel filtros + subcategorías sidebar + toggle + drawer.
 * Solo archivos WooCommerce (shop / tax product_*).
 */

body.ast-woo-shop-archive,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
	--de-filter-max: 220px;
	--de-drawer-z: 100060;
	--de-backdrop-z: 100050;
	--de-shop-pad: 32px;
}

/* -------------------------------------------------------------------------
   Contenedor: menos aire lateral (solo archivo Woo)
   ------------------------------------------------------------------------- */

body.ast-woo-shop-archive #content > .ast-container,
body.post-type-archive-product #content > .ast-container,
body.tax-product_cat #content > .ast-container,
body.tax-product_tag #content > .ast-container {
	padding-left: var(--de-shop-pad);
	padding-right: var(--de-shop-pad);
	width: 100%;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	body.ast-woo-shop-archive,
	body.post-type-archive-product,
	body.tax-product_cat,
	body.tax-product_tag {
		--de-shop-pad: 24px;
	}
}

@media (max-width: 544px) {
	body.ast-woo-shop-archive,
	body.post-type-archive-product,
	body.tax-product_cat,
	body.tax-product_tag {
		--de-shop-pad: 16px;
	}
}

/* -------------------------------------------------------------------------
   Toolbar Nike: contador | espacio | ordenación + Ocultar filtros
   ------------------------------------------------------------------------- */

body.ast-woo-shop-archive .premmerce-filter-ajax-container,
body.post-type-archive-product .premmerce-filter-ajax-container,
body.tax-product_cat .premmerce-filter-ajax-container,
body.tax-product_tag .premmerce-filter-ajax-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.75rem;
	margin-bottom: 1rem;
}

body.ast-woo-shop-archive .premmerce-filter-ajax-container .woocommerce-notices-wrapper,
body.post-type-archive-product .premmerce-filter-ajax-container .woocommerce-notices-wrapper,
body.tax-product_cat .premmerce-filter-ajax-container .woocommerce-notices-wrapper,
body.tax-product_tag .premmerce-filter-ajax-container .woocommerce-notices-wrapper {
	flex: 0 0 100%;
	order: 0;
	margin: 0;
}

body.ast-woo-shop-archive .premmerce-filter-ajax-container .woocommerce-result-count,
body.post-type-archive-product .premmerce-filter-ajax-container .woocommerce-result-count,
body.tax-product_cat .premmerce-filter-ajax-container .woocommerce-result-count,
body.tax-product_tag .premmerce-filter-ajax-container .woocommerce-result-count {
	margin: 0;
	margin-right: auto;
	order: 1;
}

body.ast-woo-shop-archive .premmerce-filter-ajax-container .woocommerce-ordering,
body.post-type-archive-product .premmerce-filter-ajax-container .woocommerce-ordering,
body.tax-product_cat .premmerce-filter-ajax-container .woocommerce-ordering,
body.tax-product_tag .premmerce-filter-ajax-container .woocommerce-ordering {
	margin: 0;
	order: 2;
}

body.ast-woo-shop-archive .de-filters-toolbar,
body.post-type-archive-product .de-filters-toolbar,
body.tax-product_cat .de-filters-toolbar,
body.tax-product_tag .de-filters-toolbar {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	order: 3;
}

/* products/pagination deben ir DESPUÉS del toolbar (order flex < productos)
   Premmerce mete todo en el mismo flex; sin esto el contador cae al final. */
body.ast-woo-shop-archive .premmerce-filter-ajax-container ul.products,
body.post-type-archive-product .premmerce-filter-ajax-container ul.products,
body.tax-product_cat .premmerce-filter-ajax-container ul.products,
body.tax-product_tag .premmerce-filter-ajax-container ul.products {
	flex: 0 0 100%;
	order: 10;
	width: 100%;
}

body.ast-woo-shop-archive .premmerce-filter-ajax-container .woocommerce-pagination,
body.post-type-archive-product .premmerce-filter-ajax-container .woocommerce-pagination,
body.tax-product_cat .premmerce-filter-ajax-container .woocommerce-pagination,
body.tax-product_tag .premmerce-filter-ajax-container .woocommerce-pagination {
	flex: 0 0 100%;
	order: 11;
	width: 100%;
}

body.ast-woo-shop-archive .de-filters-btn,
body.post-type-archive-product .de-filters-btn,
body.tax-product_cat .de-filters-btn,
body.tax-product_tag .de-filters-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.5rem 0.8rem;
	border: 1px solid var(--de-border);
	border-radius: var(--de-radius);
	background: var(--de-bg);
	color: var(--de-navy);
	font-family: var(--de-font);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

body.ast-woo-shop-archive .de-filters-btn:hover,
body.post-type-archive-product .de-filters-btn:hover,
body.tax-product_cat .de-filters-btn:hover,
body.tax-product_tag .de-filters-btn:hover {
	border-color: var(--de-navy);
}

body.ast-woo-shop-archive .de-filters-btn:focus-visible,
body.post-type-archive-product .de-filters-btn:focus-visible,
body.tax-product_cat .de-filters-btn:focus-visible,
body.tax-product_tag .de-filters-btn:focus-visible {
	outline: 2px solid var(--de-blue);
	outline-offset: 2px;
}

body.ast-woo-shop-archive .de-filters-btn__icon,
body.post-type-archive-product .de-filters-btn__icon,
body.tax-product_cat .de-filters-btn__icon,
body.tax-product_tag .de-filters-btn__icon {
	display: inline-flex;
	flex-shrink: 0;
}

body.ast-woo-shop-archive .de-filters-toggle,
body.post-type-archive-product .de-filters-toggle,
body.tax-product_cat .de-filters-toggle,
body.tax-product_tag .de-filters-toggle {
	display: none;
}

body.ast-woo-shop-archive .de-filters-open,
body.post-type-archive-product .de-filters-open,
body.tax-product_cat .de-filters-open,
body.tax-product_tag .de-filters-open {
	display: inline-flex;
}

@media (min-width: 1025px) {
	body.ast-woo-shop-archive .de-filters-toggle,
	body.post-type-archive-product .de-filters-toggle,
	body.tax-product_cat .de-filters-toggle,
	body.tax-product_tag .de-filters-toggle {
		display: inline-flex;
	}

	body.ast-woo-shop-archive .de-filters-open,
	body.post-type-archive-product .de-filters-open,
	body.tax-product_cat .de-filters-open,
	body.tax-product_tag .de-filters-open {
		display: none;
	}
}

/* -------------------------------------------------------------------------
   Desktop: sidebar estrecha + grid
   ------------------------------------------------------------------------- */

@media (min-width: 1025px) {
	body.ast-woo-shop-archive.ast-left-sidebar #secondary,
	body.post-type-archive-product.ast-left-sidebar #secondary,
	body.tax-product_cat.ast-left-sidebar #secondary,
	body.tax-product_tag.ast-left-sidebar #secondary {
		width: var(--de-filter-max) !important;
		max-width: var(--de-filter-max) !important;
		padding: 0 1rem 0 0 !important;
		margin: 0 !important;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	body.ast-woo-shop-archive.ast-left-sidebar #primary,
	body.post-type-archive-product.ast-left-sidebar #primary,
	body.tax-product_cat.ast-left-sidebar #primary,
	body.tax-product_tag.ast-left-sidebar #primary {
		width: calc(100% - var(--de-filter-max)) !important;
		padding-left: 0.5rem !important;
		transition: width 0.28s ease;
	}

	/* Filtros visibles: 4 columnas en escritorio (≥1025).
	   Más productos por fila ⇒ tarjetas más compactas sin max-width global. */
	body.ast-woo-shop-archive:not(.de-filters-hidden) ul.products,
	body.post-type-archive-product:not(.de-filters-hidden) ul.products,
	body.tax-product_cat:not(.de-filters-hidden) ul.products,
	body.tax-product_tag:not(.de-filters-hidden) ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 1.25rem; /* 20px */
	}

	body.ast-woo-shop-archive.de-filters-hidden.ast-left-sidebar #secondary,
	body.post-type-archive-product.de-filters-hidden.ast-left-sidebar #secondary,
	body.tax-product_cat.de-filters-hidden.ast-left-sidebar #secondary,
	body.tax-product_tag.de-filters-hidden.ast-left-sidebar #secondary {
		display: none !important;
	}

	body.ast-woo-shop-archive.de-filters-hidden.ast-left-sidebar #primary,
	body.post-type-archive-product.de-filters-hidden.ast-left-sidebar #primary,
	body.tax-product_cat.de-filters-hidden.ast-left-sidebar #primary,
	body.tax-product_tag.de-filters-hidden.ast-left-sidebar #primary {
		width: 100% !important;
		padding-left: 0 !important;
	}

	body.ast-woo-shop-archive.de-filters-hidden ul.products,
	body.post-type-archive-product.de-filters-hidden ul.products,
	body.tax-product_cat.de-filters-hidden ul.products,
	body.tax-product_tag.de-filters-hidden ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 1.25rem;
	}
}

/* Pantallas muy anchas + filtros ocultos: 5 columnas si cabe con confort */
@media (min-width: 1600px) {
	body.ast-woo-shop-archive.de-filters-hidden ul.products,
	body.post-type-archive-product.de-filters-hidden ul.products,
	body.tax-product_cat.de-filters-hidden ul.products,
	body.tax-product_tag.de-filters-hidden ul.products {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	}
}

/* -------------------------------------------------------------------------
   Subcategorías verticales (sidebar)
   ------------------------------------------------------------------------- */

body.ast-woo-shop-archive .deportes-eli-subcategorias--sidebar,
body.post-type-archive-product .deportes-eli-subcategorias--sidebar,
body.tax-product_cat .deportes-eli-subcategorias--sidebar,
body.tax-product_tag .deportes-eli-subcategorias--sidebar {
	margin: 0 0 0.35rem;
	padding: 0 0 0.85rem;
	border-bottom: 1px solid var(--de-border);
	max-height: min(42vh, 320px);
	overflow-y: auto;
	scrollbar-width: thin;
}

body.ast-woo-shop-archive .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__list,
body.post-type-archive-product .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__list,
body.tax-product_cat .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__list,
body.tax-product_tag .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__list {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ast-woo-shop-archive .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__item,
body.post-type-archive-product .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__item,
body.tax-product_cat .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__item,
body.tax-product_tag .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__item {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

body.ast-woo-shop-archive .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link,
body.post-type-archive-product .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link,
body.tax-product_cat .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link,
body.tax-product_tag .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link {
	display: block;
	padding: 0.42rem 0;
	border: 0;
	background: transparent;
	color: var(--de-navy);
	font-family: var(--de-font);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	letter-spacing: -0.01em;
	transition: color 0.15s ease;
}

body.ast-woo-shop-archive .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link:hover,
body.post-type-archive-product .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link:hover,
body.tax-product_cat .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link:hover,
body.tax-product_tag .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link:hover {
	color: var(--de-blue);
	text-decoration: none;
}

body.ast-woo-shop-archive .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link:focus-visible,
body.post-type-archive-product .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link:focus-visible,
body.tax-product_cat .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link:focus-visible,
body.tax-product_tag .deportes-eli-subcategorias--sidebar .deportes-eli-subcategorias__link:focus-visible {
	outline: 2px solid var(--de-blue);
	outline-offset: 2px;
	border-radius: 2px;
}

/* -------------------------------------------------------------------------
   Panel Premmerce
   ------------------------------------------------------------------------- */

body.ast-woo-shop-archive #secondary .widget,
body.post-type-archive-product #secondary .widget,
body.tax-product_cat #secondary .widget,
body.tax-product_tag #secondary .widget {
	margin: 0 0 0.75rem;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.ast-woo-shop-archive #secondary .widget-title,
body.post-type-archive-product #secondary .widget-title,
body.tax-product_cat #secondary .widget-title,
body.tax-product_tag #secondary .widget-title {
	display: none;
}

body.ast-woo-shop-archive .premmerce-filter-body,
body.post-type-archive-product .premmerce-filter-body,
body.tax-product_cat .premmerce-filter-body,
body.tax-product_tag .premmerce-filter-body {
	font-family: var(--de-font);
	color: var(--de-ink);
	background: var(--de-bg);
	border: 0;
	padding: 0;
	margin: 0;
}

body.ast-woo-shop-archive .filter__item,
body.post-type-archive-product .filter__item,
body.tax-product_cat .filter__item,
body.tax-product_tag .filter__item {
	margin: 0 !important;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--de-border);
	background: transparent;
	box-shadow: none;
}

body.ast-woo-shop-archive .filter__item.filter__item--type-submit-button,
body.post-type-archive-product .filter__item.filter__item--type-submit-button,
body.tax-product_cat .filter__item.filter__item--type-submit-button,
body.tax-product_tag .filter__item.filter__item--type-submit-button {
	border-bottom: 0;
	padding: 0.85rem 0 0.15rem;
}

body.ast-woo-shop-archive .filter__header,
body.post-type-archive-product .filter__header,
body.tax-product_cat .filter__header,
body.tax-product_tag .filter__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 0;
	cursor: pointer;
	user-select: none;
}

body.ast-woo-shop-archive .filter__header:focus-visible,
body.post-type-archive-product .filter__header:focus-visible,
body.tax-product_cat .filter__header:focus-visible,
body.tax-product_tag .filter__header:focus-visible {
	outline: 2px solid var(--de-blue);
	outline-offset: 2px;
}

body.ast-woo-shop-archive .filter__title,
body.post-type-archive-product .filter__title,
body.tax-product_cat .filter__title,
body.tax-product_tag .filter__title {
	font-family: var(--de-font);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none !important;
	color: var(--de-navy);
	margin: 0;
	line-height: 1.3;
}

body.ast-woo-shop-archive .de-filter-chevron,
body.post-type-archive-product .de-filter-chevron,
body.tax-product_cat .de-filter-chevron,
body.tax-product_tag .de-filter-chevron {
	display: inline-flex;
	color: var(--de-muted);
	transition: transform 0.22s ease;
	flex-shrink: 0;
}

body.ast-woo-shop-archive .de-filter-item--open > .filter__header .de-filter-chevron,
body.post-type-archive-product .de-filter-item--open > .filter__header .de-filter-chevron,
body.tax-product_cat .de-filter-item--open > .filter__header .de-filter-chevron,
body.tax-product_tag .de-filter-item--open > .filter__header .de-filter-chevron {
	transform: rotate(180deg);
}

body.ast-woo-shop-archive .filter__handle,
body.post-type-archive-product .filter__handle,
body.tax-product_cat .filter__handle,
body.tax-product_tag .filter__handle {
	display: none !important;
}

body.ast-woo-shop-archive .filter__inner,
body.post-type-archive-product .filter__inner,
body.tax-product_cat .filter__inner,
body.tax-product_tag .filter__inner {
	padding: 0 0 0.85rem;
	margin-top: 0 !important;
}

body.ast-woo-shop-archive .filter__inner--scroll,
body.post-type-archive-product .filter__inner--scroll,
body.tax-product_cat .filter__inner--scroll,
body.tax-product_tag .filter__inner--scroll {
	max-height: 200px;
	overflow-y: auto;
	padding-right: 0.25rem;
	scrollbar-width: thin;
}

/* Checkboxes */
body.ast-woo-shop-archive .filter__checkgroup-link,
body.post-type-archive-product .filter__checkgroup-link,
body.tax-product_cat .filter__checkgroup-link,
body.tax-product_tag .filter__checkgroup-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.28rem 0;
	margin: 0;
	border: 0;
	background: transparent;
	font-family: var(--de-font);
	font-size: 0.875rem;
	color: var(--de-ink);
	line-height: 1.35;
}

body.ast-woo-shop-archive .filter__checkgroup-title,
body.post-type-archive-product .filter__checkgroup-title,
body.tax-product_cat .filter__checkgroup-title,
body.tax-product_tag .filter__checkgroup-title {
	font-family: var(--de-font);
	font-weight: 400;
	color: var(--de-ink);
	cursor: pointer;
}

body.ast-woo-shop-archive .filter__checkgroup-count,
body.post-type-archive-product .filter__checkgroup-count,
body.tax-product_cat .filter__checkgroup-count,
body.tax-product_tag .filter__checkgroup-count {
	margin-left: auto;
	color: var(--de-muted);
	font-size: 0.8125rem;
}

body.ast-woo-shop-archive .filter input[type='checkbox'],
body.post-type-archive-product .filter input[type='checkbox'],
body.tax-product_cat .filter input[type='checkbox'],
body.tax-product_tag .filter input[type='checkbox'] {
	width: 1rem !important;
	height: 1rem !important;
	margin: 0 !important;
	accent-color: var(--de-navy);
	flex-shrink: 0;
	cursor: pointer;
}

/* -------------------------------------------------------------------------
   Slider de precio — corrige tiradores Premmerce (8×20 + overflow hidden)
   ------------------------------------------------------------------------- */

body.ast-woo-shop-archive .filter__slider-control-group,
body.post-type-archive-product .filter__slider-control-group,
body.tax-product_cat .filter__slider-control-group,
body.tax-product_tag .filter__slider-control-group {
	margin: 0 0 0.65rem !important;
	gap: 0.5rem;
}

body.ast-woo-shop-archive .filter__slider-control-column,
body.post-type-archive-product .filter__slider-control-column,
body.tax-product_cat .filter__slider-control-column,
body.tax-product_tag .filter__slider-control-column {
	padding: 0 !important;
}

body.ast-woo-shop-archive .filter__slider-control,
body.post-type-archive-product .filter__slider-control,
body.tax-product_cat .filter__slider-control,
body.tax-product_tag .filter__slider-control,
body.ast-woo-shop-archive .filter input[name='min_price'],
body.ast-woo-shop-archive .filter input[name='max_price'],
body.post-type-archive-product .filter input[name='min_price'],
body.post-type-archive-product .filter input[name='max_price'],
body.tax-product_cat .filter input[name='min_price'],
body.tax-product_cat .filter input[name='max_price'],
body.tax-product_tag .filter input[name='min_price'],
body.tax-product_tag .filter input[name='max_price'] {
	font-family: var(--de-font);
	font-size: 0.8125rem;
	border: 1px solid var(--de-border);
	border-radius: 6px;
	padding: 0.35rem 0.45rem;
	color: var(--de-ink);
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	text-align: center;
}

body.ast-woo-shop-archive .pc-range-slider,
body.post-type-archive-product .pc-range-slider,
body.tax-product_cat .pc-range-slider,
body.tax-product_tag .pc-range-slider {
	padding: 0.15rem 0 0.25rem;
}

body.ast-woo-shop-archive .pc-range-slider__wrapper,
body.post-type-archive-product .pc-range-slider__wrapper,
body.tax-product_cat .pc-range-slider__wrapper,
body.tax-product_tag .pc-range-slider__wrapper {
	overflow: visible !important;
	height: 24px !important;
	margin: 0 8px;
	padding: 0;
}

body.ast-woo-shop-archive .pc-range-slider__control,
body.ast-woo-shop-archive .pc-range-slider__control.ui-slider,
body.post-type-archive-product .pc-range-slider__control,
body.post-type-archive-product .pc-range-slider__control.ui-slider,
body.tax-product_cat .pc-range-slider__control,
body.tax-product_cat .pc-range-slider__control.ui-slider,
body.tax-product_tag .pc-range-slider__control,
body.tax-product_tag .pc-range-slider__control.ui-slider {
	height: 3px !important;
	margin-top: 10px !important;
	border: 0 !important;
	background: #dce3ea !important;
	border-radius: 2px;
}

body.ast-woo-shop-archive .pc-range-slider__control .ui-slider-range,
body.post-type-archive-product .pc-range-slider__control .ui-slider-range,
body.tax-product_cat .pc-range-slider__control .ui-slider-range,
body.tax-product_tag .pc-range-slider__control .ui-slider-range {
	background: var(--de-navy) !important;
	height: 3px !important;
	top: 0 !important;
	margin-top: 0 !important;
	border-radius: 2px;
}

body.ast-woo-shop-archive .pc-range-slider__control .ui-slider-handle,
body.post-type-archive-product .pc-range-slider__control .ui-slider-handle,
body.tax-product_cat .pc-range-slider__control .ui-slider-handle,
body.tax-product_tag .pc-range-slider__control .ui-slider-handle {
	width: 16px !important;
	height: 16px !important;
	top: -6.5px !important;
	margin-left: -8px !important;
	border: 2px solid var(--de-navy) !important;
	background: #fff !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	cursor: grab !important;
	box-sizing: border-box !important;
	transform: none !important;
}

body.ast-woo-shop-archive .pc-range-slider__control .ui-slider-handle:last-of-type,
body.post-type-archive-product .pc-range-slider__control .ui-slider-handle:last-of-type,
body.tax-product_cat .pc-range-slider__control .ui-slider-handle:last-of-type,
body.tax-product_tag .pc-range-slider__control .ui-slider-handle:last-of-type {
	margin-left: -8px !important;
}

body.ast-woo-shop-archive .pc-range-slider__control .ui-slider-handle:focus,
body.post-type-archive-product .pc-range-slider__control .ui-slider-handle:focus,
body.tax-product_cat .pc-range-slider__control .ui-slider-handle:focus,
body.tax-product_tag .pc-range-slider__control .ui-slider-handle:focus {
	outline: 2px solid var(--de-blue);
	outline-offset: 2px;
}

/* Botón aplicar */
body.ast-woo-shop-archive .button-filter-submit,
body.post-type-archive-product .button-filter-submit,
body.tax-product_cat .button-filter-submit,
body.tax-product_tag .button-filter-submit {
	width: 100%;
	margin: 0;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: var(--de-radius);
	background: var(--de-navy) !important;
	color: #fff !important;
	font-family: var(--de-font);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	cursor: pointer;
}

body.ast-woo-shop-archive .button-filter-submit:hover,
body.post-type-archive-product .button-filter-submit:hover,
body.tax-product_cat .button-filter-submit:hover,
body.tax-product_tag .button-filter-submit:hover {
	background: var(--de-blue) !important;
}

body.ast-woo-shop-archive .button-filter-submit:focus-visible,
body.post-type-archive-product .button-filter-submit:focus-visible,
body.tax-product_cat .button-filter-submit:focus-visible,
body.tax-product_tag .button-filter-submit:focus-visible {
	outline: 2px solid var(--de-blue);
	outline-offset: 2px;
}

/* Filtros activos */
body.ast-woo-shop-archive .pc-active-filter,
body.post-type-archive-product .pc-active-filter,
body.tax-product_cat .pc-active-filter,
body.tax-product_tag .pc-active-filter {
	font-family: var(--de-font);
	margin: 0 0 0.55rem;
	padding: 0 0 0.7rem;
	border-bottom: 1px solid var(--de-border);
}

body.ast-woo-shop-archive .pc-active-filter__list,
body.post-type-archive-product .pc-active-filter__list,
body.tax-product_cat .pc-active-filter__list,
body.tax-product_tag .pc-active-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ast-woo-shop-archive .pc-active-filter__item-link,
body.post-type-archive-product .pc-active-filter__item-link,
body.tax-product_cat .pc-active-filter__item-link,
body.tax-product_tag .pc-active-filter__item-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.3rem 0.5rem;
	border: 1px solid var(--de-border);
	border-radius: 999px;
	background: var(--de-bg-soft);
	color: var(--de-navy);
	font-size: 0.75rem;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.2;
}

body.ast-woo-shop-archive .pc-active-filter__item-link:hover,
body.post-type-archive-product .pc-active-filter__item-link:hover,
body.tax-product_cat .pc-active-filter__item-link:hover,
body.tax-product_tag .pc-active-filter__item-link:hover {
	border-color: var(--de-navy);
}

body.ast-woo-shop-archive .pc-active-filter__item-delete,
body.post-type-archive-product .pc-active-filter__item-delete,
body.tax-product_cat .pc-active-filter__item-delete,
body.tax-product_tag .pc-active-filter__item-delete {
	font-weight: 600;
	opacity: 0.7;
}

/* -------------------------------------------------------------------------
   Drawer móvil / tablet (≤1024)
   ------------------------------------------------------------------------- */

body.ast-woo-shop-archive .de-filters-drawer__header,
body.post-type-archive-product .de-filters-drawer__header,
body.tax-product_cat .de-filters-drawer__header,
body.tax-product_tag .de-filters-drawer__header {
	display: none;
}

body.de-filters-backdrop {
	position: fixed;
	inset: 0;
	z-index: var(--de-backdrop-z);
	background: rgba(11, 31, 58, 0.45);
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

body.de-filters-scroll-lock {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
}

@media (max-width: 1024px) {
	body.ast-woo-shop-archive.ast-left-sidebar #primary,
	body.post-type-archive-product.ast-left-sidebar #primary,
	body.tax-product_cat.ast-left-sidebar #primary,
	body.tax-product_tag.ast-left-sidebar #primary {
		width: 100% !important;
		float: none !important;
		padding-left: 0 !important;
		margin: 0 !important;
	}

	body.ast-woo-shop-archive #secondary,
	body.post-type-archive-product #secondary,
	body.tax-product_cat #secondary,
	body.tax-product_tag #secondary {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: auto !important;
		bottom: 0 !important;
		width: min(100vw - 2.5rem, 360px) !important;
		max-width: 100% !important;
		z-index: var(--de-drawer-z) !important;
		margin: 0 !important;
		padding: 0 1.1rem 1.5rem !important;
		background: #fff !important;
		border: 0 !important;
		box-shadow: 8px 0 32px rgba(11, 31, 58, 0.18);
		transform: translate3d(-105%, 0, 0) !important;
		transition: transform 0.28s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		float: none !important;
		visibility: visible !important;
	}

	body.ast-woo-shop-archive.de-filters-drawer-open #secondary,
	body.post-type-archive-product.de-filters-drawer-open #secondary,
	body.tax-product_cat.de-filters-drawer-open #secondary,
	body.tax-product_tag.de-filters-drawer-open #secondary {
		transform: translate3d(0, 0, 0) !important;
	}

	body.ast-woo-shop-archive .de-filters-drawer__header,
	body.post-type-archive-product .de-filters-drawer__header,
	body.tax-product_cat .de-filters-drawer__header,
	body.tax-product_tag .de-filters-drawer__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		position: sticky;
		top: 0;
		z-index: 2;
		margin: 0 -1.1rem 0.35rem;
		padding: 1rem 1.1rem;
		background: #fff;
		border-bottom: 1px solid var(--de-border);
	}

	body.ast-woo-shop-archive .de-filters-drawer__title,
	body.post-type-archive-product .de-filters-drawer__title,
	body.tax-product_cat .de-filters-drawer__title,
	body.tax-product_tag .de-filters-drawer__title {
		margin: 0;
		font-family: var(--de-font);
		font-size: 1.05rem;
		font-weight: 700;
		color: var(--de-navy);
	}

	body.ast-woo-shop-archive .de-filters-drawer__close,
	body.post-type-archive-product .de-filters-drawer__close,
	body.tax-product_cat .de-filters-drawer__close,
	body.tax-product_tag .de-filters-drawer__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: var(--de-navy);
		cursor: pointer;
	}

	body.ast-woo-shop-archive .de-filters-drawer__close:focus-visible,
	body.post-type-archive-product .de-filters-drawer__close:focus-visible,
	body.tax-product_cat .de-filters-drawer__close:focus-visible,
	body.tax-product_tag .de-filters-drawer__close:focus-visible {
		outline: 2px solid var(--de-blue);
		outline-offset: 2px;
	}

	body.ast-woo-shop-archive .deportes-eli-subcategorias--sidebar,
	body.post-type-archive-product .deportes-eli-subcategorias--sidebar,
	body.tax-product_cat .deportes-eli-subcategorias--sidebar,
	body.tax-product_tag .deportes-eli-subcategorias--sidebar {
		max-height: min(36vh, 280px);
	}

	body.ast-woo-shop-archive ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 768px) {
	body.ast-woo-shop-archive ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.ast-woo-shop-archive .premmerce-filter-ajax-container .woocommerce-ordering,
	body.post-type-archive-product .premmerce-filter-ajax-container .woocommerce-ordering,
	body.tax-product_cat .premmerce-filter-ajax-container .woocommerce-ordering,
	body.tax-product_tag .premmerce-filter-ajax-container .woocommerce-ordering {
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
	}

	body.ast-woo-shop-archive .woocommerce-ordering select.orderby,
	body.post-type-archive-product .woocommerce-ordering select.orderby,
	body.tax-product_cat .woocommerce-ordering select.orderby,
	body.tax-product_tag .woocommerce-ordering select.orderby {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 544px) {
	body.ast-woo-shop-archive ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ast-woo-shop-archive #secondary,
	body.ast-woo-shop-archive .de-filter-chevron,
	body.ast-woo-shop-archive.ast-left-sidebar #primary {
		transition: none !important;
	}
}
