/**
 * NinetyDegreeFocus Shop and category archives — Version 6.
 */

.post-type-archive-product .content-area,
.tax-product_cat .content-area,
.tax-product_tag .content-area,
.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main {
	margin: 0;
	padding: 0;
	max-width: none;
}

.ndf-shop-page {
	background: var(--ndf-white);
}

.ndf-shop-hero {
	padding: clamp(76px, 10vw, 150px) 0 clamp(60px, 8vw, 112px);
	background: var(--ndf-black);
	color: var(--ndf-white);
}

.ndf-shop-hero h1 {
	max-width: 900px;
	margin: 0 0 24px;
	font-size: clamp(3.3rem, 8vw, 8.5rem);
	line-height: 0.88;
	text-transform: uppercase;
}

.ndf-shop-hero__description {
	max-width: 680px;
	color: rgba(255,255,255,0.68);
	font-size: 1.08rem;
	line-height: 1.75;
}

.ndf-shop-hero__description p {
	margin: 0;
}

.ndf-shop-controls {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--ndf-border);
	background: rgba(255,255,255,0.97);
	backdrop-filter: blur(12px);
}

.ndf-shop-categories {
	display: flex;
	gap: 8px;
	align-items: center;
	overflow-x: auto;
	padding: 20px 0 10px;
	scrollbar-width: none;
}

.ndf-shop-categories::-webkit-scrollbar {
	display: none;
}

.ndf-shop-categories__link {
	flex: 0 0 auto;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--ndf-black);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.ndf-shop-categories__link:hover,
.ndf-shop-categories__link.is-active {
	border-color: var(--ndf-black);
	background: var(--ndf-black);
	color: var(--ndf-white);
}

.ndf-shop-categories__link.is-active {
	box-shadow: inset 0 -3px 0 var(--ndf-lime);
}

.ndf-shop-toolbar {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0 18px;
}

.ndf-shop-toolbar__count .woocommerce-result-count {
	margin: 0;
	color: var(--ndf-gray);
	font-size: 0.9rem;
}

.ndf-shop-toolbar__actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.ndf-shop-toolbar__sorting .woocommerce-ordering {
	margin: 0;
}

.ndf-shop-toolbar__sorting select {
	min-height: 44px;
	padding: 8px 38px 8px 12px;
	border-color: var(--ndf-border);
	background-color: var(--ndf-white);
	font-weight: 700;
}

.ndf-shop-filter-toggle {
	display: none;
	min-height: 44px;
	padding: 9px 15px;
	border: 1px solid var(--ndf-border) !important;
	border-radius: 8px;
	background: var(--ndf-white) !important;
	color: var(--ndf-black) !important;
	box-shadow: none !important;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transform: none !important;
}

.ndf-shop-mobile-categories {
	display: none;
	padding-bottom: 18px;
}

.ndf-shop-products {
	padding: clamp(56px, 7vw, 108px) 0 clamp(90px, 10vw, 150px);
}

.ndf-shop-products ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(26px, 3vw, 48px) clamp(16px, 2vw, 28px);
	margin: 0 !important;
	padding: 0;
}

.ndf-shop-products ul.products::before,
.ndf-shop-products ul.products::after {
	display: none !important;
}

.ndf-shop-products li.product.ndf-product-card {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.ndf-product-card__inner {
	height: 100%;
}

.ndf-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1.2;
	overflow: hidden;
	border-radius: 14px;
	background: var(--ndf-light-gray);
}

.ndf-product-card__image {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transition: opacity 260ms ease, transform 360ms ease;
}

.ndf-product-card__image--primary {
	opacity: 1;
}

.ndf-product-card__image--hover {
	opacity: 0;
}

.ndf-product-card__media:hover .ndf-product-card__image--primary {
	opacity: 0;
	transform: scale(1.025);
}

.ndf-product-card__media:hover .ndf-product-card__image--hover {
	opacity: 1;
	transform: scale(1.025);
}

.ndf-product-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	padding: 7px 10px;
	border-radius: 999px;
	background: var(--ndf-lime);
	color: var(--ndf-black);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ndf-product-card__content {
	padding: 18px 2px 0;
}

.ndf-product-card__meta {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	color: var(--ndf-gray);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ndf-product-card__title {
	margin: 0 0 9px !important;
	padding: 0 !important;
	font-size: clamp(1rem, 1.4vw, 1.28rem) !important;
	line-height: 1.3;
}

.ndf-product-card__title a {
	color: var(--ndf-black);
	text-decoration: none;
}

.ndf-product-card__price {
	min-height: 28px;
	color: var(--ndf-gray);
	font-size: 1rem;
	font-weight: 800;
}

.ndf-product-card__price .price {
	color: inherit !important;
	font-size: inherit !important;
}

.ndf-product-card__button {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	padding: 13px 0;
	border-top: 1px solid var(--ndf-border);
	border-bottom: 1px solid var(--ndf-border);
	color: var(--ndf-black);
	font-size: 0.8rem;
	font-weight: 900;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
}

.ndf-product-card__button span {
	color: var(--ndf-lime-dark);
	font-size: 1.2rem;
	transition: transform var(--ndf-transition);
}

.ndf-product-card__button:hover span {
	transform: translateX(4px);
}

.ndf-shop-products .woocommerce-pagination {
	margin-top: clamp(60px, 7vw, 100px);
}

.ndf-shop-products .woocommerce-pagination ul {
	display: flex !important;
	gap: 8px;
	justify-content: center;
	border: 0 !important;
}

.ndf-shop-products .woocommerce-pagination ul li {
	border: 0 !important;
}

.ndf-shop-products .woocommerce-pagination a,
.ndf-shop-products .woocommerce-pagination span {
	display: grid !important;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	border: 1px solid var(--ndf-border);
	border-radius: 8px;
	background: var(--ndf-white);
	color: var(--ndf-black);
	font-weight: 800;
	text-decoration: none;
}

.ndf-shop-products .woocommerce-pagination .current,
.ndf-shop-products .woocommerce-pagination a:hover {
	border-color: var(--ndf-black);
	background: var(--ndf-black);
	color: var(--ndf-white);
	box-shadow: inset 0 -3px 0 var(--ndf-lime);
}

.ndf-shop-empty {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(60px, 10vw, 120px) 24px;
	text-align: center;
}

.ndf-shop-empty h2 {
	margin: 0 0 18px;
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	line-height: 0.98;
}

.ndf-shop-empty p:not(.ndf-eyebrow) {
	margin: 0 0 30px;
	color: var(--ndf-gray);
	font-size: 1.08rem;
}

@media (max-width: 1100px) {
	.ndf-shop-products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.ndf-shop-controls > .ndf-container > .ndf-shop-categories {
		display: none;
	}

	.ndf-shop-filter-toggle {
		display: inline-flex;
	}

	.ndf-shop-mobile-categories.is-open {
		display: block;
	}

	.ndf-shop-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.ndf-shop-toolbar {
		align-items: flex-start;
	}

	.ndf-shop-toolbar__count {
		display: none;
	}

	.ndf-shop-toolbar__actions {
		width: 100%;
		justify-content: space-between;
	}

	.ndf-shop-toolbar__sorting {
		flex: 1;
	}

	.ndf-shop-toolbar__sorting select {
		width: 100%;
	}

	.ndf-shop-products ul.products {
		grid-template-columns: 1fr;
	}

	.ndf-product-card__media {
		aspect-ratio: 1 / 1.08;
	}
}
