/* Doran Custom — Shortcode [doran_brand_products]. Font: Plus Jakarta Sans. */

/* Filter bar */
.brand-product-wrapper .filter-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	gap: 15px;
}
.brand-product-wrapper .filter-group {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}
.brand-product-wrapper .filter-cont select {
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid #ccc;
	min-width: 200px;
}
.brand-product-wrapper .product-count {
	font-size: 15px;
	font-weight: 500;
	margin-top: 10px;
}
.brand-product-wrapper .pagination {
	margin-top: 30px;
	text-align: center;
}

/* Grid: Flexbox agar tidak ada celah kosong jika tinggi produk berbeda */
.woocommerce ul.products {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 30px 20px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce ul.products li.product {
	float: none !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;

	/* 5 kolom: (100% - total gap) / 5 */
	width: calc(20% - 16px) !important;
	display: block;
}

/* Mobile (2 kolom) */
@media (max-width: 767px) {
	.woocommerce ul.products {
		gap: 20px 10px !important;
	}
	.woocommerce ul.products li.product {
		width: calc(50% - 5px) !important;
	}
	.filter-cont {
		display: flex;
		width: 100%;
	}
}

/* Pagination & filter */
.pagination ul { display: inline-flex; list-style: none; padding: 0; border-radius: 6px; overflow: hidden; }
.filter-cont { display: flex; flex-direction: column !important; width: 49%; }
.filter-group { width: 100% !important; justify-content: space-between; }
label { font-family: "Plus Jakarta Sans"; font-size: 20px; margin-bottom: 10px; font-weight: bold !important; }
.pagination li { margin: 0; }
.pagination a, .pagination span { display: block; padding: 8px 14px; border: 1px solid #ddd; text-decoration: none; color: #333; font-family: "Plus Jakarta Sans" !important; }
.pagination a:hover { background: #f5f5f5; }
.pagination .current { background: #ff6600; color: #fff; border-color: #ff6600; }
