/* ==========================================================================
   All Products Component Stylesheet
   ========================================================================== */

:root {
	/* Standardize colors if not declared elsewhere */
	--mv-distribution-color: var(--mv-distribution, #422675);
	--mv-manufacturing-color: var(--mv-manufacturing, #12B0B0);
	--mv-sourcing-color: var(--mv-sourcing, #001B4B);
	--mv-partnerships-color: var(--mv-partnerships, #E46B2D);
}

.mv-all-products {
	background-color: var(--mv-color-white, #ffffff);
}

/* Breadcrumbs */
.mv-all-products__breadcrumb {
	margin-bottom: 50px;
	font-family: var(--mv-font-europa-nuova-regular, sans-serif);
	font-size: 14px;
}

.mv-all-products__breadcrumb a {
	color: var(--mv-color-black);
	text-decoration: underline;
	font-weight: 600;
}

.mv-all-products__breadcrumb a:hover {
	text-decoration: underline;
}

/* Sidebar Filters container */
.mv-all-products__sidebar {
	background-color: var(--mv-distribution-color);
	padding: 40px 30px;
	color: var(--mv-color-white, #fff);
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mv-all-products__sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 25px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mv-all-products__sidebar-title {
	font-family: var(--mv-font-futura-cyrillic-bold, sans-serif);
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	color: var(--mv-color-white, #fff);
}

.mv-all-products__clear-filters {
	background: none;
	border: none;
	color: var(--mv-color-white, #fff);
	font-family: var(--mv-font-europa-nuova-regular, sans-serif);
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	display: none;
	align-items: center;
	gap: 6px;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	text-decoration: underline;
}

.mv-all-products__clear-filters:hover {
	opacity: 1;
}

.mv-all-products__clear-filters .clear-icon {
	font-weight: bold;
	font-size: 12px;
}

/* Accordion */
.mv-all-products__accordion-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mv-all-products__accordion-item:last-child {
	border-bottom: none;
}

.mv-all-products__accordion-header {
	width: 100%;
	background: none;
	border: none;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px 0;
	color: var(--mv-color-white, #fff);
	font-family: var(--mv-font-futura-cyrillic-bold, sans-serif);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.mv-accordion-arrow {
	width: 14px;
	height: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.mv-accordion-arrow svg {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.mv-accordion-arrow svg path {
	fill: var(--mv-color-white, #ffffff) !important;
}

.mv-all-products__accordion-item.active .mv-accordion-arrow svg {
	transform: rotate(180deg);
}

.mv-all-products__accordion-content {
	max-height: 1000px;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
	padding-bottom: 25px;
}

.mv-all-products__accordion-item:not(.active) .mv-all-products__accordion-content {
	max-height: 0;
	padding-bottom: 0;
}

/* Checkboxes List */
.mv-all-products__filter-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mv-all-products__filter-list li {
	margin-bottom: 15px;
	padding: 0;
}

.mv-all-products__filter-list li:last-child {
	margin-bottom: 0;
}

/* Custom Checkbox */
.mv-custom-checkbox {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.9);
	font-family: var(--mv-font-europa-nuova-regular, sans-serif);
	font-size: 16px;
	line-height: 1.3;
	position: relative;
	user-select: none;
}

.mv-custom-checkbox input[type="checkbox"] {
	opacity: 0;
	position: absolute;
	width: 0;
	height: 0;
}

.checkbox-box {
	position: relative;
	width: 18px;
	height: 18px;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 2px;
	margin-right: 12px;
	margin-top: 1px;
	flex-shrink: 0;
	background-color: transparent;
	transition: all 0.2s ease;
}

/* Hover state border highlights */
.mv-custom-checkbox:hover .checkbox-box {
	border-color: #fff;
}

/* Checked box background white */
.mv-custom-checkbox input:checked~.checkbox-box {
	background-color: #fff;
	border-color: #fff;
}

/* White background with purple checkmark */
.mv-custom-checkbox input:checked~.checkbox-box::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid var(--mv-distribution-color);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.checkbox-label {
	flex-grow: 1;
}

/* Controls (Search, Sort, Show) */
.mv-all-products__controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.mv-all-products__search-wrap {
	position: relative;
	flex-grow: 1;
	max-width: 100%;
	min-width: 280px;
}

.mv-all-products__search-input {
	width: 100%;
	height: 48px;
	border: 1.5px solid #000;
	border-radius: 0;
	padding: 12px 45px 12px 16px;
	font-family: var(--mv-font-europa-nuova-regular, sans-serif);
	font-size: 16px;
	color: #000;
	background-color: #fff;
	outline: none;
	transition: border-color 0.25s ease;
}

.mv-all-products__search-input:focus {
	border-color: var(--mv-distribution-color);
}

.mv-all-products__search-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #000;
	pointer-events: none;
	display: flex;
	align-items: center;
}

.mv-all-products__dropdown-wrap {
	display: flex;
	gap: 15px;
	align-items: center;
}

.mv-custom-select {
	position: relative;
	height: 48px;
}

.mv-custom-select select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 1.5px solid #000;
	border-radius: 0;
	padding: 12px 40px 12px 16px;
	height: 100%;
	font-family: var(--mv-font-europa-nuova-regular, sans-serif);
	font-size: 16px;
	font-weight: 500;
	color: #000;
	background-color: #fff;
	cursor: pointer;
	outline: none;
	transition: border-color 0.25s ease;
}

.mv-custom-select select:focus {
	border-color: var(--mv-distribution-color);
}

.mv-custom-select .select-arrow {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 8px;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mv-custom-select .select-arrow svg {
	width: 100%;
	height: auto;
}

.mv-custom-select .select-arrow svg path {
	fill: var(--mv-manufacturing, #12B0B0) !important;
}

/* Resources Grid */
.mv-all-products__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.mv-all-products__card {
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hidden animation-friendly class for JS filters */
.mv-all-products__card.filtered-out {
	display: none !important;
	opacity: 0;
	transform: scale(0.9);
}

.mv-all-products__card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow: hidden;
	background-color: #fff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image Wrap */
.mv-all-products__card-image-wrap {
	position: relative;
	width: 100%;
	padding-top: 100%;
	background-color: #f5f5f5;
	overflow: hidden;
}

.mv-all-products__card-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.mv-all-products__card-inner:hover .mv-all-products__card-image {
	transform: scale(1.06);
}

/* Content */
.mv-all-products__card-content {
	position: relative;
	z-index: 2;
	padding: 20px 0 0 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-grow: 1;
}

.mv-all-products__card-title {
	font-family: var(--mv-font-futura-cyrillic-bold, sans-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 20px;
	color: #000;
}

.mv-all-products__card-excerpt {
	font-family: var(--mv-font-europa-nuova-regular, sans-serif);
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mv-all-products__card-link {
	margin-top: auto;
	width: 100%;
	text-align: center;
	padding: 12px;
	font-family: var(--mv-font-europa-nuova-regular, sans-serif);
	font-weight: 600;
	border-radius: 0;
}

/* No Results */
.mv-all-products__no-results {
	padding: 60px 0;
	text-align: center;
	color: #666;
	font-family: var(--mv-font-europa-nuova-regular, sans-serif);
	font-size: 18px;
	background-color: #fcfcfc;
	border: 1px dashed #ddd;
	border-radius: 4px;
}

/* Load More */
.mv-all-products__load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

.mv-all-products__load-more {
	min-width: 180px;
	padding: 15px 35px;
	border: 2px solid var(--mv-distribution-color);
	background-color: transparent;
	color: var(--mv-distribution-color);
	font-family: var(--mv-font-futura-cyrillic-bold, sans-serif);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.mv-all-products__load-more:hover {
	background-color: var(--mv-distribution-color);
	color: #fff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

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

@media (max-width: 767px) {

	.mv-all-products__breadcrumb {
		margin-bottom: 30px;
	}

	.mv-all-products__sidebar {
		padding: 30px 20px;
	}

	.mv-all-products__controls {
		margin-bottom: 30px;
		flex-direction: column;
		align-items: stretch;
	}

	.mv-all-products__search-wrap {
		max-width: 100%;
		min-width: 100%;
	}

	.mv-all-products__dropdown-wrap {
		justify-content: space-between;
	}

	.mv-custom-select {
		flex-grow: 1;
	}

	.mv-custom-select select {
		width: 100%;
	}

	.mv-all-products__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.mv-all-products__card-inner {
		min-height: 380px;
	}

	.mv-all-products__load-more-wrap {
		margin-top: 35px;
	}
}