.mvf-wrapper {
	--mvf-primary: #d35400;
	--mvf-primary-dark: #a84300;
	--mvf-border: #e0e0e0;
	--mvf-text: #2b2b2b;
	--mvf-bg: #ffffff;
	--mvf-bg-soft: #f7f7f8;

	font-family: inherit;
	color: var(--mvf-text);
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px;
	background: var(--mvf-bg-soft);
	border-radius: 16px;
	box-sizing: border-box;
}

.mvf-wrapper * {
	box-sizing: border-box;
}

.mvf-filter-form {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	align-items: end;
	background: var(--mvf-bg);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mvf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mvf-field label {
	font-size: 13px;
	font-weight: 600;
	color: #555;
}

.mvf-hint {
	font-size: 12px;
	color: #c0392b;
	line-height: 1.5;
}

.mvf-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mvf-border);
	border-radius: 8px;
	background: var(--mvf-bg);
	font-size: 14px;
	color: var(--mvf-text);
	transition: border-color 0.15s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 10px center;
	background-size: 16px;
	padding-left: 32px;
}

.mvf-select:focus {
	outline: none;
	border-color: var(--mvf-primary);
}

.mvf-select:disabled {
	background-color: #f0f0f0;
	color: #999;
	cursor: not-allowed;
}

.mvf-actions {
	grid-column: 1 / -1;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.mvf-btn {
	padding: 12px 22px;
	border-radius: 8px;
	border: none;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.mvf-btn-primary {
	background: var(--mvf-primary);
	color: #fff;
}

.mvf-btn-primary:hover:not(:disabled) {
	background: var(--mvf-primary-dark);
}

.mvf-btn-primary:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.mvf-btn-secondary {
	background: transparent;
	color: var(--mvf-primary);
	border: 1px solid var(--mvf-primary);
}

.mvf-btn-secondary:hover {
	background: rgba(211, 84, 0, 0.08);
}

.mvf-loading {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
	margin-top: 6px;
}

.mvf-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #ddd;
	border-top-color: var(--mvf-primary);
	border-radius: 50%;
	display: inline-block;
	animation: mvf-spin 0.7s linear infinite;
}

@keyframes mvf-spin {
	to { transform: rotate(360deg); }
}

.mvf-results {
	margin-top: 28px;
}

.mvf-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}

.mvf-product-card {
	background: var(--mvf-bg);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mvf-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.mvf-product-thumb {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f0f0f0;
}

.mvf-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mvf-product-info {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-grow: 1;
}

.mvf-product-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
	line-height: 1.4;
}

.mvf-product-title a {
	color: var(--mvf-text);
	text-decoration: none;
}

.mvf-product-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--mvf-primary);
}

.mvf-product-btn {
	margin-top: auto;
	text-align: center;
	padding: 9px 12px;
	background: var(--mvf-primary);
	color: #fff;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.mvf-product-btn:hover {
	background: var(--mvf-primary-dark);
}

.mvf-no-results {
	text-align: center;
	padding: 40px 20px;
	background: var(--mvf-bg);
	border-radius: 12px;
	font-size: 15px;
	color: #666;
}

.mvf-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.mvf-page-btn {
	min-width: 36px;
	padding: 8px 10px;
	border: 1px solid var(--mvf-border);
	background: var(--mvf-bg);
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}

.mvf-page-btn.active {
	background: var(--mvf-primary);
	border-color: var(--mvf-primary);
	color: #fff;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 900px) {
	.mvf-filter-form {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.mvf-wrapper {
		padding: 14px;
		border-radius: 10px;
	}
	.mvf-filter-form {
		grid-template-columns: 1fr;
		padding: 14px;
	}
	.mvf-actions {
		flex-direction: column;
	}
	.mvf-btn {
		width: 100%;
	}
	.mvf-products-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 12px;
	}
}
