.discover-title {
	font-size: 21px;
	font-weight: 400;
	margin-top: 50px;
	margin-bottom: 10px;
}

.discover-title.big {
	font-size: 28px;
	text-align: center;
	margin-bottom: 20px;
}

.discover-grid {
	--grid-layout-gap: 20px;
	--grid-column-count: 3;
	--grid-item--min-width: 200px;

	--gap-count: calc(var(--grid-column-count) - 1);
	--total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap));
	--grid-item--max-width: calc((100% - var(--total-gap-width)) / var(--grid-column-count));

	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr));
	gap: var(--grid-layout-gap);

	margin-bottom: 20px;
}

.discover-grid.cat_full {
	grid-template-columns: 1fr;
}

.discover-grid .card {
	min-height: 100px;
	border-radius: 15px;
	padding: 30px;

	background-color: var(--tertiary-color);
	color: #fff;
	font-weight: 400;

	display: flex;
	gap: 10px;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.discover-grid .card:hover {
	box-shadow: rgb(100 100 111 / 20%) 0px 7px 29px 0px;
}

.discover-grid a {
	text-decoration: none;
}

.discover-grid:not(.cat_small) .card {
	--gradient: linear-gradient(to bottom, rgba(255, 255, 255, 0) 60%, rgba(0, 0, 0, 0.5) 100%);
	background-image: var(--gradient);
	align-items: flex-start;
	justify-content: flex-end;
}

.discover-grid.cat_small .card {
	height: 150px;
	font-size: 24px;
	font-weight: 500;
}

.discover-grid.cat_medium .card {
	height: 350px;
	font-size: 21px;
}

.discover-grid.cat_large .card {
	height: 510px;
	padding: 30px 45px;
	font-size: 28px;
}

.discover-grid.cat_full .card {
	height: 430px;
	padding: 45px 65px;
	font-size: 28px;
}

.discover-grid .card span {
	font-size: 14px;
	text-decoration: underline;
}

.discover-products {
	margin-bottom: 20px;
}

@media (max-width:768px) {
	.discover-grid.cat_full .card {
		padding: 30px;
	}
}

/* fix grid gap below products */
.discover-products ul.products::after {
	display: none;
}

/* HOW TO */
.how-to {
	min-height: 100px;
	border-radius: 15px;
	padding: 40px;
	margin-bottom: 35px;
	position: relative;

	background-color: #fff;
	font-weight: 400;

	display: flex;
	gap: 35px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.how-to .close {
	width: 15px;
	height: 15px;
	position: absolute;
	top: 20px;
	right: 20px;
	cursor: pointer;
}

.how-to a {
	text-decoration: none;
}

.how-to>h3 {
	font-size: 28px;
	font-weight: 400;
}

.how-to .how-to-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 40px;
}

.how-to .how-to-cell {
	display: flex;
	flex-direction: column;
	gap: 15px;

	text-align: center;
}

.how-to .how-to-cell img {
	height: 170px;
	background-color: var(--primary-color);
	border-radius: 10px;
	object-fit: cover;
}

.how-to .how-to-cell h4 {
	font-size: 18px;
	font-weight: 400;
}

.how-to .how-to-cell span {
	color: #353535;
	font-size: 13px;
	text-decoration: underline;
}

.how-to .how-to-cell h4:empty,
.how-to .how-to-cell span:empty {
	display: none;
}

.how-to .how-to-cell:hover img {
	box-shadow: rgb(100 100 111 / 20%) 0px 7px 29px 0px;
}

@media (max-width: 1024px) {
	.how-to .how-to-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.discover-loading {
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 700;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	gap: 10px;
}

@media (max-width:767px) {
	.discover-title h1 {
		font-size: 35px;
		line-height: 130%;
	}

	.discover-title h2 {
		font-size: 14px;
		font-weight: 500;
		margin-top: 20px;
		line-height: 140%;
	}
}

.discover-branch-banner {
	margin-left: calc((-100vw + 100%) / 2);
	width: 100vw;
	height: 350px;
	position: relative;
}

.discover-branch-banner:first-child {
	margin-top: -50px;
}

.discover-branch-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.discover-branch-banner .content {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.discover-branch-banner-title {
	color: #FFF;
	text-align: center;
	text-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);
	font-size: 45px;
	font-style: normal;
	font-weight: 700;
	line-height: 120%;
}

.discover-recommended-product {
	display: flex;
	padding: 20px 40px 20px 20px;
	align-items: center;
	border-radius: 5px;
	background: #FFF;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05);
	gap: 30px;
}

.discover-recommended-product .attachment-woocommerce_thumbnail {
	border-radius: 3px;
	border: 1px solid #EEE;
	aspect-ratio: 1/1;
	object-fit: contain;
	width: 280px;
	height: auto;
}

.discover-recommended-product .discover-recommended-product-meta {
	margin-left: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.discover-recommended-product-name {
	color: #000;
	font-size: 32px;
	font-weight: 700;
	text-decoration: none;
}

.discover-recommended-product-regular-price {
	color: #B7B7B7;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	line-height: 110%;
	text-decoration-line: line-through;
}

.discover-recommended-product-price {
	color: var(--primary-color);
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	line-height: 110%;
}

.discover-other-branches {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.discover-other-branch-card {
	display: flex;
	height: 241px;
	padding: 25px;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 10px;
	border-radius: 10px;
	color: #fff;
	font-size: 21px;
	font-weight: 500;
	text-decoration: none;
	background-color: #3f3f3f;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

@media screen and (max-width: 768px) {
	.discover-other-branches {
		grid-template-columns: 1fr;
	}

	.discover-recommended-product {
		flex-direction: column;
	}

	.discover-recommended-product .discover-recommended-product-image {
		width: 100%;

	}

	.discover-recommended-product .attachment-woocommerce_thumbnail {
		width: 100%;
		height: auto;
	}

	.discover-recommended-product .discover-recommended-product-meta {
		margin-left: 0;
		align-items: flex-start;
		width: 100%;
	}
}

html {
	scrollbar-gutter: stable;
}