/* Nana B. Fit — definitive two-column archive layout */
@media (min-width: 768px) {
	.nbf-archive-main,
	.nbf-archive-main.e-con,
	.nbf-archive-main.elementor-element {
		display: grid !important;
		grid-template-columns: 280px minmax(0, 1fr) !important;
		grid-template-rows: auto !important;
		column-gap: 48px !important;
		row-gap: 0 !important;
		align-items: start !important;
		width: 100% !important;
		max-width: none !important;
		flex-direction: unset !important;
		flex-wrap: unset !important;
	}

	.nbf-archive-main > .nbf-archive-sidebar,
	.nbf-archive-main > .nbf-archive-sidebar.e-con {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: 280px !important;
		min-width: 280px !important;
		max-width: 280px !important;
		justify-self: start !important;
		align-self: start !important;
	}

	.nbf-archive-main > .nbf-archive-products,
	.nbf-archive-main > .nbf-archive-products.e-con {
		grid-column: 2 !important;
		grid-row: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		justify-self: stretch !important;
		align-self: start !important;
	}
}

.nbf-archive-products ul.products,
.nbf-archive-products .products.elementor-grid {
	display: grid !important;
	grid-auto-flow: row !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	column-gap: 20px !important;
	row-gap: 20px !important;
	gap: 20px !important;
	align-items: stretch !important;
	width: 100% !important;
}

.nbf-archive-products ul.products > li.product.nbf-product-card {
	display: flex !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 0 14px !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	border: 1px solid #E5E5E5 !important;
	border-radius: 12px !important;
	background: #FFFFFF !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	text-align: left !important;
}

.nbf-product-card .woocommerce-LoopProduct-link,
.nbf-product-card .woocommerce-loop-product__title,
.nbf-product-card .nbf-card-rating,
.nbf-product-card .price,
.nbf-product-card .nbf-card-installments {
	width: 100% !important;
	box-sizing: border-box !important;
	text-align: left !important;
	align-self: stretch !important;
}

.nbf-product-card > .button,
.nbf-product-card > a.added_to_cart {
	align-self: stretch !important;
}

@media (min-width: 768px) and (max-width: 1180px) {
	.nbf-archive-main,
	.nbf-archive-main.e-con,
	.nbf-archive-main.elementor-element {
		grid-template-columns: 240px minmax(0, 1fr) !important;
		column-gap: 30px !important;
	}

	.nbf-archive-main > .nbf-archive-sidebar,
	.nbf-archive-main > .nbf-archive-sidebar.e-con {
		width: 240px !important;
		min-width: 240px !important;
		max-width: 240px !important;
	}

	.nbf-archive-products ul.products,
	.nbf-archive-products .products.elementor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.nbf-archive-products ul.products,
	.nbf-archive-products .products.elementor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 20px !important;
		row-gap: 20px !important;
		gap: 20px !important;
	}
}

@media (max-width: 390px) {
	.nbf-archive-products ul.products,
	.nbf-archive-products .products.elementor-grid {
		grid-template-columns: 1fr !important;
	}
}
