/* ==========================================================================
   Shop / category archive
   ========================================================================== */

/* Title band --------------------------------------------------------------- */

.shop-band { background: var(--surface); border-block-end: 1px solid var(--line); }
.shop-band .container { padding-block: 24px 28px; }

.shop-band__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.shop-band__text { max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.shop-band__title { margin: 0; font: 700 clamp(64px, 8vw, 120px)/0.8 var(--font-display); }
.shop-band__intro { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-soft); }

.audience { display: flex; flex-wrap: wrap; gap: 8px; }
.audience__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 18px;
	border: 2px solid var(--ink);
	background: var(--surface);
	font-weight: 800;
	font-size: 15px;
	text-decoration: none;
}
.audience__link[aria-current="true"] { background: var(--ink); color: var(--accent); }
.audience__link[aria-current="true"]:hover { color: var(--accent); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 20px; }
.cat-chips a {
	padding: 8px 14px;
	border: 1px solid var(--line);
	background: var(--ground);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}
.cat-chips a:hover { border-color: var(--ink); }
.cat-chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); }

/* Layout --------------------------------------------------------------------- */

.shop-layout {
	padding-block: 32px 72px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}
.filters { flex: 1 1 260px; max-width: 300px; }
.shop-results { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.shop[aria-busy="true"] .shop-results { opacity: 0.5; transition: opacity 0.15s; }

/* Filters sidebar ------------------------------------------------------------ */

.filters__form { background: var(--surface); border: 1px solid var(--line); }
.filters__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-block-end: 2px solid var(--ink);
}
.filters__title { margin: 0; font: 700 40px/0.9 var(--font-display); }
.filters__clear { font-size: 14px; font-weight: 700; padding-block: 10px; }

.filters__group { margin: 0; padding: 16px 20px; border: 0; border-block-end: 1px solid var(--line); }
.filters__group:last-of-type { border-block-end: 0; }
.filters__legend { float: inline-start; width: 100%; padding: 0 0 8px; font-weight: 800; font-size: 16px; }
.filters__legend + * { clear: both; }

.filters__option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
	font-size: 16px;
}
.filters__option input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.filters__box {
	flex: none;
	width: 22px;
	height: 22px;
	border: 2px solid var(--ink);
	background: var(--surface);
	display: flex;
	align-items: center;
	justify-content: center;
}
.filters__option input:checked + .filters__box { background: var(--accent); }
.filters__option input:checked + .filters__box::after { content: '✓'; font-weight: 800; font-size: 14px; line-height: 1; }
.filters__option input:focus-visible + .filters__box { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--accent); }
.filters__label { flex: 1; }
.filters__count { font-size: 13px; color: var(--muted); }

.filters__price { display: flex; align-items: center; gap: 8px; }
.filters__price input {
	width: 100%;
	height: 44px;
	border: 1px solid #C9CEC6;
	background: var(--ground);
	padding: 0 12px;
	font: 500 15px var(--font-body);
}
.filters__submit { width: calc(100% - 40px); margin: 0 20px 20px; }
.js-filters .filters__submit { display: none; }

.filters-toggle { display: none; }

/* Results bar ---------------------------------------------------------------- */

.shop-results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.shop-results__count { margin: 0; font-weight: 800; font-size: 18px; }

.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
	height: 44px;
	border: 2px solid var(--ink);
	background: var(--surface);
	padding: 0 12px;
	font: 700 15px var(--font-body);
	color: var(--ink);
}

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	background: var(--ink);
	color: #F2F5F0;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}
.chip:hover { color: #FFF; }
.chip__x { color: var(--accent); }

/* Pagination ---------------------------------------------------------------- */

.woocommerce-pagination { margin-block-start: 16px; }
.woocommerce-pagination ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	border: 0;
}
.woocommerce-pagination ul.page-numbers li { border: 0; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	min-width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--ink);
	background: var(--surface);
	font-weight: 800;
	text-decoration: none;
}
.woocommerce-pagination .page-numbers .current { background: var(--ink); color: var(--accent); }

/* Empty state ---------------------------------------------------------------- */

.shop-empty {
	background: var(--surface);
	border: 2px dashed #C9CEC6;
	padding: 48px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}
.shop-empty p { margin: 0; color: var(--text-soft); }
.shop-empty .shop-empty__title { font: 700 56px/0.9 var(--font-display); color: var(--ink); }
.shop-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 8px; }

/* SEO text ------------------------------------------------------------------- */

.shop-seo { background: var(--surface); border-block-start: 1px solid var(--line); }
.shop-seo__inner { max-width: 900px; padding-block: 56px; }
.shop-seo h2 { font-size: 56px; }
.shop-seo p { font-size: 16px; line-height: 1.75; color: var(--text-soft); }

/* Mobile ---------------------------------------------------------------------- */

@media (max-width: 860px) {
	.shop-band .container { padding-block: 16px 20px; }
	.shop-band__title { font-size: 64px; }
	.shop-band__intro { font-size: 15px; }
	.audience { width: 100%; display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 6px; }
	.audience__link { justify-content: center; padding: 0 4px; font-size: 14px; }
	.cat-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.cat-chips a { flex: none; }

	.shop-layout { padding-block: 16px 48px; gap: 16px; }
	.filters-toggle { display: inline-flex; width: 100%; }
	.filters-toggle[aria-expanded="true"] { background: var(--ink); color: var(--accent); }
	.filters { flex-basis: 100%; max-width: none; display: none; }
	.filters.is-open { display: block; }
	.js-filters .filters__submit { display: flex; }
}
