/* Shop catalog — extends the front-page Menu block layout */

.yamato-shop-block .yamato-menu__title {
	margin-bottom: 2rem;
	text-align: center;
}

.yamato-shop__filter-wrap {
	margin-bottom: 2rem;
}

.yamato-shop__filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 2.5rem;
}

.yamato-shop__filter-link {
	display: inline-block;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid transparent;
	font-family: var(--yamato-font-nav);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.5rem;
	color: #ca3c3f;
	text-decoration: none;
	transition: color 0.5s ease, border-color 0.5s ease;
}

.yamato-shop__filter-link.is-active,
.yamato-shop__filter-link:hover {
	color: #040a1c;
	border-bottom-color: #040a1c;
}

.yamato-shop__content {
	width: 100%;
	min-width: 0;
}

.yamato-shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 2rem;
	font-size: 1rem;
	line-height: 1.5rem;
	color: #7a7879;
}

.yamato-shop__toolbar-ordering {
	width: 100%;
	max-width: 16.25rem;
}

.yamato-shop__toolbar-ordering .woocommerce-ordering {
	margin: 0;
}

.yamato-shop__toolbar-ordering select.orderby {
	width: 100%;
	height: 3rem;
	margin: 0;
	padding: 0 2.5rem 0 1rem;
	border: 2px solid #e5e5e6;
	border-radius: 0;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23282f40' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E") calc(100% - 1rem) 50% / 12px 8px no-repeat;
	font-family: var(--yamato-font-body);
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #7a7879;
	appearance: none;
	cursor: pointer;
}

.yamato-shop-block .yamato-menu__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yamato-shop-block .yamato-menu__grid::before,
.yamato-shop-block .yamato-menu__grid::after {
	display: none;
}

.yamato-shop-block .yamato-menu__grid-item {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yamato-shop-block .yamato-menu__grid-item::before {
	display: none;
}

.yamato-shop-block .woocommerce-result-count {
	margin: 0;
}

.yamato-shop-block .woocommerce-notices-wrapper {
	margin-bottom: 2rem;
}

.yamato-shop-block .added_to_cart {
	display: none !important;
}

.yamato-shop__pagination {
	padding-top: 3.5rem;
}

.yamato-shop__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yamato-shop__pagination .page-numbers li {
	display: flex;
}

.yamato-shop__pagination .page-numbers > li > a,
.yamato-shop__pagination .page-numbers > li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	height: 3rem;
	padding: 0;
	border: 2px solid #ca3c3f;
	background: #fff;
	font-family: var(--yamato-font-nav);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1;
	color: #282f40;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.yamato-shop__pagination .page-numbers > li > span.dots {
	min-width: auto;
	padding: 0 0.25rem;
	border-color: transparent;
	background: transparent;
}

.yamato-shop__pagination .page-numbers > li > a:hover,
.yamato-shop__pagination .page-numbers > li > span.current {
	background: #ca3c3f;
	color: #fff;
}

.yamato-shop__pagination .page-numbers > li > a .material-icons {
	font-family: "Material Icons";
	font-weight: normal;
	font-style: normal;
	font-size: 1.5rem;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
}

.yamato-shop-block .yamato-shop__empty,
.yamato-shop-block .woocommerce-info {
	margin: 0;
	padding: 1.5rem;
	border: 0;
	background: #f7f2ee;
	color: #7a7879;
	text-align: center;
}

@media (max-width: 1199px) {
	.yamato-shop-block .yamato-menu__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.yamato-shop__filter {
		justify-content: center;
	}
}

@media (max-width: 991px) {
	.yamato-shop-block .yamato-menu__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

@media (max-width: 575px) {
	.yamato-shop-block .yamato-menu__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.yamato-shop__filter {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
	}

	.yamato-shop__filter-link {
		flex: 0 0 auto;
		font-size: 1.25rem;
		white-space: nowrap;
	}

	.yamato-shop__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.yamato-shop__toolbar-ordering {
		max-width: none;
	}
}
