/* Shared products UI (home + catalog) */
.tasco-products-section {
	padding: 40px 60px;
}

.tasco-products-section__title {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 30px;
	color: #000;
}

.tasco-products-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 991px) {
	.tasco-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tasco-products-section {
		padding: 30px 20px;
	}
}

@media (max-width: 575px) {
	.tasco-products-grid {
		grid-template-columns: 1fr;
	}
}

.tasco-product-card {
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.tasco-product-card:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.tasco-product-card__img-wrap {
	display: block;
	background: #f5f5f5;
	text-align: center;
	padding: 16px;
}

.tasco-product-card__img {
	max-width: 100%;
	height: 180px;
	object-fit: contain;
}

.tasco-product-card__body {
	padding: 12px 16px 0;
	flex: 1;
}

.tasco-product-card__brand {
	font-size: 13px;
	color: var(--e-global-color-primary, #3b5bdb);
	text-decoration: none;
	font-weight: 500;
	display: block;
	margin-bottom: 4px;
}

.tasco-product-card__title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 6px;
	line-height: 1.3;
}

.tasco-product-card__title a {
	color: #000;
	text-decoration: none;
}

.tasco-product-card__title a:hover {
	color: var(--e-global-color-primary, #3b5bdb);
}

.tasco-product-card__sku {
	font-size: 12px;
	color: #777;
	margin: 0 0 6px;
}

.tasco-product-card__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 0;
}

.tasco-product-card__price .woocommerce-Price-amount {
	font-size: 16px;
	font-weight: 700;
	color: #000;
}

.tasco-product-card__actions {
	padding: 12px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tasco-product-card__btn-ficha {
	display: block;
	text-align: center;
	font-size: 13px;
	color: var(--e-global-color-primary, #3b5bdb);
	text-decoration: underline;
}

.tasco-product-card__btn-ficha:hover {
	color: var(--e-global-color-a1ba18b, #2045c0);
}

.tasco-pc-atc-wrap {
	width: 100%;
}

.tasco-pc-atc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--e-global-color-primary, #2563eb);
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: filter 0.2s ease;
}

.tasco-pc-atc-btn:hover {
	filter: brightness(1.1);
}

.tasco-pc-qty-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	overflow: hidden;
	background: #fff;
	gap: 10px;
}

.tasco-pc-minus,
.tasco-pc-plus {
	background: var(--e-global-color-primary, #2563eb);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	cursor: pointer;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: filter 0.2s ease;
	border-radius: 100%;
}

.tasco-pc-minus:hover,
.tasco-pc-plus:hover {
	filter: brightness(1.1);
}

.tasco-pc-qty-num {
	appearance: textfield;
	-moz-appearance: textfield;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #000;
	background: #f3f3f3;
	height: 100%;
	padding: 10px 0;
	display: inline-block;
	width: 100%;
	border-radius: 100px;
	border: 0;
	outline: none;
}

.tasco-pc-qty-num::-webkit-outer-spin-button,
.tasco-pc-qty-num::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Catalog layout */
.tasco-catalog {
	padding: 30px 40px 50px;
}

.tasco-catalog__layout {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.tasco-catalog__sidebar {
	position: sticky;
	top: 110px;
	max-height: calc(100vh - 130px);
	overflow: auto;
	padding-right: 10px;
	border-right: 1px solid #ededed;
}

.tasco-catalog__sidebar-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
}

.tasco-cat-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0f3c9f;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tasco-cat-clear:hover {
	color: #2f6dd8;
}

.tasco-cat-clear:focus-visible {
	outline: 2px solid #0f3c9f;
	outline-offset: 2px;
}

button.tasco-cat-toggle{
	border: none !important;
	color: blue !important;
	font-weight: bold !important;
	padding: 0 !important;
}

button.tasco-filter-section__toggle {
    width: 100%;
    text-align: left;
    display: flex;
    border: none;
    color: black;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.tasco-filter-section {
	margin-top: 14px;
	border-bottom: 1px solid #ededed;
	padding-bottom: 10px;
}

.tasco-filter-section:last-of-type {
	border-bottom: 0;
}

.tasco-filter-section__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111827;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
}

.tasco-filter-section__toggle:focus-visible {
	outline: 2px solid #0f3c9f;
	outline-offset: 2px;
}

.tasco-filter-section__icon {
	font-size: 20px;
	line-height: 1;
	color: #0f3c9f;
	flex: 0 0 auto;
}

.tasco-filter-section__body {
	display: none;
	padding-top: 10px;
}

.tasco-filter-section.is-open > .tasco-filter-section__body {
	display: block;
}

.tasco-brand-list-wrap {
	max-height: 400px;
	overflow: auto;
	padding-right: 6px;
	padding-bottom: 4px;
}

.tasco-filter-section--price {
	padding-top: 4px;
}

.tasco-price-filter {
	display: grid;
	gap: 10px;
	padding: 10px 0 4px;
}

.tasco-price-filter__values {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: #4b5563;
}

.tasco-price-filter__value {
	color: #0f3c9f;
	font-weight: 700;
}

.tasco-price-filter__sliders {
	display: grid;
	gap: 8px;
}

.tasco-price-range-input {
	width: 100%;
	margin: 0;
	accent-color: #0f3c9f;
}

.tasco-catalog__empty--filters {
	padding: 0;
	font-size: 13px;
	color: #777;
	background: transparent;
	border: 0;
}

.tasco-cat-tree,
.tasco-cat-tree ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.tasco-cat-tree ul {
	padding-left: 16px;
	margin-top: 8px;
}

.tasco-cat-tree li {
	margin-bottom: 8px;
}

.tasco-cat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.tasco-cat-select {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	cursor: pointer;
	min-width: 0;
}

.tasco-cat-check {
	margin: 0;
	accent-color: #0f3c9f;
	flex: 0 0 auto;
}

.tasco-cat-name {
	font-size: 14px;
	color: #2f6dd8;
	line-height: 1.3;
	word-break: break-word;
	flex: 1 1 auto;
}

.tasco-cat-item > .tasco-cat-children {
	display: none;
}

.tasco-cat-item.is-open > .tasco-cat-children {
	display: block;
}

.tasco-cat-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	color: #2f6dd8;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
	flex: 0 0 auto;
}

.tasco-cat-item > .tasco-cat-row > .tasco-cat-toggle:focus-visible {
	outline: 2px solid #0f3c9f;
	outline-offset: 2px;
}

.tasco-cat-item.is-selected > .tasco-cat-row .tasco-cat-name {
	font-weight: 700;
	color: #0f3c9f;
}

.tasco-catalog__products .tasco-products-section__title {
	text-align: left;
	margin-bottom: 24px;
}

.tasco-products-loader {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	font-size: 13px;
	color: #666;
}

.tasco-products-loader.is-visible {
	display: flex;
}

.tasco-products-end {
	display: none;
	text-align: center;
	padding: 16px;
	font-size: 13px;
	color: #777;
}

.tasco-products-end.is-visible {
	display: block;
}

.tasco-products-sentinel {
	height: 1px;
}

@media (max-width: 1024px) {
	.tasco-catalog {
		padding: 20px;
	}

	.tasco-catalog__layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.tasco-catalog__sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		padding-right: 0;
		border-right: 0;
		border-bottom: 1px solid #ededed;
		padding-bottom: 12px;
	}
}
