/**
 * Store Widget Elementor
 * Version: 1.0.11
 */

.tcd-store {
	--tcd-sidebar-width: 260px;
	--tcd-gap: 24px;
	display: grid;
	gap: var(--tcd-gap);
	align-items: start;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.tcd-store *,
.tcd-store *::before,
.tcd-store *::after {
	box-sizing: border-box;
}

.tcd-store--sidebar-left {
	grid-template-columns: var(--tcd-sidebar-width) minmax(0, 1fr);
}

.tcd-store--sidebar-right {
	grid-template-columns: minmax(0, 1fr) var(--tcd-sidebar-width);
}

.tcd-store--sidebar-none {
	grid-template-columns: minmax(0, 1fr);
}

.tcd-store__main,
.tcd-store__toolbar,
.tcd-store__products-wrap,
.tcd-store__products {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.tcd-store__main {
	display: flex;
	flex-direction: column;
}

/* Sidebar */
.tcd-store__sidebar-inner {
	padding: 20px;
	background: #f7f7f7;
	border-radius: 4px;
}

.tcd-store__sidebar-title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 700;
}

.tcd-store__filter {
	margin-bottom: 1.5rem;
}

.tcd-store__filter-title {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.tcd-store__filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tcd-store__filter-item {
	margin: 0 0 0.4rem;
}

.tcd-store__filter-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.875rem;
}

.tcd-store__filter-count {
	opacity: 0.65;
	margin-left: auto;
}

.tcd-store__filter-list--swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tcd-store__filter-label--swatch {
	position: relative;
}

.tcd-store__filter-label--swatch .tcd-store__filter-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tcd-store__swatch {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: var(--tcd-swatch, #bdbdbd);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tcd-store__filter-input:checked + .tcd-store__swatch,
.tcd-store__filter-label--swatch:has(.tcd-store__filter-input:checked) .tcd-store__swatch {
	box-shadow: 0 0 0 2px #222;
	transform: scale(1.08);
}

.tcd-store__clear-filters-wrap {
	margin-top: 0.75rem;
	text-align: center;
}

.tcd-store__clear-filters {
	display: inline-block;
	width: 100%;
	padding: 0.65rem 1.25rem;
	border: 1px solid #ccc;
	border-radius: 999px;
	background: #fff;
	color: inherit;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.tcd-store__clear-filters:hover {
	border-color: #999;
}

/* Toolbar */
.tcd-store__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px 16px;
	margin-bottom: 1.5rem;
	width: 100%;
}

.tcd-store__result-count {
	margin: 0;
	margin-right: auto;
	font-size: 0.875rem;
}

.tcd-store__toolbar-right {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	margin-left: 0;
	width: auto;
	max-width: 100%;
	flex: 0 1 auto;
}

.tcd-store__ordering {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.tcd-store__ordering-label {
	font-weight: 700;
	font-size: 0.875rem;
	white-space: nowrap;
}

.tcd-store__orderby {
	min-width: 200px;
	width: auto;
	max-width: 100%;
	padding: 0.4rem 0.6rem;
	border: 1px solid #ccc;
	background: #fff;
	font-size: 0.875rem;
}

.tcd-store__views {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.tcd-store__view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: #999;
	cursor: pointer;
	line-height: 1;
	flex: 0 0 auto;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.tcd-store__view-btn:hover {
	color: #222;
}

.tcd-store__view-btn.is-active {
	color: #222;
}

.tcd-store__view-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.tcd-store__view-icon--list {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23000' d='M2 4h14v1.5H2V4zm0 4.25h14v1.5H2v-1.5zm0 4.25h14V14H2v-1.5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23000' d='M2 4h14v1.5H2V4zm0 4.25h14v1.5H2v-1.5zm0 4.25h14V14H2v-1.5z'/%3E%3C/svg%3E");
}

.tcd-store__view-icon--grid2 {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23000' d='M2 2h6.5v6.5H2V2zm7.5 0H16v6.5H9.5V2zM2 9.5H8.5V16H2V9.5zm7.5 0H16V16H9.5V9.5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23000' d='M2 2h6.5v6.5H2V2zm7.5 0H16v6.5H9.5V2zM2 9.5H8.5V16H2V9.5zm7.5 0H16V16H9.5V9.5z'/%3E%3C/svg%3E");
}

.tcd-store__view-icon--grid3 {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23000' d='M2 2h4v4H2V2zm6 0h4v4H8V2zm6 0h4v4h-4V2zM2 8h4v4H2V8zm6 0h4v4H8V8zm6 0h4v4h-4V8zM2 14h4v2H2v-2zm6 0h4v2H8v-2zm6 0h4v2h-4v-2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23000' d='M2 2h4v4H2V2zm6 0h4v4H8V2zm6 0h4v4h-4V2zM2 8h4v4H2V8zm6 0h4v4H8V8zm6 0h4v4h-4V8zM2 14h4v2H2v-2zm6 0h4v2H8v-2zm6 0h4v2h-4v-2z'/%3E%3C/svg%3E");
}

.tcd-store__view-icon--grid4 {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23000' d='M1.5 1.5h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm-12 4h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm-12 4h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm-12 4h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23000' d='M1.5 1.5h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm-12 4h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm-12 4h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm-12 4h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3zm4 0h3v3h-3v-3z'/%3E%3C/svg%3E");
}

/* Products grid — anula clearfix / floats del tema WooCommerce */
.tcd-store ul.tcd-store__products::before,
.tcd-store ul.tcd-store__products::after,
.tcd-store__products::before,
.tcd-store__products::after {
	content: none !important;
	display: none !important;
}

.tcd-store__products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 20px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.tcd-store__products.columns-1,
.tcd-store__products.tcd-view-list {
	grid-template-columns: minmax(0, 1fr);
}

.tcd-store__products.columns-2,
.tcd-store__products.tcd-view-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tcd-store__products.columns-3,
.tcd-store__products.tcd-view-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tcd-store__products.columns-4,
.tcd-store__products.tcd-view-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tcd-store__products.columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tcd-store__products.columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tcd-store__products .tcd-store__product,
.tcd-store__products .product {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	position: relative;
}

.tcd-store__product-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	overflow: hidden;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tcd-store__image-link {
	display: block;
	margin-bottom: 0.75rem;
}

.tcd-store__image {
	display: block;
	overflow: hidden;
}

.tcd-store__image img {
	display: block;
	width: 100%;
	height: auto;
}

.tcd-store__title {
	margin: 0 0 0.35rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

.tcd-store__title a {
	color: inherit;
	text-decoration: none;
}

.tcd-store__title a:hover {
	text-decoration: underline;
}

.tcd-store__rating {
	margin-bottom: 0.35rem;
}

.tcd-store__price {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.9375rem;
}

.tcd-store__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
}

.tcd-store__actions .button,
.tcd-store__actions a.button {
	display: inline-block;
	text-decoration: none;
	border-style: solid;
	border-width: 0;
}

.tcd-store__actions .added_to_cart {
	display: inline-block;
	text-decoration: underline;
	white-space: nowrap;
}

/* List view */
.tcd-store__products.tcd-view-list .tcd-store__product-inner {
	flex-direction: row;
	align-items: flex-start;
	gap: 1.25rem;
}

.tcd-store__products.tcd-view-list .tcd-store__image-link {
	flex: 0 0 160px;
	max-width: 160px;
	margin-bottom: 0;
}

.tcd-store__products.tcd-view-list .tcd-store__product-content {
	flex: 1;
	min-width: 0;
}

/* Loading / empty */
.tcd-store__products-wrap.is-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.tcd-store__empty {
	margin: 2rem 0;
	text-align: center;
}

/* Pagination */
.tcd-store__pagination {
	margin-top: 2rem;
}

.tcd-store__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.tcd-store__pagination .page-numbers li {
	margin: 0;
}

.tcd-store__pagination .page-numbers a,
.tcd-store__pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 0.5rem;
	border: 1px solid #ddd;
	border-radius: 0;
	background-color: transparent;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.tcd-store__pagination .page-numbers a:hover {
	border-color: #999;
}

.tcd-store__pagination .page-numbers .current {
	background: #222;
	border-color: #222;
	color: #fff;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Responsive */
@media (max-width: 1024px) {
	.tcd-store--sidebar-left,
	.tcd-store--sidebar-right {
		grid-template-columns: minmax(0, 1fr);
	}

	.tcd-store__sidebar {
		order: -1;
	}

	.tcd-store__products.columns-4,
	.tcd-store__products.tcd-view-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tcd-store__toolbar {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
	}

	.tcd-store__result-count {
		margin-right: 0;
	}

	.tcd-store__toolbar-right {
		margin-left: 0;
		width: 100%;
		justify-content: flex-end;
		flex-wrap: wrap;
		gap: 8px;
	}

	.tcd-store__orderby {
		min-width: 0;
		flex: 1 1 auto;
	}

	.tcd-store__products.columns-3,
	.tcd-store__products.tcd-view-3,
	.tcd-store__products.columns-4,
	.tcd-store__products.tcd-view-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tcd-store__products.tcd-view-list .tcd-store__product-inner {
		flex-direction: column;
	}

	.tcd-store__products.tcd-view-list .tcd-store__image-link {
		flex: none;
		max-width: none;
		width: 100%;
	}
}
