/**
 * Crops Page Styles
 *
 * @package Irritech
 */

body.page-template-page-crops .site-main,
body.tax-crop_cat .site-main {
	padding-block: 0;
}

/* Crops Catalog — Figma node 552:8045 */
.crops-catalog {
	padding-block: 40px 120px;
	background-color: var(--color-background);
}

.crops-catalog__inner {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.crops-catalog__header {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.crops-catalog__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 0 0 16px 2px;
	list-style: none;
}

.crops-catalog__breadcrumb-item {
	display: flex;
	align-items: center;
}

.crops-catalog__breadcrumb-link,
.crops-catalog__breadcrumb-current {
	display: inline-flex;
	padding-block: 6px;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	line-height: 1.5;
	color: #222a2e;
	text-decoration: none;
}

.crops-catalog__breadcrumb-link:hover,
.crops-catalog__breadcrumb-link:focus-visible {
	text-decoration: underline;
}

.crops-catalog__breadcrumb-current {
	font-weight: 600;
}

.crops-catalog__breadcrumb-separator {
	display: flex;
	align-items: center;
}

.crops-catalog__breadcrumb-separator img {
	display: block;
	width: 8px;
	height: 8px;
}

.crops-catalog__title {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.14;
	color: #000000;
	letter-spacing: -0.02em;
}

.crops-catalog__description {
	max-width: 672px;
	margin: 8px 0 0;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #222a2e;
}

.crops-catalog__categories {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 8px;
}

.crops-catalog__category {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 91.5px;
	padding: 16px;
	font-family: var(--font-family-heading);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.43;
	color: #222a2e;
	text-align: center;
	text-decoration: none;
	background-color: #c6f2da;
	border-radius: 8px;
	transition:
		background-color var(--transition-base),
		color var(--transition-base);
}

.crops-catalog__category:hover,
.crops-catalog__category:focus-visible {
	color: #ffffff;
	background-color: #022103;
	outline: none;
}

.crops-catalog__category--active {
	color: #ffffff;
	background-color: #022103;
}

.crops-catalog__category-icon {
	display: block;
	width: 24px;
	height: 24px;
	transition: filter var(--transition-base);
}

.crops-catalog__category:hover .crops-catalog__category-icon,
.crops-catalog__category:focus-visible .crops-catalog__category-icon {
	filter: brightness(0) invert(1);
}

.crops-catalog__category--active .crops-catalog__category-icon,
.crops-catalog__category--active:hover .crops-catalog__category-icon,
.crops-catalog__category--active:focus-visible .crops-catalog__category-icon {
	filter: brightness(0) invert(1);
}

.crops-catalog__category-label {
	display: block;
}

.crops-catalog__content {
	display: flex;
	flex-direction: column;
	gap: 64px;
	align-items: center;
}

.crops-catalog__search {
	width: 100%;
	max-width: 523px;
}

.crops-catalog__search-field {
	display: flex;
	gap: 16px;
	align-items: center;
	width: 100%;
	min-height: 56px;
	padding: 4px 4px 4px 22px;
	overflow: hidden;
	background-color: #ffffff;
	border: 2px solid rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	transition: border-color var(--transition-base);
}

.crops-catalog__search-field:focus-within {
	border-color: rgba(2, 33, 3, 0.24);
}

.crops-catalog__search-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.crops-catalog__search-icon img {
	display: block;
	width: 24px;
	height: 24px;
}

.crops-catalog__search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 !important;
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #222a2e;
	background: transparent;
	border: 0 !important;
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
}

.crops-catalog__search-input::placeholder {
	color: #5d6366;
	opacity: 1;
}

.crops-catalog__search-input:focus {
	outline: none;
}

.crops-catalog__search-input::-webkit-search-decoration,
.crops-catalog__search-input::-webkit-search-cancel-button,
.crops-catalog__search-input::-webkit-search-results-button,
.crops-catalog__search-input::-webkit-search-results-decoration {
	display: none;
	appearance: none;
	-webkit-appearance: none;
}

.crops-catalog__search-button {
	display: inline-flex;
	flex-shrink: 0;
	gap: 4px;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	font-family: var(--font-family-base);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	color: #ffffff;
	cursor: pointer;
	background-color: #010312;
	border: 0;
	border-radius: 100px;
	transition: background-color var(--transition-base);
}

.crops-catalog__search-button:hover,
.crops-catalog__search-button:focus-visible {
	background-color: #022103;
	outline: none;
}

.crops-catalog__search-button-label {
	padding-inline: 4px 0;
}

.crops-catalog__search-button-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.crops-catalog__search-button-icon img {
	display: block;
	width: 20px;
	height: 20px;
}

.crops-catalog__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	width: 100%;
}

.crops-catalog__empty {
	grid-column: 1 / -1;
	padding: 48px 24px;
	border: 1px solid #e1e3e4;
	border-radius: 12px;
	text-align: center;
	background: #f3f4f5;
}

.crops-catalog__empty p {
	margin: 0;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	line-height: 1.5;
	color: #5d6366;
}

.crops-catalog__card {
	overflow: hidden;
	background-color: #ffffff;
	border-radius: 16px;
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.crops-catalog__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.crops-catalog__card-media {
	position: relative;
	height: 256px;
	overflow: hidden;
	background-color: #edeeef;
}

.crops-catalog__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	padding: 3.5px 12px;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #ffffff;
	background-color: #ea1910;
	border-radius: 8px;
}

.crops-catalog__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.crops-catalog__card-body {
	padding: 32px 16px;
}

.crops-catalog__card-title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.17;
	color: #222a2e;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.crops-catalog__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.crops-catalog__pagination-arrow,
.crops-catalog__pagination-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	font-family: var(--font-family-heading);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #222a2e;
	text-decoration: none;
	background-color: transparent;
	border: 1px solid #8c9193;
	border-radius: 9999px;
	transition:
		background-color var(--transition-base),
		color var(--transition-base),
		border-color var(--transition-base);
}

.crops-catalog__pagination-arrow img {
	display: block;
	width: 8px;
	height: 12px;
}

.crops-catalog__pagination-page--active {
	color: #ffffff;
	background-color: #030c2e;
	border-color: #030c2e;
}

.crops-catalog__pagination-arrow:hover,
.crops-catalog__pagination-arrow:focus-visible,
.crops-catalog__pagination-page:hover,
.crops-catalog__pagination-page:focus-visible {
	border-color: #030c2e;
}

@media (max-width: 1199px) {
	.crops-catalog__categories {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.crops-catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.crops-catalog {
		padding-block: 80px;
	}

	.crops-catalog__inner {
		gap: 48px;
	}

	.crops-catalog__categories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.crops-catalog__content {
		gap: 48px;
	}

	.crops-catalog__search-field {
		flex-wrap: wrap;
		padding: 12px;
	}

	.crops-catalog__search-button {
		width: 100%;
	}

	.crops-catalog__grid {
		grid-template-columns: 1fr;
	}
}
