/*
 * Upload this file to:
 * wp-content/themes/binbay-child/assets/css/binbay-products.css
 * (create the /css folder inside /assets if it doesn't exist)
 *
 * Enqueued via the functions-snippet.php provided alongside this file.
 *
 * Only covers the header, category sidebar, and toolbar — the product
 * cards themselves use your existing compiled Tailwind classes
 * (shadow-card, shadow-lift, text-ink, text-brand-dark, bg-gold, etc.)
 * so they stay identical to the homepage without any new CSS.
 *
 * Colors below are estimated from screenshots — swap in your exact
 * brand hex codes if these are off.
 */

:root {
	--binbay-green: #2f8132;
	--binbay-ink: #1a1f1c;
	--binbay-muted: #5b655e;
	--binbay-border: #e7e9e6;
	--binbay-bg-soft: #f6f7f5;
	--binbay-white: #ffffff;
}

/* ---------- Archive header ---------- */

.binbay-archive-header {
	background: var(--binbay-bg-soft);
	padding: 48px 24px 32px;
	border-bottom: 1px solid var(--binbay-border);
}

.binbay-archive-header__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.binbay-archive-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--binbay-green);
	margin-bottom: 12px;
}

.binbay-archive-eyebrow__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--binbay-green);
	display: inline-block;
}

.binbay-archive-title {
	font-size: 34px;
	font-weight: 700;
	color: var(--binbay-ink);
	margin: 0 0 10px;
}

.binbay-archive-subtitle {
	max-width: 640px;
	color: var(--binbay-muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Layout: sidebar + main ---------- */

.binbay-shop-layout {
	/* Horizontal width/centering/padding now comes from the shared
	   .container-1440 class (added alongside this one in
	   archive-product.php) so this section lines up with the hero
	   and the rest of the site instead of using its own width. */
	padding-top: 40px;
	padding-bottom: 80px;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 860px) {
	.binbay-shop-layout {
		grid-template-columns: 1fr;
	}
}

/* ---------- Sidebar ---------- */

.binbay-shop-sidebar__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--binbay-ink);
	margin: 0 0 16px;
}

.binbay-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--binbay-border);
}

.binbay-cat-list__item {
	border-bottom: 1px solid var(--binbay-border);
}

.binbay-cat-list__item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 13px 4px;
	font-size: 14.5px;
	color: var(--binbay-ink);
	text-decoration: none;
	transition: color 0.18s ease, padding-left 0.18s ease;
}

.binbay-cat-list__item a:hover {
	color: var(--binbay-green);
	padding-left: 8px;
}

.binbay-cat-list__item.is-active a {
	color: var(--binbay-green);
	font-weight: 600;
}

.binbay-cat-list__count {
	font-size: 12.5px;
	color: var(--binbay-muted);
	background: var(--binbay-bg-soft);
	border-radius: 999px;
	padding: 2px 9px;
	min-width: 24px;
	text-align: center;
}

.binbay-cat-list__item.is-empty a,
.binbay-cat-list__item.is-empty .binbay-cat-list__count {
	color: var(--binbay-muted);
}

/* ---------- Toolbar (count + sort) ---------- */

.binbay-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.binbay-shop-count {
	font-size: 14px;
	color: var(--binbay-muted);
	margin: 0;
}

.binbay-shop-toolbar select,
.woocommerce-ordering select {
	border: 1px solid var(--binbay-border);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 14px;
	color: var(--binbay-ink);
	background: var(--binbay-white);
}

/* ---------- Empty state ---------- */

.binbay-empty-state {
	background: var(--binbay-bg-soft);
	border: 1px dashed var(--binbay-border);
	border-radius: 14px;
	padding: 48px 24px;
	text-align: center;
	color: var(--binbay-muted);
	font-size: 14.5px;
}

/* ---------- Pagination ---------- */

.woocommerce-pagination {
	margin-top: 40px;
	border: none;
	background: transparent;
	padding: 0;
}
ul.page-numbers {
    border: none !important;
}
.woocommerce-pagination ul.page-numbers {
	list-style: none;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination ul.page-numbers li {
	display: inline-flex;
	margin: 0;
}

.woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--binbay-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--binbay-ink);
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.woocommerce-pagination a.page-numbers:hover {
	background: var(--binbay-bg-soft);
	border-color: var(--binbay-green);
	color: var(--binbay-green);
}

.woocommerce-pagination .page-numbers.current {
	background: var(--binbay-green);
	border-color: var(--binbay-green);
	color: var(--binbay-white);
	font-weight: 600;
}

.woocommerce-pagination .page-numbers.dots {
	border: none;
	color: var(--binbay-muted);
}

@media (max-width: 480px) {
	.woocommerce-pagination .page-numbers {
		min-width: 34px;
		height: 34px;
		padding: 0 10px;
		font-size: 13px;
	}
}