/* NG15 category archive styles */

.ng15-category-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 20px;
}

.ng15-category-header {
	margin-bottom: 24px;
}

.ng15-cat-title {
	font-size: 28px;
	margin-bottom: 8px;
}

/* Ancestor segments are real links (see taxonomy-product_cat.php) — styled
   to actually look clickable rather than identical to the current-category
   plain text sitting right next to them. */
.ng15-cat-title a {
	color: #0d3e66;
	text-decoration: none;
}

.ng15-cat-title a:hover {
	text-decoration: underline;
}

.ng15-cat-desc {
	color: #555;
	margin-bottom: 0;
}

/* Search results: "Filter by category" checkbox facets (see search.php /
   ng15_cc_search_category_facets() in functions.php). The results area
   dims briefly while an AJAX refresh is in flight (see
   ng15_cc_search_filter_script()). */
.ng15-search-cat-filter {
	margin-bottom: 24px;
	padding: 16px 20px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	background: #fafafa;
}

.ng15-search-cat-filter__label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 10px;
}

.ng15-search-cat-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ng15-search-cat-filter__list label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
}

.ng15-search-results-dynamic {
	transition: opacity 0.15s ease;
}

/* Sort dropdown — sits above the toolbar (count + subcategory dropdown),
   right-aligned to match the subcategory dropdown's position below it. */
.ng15-sort-wrap {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.ng15-sort-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
}

.ng15-sort-select {
	font-size: 14px;
	padding: 7px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: #333;
	cursor: pointer;
	min-width: 220px;
}

.ng15-sort-select:focus {
	outline: none;
	border-color: #0d3e66;
}

/* Toolbar: count left, subcategory dropdown right */
.ng15-grid-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.ng15-product-count {
	font-size: 14px;
	color: #777;
	margin: 0;
}

/* 4-column grid */
.ng15-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

@media (max-width: 1024px) {
	.ng15-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.ng15-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ng15-product-grid {
		grid-template-columns: 1fr;
	}
}

/* Product card — matches BodyCommerce loop layout styling */
.ng15-product-card {
	border: 2px solid #e5e5e5;
	padding: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Fixed-height, centering box rather than a plain block — gives every card
   the same image-area height regardless of that product's own photo
   dimensions, with shorter images (under the 200px cap) centered in the
   space instead of leaving the card shorter than its row-mates. */
.ng15-card-image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 85%;
	height: 200px;
	margin: 0 auto 10px;
}

.ng15-card-image {
	max-width: 100%;
	max-height: 200px;
	width: auto;
	height: auto;
	display: block;
}

.ng15-card-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 6px;
	line-height: 1.3;
}

.ng15-card-title a {
	color: inherit;
	text-decoration: none;
}

.ng15-card-title a:hover {
	text-decoration: underline;
}

.ng15-card-sku {
	font-size: 12px;
	color: #777;
	margin: 0 0 6px;
}

.ng15-card-price {
	font-size: 16px;
	font-weight: 700;
	color: #bc1b18;
	margin: 0 0 10px;
}

.ng15-poa-price {
	font-size: 16px;
	font-weight: 700;
	color: #bc1b18;
}

.ng15-card-atc {
	margin-top: auto;
}

.ng15-card-atc .button,
.ng15-card-atc .add_to_cart_button,
.ng15-product-grid .ng15-product-card .ng15-card-atc a.button,
.ng15-product-grid .ng15-product-card .ng15-card-atc a.add_to_cart_button {
	background-color: #db4624 !important;
	color: #ffffff !important;
	font-size: 12px;
	padding: 8px 16px;
	border: none !important;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.ng15-card-atc .button:hover,
.ng15-card-atc .add_to_cart_button:hover,
.ng15-product-grid .ng15-product-card .ng15-card-atc a.button:hover,
.ng15-product-grid .ng15-product-card .ng15-card-atc a.add_to_cart_button:hover {
	background-color: #cccccc !important;
	color: #000000 !important;
}

.ng15-poa-btn {
	background-color: #555 !important;
}

.ng15-poa-btn:hover {
	background-color: #333 !important;
}

/* Subcategory dropdown */
.ng15-subcat-wrap {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ng15-subcat-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
}

.ng15-subcat-select {
	font-size: 14px;
	padding: 7px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: #333;
	cursor: pointer;
	min-width: 220px;
}

.ng15-subcat-select:focus {
	outline: none;
	border-color: #0d3e66;
}

.ng15-no-products {
	text-align: center;
	color: #777;
	padding: 40px 0;
}

/* Infinite scroll (see ng15_cc_category_infinite_scroll_script() /
   ng15_cc_search_filter_script() in functions.php). The sentinel itself is
   invisible — IntersectionObserver just needs something in the DOM to
   watch — the status line is what the visitor actually sees while the next
   batch loads. */
.ng15-load-more-sentinel {
	height: 1px;
}

.ng15-load-more-status {
	text-align: center;
	color: #777;
	font-size: 14px;
	padding: 20px 0;
}
