/* =========================================================
   ECW Shop Catalog — loja / categorias / tags
   ========================================================= */

.ecw-shop-catalog .shop-page.is-sidebar-left,
.ecw-shop-catalog .shop-page.is-sidebar-right {
	display: block;
}

.ecw-shop-catalog .shop-page.is-sidebar-left > .rb-container > .grid-container,
.ecw-shop-catalog .shop-page.is-sidebar-right > .rb-container > .grid-container {
	display: block;
}

.ecw-shop-catalog .shop-page .sidebar-wrap,
.ecw-shop-catalog .shop-page aside.sidebar,
.ecw-shop-catalog .shop-page .widget-area,
.ecw-shop-catalog #sidebar,
.ecw-shop-catalog .sidebar-wrap {
	display: none !important;
}

.ecw-shop-catalog .shop-page-content,
.ecw-shop-catalog .shop-page .shop-page-content {
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100% !important;
}

.ecw-shop-catalog .products-outer,
.ecw-shop-catalog .products.wc-col-3,
.ecw-shop-catalog .products.wc-col-4 {
	display: contents;
}

/* ---- Filters ---- */

.ecw-shop-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	margin: 0 0 0.5rem;
	padding: 1.1rem 1.25rem;
	background: var(--ecw-theme-surface, #ffffff);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 1rem;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .ecw-shop-filters {
	background: var(--ecw-theme-surface, #191c20);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ecw-shop-filters__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	flex: 1 1 auto;
	min-width: 0;
}

.ecw-shop-filters__field {
	position: relative;
	min-width: 0;
}

.ecw-shop-filters__search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 320px;
	max-width: 560px;
}

.ecw-shop-filters__search input,
.ecw-shop-filters__search .ecw-ajax-search__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 2.75rem;
	padding: 0 1rem 0 3.1rem !important;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0.75rem;
	background: #f7f7f7;
	color: #111;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.ecw-shop-filters__search input::-webkit-search-decoration,
.ecw-shop-filters__search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

[data-theme="dark"] .ecw-shop-filters__search input,
[data-theme="dark"] .ecw-shop-filters__search .ecw-ajax-search__input {
	background: #12151a;
	border-color: rgba(255, 255, 255, 0.1);
	color: #e8eaed;
}

.ecw-shop-filters__search input:focus,
.ecw-shop-filters__search .ecw-ajax-search__input:focus {
	border-color: #e41118;
	box-shadow: 0 0 0 3px rgba(228, 17, 24, 0.15);
}

.ecw-shop-filters__icon,
.ecw-shop-filters__search .ecw-ajax-search__icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #8f8f8f;
	pointer-events: none;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ecw-shop-filters__search .ecw-ajax-search__submit {
	height: 2.75rem;
	border-radius: 0.75rem;
	flex: 0 0 auto;
}

.ecw-shop-filters__field select {
	height: 2.75rem;
	min-width: 11.5rem;
	padding: 0 2.2rem 0 0.9rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0.75rem;
	background: #f7f7f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
	color: #111;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	appearance: none;
	cursor: pointer;
	outline: none;
}

[data-theme="dark"] .ecw-shop-filters__field select {
	background-color: #12151a;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaaaaa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	border-color: rgba(255, 255, 255, 0.1);
	color: #e8eaed;
}

.ecw-shop-filters__field select:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.ecw-shop-filters__submit {
	height: 2.75rem;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 0.75rem;
	background: #e41118;
	color: #fff;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ecw-shop-filters__submit:hover {
	background: #c40e14;
	transform: translateY(-1px);
}

.ecw-shop-filters__clear {
	font-size: 0.75rem;
	font-weight: 600;
	color: #8f8f8f;
	text-decoration: underline;
}

.ecw-shop-filters__clear:hover {
	color: #e41118;
}

.ecw-shop-filters__count {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: #8f8f8f;
	white-space: nowrap;
}

/* ---- Grid items ---- */

.ecw-shop-grid-wrap {
	width: 100%;
}

.ecw-shop-grid {
	width: 100%;
}

.ecw-shop-item {
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	list-style: none;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.ecw-shop-item .ecw-pcard {
	width: 100%;
	max-width: none;
	--ecw-pcard-w: 100%;
	height: 100%;
}

/* Foxiz leftovers */
.ecw-shop-catalog .woocommerce-result-count,
.ecw-shop-catalog .woocommerce-ordering {
	display: none !important;
}

.ecw-shop-catalog .woocommerce-pagination {
	margin-top: 1.5rem;
	text-align: center;
}

@media (max-width: 900px) {
	.ecw-shop-filters {
		padding: 1rem;
	}

	.ecw-shop-filters__search {
		flex: 1 1 100%;
		max-width: none;
	}

	.ecw-shop-filters__field select {
		min-width: 0;
		width: 100%;
	}

	.ecw-shop-filters__form {
		width: 100%;
	}
}

/* Elementor Grid / Carousel catalog wrap */
.ecw-catalog-wrap {
	position: relative;
	width: 100%;
}

.ecw-catalog-wrap > .ecw-shop-filters,
.ecw-catalog-wrap > .ecw-catalog-filters {
	margin-bottom: 1rem;
}

.ecw-catalog-wrap.is-loading .ecw-pcard-grid,
.ecw-catalog-wrap.is-loading .ecw-pcard-carousel {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.ecw-pcard-empty {
	padding: 1.5rem 1rem;
	text-align: center;
	color: #6b6b6b;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.95rem;
}

[data-theme="dark"] .ecw-pcard-empty {
	color: #9aa0a6;
}

/* Grade: filtros completos, sem alterar a barra da loja. */
.ecw-catalog-filters.ecw-shop-filters {
	flex-direction: column;
	align-items: stretch;
}

.ecw-catalog-filters .ecw-shop-filters__form {
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	gap: 0.75rem;
}

.ecw-catalog-filters__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
}

.ecw-catalog-filters__toolbar .ecw-shop-filters__search {
	flex: 1 1 280px;
}

.ecw-catalog-filters__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid #0c0c0c;
	border-radius: 0.75rem;
	background: #fff;
	color: #0c0c0c;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.ecw-catalog-filters__toggle:hover,
.ecw-catalog-filters__toggle[aria-expanded="true"] {
	border-color: var(--ecw-theme-accent, #dc1f2f);
	color: var(--ecw-theme-accent, #dc1f2f);
}

.ecw-catalog-filters__badge:not([hidden]) {
	display: inline-grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--ecw-theme-accent, #dc1f2f);
	color: #fff;
	font-size: 0.68rem;
	letter-spacing: 0;
}

.ecw-catalog-filters__panel {
	padding-top: 0.35rem;
	border-top: 1px solid rgba(12, 12, 12, 0.08);
}

.ecw-catalog-filters__group + .ecw-catalog-filters__group {
	margin-top: 0.9rem;
}

.ecw-catalog-filters__label,
.ecw-catalog-filters__sublabel {
	margin: 0 0 0.45rem;
	color: var(--ecw-theme-muted, #5a5f66);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ecw-catalog-filters__sublabel {
	flex: 1 1 100%;
	margin: 0.35rem 0 0;
}

.ecw-catalog-filters__find,
.ecw-catalog-filters__price input {
	height: 2.5rem;
	border: 1px solid rgba(12, 12, 12, 0.1);
	border-radius: 0.75rem;
	background: #f7f7f7;
	color: #0c0c0c;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	outline: none;
}

.ecw-catalog-filters__find {
	width: min(100%, 22rem);
	margin: 0 0 0.65rem;
	padding: 0 0.9rem;
}

.ecw-catalog-filters__find:focus,
.ecw-catalog-filters__price input:focus {
	border-color: var(--ecw-theme-accent, #dc1f2f);
	box-shadow: 0 0 0 3px rgba(220, 31, 47, 0.15);
}

.ecw-catalog-filters__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	max-height: 11.5rem;
	overflow: auto;
}

.ecw-catalog-filters__pills--sub {
	margin-top: 0.55rem;
}

.ecw-catalog-filters__pill,
.ecw-catalog-filters__chip {
	border: 1px solid rgba(12, 12, 12, 0.14);
	border-radius: 999px;
	background: #fff;
	color: #0c0c0c;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.ecw-catalog-filters__pill {
	padding: 0.55rem 0.85rem;
}

.ecw-catalog-filters__pill:hover,
.ecw-catalog-filters__chip:hover {
	border-color: var(--ecw-theme-accent, #dc1f2f);
}

.ecw-catalog-filters__pill.is-on,
.ecw-catalog-filters__pill[aria-pressed="true"] {
	background: #0c0c0c;
	border-color: #0c0c0c;
	color: #fff;
}

.ecw-catalog-filters__pill:disabled {
	opacity: 0.55;
	cursor: default;
}

.ecw-catalog-filters__price {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.65rem;
}

.ecw-catalog-filters__price label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: #0c0c0c;
	font-size: 0.75rem;
	font-weight: 700;
}

.ecw-catalog-filters__price input {
	width: 7rem;
	padding: 0 0.75rem;
}

.ecw-catalog-filters__clear {
	margin-top: 0.9rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ecw-theme-accent, #dc1f2f);
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 800;
	cursor: pointer;
	text-decoration: underline;
}

.ecw-catalog-filters__chips:not([hidden]) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ecw-catalog-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.7rem;
	background: var(--ecw-theme-surface-alt, #fff4ea);
}

.ecw-catalog-filters__chip span {
	font-size: 0.9rem;
	line-height: 1;
}

.ecw-catalog-filters__meta {
	margin: 0;
	color: var(--ecw-theme-muted, #5a5f66);
	font-size: 0.75rem;
	font-weight: 700;
}

[data-theme="dark"] .ecw-catalog-filters__toggle,
[data-theme="dark"] .ecw-catalog-filters__pill,
[data-theme="dark"] .ecw-catalog-filters__find,
[data-theme="dark"] .ecw-catalog-filters__price input {
	background: #12151a;
	border-color: rgba(255, 255, 255, 0.14);
	color: #fff;
}

[data-theme="dark"] .ecw-catalog-filters__pill.is-on,
[data-theme="dark"] .ecw-catalog-filters__pill[aria-pressed="true"] {
	background: #fff;
	border-color: #fff;
	color: #0c0c0c;
}

[data-theme="dark"] .ecw-catalog-filters__price label,
[data-theme="dark"] .ecw-catalog-filters__panel {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
	.ecw-catalog-filters__toolbar .ecw-shop-filters__field,
	.ecw-catalog-filters__toggle {
		flex: 1 1 100%;
	}

	.ecw-catalog-filters__toolbar .ecw-shop-filters__field select {
		width: 100%;
	}
}
