.cew-woo-browser {
	--cew-section-gap: 28px;
	--cew-category-gap: 16px;
	--cew-product-gap: 16px;
	--cew-category-cols: 5;
	--cew-product-cols: 3;
	display: grid;
	gap: var(--cew-section-gap);
	position: relative;
}

.cew-woo-browser.is-loading {
	opacity: 0.75;
}

.cew-woo-browser__categories-grid,
.cew-woo-browser__products-grid {
	display: grid;
	gap: var(--cew-category-gap);
}

.cew-woo-browser__categories-grid {
	grid-template-columns: repeat(var(--cew-category-cols), minmax(0, 1fr));
}

.cew-woo-browser__products-grid {
	grid-template-columns: repeat(var(--cew-product-cols), minmax(0, 1fr));
	gap: var(--cew-product-gap);
}

.cew-woo-browser__filters,
.cew-woo-browser__results,
.cew-woo-browser__summary {
	display: grid;
	gap: 18px;
}

.cew-woo-browser__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
}

.cew-woo-browser__summary {
	flex: 1 1 260px;
	min-width: 0;
}

.cew-woo-browser__filters {
	flex: 0 1 320px;
	justify-content: end;
}

.cew-woo-browser__search {
	display: block;
	max-width: 320px;
	width: 100%;
}

.cew-woo-browser__search-input {
	width: 100%;
	min-height: 44px;
	border: 1px solid #d8e4e5;
	border-radius: 999px;
	padding: 0 16px;
	background: #fff;
}

.cew-woo-browser__category-card,
.cew-woo-browser__product-card {
	background-color: #fff;
	border: 1px solid #d8e4e5;
	border-radius: 18px;
	padding: 18px;
	height: 100%;
}

.cew-woo-browser__category-card {
	display: block;
	text-align: left;
	cursor: pointer;
	appearance: none;
	width: 100%;
	min-width: 0;
	color: inherit;
	overflow: hidden;
	white-space: normal;
	padding: 0;
	border: 0;
	background: none;
}

.cew-woo-browser__category-card-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 100%;
	padding: 18px;
	background-color: #fff;
	border: 1px solid #d8e4e5;
	border-radius: 18px;
	box-sizing: border-box;
}

.cew-woo-browser__category-card.is-active .cew-woo-browser__category-card-inner {
	border-color: #1a8e8a;
	box-shadow: 0 0 0 1px rgba(26, 142, 138, 0.15);
}

.cew-woo-browser__category-media,
.cew-woo-browser__product-media {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.cew-woo-browser__category-media {
	max-height: var(--cew-category-image-max-height, none);
}

.cew-woo-browser__category-media-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: var(--cew-category-image-max-height, none);
}

.cew-woo-browser__category-image,
.cew-woo-browser__product-image {
	display: block;
	width: 100%;
	max-width: 100%;
}

.cew-woo-browser__category-image {
	height: auto;
	max-height: var(--cew-category-image-max-height, none);
}

.cew-woo-browser__product-media {
	height: var(--cew-product-image-max-height, auto);
}

.cew-woo-browser__product-image {
	height: var(--cew-product-image-max-height, auto);
	max-height: var(--cew-product-image-max-height, none);
	object-position: center center;
}

.cew-woo-browser__category-title,
.cew-woo-browser__product-title {
	display: block;
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
	hyphens: auto;
}

.cew-woo-browser__category-description,
.cew-woo-browser__product-excerpt,
.cew-woo-browser__results-count {
	display: block;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
	hyphens: auto;
}

.cew-woo-browser__category-count,
.cew-woo-browser__product-category {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.75rem;
	line-height: 1;
	flex-wrap: wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
	align-self: flex-start;
}

.cew-woo-browser__product-card {
	display: grid;
	grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
	gap: 16px;
	align-items: center;
}

.cew-woo-browser__product-content {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.cew-woo-browser__product-price p {
	margin: 0;
}

.cew-woo-browser__product-button,
.cew-woo-browser__page-button {
	appearance: none;
	border: 1px solid #d8e4e5;
	background: #fff;
	background-image: none !important;
	border-radius: 999px;
	padding: 10px 14px;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.cew-woo-browser__results-header,
.cew-woo-browser__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
}

.cew-woo-browser__results-header {
	display: grid;
	gap: 0;
}

.cew-woo-browser__results-heading {
	font-size: 1rem;
	line-height: 1.25;
	margin: 0;
}

.cew-woo-browser__search-input::placeholder {
	color: inherit;
	font: inherit;
	opacity: 1;
}

.cew-woo-browser__pagination {
	gap: 8px;
	justify-content: flex-start;
}

.cew-woo-browser__page-button.is-active {
	background: #1a8e8a;
	background-image: none !important;
	border-color: #1a8e8a;
	color: #fff;
}

.cew-woo-browser__empty {
	grid-column: 1 / -1;
	padding: 24px;
	text-align: center;
	border: 1px dashed #d8e4e5;
	border-radius: 18px;
}

.cew-woo-browser__notice {
	padding: 18px;
	border: 1px solid #f0c36d;
	background: #fff7e5;
	border-radius: 12px;
}

@media (max-width: 1024px) {
	.cew-woo-browser {
		--cew-category-cols: 3;
		--cew-product-cols: 2;
	}
}

@media (max-width: 767px) {
	.cew-woo-browser {
		--cew-category-cols: 2;
		--cew-product-cols: 1;
	}

	.cew-woo-browser__product-card {
		grid-template-columns: 1fr;
	}

	.cew-woo-browser__filters {
		justify-content: stretch;
		flex-basis: 100%;
	}

	.cew-woo-browser__search {
		max-width: none;
	}
}
