/**
 * Single Store Multi Vendor Addon — Single Store Customizer Styles
 *
 * Removes tab UI and styles the direct products grid.
 */

/* ────────────────────────────────────────────────────────
   1. Hide tab elements and original rating from parent plugin
   ──────────────────────────────────────────────────────── */
.mvr-single-store-tabs {
	display: none !important;
}

/* Hide original MVR plain-text rating (our custom one replaces it) */
.mvr-single-store-rating {
	display: none !important;
}

/* ────────────────────────────────────────────────────────
   1b. Star Rating Widget
   ──────────────────────────────────────────────────────── */
.ssmva-single-store-rating {
	list-style: none;
	margin-top: 12px !important;
	padding-top: 12px;
	border-top: 1px dashed #e0e0e0;
}

.ssmva-star-rating-wrapper {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ssmva-star {
	font-size: 20px;
	cursor: default;
	line-height: 1;
}

.ssmva-star.filled {
	color: #f5a623;
}

.ssmva-star.empty {
	color: #dddddd;
}

.ssmva-rating-text {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

/* ────────────────────────────────────────────────────────
   2. Products Section
   ──────────────────────────────────────────────────────── */
.ssmva-products-section {
	margin-top: 30px;
	clear: both;
}

/* ────────────────────────────────────────────────────────
   3. Filter / Search Bar
   ──────────────────────────────────────────────────────── */
.ssmva-product-filter-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
	padding: 14px 18px;
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}

.ssmva-product-count .store-count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.ssmva-product-search form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ssmva-search-input {
	padding: 8px 14px;
	height: 40px;
	box-sizing: border-box;
	border: 1px solid #dcdcdc !important;
	border-radius: 10px !important;
	font-size: 14px;
	min-width: 220px;
	transition: border-color 0.2s ease;
}

.ssmva-search-input:focus {
	border-color: #467ff7;
	outline: none;
	box-shadow: 0 0 0 2px rgba(70, 127, 247, 0.15);
}

.ssmva-search-btn {
	padding: 8px 18px;
	height: 40px;
	box-sizing: border-box;
	background: #467ff7 !important;
	color: #fff !important;
	border: 1px solid #467ff7 !important;
	border-radius: 10px !important;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ssmva-search-btn:hover {
	background: #fff !important;
	color: #467ff7 !important;
}

/* ────────────────────────────────────────────────────────
   4. Product Grid
   ──────────────────────────────────────────────────────── */
.ssmva-product-loop-wrapper ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ssmva-product-loop-wrapper ul.products li.product {
	margin: 0;
	padding: 0;
	width: 100%;
	float: none;
}

/* ────────────────────────────────────────────────────────
   5. No Products Message
   ──────────────────────────────────────────────────────── */
.ssmva-no-products {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 15px;
	background: #fafafa;
	border: 1px dashed #ddd;
	border-radius: 6px;
}

/* ────────────────────────────────────────────────────────
   6. Pagination
   ──────────────────────────────────────────────────────── */
.ssmva-pagination {
	margin-top: 30px;
	text-align: center;
}

.ssmva-pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ssmva-pagination ul li {
	margin: 0;
}

.ssmva-pagination ul li a,
.ssmva-pagination ul li span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ssmva-pagination ul li a:hover {
	background: #7b2d8e;
	border-color: #7b2d8e;
	color: #fff;
}

.ssmva-pagination ul li span.current {
	background: #7b2d8e;
	border-color: #7b2d8e;
	color: #fff;
	font-weight: 600;
}

/* ────────────────────────────────────────────────────────
   7. Search Results Subtitle
   ──────────────────────────────────────────────────────── */
.ssmva-products-section>.subtitle {
	display: block;
	margin-bottom: 16px;
	font-size: 14px;
	color: #555;
}

/* ────────────────────────────────────────────────────────
   8. Responsive
   ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.ssmva-product-filter-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}

	.ssmva-search-input {
		min-width: 160px;
		width: 100%;
	}

	.ssmva-product-search form {
		width: 100%;
	}

	.ssmva-product-loop-wrapper ul.products {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 16px;
	}
}