/* ==========================================================================
   Shop, category archives and product search.
   Loaded only on grid surfaces — see ombelo_is_shop_archive().
   ========================================================================== */

.om-shop {
	padding-block: 40px 72px;
}

/* Breadcrumbs are a shared component — see main.css. */

/* ---------- Archive head ---------- */
.om-shop__head {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: baseline;
	column-gap: 16px;
	margin-bottom: 28px;
}
.om-shop__title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	margin: 0;
}
.om-shop__count {
	font-family: var(--om-mono);
	font-size: 0.8rem;
	color: var(--om-ink-40);
	margin: 0;
	white-space: nowrap;
}
.om-shop__intro {
	grid-column: 1 / -1;
	max-width: 62ch;
	color: var(--om-ink-60);
	margin: 12px 0 0;
}

/* The rest of the category copy, under the grid. Tinted rather than plain so
   it reads as a footnote to the shelf and not as another product row. */
.om-shop__longform {
	margin-top: 56px;
	padding: 32px clamp(22px, 4vw, 40px);
	border-radius: var(--om-radius);
	background: var(--om-surface);
	max-width: 78ch;
	color: var(--om-ink-60);
	line-height: 1.7;
}
.om-shop__longform p {
	margin: 0 0 14px;
}
.om-shop__longform p:last-child {
	margin-bottom: 0;
}
.om-shop__longform strong {
	color: var(--om-ink);
}
.om-shop__longform a {
	color: var(--om-indigo);
}

/* The category chip rail lives in main.css — the 404 and search templates
   render the same part and never load this file. */

/* ---------- Toolbar: result count + sort ---------- */
.om-shop__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0 22px;
	border-top: 1px solid var(--om-line);
}
.om-shop__bar .woocommerce-result-count {
	margin: 0;
	font-family: var(--om-mono);
	font-size: 0.8rem;
	color: var(--om-ink-60);
}
.om-shop__bar .woocommerce-ordering {
	position: relative;
	margin: 0;
}
/* Native select, restyled as a pill — no custom dropdown to keep it
   keyboard- and screen-reader-native. */
.om-shop__bar .woocommerce-ordering select.orderby {
	appearance: none;
	-webkit-appearance: none;
	padding: 10px 40px 10px 18px;
	border: 1px solid var(--om-line);
	border-radius: 999px;
	background-color: var(--om-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2317161c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	font-family: var(--om-body);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--om-ink);
	line-height: 1.2;
	cursor: pointer;
}
.om-shop__bar .woocommerce-ordering select.orderby:hover {
	border-color: var(--om-ink-40);
}

.om-shop .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 24px;
}

/* ---------- Pagination ---------- */
.om-shop .woocommerce-pagination {
	margin-top: 48px;
}
/* WooCommerce styles this list as floated, hairline-joined boxes with a
   selector of its own (.woocommerce nav.woocommerce-pagination ul), so these
   rules carry the extra class needed to win. */
.om-shop .woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.om-shop .woocommerce-pagination ul.page-numbers li {
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: visible;
}
.om-shop .woocommerce-pagination ul.page-numbers li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 14px;
	border-radius: 999px;
	border: 1px solid var(--om-line);
	background: var(--om-white);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--om-ink);
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.om-shop .woocommerce-pagination ul.page-numbers li .page-numbers:hover {
	border-color: var(--om-ink);
	background: var(--om-white);
}
.om-shop .woocommerce-pagination ul.page-numbers li .page-numbers.current {
	background: var(--om-indigo);
	border-color: var(--om-indigo);
	color: var(--om-white);
}
.om-shop .woocommerce-pagination ul.page-numbers li .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--om-ink-40);
}

/* ---------- Empty states ---------- */
.om-empty {
	max-width: 56ch;
	margin: 12px auto 0;
	padding: 56px 32px;
	text-align: center;
	background: var(--om-white);
	border-radius: var(--om-radius);
	box-shadow: var(--om-shadow);
}
.om-empty__mark {
	font-family: var(--om-mono);
	font-size: 2.4rem;
	color: var(--om-indigo);
	margin: 0 0 8px;
	line-height: 1;
}
.om-empty--soon {
	padding-block: 44px;
}
.om-empty--soon .om-empty__note {
	margin-bottom: 0;
}
.om-empty__title {
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	margin: 0 0 10px;
}
.om-empty__note {
	color: var(--om-ink-60);
	margin: 0 0 24px;
}
.om-empty__search {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.om-empty__search input[type="search"] {
	flex: 1 1 220px;
	min-width: 0;
	max-width: 320px;
	padding: 12px 18px;
	border: 1px solid var(--om-line);
	border-radius: 999px;
	background: var(--om-canvas);
	font-family: var(--om-body);
	font-size: 0.95rem;
	color: var(--om-ink);
}
.om-empty__search input[type="search"]:focus {
	outline: 2px solid var(--om-indigo);
	outline-offset: 1px;
}
.om-empty__picks {
	margin-top: 64px;
}
.om-empty__picks .om-eyebrow {
	margin-bottom: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.om-shop {
		padding-block: 28px 56px;
	}
	.om-shop__head {
		grid-template-columns: 1fr;
		row-gap: 6px;
	}
	.om-shop__intro {
		margin-top: 10px;
	}
	.om-shop__bar {
		gap: 10px;
	}
	.om-shop__bar .woocommerce-ordering {
		width: 100%;
	}
	.om-shop__bar .woocommerce-ordering select.orderby {
		width: 100%;
	}
	.om-empty {
		padding: 40px 22px;
	}
}
