/* Shop, search, and brand archives */

.simtech-shop {
	padding-block: 0 3rem;
}

.simtech-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	padding-block: 0.75rem;
	font-size: 0.875rem;
	color: var(--simtech-muted);
}

.simtech-breadcrumb a:hover {
	color: var(--simtech-blue);
}

.simtech-breadcrumb__sep {
	display: inline-flex;
	color: var(--simtech-border);
}

.simtech-breadcrumb__current {
	color: var(--simtech-dark);
	font-weight: 500;
	max-width: min(20rem, 50vw);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.simtech-shop__layout {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.simtech-shop__sidebar {
	display: none;
	width: 14rem;
	flex-shrink: 0;
}

.simtech-shop__sidebar-card {
	position: sticky;
	top: 7rem;
	padding: 1.25rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.75rem;
	background: #fff;
}

.simtech-shop__sidebar-card h2 {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--simtech-dark);
}

.simtech-shop__main {
	flex: 1;
	min-width: 0;
}

.simtech-shop__page-title,
.simtech-shop__search-head h1 {
	margin: 0 0 0.25rem;
	font-family: var(--simtech-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--simtech-dark);
}

.simtech-shop__page-sub,
.simtech-shop__search-head p,
.simtech-shop__muted {
	margin: 0 0 2rem;
	font-size: 0.875rem;
	color: var(--simtech-muted);
}

.simtech-shop__search-head {
	margin-bottom: 1.5rem;
}

.simtech-filters__group {
	margin-bottom: 1.5rem;
}

.simtech-filters__group h3 {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--simtech-dark);
}

.simtech-filters__cats {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 16rem;
	overflow-y: auto;
}

.simtech-filters__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.375rem 0.5rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: var(--simtech-dark);
}

.simtech-filters__cat:hover {
	background: var(--simtech-gray);
}

.simtech-filters__cat.is-active {
	background: var(--simtech-blue);
	color: #fff;
	font-weight: 500;
}

.simtech-filters__count {
	font-size: 0.75rem;
	color: var(--simtech-muted);
}

.simtech-filters__cat.is-active .simtech-filters__count {
	color: #bfdbfe;
}

.simtech-filters__checks {
	display: grid;
	gap: 0.5rem;
	max-height: 16rem;
	overflow-y: auto;
}

.simtech-filters__check {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.875rem;
	color: var(--simtech-dark);
	cursor: pointer;
}

.simtech-filters__check:hover {
	color: var(--simtech-blue);
}

.simtech-filters__check .simtech-filters__count {
	margin-left: auto;
}

.simtech-filters__check input {
	width: 1rem;
	height: 1rem;
	accent-color: var(--simtech-blue);
}

.simtech-filters__price {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.simtech-filters__price input {
	width: 100%;
	min-width: 0;
	padding: 0.5rem 0.625rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: var(--simtech-dark);
}

.simtech-filters__price input:focus {
	outline: none;
	border-color: var(--simtech-blue);
}

.simtech-filters__price span {
	color: var(--simtech-muted);
	font-size: 0.875rem;
}

.simtech-filters__actions {
	display: grid;
	gap: 0.75rem;
}

.simtech-filters__apply {
	padding: 0.5rem 0.75rem;
	border: 0;
	border-radius: 0.375rem;
	background: var(--simtech-blue);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
}

.simtech-filters__apply:hover {
	background: #1d4ed8;
}

.simtech-filters__clear {
	font-size: 0.875rem;
	color: var(--simtech-red);
}

.simtech-filters__clear:hover {
	text-decoration: underline;
}

.simtech-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--simtech-border);
}

.simtech-shop-toolbar__lead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.simtech-shop-toolbar__filters {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.5rem;
	background: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--simtech-dark);
	cursor: pointer;
}

.simtech-shop-toolbar__filters:hover,
.simtech-shop-toolbar__filters[aria-expanded="true"] {
	background: var(--simtech-gray);
}

.simtech-shop-toolbar__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--simtech-dark);
}

.simtech-shop-toolbar__count {
	font-size: 0.875rem;
	color: var(--simtech-muted);
}

.simtech-shop-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.simtech-shop-toolbar__sort-label {
	display: none;
	font-size: 0.875rem;
	color: var(--simtech-muted);
}

.simtech-shop-toolbar__sort select {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.5rem;
	background: #fff;
	font-size: 0.875rem;
	color: var(--simtech-dark);
}

.simtech-shop-toolbar__sort select:focus {
	outline: none;
	border-color: var(--simtech-blue);
}

.simtech-shop__mobile-filters {
	margin-bottom: 1.25rem;
	padding: 1.25rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.75rem;
	background: #fff;
}

.simtech-shop-chips,
.simtech-shop-toolbar__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.simtech-shop-toolbar__chips {
	margin-bottom: 0;
}

.simtech-shop-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
}

.simtech-shop-chip--blue {
	background: var(--simtech-blue-light);
	border: 1px solid rgb(37 99 235 / 30%);
	color: var(--simtech-blue);
}

.simtech-shop-chip--red {
	background: var(--simtech-red-light);
	border: 1px solid rgb(225 29 72 / 30%);
	color: var(--simtech-red);
}

.simtech-shop-chip--green {
	background: #ecfdf5;
	border: 1px solid rgb(16 185 129 / 30%);
	color: var(--simtech-success);
}

.simtech-shop-chip--muted {
	background: var(--simtech-gray);
	border: 1px solid var(--simtech-border);
	color: var(--simtech-muted);
}

.simtech-shop-chip--outline {
	background: #fff;
	border: 1px solid var(--simtech-border);
	color: var(--simtech-dark);
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
}

.simtech-shop-chip--muted:hover,
.simtech-shop-chip--outline:hover {
	border-color: var(--simtech-blue);
	color: var(--simtech-blue);
}

.simtech-shop__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.simtech-shop-empty {
	padding: 5rem 1rem;
	text-align: center;
	color: var(--simtech-muted);
}

.simtech-shop-empty__icon {
	margin: 0 auto 1rem;
	opacity: 0.3;
}

.simtech-shop-empty__title {
	margin: 0 0 0.25rem;
	font-weight: 500;
	color: var(--simtech-dark);
}

.simtech-shop-empty__text {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
}

.simtech-shop-empty__suggest-title {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--simtech-dark);
}

.simtech-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	margin-top: 2.5rem;
}

.simtech-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--simtech-dark);
}

.simtech-pagination .page-numbers:hover {
	background: var(--simtech-gray);
}

.simtech-pagination .page-numbers.current {
	background: var(--simtech-blue);
	border-color: var(--simtech-blue);
	color: #fff;
}

.simtech-pagination .prev,
.simtech-pagination .next {
	color: var(--simtech-muted);
}

.simtech-brand-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 2rem;
	padding: 1.5rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.75rem;
	background: #fff;
}

.simtech-brand-hero__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6rem;
	height: 4rem;
	padding: 0.5rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.5rem;
	background: var(--simtech-gray);
	font-size: 1.25rem;
	font-weight: 700;
}

.simtech-brand-hero__mark img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.simtech-brand-hero__copy {
	flex: 1;
}

.simtech-brand-hero__copy h1 {
	margin: 0 0 0.5rem;
	font-family: var(--simtech-display);
	font-size: 1.5rem;
	font-weight: 700;
}

.simtech-brand-hero__copy p {
	margin: 0;
	max-width: 42rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--simtech-muted);
}

.simtech-brand-hero__count {
	text-align: left;
}

.simtech-brand-hero__count div {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--simtech-dark);
}

.simtech-brand-hero__count span {
	font-size: 0.75rem;
	color: var(--simtech-muted);
}

.simtech-brands-index {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.simtech-brands-index__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem;
	border: 1px solid var(--simtech-border);
	border-radius: 0.75rem;
	background: #fff;
	text-align: center;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.simtech-brands-index__card:hover {
	border-color: var(--simtech-blue);
	box-shadow: 0 4px 12px rgb(37 99 235 / 10%);
}

.simtech-brands-index__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 3rem;
}

.simtech-brands-index__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.simtech-brands-index__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--simtech-dark);
}

.simtech-brands-index__card:hover .simtech-brands-index__name {
	color: var(--simtech-blue);
}

.simtech-brands-index__count {
	font-size: 0.75rem;
	color: var(--simtech-muted);
}

.simtech-brands-spotlight {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--simtech-border);
}

.simtech-brands-spotlight h2 {
	margin: 0 0 1.5rem;
	font-family: var(--simtech-display);
	font-size: 1.25rem;
	font-weight: 700;
}

@media (min-width: 640px) {
	.simtech-shop-toolbar__sort-label {
		display: inline;
	}

	.simtech-shop__grid,
	.simtech-shop__grid--wide {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.simtech-brands-index {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.simtech-brand-hero {
		flex-direction: row;
		align-items: center;
	}

	.simtech-brand-hero__count {
		text-align: right;
		flex-shrink: 0;
	}
}

@media (min-width: 768px) {
	.simtech-brands-index {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.simtech-shop__sidebar {
		display: block;
	}

	.simtech-shop-toolbar__filters,
	.simtech-shop__mobile-filters {
		display: none;
	}

	.simtech-shop__grid--wide {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.simtech-brands-index {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.simtech-shop__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
