/* 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;
	border-radius: 0;
	padding: 0;
	position: relative;
	text-align: center;
	margin: 4px 8px 0;
}

.tasco-product-card__discount-badge {
	position: absolute;
	top: 14px;
	right: 0;
	background: #F00B5D;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	padding: 8px 12px;
	border-radius: 12px;
	min-width: 58px;
	text-align: center;
	z-index: 2;
}

@media (max-width: 767px) {
	.tasco-product-card__discount-badge {
		top: 10px;
		right: 10px;
		font-size: 24px;
		padding: 6px 10px;
		border-radius: 10px;
		min-width: 48px;
	}
}

.tasco-product-card__img {
	max-width: 100%;
	width: 100%;
	object-fit: contain;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
}

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

.tasco-product-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.tasco-product-card__brand {
	font-size: 16px;
	color: var(--e-global-color-primary, #2E70D9);
	text-decoration: none;
	font-weight: 500;
	display: block;
	margin-bottom: 0;
	line-height: 1.2;
}

.tasco-product-card__available {
	font-size: 16px;
	line-height: 1.2;
	color: #f00b5d;
	font-weight: 400;
	white-space: nowrap;
}

.tasco-product-card__title {
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 5px;
	line-height: 1.2;
}

span.tasco-product-card__tax-suffix {
    color: #757575;
}

.tasco-product-card__title a {
	color: #000;
	text-decoration: none;
	font-size: 16px;
	line-height: 1.2;
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	min-height: 2.4em;
	max-height: 2.4em;
}

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

.tasco-product-card__sku {
	font-size: 14px;
	color: #757575;
	margin: 0 0 10px;
}

.tasco-product-card__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: auto;
	margin-bottom: 0;
}

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

.tasco-product-card__price ins {
	order: 1;
	text-decoration: none;
}

.tasco-product-card__price del {
	order: 2;
	opacity: 0.55;
}

.tasco-product-card__price del .woocommerce-Price-amount {
	font-size: 14px !important;
	font-weight: 500;
	color: #757575;
}

.tasco-product-card__price ins .woocommerce-Price-amount {
	color: #f00b5d;
}

@media (max-width: 767px) {
	.tasco-product-card__img-wrap {
		padding: 12px;
		margin: 4px 4px 0;
	}

	.tasco-product-card__brand {
		font-size: 16px;
	}

	.tasco-product-card__title {
		font-size: 16px;
	}

	.tasco-product-card__sku {
		font-size: 14px;
	}

	.tasco-product-card__price .woocommerce-Price-amount {
		font-size: 20px;
	}

	.tasco-product-card__price del .woocommerce-Price-amount {
		font-size: 26px;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.tasco-product-card__brand {
		font-size: 16px;
	}

	.tasco-product-card__available {
		font-size: 16px;
	}

	.tasco-product-card__title {
		font-size: 28px;
	}

	.tasco-product-card__sku {
		font-size: 14px;
	}

	.tasco-product-card__price .woocommerce-Price-amount {
		font-size: 20px;
	}

	.tasco-product-card__price del .woocommerce-Price-amount {
		font-size: 20px;
	}
}

@media (min-width: 1200px) {
	.tasco-product-card__brand {
		font-size: 16px;
	}

	.tasco-product-card__available {
		font-size: 16px;
	}

	.tasco-product-card__title {
		font-size: 22px;
	}

	.tasco-product-card__sku {
		font-size: 14px;
	}

	.tasco-product-card__price .woocommerce-Price-amount {
		font-size: 20px;
	}

	.tasco-product-card__price del .woocommerce-Price-amount {
		font-size: 18px;
	}
}

.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: 14px;
	color: var(--e-global-color-primary, #2E70D9);
	text-decoration: underline;
}

.tasco-product-card__btn-ficha-placeholder {
	display: block;
	text-align: center;
	font-size: 14px;
	text-decoration: underline;
	visibility: hidden;
	pointer-events: none;
}

.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 !important;
	justify-content: center !important;
	width: 100% !important;
	background: var(--e-global-color-primary, #2563eb) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 5px 20px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	/* letter-spacing: 0.5px !important; */
	cursor: pointer !important;
	transition: filter 0.2s ease !important;
	white-space: break-spaces !important;
}

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

.tasco-pc-atc-btn.tasco-pc-atc-btn--disabled,
.tasco-pc-atc-btn:disabled {
	background: #9ca3af !important;
	opacity: 0.8;
	cursor: not-allowed !important;
	pointer-events: none;
	filter: none !important;
}

.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) !important;
	color: #fff !important;
	border: none !important;
	width: 28px !important;
	height: 28px !important;
	cursor: pointer !important;
	padding: 0 !important;
	flex-shrink: 0 !important;
	display: flex;
	align-items: center !important;
	justify-content: center !important;
	transition: filter 0.2s ease !important;
	border-radius: 100% !important;
}

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

.tasco-pc-qty-num {
    border: none !important;
    border-radius: 100px !important;	
	appearance: textfield;
	-moz-appearance: textfield;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #000;
	background: #f3f3f3;
	height: 100%;
	padding: 4px 0 !important;
	display: inline-block;
	width: 100%;
	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: flex;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: var(--e-global-color-primary, #2563eb) !important;
    color: #fff !important;
    border: 2px solid var(--e-global-color-primary, #2563eb) !important;
    border-radius: 50px !important;
    padding: 5px 20px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    /* letter-spacing: 0.5px !important; */
    cursor: pointer !important;
    transition: filter 0.2s ease !important;
	text-transform: uppercase !important;
	white-space: break-spaces !important;
}

.tasco-cat-clear:hover {
	background: white !important;
	color: var(--e-global-color-primary, #2563eb) !important;
	border: 2px solid var(--e-global-color-primary, #2563eb) !important;
}

.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;
	padding: 0;
}

button.tasco-filter-section__toggle:hover, button.tasco-filter-section__toggle:focus, button.tasco-filter-section__toggle:focus-visible {
    background: transparent !important;
    color: black !important;
    padding: 0 !important;	
	outline: none !important;
}

.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.2;
	color: black;
	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: 18px;
	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: 14px;
	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-check {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #1e88e5;
    border-radius: 50%;
    background: #fff;
    display: inline-grid;
    place-content: center;
    flex: 0 0 auto;
} */

.tasco-cat-name {
	font-size: 14px;
	color: black;
	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.2;
	padding: 0 2px;
	cursor: pointer;
	flex: 0 0 auto;
}

.tasco-cat-toggle:hover, .tasco-cat-toggle:focus, .tasco-cat-toggle:focus-visible {
	background: transparent !important;
	outline: none !important;
}

.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: black;
}

.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;
}

.tasco-products-loader__img {
	width: 150px;
	height: auto;
	display: block;
}

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

.tasco-products-end {
	display: none;
	text-align: center;
	padding: 16px;
	font-size: 14px;
	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;
	}
}
