/**
 * Archivo de productos WooCommerce: layout, migas, barra lateral y grid.
 * Tema OZ — cargado solo en tienda y taxonomías de producto.
 * Usa variables --OZ-* definidas en inc/customizer.php (sin fallbacks duplicados).
 */

/* —— Layout principal + sidebar */
.site-main--woo-archive {
	padding-left: 0;
	padding-right: 0;
}

.oz-shop-archive-shell {
	max-width: min(100%, var(--OZ-Container-PC));
	margin-left: auto;
	margin-right: auto;
	padding: 0 1rem;
	box-sizing: border-box;
}

.oz-shop-layout-section {
	background: transparent;
}

.oz-shop-layout-wrap {
	max-width: min(100%, var(--OZ-Container-PC));
	margin-left: auto;
	margin-right: auto;
	padding: 0 1rem 3rem;
	box-sizing: border-box;
}

.oz-shop-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

@media (max-width: 991px) {
	.oz-shop-layout {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
}

.oz-shop-layout__main {
	min-width: 0;
}

/* —— Cabecera: título + migas centradas debajo */
.oz-shop-archive__header {
	margin-bottom: 1.25rem;
	padding: 1.3rem 0 1rem;
	border-bottom: 1px solid #d9e0ea;
}

.oz-shop-archive__header-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.oz-shop-archive__title {
	font-family: var(--OZ-Font-Headings);
	font-size: 38px !important;
	font-weight: 700;
	margin: 0;
	color: var(--OZ-Color-1);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.oz-shop-breadcrumb-wrap {
	display: flex;
	justify-content: flex-end;
	flex: 0 0 auto;
}

.oz-shop-breadcrumb {
	margin: 0;
	padding: 0;
	font-size: 17px;
	color: #000;
}

.oz-shop-breadcrumb__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 0.5rem;
	text-align: right;
}

.oz-shop-breadcrumb a {
	color: #000 !important;
	text-decoration: none;
	font-size: 17px;
}

.oz-shop-breadcrumb a:hover {
	text-decoration: underline;
}

.oz-shop-breadcrumb__sep {
	margin: 0 0.15rem;
	color: #000;
	user-select: none;
	font-size: 17px;
}

.oz-shop-archive__header .term-description {
	margin-top: 1.25rem;
	text-align: left;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	color: var(--OZ-Color-2);
	font-size: 1rem;
	line-height: 1.6;
}

@media (max-width: 991px) {
	.oz-shop-archive__header-top {
		flex-direction: column;
		align-items: flex-start;
	}

	.oz-shop-breadcrumb-wrap,
	.oz-shop-breadcrumb__inner {
		justify-content: flex-start;
		text-align: left;
	}
}

/* —— Avisos, resultado y ordenación */
.oz-shop-layout__main .woocommerce-notices-wrapper {
	margin-bottom: 1rem;
}

.oz-shop-layout__main .woocommerce-result-count,
.oz-shop-layout__main .woocommerce-ordering {
	margin-bottom: 1.25rem;
}

.oz-shop-toolbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.oz-shop-layout__main .oz-shop-grid-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	order: 1;
}

.oz-shop-layout__main .oz-grid-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 30px;
	padding: 0;
	border: 1px solid #d8dde6;
	border-radius: 6px;
	background: #f3f5f7;
	color: #737f8f;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.oz-shop-layout__main .oz-grid-btn svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.oz-shop-layout__main .oz-grid-btn:hover {
	background: #eceff4;
	border-color: #c9d1dd;
}

.oz-shop-layout__main .oz-grid-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(19, 94, 168, 0.18);
}

.oz-shop-layout__main .oz-grid-btn.is-active,
.oz-shop-layout__main .oz-grid-btn[aria-pressed="true"] {
	background: #135ea8;
	border-color: #135ea8;
	color: #fff;
}

.oz-shop-layout__main .woocommerce-result-count {
	order: 2;
	margin: 0;
	white-space: nowrap;
}

.oz-shop-layout__main .woocommerce-ordering {
	order: 3;
	margin: 0 0 0 auto;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.oz-shop-layout__main .woocommerce-ordering .orderby {

	min-width: 230px;
	height: 40px;
	padding: 8px 18px 9px 14px;
	border: 1px solid #e3e8ef;
	border-radius: 8px;
	background-color: #fff;
	color: #3f4957;
	font-size: 16px;
	line-height: 1.2;
	font-family: var(--OZ-Font-Body);
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 1px 1px rgba(17, 24, 39, 0.02);
}

.oz-shop-layout__main .woocommerce-ordering .orderby:hover {
	border-color: #d2dbe6;
}

.oz-shop-layout__main .woocommerce-ordering .orderby:focus-visible {
	outline: none;
	border-color: #135ea8;
	box-shadow: 0 0 0 3px rgba(19, 94, 168, 0.16);
}

@media (max-width: 575px) {
	.oz-shop-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.oz-shop-layout__main .woocommerce-result-count,
	.oz-shop-layout__main .woocommerce-ordering {
		margin: 0;
	}

	.oz-shop-layout__main .woocommerce-ordering .orderby {
		min-width: 100%;
		width: 100%;
	}
}

/* —— Grid de productos (4 columnas; coincide con loop_shop_columns) */
/*
 * WooCommerce layout añade ul.products::before/::after (clearfix con display:table).
 * Con display:grid esos pseudo-elementos cuentan como ítems del grid → primera celda “vacía”.
 */
.oz-shop-layout__main ul.products::before,
.oz-shop-layout__main ul.products::after {
	content: none !important;
	display: none !important;
}

.oz-shop-layout__main ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	clear: both;
}

@media (max-width: 1399px) {
	.oz-shop-layout__main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.oz-shop-layout__main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.oz-shop-layout__main ul.products {
		grid-template-columns: 1fr;
	}
}

.oz-shop-layout__main ul.products li.product,
.oz-shop-layout__main ul.products li.product.first,
.oz-shop-layout__main ul.products li.product.last {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0;
	position: relative;
}

/* Subcategorías si aparecen en el <ul>: anular floats del layout de WooCommerce */
.oz-shop-layout__main ul.products li.product-category {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	min-height: 10rem;
}

.oz-shop-layout__main ul.products li.product-category a {
	text-decoration: none;
	color: inherit;
}

.oz-shop-layout__main ul.products li.product-category img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.oz-shop-layout__main ul.products li.product a.woocommerce-LoopProduct-link {
	text-decoration: none;
	color: inherit;
}

.oz-shop-layout__main ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--OZ-Font-Headings);
	font-size: clamp(0.95rem, 1.1vw, 1.05rem);
	margin: 0.75rem 0 0.35rem;
}

.oz-shop-layout__main ul.products li.product .price {
	color: var(--OZ-Color-1);
	font-weight: 600;
}

/* ============================================================
 * Grid responsivo CON !important para vencer cualquier override.
 * Mientras debugeamos, mantenemos la lógica completa acá.
 * ============================================================ */

/* Desktop (≥1025px): el usuario decide vía toolbar (cols-2 a cols-5). */
@media (min-width: 1025px) {
	.oz-shop-layout__main ul.products.cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	.oz-shop-layout__main ul.products.cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
	.oz-shop-layout__main ul.products.cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
	.oz-shop-layout__main ul.products.cols-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	}
}

/* 481px–1024px: máximo 3 columnas. cols-2 sigue siendo 2, cols-3/4/5 todas → 3. */
@media (min-width: 481px) and (max-width: 1024px) {
	.oz-shop-layout__main .oz-grid-btn[data-cols="4"],
	.oz-shop-layout__main .oz-grid-btn[data-cols="5"] {
		display: none !important;
	}

	.oz-shop-layout__main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
	.oz-shop-layout__main ul.products.cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	.oz-shop-layout__main ul.products.cols-3,
	.oz-shop-layout__main ul.products.cols-4,
	.oz-shop-layout__main ul.products.cols-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* ≤480px (320px–480px): siempre 2 columnas sin importar cols-N. */
@media (max-width: 480px) {
	.oz-shop-layout__main ul.products,
	.oz-shop-layout__main ul.products.cols-2,
	.oz-shop-layout__main ul.products.cols-3,
	.oz-shop-layout__main ul.products.cols-4,
	.oz-shop-layout__main ul.products.cols-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* —— Sidebar categorías */
.oz-shop-layout__sidebar {
	position: sticky;
	top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (max-width: 991px) {
	.oz-shop-layout__sidebar {
		position: static;
	}
}

.oz-shop-sidebar__clear-filters {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	width: 100%;
	min-height: 3.5rem;
	padding: 0.85rem 1.1rem;
	border: 1px solid #d8e1eb;
	border-radius: 10px;
	background: #f4f8fc;
	color: #135ea8;
	font-family: var(--OZ-Font-Body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* —— Botón "Filtros" (solo móvil/tablet) y wrapper del contenido del sidebar */
.oz-shop-sidebar__toggle,
.oz-shop-sidebar__backdrop,
.oz-shop-sidebar__drawer-header {
	display: none;
}

.oz-shop-sidebar__content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (max-width: 991px) {
	.oz-shop-sidebar__toggle {
		appearance: none;
		display: inline-flex;
		align-items: center;
		justify-content: flex-start;
		gap: 0.75rem;
		width: 100%;
		min-height: 3.5rem;
		padding: 0.85rem 1.1rem;
		border: 1px solid #135ea8;
		border-radius: 10px;
		background: #135ea8;
		color: #fff;
		font-family: var(--OZ-Font-Body);
		font-size: 1rem;
		font-weight: 700;
		line-height: 1.2;
		cursor: pointer;
		transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}

	.oz-shop-sidebar__toggle:hover {
		background: #0f4e8c;
		border-color: #0f4e8c;
	}

	.oz-shop-sidebar__toggle:focus-visible {
		outline: none;
		box-shadow: 0 0 0 3px rgba(19, 94, 168, 0.3);
	}

	.oz-shop-sidebar__toggle-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
	}

	.oz-shop-sidebar__toggle-label {
		flex: 1 1 auto;
		text-align: left;
	}

	.oz-shop-sidebar__toggle-chevron {
		flex: 0 0 auto;
		width: 0.6rem;
		height: 0.6rem;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
		margin-right: 0.25rem;
	}

	/* Drawer lateral: el sidebar deja de ser hijo del flujo y pasa a ser un panel fijo */
	.oz-shop-sidebar__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(15, 23, 42, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, visibility 0.25s ease;
		z-index: 9998;
	}

	.oz-shop-sidebar__backdrop.is-open {
		opacity: 1;
		visibility: visible;
	}

	.oz-shop-sidebar__content {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(85vw, 360px);
		max-width: 100%;
		height: 100vh;
		height: 100dvh;
		background: #fff;
		padding: 1rem;
		gap: 1rem;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		box-shadow: 4px 0 24px rgba(15, 23, 42, 0.18);
		transform: translateX(-100%);
		transition: transform 0.28s ease;
		z-index: 9999;
		box-sizing: border-box;
	}

	.oz-shop-sidebar__content.is-open {
		transform: translateX(0);
	}

	.oz-shop-sidebar__drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding-bottom: 0.75rem;
		border-bottom: 1px solid #e6ebf1;
		margin-bottom: 0.25rem;
	}

	.oz-shop-sidebar__drawer-title {
		font-family: var(--OZ-Font-Headings);
		font-size: 1.15rem;
		font-weight: 700;
		color: #135ea8;
		text-transform: uppercase;
	}

	.oz-shop-sidebar__drawer-close {
		appearance: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 1px solid #d8e1eb;
		border-radius: 50%;
		background: #f4f8fc;
		color: #135ea8;
		cursor: pointer;
		transition: background-color 0.2s ease, border-color 0.2s ease;
	}

	.oz-shop-sidebar__drawer-close:hover {
		background: #eaf2fb;
		border-color: #c8d8ea;
	}

	.oz-shop-sidebar__drawer-close:focus-visible {
		outline: none;
		box-shadow: 0 0 0 3px rgba(19, 94, 168, 0.25);
	}

	/* Bloquear scroll del body cuando el drawer está abierto */
	body.oz-shop-filters-open {
		overflow: hidden;
	}
}

.oz-shop-sidebar__clear-filters:hover {
	background: #eaf2fb;
	border-color: #c8d8ea;
}

.oz-shop-sidebar__clear-filters:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(19, 94, 168, 0.2);
}

.oz-shop-sidebar__block {
	padding: 1rem 1.1rem;
	margin-bottom: 0;
	border: 1px solid #e6ebf1;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.oz-shop-sidebar__block:last-child {
	margin-bottom: 0;
}

.oz-shop-sidebar__title {
	font-family: var(--OZ-Font-Headings);
	font-size: clamp(1.15rem, 1vw, 1.25rem);
	margin: 0 0 0.85rem;
	color: #135ea8;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.oz-shop-sidebar__empty {
	margin: 0;
	font-size: 0.9rem;
	color: var(--OZ-Color-2);
}

ul.oz-shop-categories {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.oz-shop-categories li,
.oz-shop-layout__sidebar .oz-collapsible__body ul.oz-shop-categories li {
	margin: 0;
	padding: 0 !important;
	border-bottom: 1px solid #edf1f5;
}

ul.oz-shop-categories li:last-child {
	border-bottom: 0;
}

ul.oz-shop-categories li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.72rem 0;
	padding-left: 2rem;
	position: relative;
	text-decoration: none;
	color: var(--OZ-Color-2);
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.15s ease, transform 0.15s ease;
}

ul.oz-shop-categories li a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 16px;
	height: 16px;
	border: 1px solid #B7948B;
	border-radius: 4px;
	background: #fff;
	transform: translateY(-50%);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

ul.oz-shop-categories li.current-cat > a::before,
ul.oz-shop-categories li.oz-cat-is-checked > a::before {
	border-color: #B7948B;
	background: #B7948B;
	box-shadow: inset 0 0 0 3px #fff;
}

ul.oz-shop-categories li a:hover {
	color: #135ea8;
	transform: translateX(1px);
}

ul.oz-shop-categories .current-cat > a {
	font-weight: 700;
	color: #135ea8;
}

ul.oz-shop-categories ul.children {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.9rem;
}

/* Estilos cuando "Categorías de producto" se renderiza como widget de WC */
.oz-shop-sidebar__block .product-categories,
.oz-shop-sidebar__block .product-categories ul.children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oz-shop-sidebar__block .product-categories ul.children {
	padding-left: 1rem;
}

.oz-shop-sidebar__block .product-categories li {
	border-bottom: 1px solid #edf1f5;
}

.oz-shop-sidebar__block .product-categories li:last-child {
	border-bottom: 0;
}

.oz-shop-sidebar__block .product-categories a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.72rem 0;
	padding-left: 2rem;
	position: relative;
	text-decoration: none;
	color: var(--OZ-Color-2);
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.15s ease, transform 0.15s ease;
}

.oz-shop-sidebar__block .product-categories a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 16px;
	height: 16px;
	border: 1px solid #cdbcb6;
	border-radius: 4px;
	background: #fff;
	transform: translateY(-50%);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.oz-shop-sidebar__block .product-categories li.current-cat > a::before,
.oz-shop-sidebar__block .product-categories li.oz-cat-is-checked > a::before {
	border-color: #135ea8;
	background: #135ea8;
	box-shadow: inset 0 0 0 3px #fff;
}

.oz-shop-sidebar__block .product-categories a:hover {
	color: #135ea8;
	transform: translateX(1px);
}

.oz-shop-sidebar__block .product-categories .current-cat > a {
	font-weight: 700;
	color: #135ea8;
}



.oz-shop-sidebar__widget:last-child {
	margin-bottom: 0;
}

.oz-shop-sidebar__widget-title {
	font-size: clamp(1.1rem, 0.95vw, 1.2rem);
	margin: 0 0 0.85rem;
	color: #135ea8;
	font-family: var(--OZ-Font-Headings);
	text-transform: uppercase;
}

.oz-shop-layout__sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oz-shop-layout__sidebar .widget li {
	padding: 0.58rem 0;
	border-bottom: 1px solid #edf1f5;
}

.oz-shop-layout__sidebar .widget li:last-child {
	border-bottom: 0;
}

.oz-shop-layout__sidebar .widget li label,
.oz-shop-layout__sidebar .widget li a {
	color: #1f2937;
	font-size: 0.95rem;
	text-decoration: none;
}

.oz-shop-layout__sidebar .widget a:hover {
	color: #135ea8;
}

.oz-shop-layout__sidebar .widget input[type="checkbox"],
.oz-shop-layout__sidebar .widget input[type="radio"] {
	width: 16px;
	height: 16px;
	margin-right: 0.4rem;
	accent-color: #135ea8;
	vertical-align: -2px;
}

.oz-shop-layout__sidebar .widget .count {
	color: #64748b;
	font-size: 0.88rem;
}

.oz-shop-layout__sidebar .oz-widget--brands li > a {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	gap: 0.6rem;
	padding: 0 !important;
	margin-left: 0;
	line-height: 1.35;
}

.oz-shop-layout__sidebar .oz-widget--brands li > a::before {
	margin-left: -10px;
	content: "";
	display: inline-block;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border: 1px solid #cdbcb6;
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.oz-shop-layout__sidebar .oz-widget--brands li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	padding: 0 !important;
}

.oz-shop-layout__sidebar .oz-widget--brands li > input[type="checkbox"],
.oz-shop-layout__sidebar .oz-widget--brands li > input[type="radio"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0 0.55rem 0 0;
	accent-color: #135ea8;
	vertical-align: middle;
}

/* Cuando el widget ya trae checkbox/radio real, evita superposición con la casilla CSS */
.oz-shop-layout__sidebar .oz-widget--brands li > input[type="checkbox"] + a,
.oz-shop-layout__sidebar .oz-widget--brands li > input[type="radio"] + a,
.oz-shop-layout__sidebar .oz-widget--brands li > input[type="checkbox"] + label,
.oz-shop-layout__sidebar .oz-widget--brands li > input[type="radio"] + label {
	gap: 0;
	width: auto;
	margin-left: 0 !important;
}

.oz-shop-layout__sidebar .oz-widget--brands li > input[type="checkbox"] + a::before,
.oz-shop-layout__sidebar .oz-widget--brands li > input[type="radio"] + a::before,
.oz-shop-layout__sidebar .oz-widget--brands li > input[type="checkbox"] + label::before,
.oz-shop-layout__sidebar .oz-widget--brands li > input[type="radio"] + label::before {
	content: none;
}

.oz-shop-layout__sidebar .oz-widget--brands li > label,
.oz-shop-layout__sidebar .oz-widget--brands li > a {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
}

.oz-shop-layout__sidebar .oz-widget--brands .count {
	flex: 0 0 auto;
	margin-left: 0.4rem;
	padding: 0.08rem 0.5rem;
	border-radius: 999px;
	background: #e9eff6;
	color: #46617f;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.oz-shop-layout__sidebar .oz-widget--brands ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oz-shop-layout__sidebar .oz-widget--brands li.current-cat > a::before,
.oz-shop-layout__sidebar .oz-widget--brands li.chosen > a::before,
.oz-shop-layout__sidebar .oz-widget--brands li.woocommerce-widget-layered-nav-list__item--chosen > a::before,
.oz-shop-layout__sidebar .oz-widget--brands li.oz-brand-is-checked > a::before {
	border-color: #135ea8;
	background: #135ea8;
	box-shadow: inset 0 0 0 3px #fff;
}

/* Paginación */
.oz-shop-layout__main .woocommerce-pagination {
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	display: flex;
	justify-content: center;
}

.oz-shop-layout__main .woocommerce-pagination ul,
.oz-shop-layout__main .woocommerce-pagination ul.page-numbers {
	display: inline-flex !important;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 8px !important;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
}

.oz-shop-layout__main .woocommerce-pagination ul li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0 !important;
	float: none;
	display: block !important;
	overflow: visible;
}

.oz-shop-layout__main .woocommerce-pagination ul li .page-numbers,
.oz-shop-layout__main .woocommerce-pagination ul li a.page-numbers,
.oz-shop-layout__main .woocommerce-pagination ul li span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	min-width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	background: #f5f7fa !important;
	text-decoration: none;
	color: #1f2a37 !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1;
	box-shadow: none !important;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.oz-shop-layout__main .woocommerce-pagination ul li a.page-numbers:hover {
	background: #edf2f7 !important;
	border-color: #d5dde7 !important;
	color: #152132 !important;
	transform: translateY(-1px);
}

.oz-shop-layout__main .woocommerce-pagination ul li .page-numbers.current,
.oz-shop-layout__main .woocommerce-pagination ul li span.current {
	background: #eaf0f6 !important;
	border-color: #ced8e3 !important;
	color: #152132 !important;
}

.oz-shop-layout__main .woocommerce-pagination ul li .page-numbers.next,
.oz-shop-layout__main .woocommerce-pagination ul li .page-numbers.prev {
	font-size: 20px !important;
	font-weight: 500 !important;
}

@media (max-width: 767px) {
	.oz-shop-layout__main .woocommerce-pagination {
		width: 100%;
		overflow: visible;
	}

	.oz-shop-layout__main .woocommerce-pagination ul,
	.oz-shop-layout__main .woocommerce-pagination ul.page-numbers {
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		gap: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 8px !important;
		box-sizing: border-box !important;
	}

	.oz-shop-layout__main .woocommerce-pagination ul li .page-numbers,
	.oz-shop-layout__main .woocommerce-pagination ul li a.page-numbers,
	.oz-shop-layout__main .woocommerce-pagination ul li span.page-numbers {
		width: 38px !important;
		min-width: 38px !important;
		height: 38px !important;
		font-size: 15px !important;
	}
}

@media (max-width: 380px) {
	.oz-shop-layout__main .woocommerce-pagination ul,
	.oz-shop-layout__main .woocommerce-pagination ul.page-numbers {
		gap: 6px !important;
	}

	.oz-shop-layout__main .woocommerce-pagination ul li .page-numbers,
	.oz-shop-layout__main .woocommerce-pagination ul li a.page-numbers,
	.oz-shop-layout__main .woocommerce-pagination ul li span.page-numbers {
		width: 34px !important;
		min-width: 34px !important;
		height: 34px !important;
		font-size: 14px !important;
	}
}

/* Cada widget del bloque --widgets se muestra como tarjeta independiente,
   igual que --categories, con la misma separación que el resto de bloques. */
.oz-shop-sidebar__block--widgets {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.oz-shop-sidebar__block--widgets > .widget {
	padding: 1rem 1.1rem;
	border: 1px solid #e6ebf1;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Igualar el espaciado de los items dentro de cualquier widget colapsable
   al que tienen los items del bloque de categorías.
   Se excluyen los `.cat-item` (widget_categories) para que manejen su
   propio padding de forma independiente. */
.oz-shop-layout__sidebar .oz-collapsible__body li:not(.cat-item) {
	padding: 0.72rem 0 !important;
}

/* `.cat-item` dentro del sidebar de la tienda: padding independiente,
   no recibe el del bloque colapsable genérico. Cambia este valor para
   ajustar el espaciado vertical de los items del widget de categorías. */
.oz-shop-layout__sidebar .oz-collapsible__body li.cat-item {
	padding: 0.5rem 0;
}

/* Bloques colapsables del sidebar (categorías y marcas) */
.oz-collapsible .oz-collapsible__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.oz-collapsible .oz-collapsible__title::after {
	content: "";
	display: none;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-left: auto;
	flex-shrink: 0;
	opacity: 0.7;
}

@media (max-width: 991px) {
	.oz-collapsible .oz-collapsible__title {
		cursor: pointer;
		user-select: none;
	}

	.oz-collapsible .oz-collapsible__title::after {
		display: inline-block;
	}

	.oz-collapsible:not(.is-collapsed) .oz-collapsible__title::after {
		transform: rotate(-135deg);
	}

	.oz-collapsible.is-collapsed .oz-collapsible__title {
		margin-bottom: 0;
	}

	.oz-collapsible.is-collapsed .oz-collapsible__body {
		display: none;
	}

	.oz-collapsible .oz-collapsible__title:focus-visible {
		outline: 2px solid rgba(19, 94, 168, 0.4);
		outline-offset: 2px;
		border-radius: 4px;
	}
}

/* Scroll interno del widget de marcas (todos los breakpoints):
   limita el alto y permite scroll vertical para evitar que el sidebar
   se expanda indefinidamente cuando hay muchas marcas. */
.oz-shop-layout__sidebar .oz-widget--brands .oz-collapsible__body {
	max-height: 22rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding-right: 0.4rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(19, 94, 168, 0.35) transparent;
}

@media (max-width: 991px) {
	.oz-shop-layout__sidebar .oz-widget--brands .oz-collapsible__body {
		max-height: 60vh;
	}
}

.oz-shop-layout__sidebar .oz-widget--brands .oz-collapsible__body::-webkit-scrollbar {
	width: 6px;
}

.oz-shop-layout__sidebar .oz-widget--brands .oz-collapsible__body::-webkit-scrollbar-track {
	background: transparent;
}

.oz-shop-layout__sidebar .oz-widget--brands .oz-collapsible__body::-webkit-scrollbar-thumb {
	background: rgba(19, 94, 168, 0.3);
	border-radius: 999px;
}

.oz-shop-layout__sidebar .oz-widget--brands .oz-collapsible__body::-webkit-scrollbar-thumb:hover {
	background: rgba(19, 94, 168, 0.55);
}
