/*
 * Hubka Theme
 *
 * Phase: 11B.4 — WooCommerce Styling
 * Purpose: Product Archive contextual styling only — collection grid
 * rhythm, spacing from page title, pagination, results count, empty
 * collection integration. Book Card itself is styled in
 * components/book-card.css, not duplicated here.
 *
 * Rules:
 * - Reuse theme.json tokens.
 * - Use logical properties.
 * - Keep selectors shallow.
 * - Do not duplicate component styling.
 */

/* Spacing between the archive header and the product grid. */
.hubka-product-archive__grid {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Grid rhythm: gap between cards. Product Collection's own displayLayout
 * columns/shrinkColumns settings (in the template) handle column count. */
.hubka-product-archive__grid .wc-block-product-template {
	gap: var(--wp--preset--spacing--50);
}

/* Results count: quiet, muted — supporting information, not a headline. */
.wc-block-product-results-count {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block-end: var(--wp--preset--spacing--30);
}

/* Pagination: understated, centered, doesn't interrupt the sense of
 * browsing a curated shelf. */
.wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--60);
	gap: var(--wp--preset--spacing--30);
}

.wp-block-query-pagination a {
	color: var(--wp--preset--color--text);
}

.wp-block-query-pagination a:hover {
	color: var(--wp--preset--color--primary);
}

.wp-block-query-pagination a:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.wp-block-query-pagination .current {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* Empty collection: the Empty State template part and reused patterns
 * are styled in their own component files; this only adds breathing
 * room around the whole no-results branch within the archive context. */
.hubka-product-archive__grid .wp-block-woocommerce-product-collection-no-results {
	margin-block-start: var(--wp--preset--spacing--60);
}
