.mdc-product-grid__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.mdc-product-grid .mdc-product-grid__title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--e-global-color-text);
}

.mdc-product-grid__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mdc-product-grid a.mdc-product-grid__filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--e-global-color-muted);
	border: 1px solid var(--e-global-color-line);
	border-radius: 999px;
	background-color: var(--e-global-color-surface);
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.mdc-product-grid a.mdc-product-grid__filter:hover {
	color: var(--e-global-color-text);
	border-color: color-mix(in srgb, var(--e-global-color-secondary) 50%, transparent);
}

.mdc-product-grid a.mdc-product-grid__filter.is-active {
	color: var(--e-global-color-text);
	border-color: var(--e-global-color-primary);
	background-color: var(--e-global-color-primary);
}

.mdc-product-grid__filter-count {
	min-width: 22px;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--e-global-color-text) 8%, transparent);
}

.mdc-product-grid__filter.is-active .mdc-product-grid__filter-count {
	background-color: color-mix(in srgb, var(--e-global-color-deep) 25%, transparent);
}

.mdc-product-grid__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 24px;
}

.mdc-product-grid__head:empty {
	display: none;
}

.mdc-product-grid .woocommerce-result-count,
.mdc-product-grid .woocommerce-ordering {
	float: none;
	margin: 0;
}

.mdc-product-grid .woocommerce-result-count {
	font-size: 14px;
	color: var(--e-global-color-muted);
}

.mdc-product-grid .woocommerce-ordering .orderby {
	padding: 10px 14px;
	font-size: 14px;
	color: var(--e-global-color-text);
	border: 1px solid var(--e-global-color-line);
	border-radius: 2px;
	background-color: var(--e-global-color-surface);
	color-scheme: dark;
	cursor: pointer;
}

.mdc-product-grid__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.mdc-product-grid__group + .mdc-product-grid__group {
	margin-top: 64px;
}

.mdc-product-grid__group-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--e-global-color-line);
}

.mdc-product-grid .mdc-product-grid__group-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--e-global-color-text);
}

.mdc-product-grid__group-count {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--e-global-color-secondary);
}

.mdc-product-grid__empty {
	padding: 64px 0;
	text-align: center;
	color: var(--e-global-color-muted);
}

.mdc-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--e-global-color-line);
	border-radius: 6px;
	background-color: var(--e-global-color-card);
	animation: mdc-product-card-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.mdc-product-card:nth-child(3n + 2) {
	animation-delay: 0.08s;
}

.mdc-product-card:nth-child(3n) {
	animation-delay: 0.16s;
}

.mdc-product-card:hover {
	border-color: color-mix(in srgb, var(--e-global-color-secondary) 40%, transparent);
	box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--e-global-color-primary) 60%, transparent);
	transform: translateY(-4px);
}

.mdc-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--e-global-color-surface);
}

.mdc-product-card__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--e-global-color-card) 55%, transparent), transparent 45%);
	pointer-events: none;
}

.mdc-product-card .mdc-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mdc-product-card:hover .mdc-product-card__image {
	transform: scale(1.06);
}

.mdc-product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--e-global-color-secondary);
	border: 1px solid color-mix(in srgb, var(--e-global-color-secondary) 35%, transparent);
	border-radius: 2px;
	background-color: color-mix(in srgb, var(--e-global-color-deep) 70%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.mdc-product-card__soldout {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--e-global-color-text);
	background-color: color-mix(in srgb, var(--e-global-color-deep) 55%, transparent);
}

.mdc-product-card.is-unavailable .mdc-product-card__image {
	opacity: 0.4;
	filter: grayscale(1);
}

.mdc-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.mdc-product-card__category {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--e-global-color-secondary) 85%, transparent);
}

.mdc-product-card .mdc-product-card__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.mdc-product-card .mdc-product-card__title a {
	color: var(--e-global-color-text);
}

.mdc-product-card.is-unavailable .mdc-product-card__title a {
	color: var(--e-global-color-muted);
}

.mdc-product-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.mdc-product-card__tags li {
	margin: 0;
	padding: 3px 10px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--e-global-color-muted);
	border: 1px solid var(--e-global-color-line);
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--e-global-color-text) 4%, transparent);
}

.mdc-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--e-global-color-line);
}

.mdc-product-card__price,
.mdc-product-card__price .amount {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--e-global-color-secondary);
}

.mdc-product-card__price del,
.mdc-product-card__price del .amount {
	font-size: 14px;
	font-weight: 400;
	color: var(--e-global-color-muted);
}

.mdc-product-card__price ins {
	text-decoration: none;
}

.mdc-product-card a.mdc-product-card__add {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--e-global-color-text);
	border-radius: 2px;
	background-color: var(--e-global-color-primary);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.mdc-product-card a.mdc-product-card__add:hover {
	color: var(--e-global-color-text);
	background-color: color-mix(in srgb, var(--e-global-color-primary) 82%, var(--e-global-color-text));
	transform: scale(1.06);
}

.mdc-product-card__add i,
.mdc-product-card__add svg {
	width: 16px;
	font-size: 16px;
	fill: currentColor;
}

.mdc-product-card__add-done {
	display: none;
}

.mdc-product-card__add.loading {
	opacity: 0.6;
	pointer-events: none;
}

.mdc-product-card a.mdc-product-card__add.added {
	color: var(--e-global-color-deep);
	background-color: var(--e-global-color-secondary);
}

.mdc-product-card__add.added .mdc-product-card__add-idle {
	display: none;
}

.mdc-product-card__add.added .mdc-product-card__add-done {
	display: inline-flex;
}

.mdc-product-card .mdc-product-card__footer a.added_to_cart {
	display: none;
}

.mdc-product-card a.mdc-product-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--e-global-color-secondary);
	transition: color 0.2s ease, gap 0.2s ease;
}

.mdc-product-card a.mdc-product-card__link:hover {
	gap: 10px;
	color: var(--e-global-color-text);
}

.mdc-product-card__link i,
.mdc-product-card__link svg {
	width: 10px;
	font-size: 10px;
	fill: currentColor;
}

.mdc-product-card.is-unavailable a.mdc-product-card__link {
	color: var(--e-global-color-muted);
}

.mdc-product-grid .woocommerce-pagination {
	margin-top: 48px;
}

.mdc-product-grid .woocommerce-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.mdc-product-grid .woocommerce-pagination ul.page-numbers li {
	float: none;
	border: 0;
}

.mdc-product-grid .woocommerce-pagination .page-numbers a,
.mdc-product-grid .woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	font-size: 14px;
	color: var(--e-global-color-text);
	border: 1px solid var(--e-global-color-line);
	border-radius: 2px;
	background-color: var(--e-global-color-surface);
}

.mdc-product-grid .woocommerce-pagination .page-numbers a:hover {
	border-color: color-mix(in srgb, var(--e-global-color-secondary) 50%, transparent);
}

.mdc-product-grid .woocommerce-pagination .page-numbers span.current {
	border-color: var(--e-global-color-primary);
	background-color: var(--e-global-color-primary);
}

@keyframes mdc-product-card-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@media (max-width: 1023px) {
	.mdc-product-grid__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.mdc-product-grid__items {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mdc-product-grid__filters {
		flex-wrap: nowrap;
		margin-right: -24px;
		padding-right: 24px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.mdc-product-grid__filter {
		flex-shrink: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mdc-product-card {
		animation: none;
	}

	.mdc-product-card,
	.mdc-product-card__image {
		transition: none;
	}
}
