/* ===== CPGT Collection Page ===== */

.cpgt-collection-empty-notice {
	max-width: 700px;
	margin: 60px auto;
	padding: 0 24px;
	text-align: center;
	color: #666;
}
.cpgt-collection-empty-notice h1 { color: #111; margin-bottom: 10px; }

/* ---------- Hero banner: full-bleed, same breakout technique used
   elsewhere in this plugin so it spans edge-to-edge regardless of what
   column/container the page sits inside. ---------- */
.cpgt-collection-hero {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: #f4f2ee;
	background-size: cover;
	background-position: center;
	text-align: center;
	padding: 56px 24px;
}
.cpgt-collection-hero.has-banner {
	color: #fff;
	padding: 90px 24px;
}
.cpgt-collection-hero.has-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.38);
}
.cpgt-collection-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cpgt-collection-title {
	font-size: 30px !important;
	font-weight: 700 !important;
	margin: 0 !important;
	color: inherit !important;
	background: none !important;
}
.cpgt-collection-desc {
	font-size: 14px;
	line-height: 1.6;
	margin: 12px 0 0;
	color: inherit;
	opacity: 0.85;
}

/* ---------- Body / toolbar ---------- */
.cpgt-collection-body {
	max-width: 1300px;
	margin: 0 auto;
	padding: 24px 24px 60px;
	box-sizing: border-box;
}
.cpgt-collection-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 20px;
	border-bottom: 1px solid #e5e5e5;
}
.cpgt-collection-count { font-size: 13px; color: #666; }
.cpgt-collection-sort-form {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	flex-shrink: 0;
}
.cpgt-collection-sort-form label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666;
	white-space: nowrap;
	flex-shrink: 0;
}
.cpgt-collection-sort-form select {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 13px;
	color: #111;
	background: #fff;
	cursor: pointer;
}
.cpgt-collection-sort-form select:focus { outline: none; border-color: #111; }

/* ---------- Pagination — WooCommerce's own markup (.woocommerce-pagination),
   restyled to match this plugin's black/white look. ---------- */
.cpgt-collection-body nav.woocommerce-pagination {
	margin-top: 40px;
	text-align: center;
}
.cpgt-collection-body nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
}
.cpgt-collection-body nav.woocommerce-pagination .page-numbers li { list-style: none; }
.cpgt-collection-body nav.woocommerce-pagination .page-numbers a,
.cpgt-collection-body nav.woocommerce-pagination .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	font-size: 13px;
	color: #111;
	text-decoration: none;
	background: #fff;
}
.cpgt-collection-body nav.woocommerce-pagination .page-numbers a:hover {
	border-color: #111;
	background: #111;
	color: #fff;
}
.cpgt-collection-body nav.woocommerce-pagination .page-numbers .current {
	background: #111;
	border-color: #111;
	color: #fff;
	font-weight: 700;
}

@media (max-width: 600px) {
	.cpgt-collection-hero { padding: 40px 18px; }
	.cpgt-collection-hero.has-banner { padding: 60px 18px; }
	.cpgt-collection-title { font-size: 24px !important; }
	.cpgt-collection-body { padding: 18px 16px 40px; }
	.cpgt-collection-toolbar { flex-direction: column; align-items: flex-start; }
}
