/* FPT Market Frontend Styles */

.fmarket-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.fmarket-product-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	transition: all 0.3s;
	cursor: pointer;
}

.fmarket-product-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transform: translateY(-2px);
}

.fmarket-product-card h3 {
	margin: 10px 0;
	font-size: 16px;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fmarket-product-card p {
	margin: 5px 0;
	color: #666;
	font-size: 14px;
}

.fmarket-product-card .button {
	width: 100%;
	margin-top: 10px;
}

.fmarket-categories-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fmarket-categories-list li {
	padding: 10px;
	border-bottom: 1px solid #ddd;
}

.fmarket-categories-list a {
	text-decoration: none;
	color: #0073aa;
	font-weight: 500;
}

.fmarket-categories-list a:hover {
	text-decoration: underline;
}

.fmarket-vendor-dashboard {
	padding: 20px;
	background: #fff;
	border-radius: 4px;
}

.fmarket-vendor-tabs {
	display: flex;
	gap: 10px;
	margin: 20px 0;
	border-bottom: 1px solid #ddd;
}

.fmarket-tab-btn {
	padding: 10px 15px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	color: #666;
	font-weight: 500;
	transition: all 0.2s;
}

.fmarket-tab-btn:hover {
	color: #333;
}

.fmarket-tab-btn.active {
	border-bottom-color: #0073aa;
	color: #0073aa;
}

.fmarket-tab-content {
	display: none;
	padding: 20px 0;
}

.fmarket-tab-content.active {
	display: block;
}

.fmarket-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.fmarket-modal-content {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.fmarket-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	color: #999;
	transition: color 0.2s;
}

.fmarket-modal-close:hover {
	color: #333;
}

.fmarket-modal-content h3 {
	margin-top: 0;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.fmarket-loading {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

@media (max-width: 768px) {
	.fmarket-products {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

	.fmarket-vendor-tabs {
		flex-direction: column;
	}

	.fmarket-tab-btn {
		border-bottom: none;
		border-left: 2px solid transparent;
		padding-left: 10px;
	}

	.fmarket-tab-btn.active {
		border-bottom: none;
		border-left-color: #0073aa;
	}

	.fmarket-modal-content {
		width: 95%;
		padding: 20px;
	}
}
