/* 320px — 480px: Mobile devices
481px — 768px: iPads, Tablets
769px — 1024px: Small screens, laptops
1025px — 1200px: Desktops, large screens
1201px and more —  Extra large screens, TV */

@font-face {
	font-family: "Heebo";
	src: url(./fonts/heebo/Heebo-VariableFont_wght.woff2) format("woff2");
	src: url(./fonts/heebo/Heebo-VariableFont_wght.ttf) format("truetype");
	font-weight: 100 600;
}

@font-face {
	font-family: "Mulish";
	src: url(./fonts/mulish/Mulish-Regular.ttf) format("truetype");
	src: url(./fonts/mulish/Mulish-Regular.woff2) format("woff2");
	font-weight: normal;
}

@font-face {
	font-family: "Mulish";
	src: url(./fonts/mulish/Mulish-Bold.ttf) format("truetype");
	src: url(./fonts/mulish/Mulish-Bold.woff2) format("woff2");
	font-weight: bold;
}

:root {
	--main-max-width: 85%;
	--main-max-width-mobile: 95%;
	--primary-green-color: #045644;
	--primary-font-family: "Heebo", "Arial", sans-serif;
	--secondary-font-family: "Mulish", "Arial", sans-serif;
	--gray: #808080;
	--light-gray: rgb(155 152 152);
	--product-image-max-height: 160px;
	--product-image-max-width: 160px;
}

html {
	font-size: calc(1rem + 0.2vw);
	min-width: fit-content;
	width: 100%;
	height: 100%;
}

body {
	margin: 0;
	font-family: var(--primary-font-family);
	margin: auto;
	background-color: white;
	color: black;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.logo svg {
	height: 2rem;
	width: 16rem;
	stroke-width: 0;
	stroke-linejoin: "miter";
	stroke-miterlimit: 2;
	fill: var(--primary-green-color);
	stroke: var(--primary-green-color);
}

@media (max-width: 425px) {
	.logo svg {
		width: 13rem;
	}
}

.logo a {
	text-decoration: none;
	color: black;
	font-size: 1.5em;
}

.main-section {
	max-width: var(--main-max-width);
	display: grid;
	grid-template-columns: 1fr 3fr;
	flex: 1;
	width: 100%;
}

.product-section-header {
	position: relative;
	width: 100%;
	height: 100%;
}

.product-section-header-content {
	max-width: var(--main-max-width);
	margin: 0 auto;
	font-size: 2rem;
	font-weight: bold;
	padding: 1.5rem 0;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.product-section-header-description {
	font-size: 0.85rem;
	font-weight: normal;
	max-width: 50%;
	font-family: var(--secondary-font-family);
}

.mobile-breadcrumb-total-filter-sorting-menu {
	display: flex;
	flex-direction: column;
	margin: 1rem 0;
	gap: 0.25rem;
}

.mobile-breadcrumb {
	font-size: 2rem;
	font-weight: bold;
	white-space: nowrap;
}

.mobile-breadcrumb-product-description {
	max-width: 80%;
	font-family: var(--secondary-font-family);
}

.mobile-total-filter-sorting-menu {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0.5rem 0;
	column-gap: 0.5rem;
}

.mobile-products-total-wrapper {
	font-family: var(--secondary-font-family);
	font-weight: 500;
	font-size: 1rem;
	color: var(--gray);
	white-space: nowrap;
}

.mobile-filter-sorting-buttons {
	display: flex;
	text-wrap: nowrap;
}

.mobile-filter-button,
.mobile-sorting-button {
	display: flex;
	align-items: center;
	justify-content: center;
	align-items: center;
	gap: 0.25rem;
	border: none;
	background: none;
	color: inherit;
}

.mobile-filter-button > svg,
.mobile-sorting-button > svg {
	height: 1rem;
	width: 1rem;
}

.mobile-filter-button > svg {
	stroke: black;
}

.mobile-filter-button > span,
.mobile-sorting-button > span {
	font-family: var(--primary-font-family);
	font-size: 1rem;
	font-weight: bold;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.mobile-sorting-button > .arrow {
	height: 1.5rem;
	width: 1.5rem;
	color: black;
	transform: rotate(-180deg);
}

.filter-menu {
	height: fit-content;
	width: 100%;
	top: 0;
	max-width: 90%;
	min-width: 0;
}

.freeze-overlay {
	opacity: 0.4;
	pointer-events: none;
}

.freeze-overlay input[type="range"]::-webkit-slider-thumb {
	/*Webkit Browsers like Chrome and Safari*/
	pointer-events: none;
}

.freeze-overlay input[type="range"]::-moz-range-thumb {
	/*Firefox*/
	pointer-events: none;
}

.freeze-overlay input[type="range"]::-ms-thumb {
	/*Internet Explorer*/
	pointer-events: none;
}

.filter-menu-title-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.filter-menu-title-reset-icon-button {
	opacity: 0.5;
}

.filter-menu-title-reset-icon-button svg {
	display: block;
	height: 1rem;
	width: 1rem;
	fill: var(--light-gray);
}

.filter-menu-title-reset-icon-button:hover {
	opacity: 1;
}

.filter-menu-title-reset-icon-button[data-title]:after {
	content: attr(data-title);
	background-color: var(--light-gray);
	color: white;
	font-size: 0.75rem;
	font-family: var(--secondary-font-family);
	position: absolute;
	padding: 5px;
	bottom: 1.5rem;
	left: 100%;
	white-space: nowrap;
	opacity: 0;
	border-radius: 4px;
	z-index: 5;
	visibility: hidden;
	transition: all 0.25s ease 0.1s;
}

.filter-menu-title-reset-icon-button[data-title]:hover:after {
	opacity: 1;
	visibility: visible;
	transition: all 0.25s ease 0.1s;
}

.filter-menu-title-reset-icon-button[data-title] {
	position: relative;
}

.filter-menu-title svg {
	height: 1.5rem;
	width: 1.5rem;
	stroke: #333;
}

.filter-menu-title {
	display: flex;
	align-items: center;
	column-gap: 0.5rem;
}

.filter-menu-title h2 {
	font-size: 1.2rem;
}

.filter-menu h2 {
	color: #333;
}

.filter-menu ul {
	display: inline;
	list-style-type: none;
	padding: 0;
	margin: 0;
	overflow: hidden;
}

.filter-menu a {
	text-decoration: none;
	color: #333;
}

.filter-menu button {
	border: none;
	padding: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}

.filter-menu .arrow,
.products-header-sorting-button .arrow {
	height: 1.25rem;
	width: 1.25rem;
	color: #747a84;
	transition: color 0.2s ease, transform 250ms ease;
}

.products-header-sorting-button .arrow {
	display: inline-block;
}

.filter-menu .arrow.closed {
	color: black;
	transform: rotate(-180deg);
	transition: color 0.2s ease, transform 250ms ease;
}

.filter-menu .filter-title {
	display: flex;
	align-items: center;
	width: 100%;
	justify-content: space-between;
	font-size: 0.8rem;
}

.filter-title > p {
	display: flex;
	align-items: baseline;
	column-gap: 0.2rem;
}

.filter-title-units {
	color: var(--gray);
	font-size: 0.7rem;
}

.filter-menu .filter-body {
	padding-bottom: 1rem;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease;
}

.filter-menu .filter-body.closed {
	pointer-events: none;
	padding-bottom: 0;
	height: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.75rem);
	transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease;
}

.filter-menu-body > li {
	background-color: white;
	position: relative;
	box-shadow: inset 0 -1px 0 0 #e0e0e0;
}

.filter-body label {
	font-family: var(--secondary-font-family);
	font-size: 0.7rem;
}

.filter-body li {
	padding-bottom: 0.5rem;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease;
}

.filter-body li.hidden {
	padding-bottom: 0;
	height: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.75rem);
	transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease;
}

.filter-body > button.toggle-checkboxes {
	font-size: 0.75rem;
	width: fit-content;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-top: 0.25rem;
}

.products-header {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	font-size: 0.75rem;
	white-space: nowrap;
}

.products-header-sorting {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.products-header-sorting-button-wrapper {
	display: flex;
	flex-direction: column;
	position: relative;
}

.products-header-sorting-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: none;
	padding: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}

.products-header-sorting-button:hover {
	background-color: rgb(228 233 177 / 10%);
}

.products-header-sorting-button .arrow.closed {
	color: black;
	transform: rotate(-180deg);
	transition: color 0.2s ease, transform 250ms ease;
}

.sort-by-static-text {
	color: var(--gray);
}

ul.sorting-dropdown-options {
	position: absolute;
	background-color: white;
	z-index: 2;
	top: 100%;
	list-style-type: none;
	padding: 0;
	margin: 0;
	width: 100%;
	min-width: fit-content;
	text-align: left;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease;
	font-size: 0.8rem;
	box-shadow: rgba(5, 30, 46, 0.24) 0px 2px 8px 0px;
	border-radius: 6px;
	border: 1px solid rgb(230, 232, 234);
	margin-top: 0.25rem;
}

.sorting-dropdown-options.closed {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.25rem);
	transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease;
}

ul.sorting-dropdown-options li {
	padding: 0.5rem 0.25rem;
	cursor: pointer;
}

ul.sorting-dropdown-options li > b {
	pointer-events: none;
}

ul.sorting-dropdown-options li:nth-child(2n) {
	border-bottom: 0.1rem solid rgb(128, 128, 128, 0.5);
}

ul.sorting-dropdown-options li:nth-child(2n + 1) {
	padding-bottom: 0.25rem;
}

ul.sorting-dropdown-options li:nth-child(2n + 2) {
	padding-top: 0.25rem;
}

ul.sorting-dropdown-options li:last-child {
	border-bottom: none;
	padding: 0.5rem 0.25rem;
}

ul.sorting-dropdown-options li.selected {
	color: var(--primary-green-color);
	border-left: 2px solid var(--primary-green-color);
}

.sorting-dropdown-options li:hover {
	background-color: rgb(228 233 177 / 10%);
}

.sorting-option {
	display: flex;
	column-gap: 0.5rem;
}

.sorting-option-prefix {
	display: flex;
	align-items: baseline;
	gap: 0.2rem;
}

.sorting-units {
	font-size: 0.7rem;
	color: var(--gray);
	font-weight: normal;
}

@media (min-width: 1025px) {
	.mobile-breadcrumb-total-filter-sorting-menu {
		display: none;
	}
}

@media (max-width: 1024px) {
	.filter-menu,
	.products-header,
	.product-section-header {
		display: none;
	}

	.main-section {
		display: flex;
		flex-direction: column;
		max-width: var(--main-max-width-mobile);
	}
}

@media (max-width: 260px) {
	.mobile-total-filter-sorting-menu {
		flex-direction: column-reverse;
		gap: 0.25rem;
	}
}

#product-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	grid-auto-rows: 1fr;
}

@media (max-width: 319px) {
	#product-cards {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 768px) {
	#product-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1444px) {
	#product-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.product-card {
	border-radius: 0.5rem;
	box-shadow: rgb(228 233 177 / 25%) 0px 2px 10px 0px;
	transition: box-shadow 200ms ease 0s;
}

.product-card:hover {
	border-radius: 0.5em;
	box-shadow: rgb(228 233 177 / 75%) 0px 2px 10px 0px;
	transition: box-shadow 200ms ease 0s;
}

@media (hover: none) {
	.product-card:hover {
		border-radius: unset;
		box-shadow: unset;
		transition: unset;
	}
}

.product-card a {
	color: inherit;
	text-decoration: none;
}

.product-card-root {
	display: flex;
	position: relative;
	flex-wrap: wrap;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	font-size: 0.75rem;
	padding: 1rem;
	overflow-wrap: break-word;
	word-break: break-word;
	font-family: var(--secondary-font-family);
	-webkit-font-smoothing: antialiased;
}

@media (max-width: 1024px) {
	.product-card-root {
		padding: 0.5rem;
	}
}

.product-card-image {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.product-card-image.size-placeholder {
	width: 100%;
	height: 160px;
}

.product-card .image-skeleton,
.product-card img {
	width: 100%;
	height: 100%;
	max-width: var(--product-image-max-width);
	max-height: var(--product-image-max-height);
	object-fit: contain;
	aspect-ratio: 1/1;
	opacity: 1;
	transition: opacity 300ms ease-in-out;
}

.product-card .image-skeleton {
	height: var(--product-image-max-height);
	width: var(--product-image-max-width);
	border-radius: 5px;
	background-image: -webkit-linear-gradient(
		left,
		#ececec 0px,
		#f4f4f4 40px,
		#ececec 80px
	);
	background-image: -o-linear-gradient(
		left,
		#ececec 0px,
		#f4f4f4 40px,
		#ececec 80px
	);
	background-image: linear-gradient(
		90deg,
		#ececec 0px,
		#f4f4f4 40px,
		#ececec 80px
	);
	background-size: 250px;
	-webkit-animation: shine-loading-image 2s infinite ease-out;
	animation: shine-loading-image 2s infinite ease-out;
}

@-webkit-keyframes shine-loading-image {
	0% {
		background-position: -32px;
	}
	40%,
	100% {
		background-position: 208px;
	}
}

@keyframes shine-loading-image {
	0% {
		background-position: -32px;
	}
	40%,
	100% {
		background-position: 208px;
	}
}

.product-card img.image-hidden {
	opacity: 0;
	transition: opacity 300ms ease-in-out;
}

.product-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	row-gap: 0.2rem;
	padding-top: 1rem;
}

.product-card-body-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;

	text-align: left;
	font-size: 0.75rem;
	font-weight: bold;
}

.product-card-body-details {
	text-align: left;
	color: var(--gray);
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	word-break: normal;
}

.product-card-body-price-value-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	margin-top: auto;
	row-gap: 0.25rem;
	line-height: 1;
	padding-top: 0.75rem;
	column-gap: 0.75rem;
}

.product-card-body-price {
	font-size: 1.2rem;
	font-weight: bold;
	white-space: nowrap;
}

.product-card-body-value {
	font-size: 0.7rem;
	color: var(--gray);
}

.products-no-results-page {
	display: inline-flex;
	flex-direction: column;
	width: 100%;
	padding-top: 5rem;
	place-content: center;
	align-items: center;
	row-gap: 1rem;
}

.products-no-results-page.hidden {
	display: none;
}

.products-no-results-page-message-wrapper {
	font-size: 1.15rem;
	text-align: center;
}

.products-no-results-page-reset-filters {
	font-size: 0.9rem;
	background-color: var(--primary-green-color);
	color: white;
	border: none;
	border-radius: 25px;
	padding: 0.6rem;
	text-wrap: nowrap;
	cursor: pointer;
}

.products-no-results-page-info-icon {
	color: var(--light-gray);
}

.main-footer {
	font-size: 0.6rem;
	color: var(--gray);
	width: 100%;
}

.main-footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
	padding: 5rem 0 1rem 0;
}

.main-footer-content > * {
	margin: 0 0.5rem 0 0.5rem;
	text-decoration: none;
	color: inherit;
}

.main-footer-content > a:hover {
	text-decoration: underline;
	text-underline-offset: 0.1rem;
}

.scroll-to-top {
	position: fixed;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	bottom: 46px;
	right: 46px;
	opacity: 0;
	visibility: hidden;
	transition: all 195ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
	-webkit-transition: all 195ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: unset;
	transition: all 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
	-webkit-transition: all 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.scroll-to-top button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	width: 3rem;
	cursor: pointer;
	background: rgb(238 238 227);
	border-radius: 50%;
	box-shadow: 0 0 0 0.5rem rgb(238 238 227);
	border: none;
}

.scroll-to-top button svg {
	height: 1.25rem;
	width: auto;
	fill: black;
	stroke: black;
}

@media (max-width: 1024px) {
	.scroll-to-top {
		bottom: 65px;
		right: 26px;
	}
}

input {
	font-family: var(--secondary-font-family);
	color: black;
}

button {
	color: inherit;
}

#substance-info {
	width: 100%;
	margin-top: 2rem;
	padding-bottom: 2rem;
	background-color: rgb(228 233 177 / 5%);
	display: flex;
	flex-direction: column;
	align-items: center;
}

#substance-info-content {
	max-width: var(--main-max-width);
}

#substance-info-content h2 {
	margin-top: 3rem;
}

#substance-info-content p {
	font-size: 0.85rem;
	font-family: var(--secondary-font-family);
}

@media (max-width: 1024px) {
	#substance-info-content,
	.mobile-breadcrumb-product-description {
		max-width: var(--main-max-width-mobile);
	}
}

@media (max-width: 480px) {
	#substance-info-content p {
		font-size: unset;
	}
}
