/* Minimalist High-Contrast Product Grid with Sticky Shop by Category Bar */
.nd-grid-wrapper {
	width: 100%;
	margin: 2rem 0;
}

/* Sticky Shop by Category Header */
.nd-sticky-filter-bar {
	position: sticky;
	top: 0;
	z-index: 99;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: #ffffff;
	border-top: 1px solid #111111;
	border-bottom: 1px solid #111111;
	padding: 0.85rem 1rem;
	margin-bottom: 1.75rem;
}

/* Account for WordPress Admin Bar when logged in */
body.admin-bar .nd-sticky-filter-bar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .nd-sticky-filter-bar {
		top: 46px;
	}
}

.nd-filter-meta {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

.nd-filter-label {
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #111111;
}

.nd-filter-count {
	font-size: 0.85rem;
	color: #555555;
}

.nd-select-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	border: 1px solid #111111;
	background: #ffffff;
	padding: 0 0.75rem;
}

.nd-filter-icon {
	margin-right: 0.5rem;
	color: #111111;
	flex-shrink: 0;
}

.nd-select-wrap select {
	border: none;
	background: transparent;
	padding: 0.6rem 1.5rem 0.6rem 0.25rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #111111;
	cursor: pointer;
	outline: none;
}

.nd-product-grid {
	display: grid;
	gap: 1.5rem;
}

.nd-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nd-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nd-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.nd-cols-4, .nd-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
	.nd-cols-4, .nd-cols-3, .nd-cols-2 { grid-template-columns: 1fr; }
}

.nd-product-card {
	border: 1px solid #e5e5e5;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease;
}

.nd-product-card:hover {
	border-color: #111111;
}

.nd-card-image-link {
	position: relative;
	display: block;
	overflow: hidden;
	background: #f8f8f8;
	aspect-ratio: 1 / 1;
}

.nd-card-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.nd-product-card:hover .nd-card-image-link img {
	transform: scale(1.03);
}

.nd-badge-soldout {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: #111111;
	color: #ffffff;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.5rem;
}

.nd-card-details {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.nd-card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.nd-card-title a {
	color: #111111;
	text-decoration: none;
}

.nd-card-price {
	font-size: 0.95rem;
	color: #444444;
}

/* Pagination */
.nd-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.nd-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid #111111;
	color: #111111;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.nd-page-link:hover,
.nd-page-link.is-active {
	background: #111111;
	color: #ffffff;
}

.nd-empty-state {
	padding: 3rem 1.5rem;
	text-align: center;
	border: 1px solid #e5e5e5;
	color: #555555;
}
