/* Nersi Store — Shop archive */

.site-content--shop {
	padding-top: 20px;
	padding-bottom: 56px;
}

.ns-shop {
	width: 100%;
	max-width: min(100%, 1320px);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ── Layout ── */
.ns-shop-layout {
	display: grid;
	grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.ns-shop-main {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

/* ── Breadcrumb ── */
.ns-shop-crumb {
	min-width: 0;
}

.ns-shop-crumb__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--af-muted);
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ns-shop-crumb__list::-webkit-scrollbar {
	display: none;
}

.ns-shop-crumb__item {
	flex: 0 0 auto;
	white-space: nowrap;
}

.ns-shop-crumb__item a {
	color: var(--af-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ns-shop-crumb__item a:hover {
	color: var(--ns-brand-deep);
}

.ns-shop-crumb__item--current span {
	color: var(--ns-black);
	font-weight: 800;
}

.ns-shop-crumb__sep {
	flex: 0 0 auto;
	white-space: nowrap;
	color: rgba(245, 184, 0, 0.7);
}

/* ── Header ── */
.ns-shop-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--ns-black);
}

.ns-shop-head__inner {
	position: relative;
	flex: 1;
	min-height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px 20px;
	text-align: center;
	overflow: hidden;
}

.ns-shop-head__bg {
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -62%);
	z-index: 0;
	font-size: clamp(2.6rem, 8vw, 5rem);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	background: linear-gradient(
		180deg,
		rgba(245, 184, 0, 0.2) 0%,
		rgba(26, 26, 26, 0.04) 72%,
		transparent 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ns-shop-head__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 640px;
}

.ns-shop-head__eyebrow {
	display: inline-flex;
	padding: 4px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ns-brand-soft), rgba(255, 255, 255, 0.95));
	color: var(--ns-brand-deep);
	font-size: 0.72rem;
	font-weight: 800;
	box-shadow: 0 0 0 1px rgba(245, 184, 0, 0.2);
}

.ns-shop-head__title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--ns-black);
}

.ns-shop-head__title strong {
	display: block;
	margin-top: 4px;
	background: var(--af-gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ns-shop-head__desc {
	margin: 0;
	max-width: 52ch;
	font-size: 0.9rem;
	line-height: 1.8;
	color: var(--af-muted);
}

.ns-shop-head__count {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--af-cream);
	border: 1px solid rgba(245, 184, 0, 0.28);
	flex-shrink: 0;
}

.ns-shop-head__count-num {
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1;
	color: var(--ns-black);
}

.ns-shop-head__count-label {
	margin-top: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--af-muted);
}

/* ── Toolbar ── */
.ns-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--af-radius);
	background: var(--af-white);
	border: 1px solid var(--af-border);
}

.ns-shop-toolbar .woocommerce-result-count {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--af-muted);
}

.ns-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

.ns-shop-toolbar .woocommerce-ordering select {
	min-width: 180px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid var(--af-border);
	background: var(--af-bg);
	color: var(--ns-black);
	font-family: var(--af-font);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
}

.ns-shop-toolbar .woocommerce-ordering select:focus {
	outline: none;
	border-color: var(--ns-brand);
	box-shadow: 0 0 0 3px var(--ns-brand-soft);
}

/* ── WooCommerce product grid ── */
.ns-shop .products,
body.ns-shop-archive-view .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 3px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.ns-shop .products,
	body.ns-shop-archive-view .woocommerce ul.products {
		gap: 16px !important;
	}
}

.ns-shop .products::before,
.ns-shop .products::after {
	display: none !important;
	content: none !important;
}

.ns-shop .products .product {
	width: 100% !important;
	float: none !important;
}

/* Product card visuals: assets/css/product-loop.css */

/* ── Sidebar ── */
.ns-shop-sidebar {
	grid-column: 1;
	grid-row: 1;
	position: sticky;
	top: 24px;
}

.ns-shop-sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ns-shop-widget {
	padding: 16px;
	border-radius: var(--af-radius);
	background: var(--af-white);
	border: 1px solid var(--af-border);
	box-shadow: 0 8px 20px rgba(26, 26, 26, 0.04);
}

.ns-shop-widget .widget-title {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ns-black);
	font-size: 0.92rem;
	font-weight: 900;
	color: var(--ns-black);
}

.ns-shop-widget__list,
.ns-shop-widget .product-categories,
.ns-shop-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ns-shop-widget li.cat-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ns-shop-widget li.cat-item > a {
	flex: 1;
	min-width: 0;
}

.ns-shop-widget__list a,
.ns-shop-widget .product-categories a,
.ns-shop-widget ul a,
.ns-shop-widget li.cat-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--af-text);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 700;
	transition: background 0.2s ease, color 0.2s ease;
}

.ns-shop-widget__list a:hover,
.ns-shop-widget .product-categories a:hover,
.ns-shop-widget ul a:hover,
.ns-shop-widget li.cat-item > a:hover {
	background: var(--af-cream);
	color: var(--ns-brand-deep);
}

.ns-shop-widget__list a.is-active,
.ns-shop-widget .product-categories .current-cat > a,
.ns-shop-widget li.cat-item.current-cat > a {
	background: var(--ns-black);
	color: var(--ns-brand-bright);
}

.ns-shop-widget .cat-name {
	flex: 1;
	min-width: 0;
}

.ns-shop-widget .count {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--af-muted);
}

.ns-shop-widget .current-cat > a .count,
.ns-shop-widget__list a.is-active .count {
	color: rgba(245, 184, 0, 0.85);
}

.ns-shop-widget ul.children {
	margin: 4px 0 0;
	padding-inline-start: 12px;
	gap: 4px;
}

.ns-shop-search {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ns-shop-search__input {
	width: 100%;
	padding: 11px 12px;
	border-radius: 10px;
	border: 1px solid var(--af-border);
	background: var(--af-bg);
	font-family: var(--af-font);
	font-size: 0.84rem;
}

.ns-shop-search__input:focus {
	outline: none;
	border-color: var(--ns-brand);
	box-shadow: 0 0 0 3px var(--ns-brand-soft);
}

.ns-shop-search__btn {
	padding: 10px 14px;
	border: none;
	border-radius: 10px;
	background: var(--ns-black);
	color: var(--ns-brand-bright);
	font-family: var(--af-font);
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
}

.ns-shop-search__btn:hover {
	background: var(--ns-brand-deep);
	color: var(--ns-black);
}

/* ── Pagination ── */
.ns-shop-pagination {
	display: flex;
	justify-content: center;
	padding-top: 8px;
}

.ns-shop-pagination .page-numbers,
.ns-shop-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ns-shop-pagination li {
	margin: 0;
	padding: 0;
}

.ns-shop-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--af-border);
	background: var(--af-white);
	color: var(--ns-black);
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 700;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ns-shop-pagination .page-numbers:hover {
	border-color: var(--ns-black);
	background: var(--af-cream);
	transform: translateY(-1px);
}

.ns-shop-pagination .page-numbers.current {
	background: var(--ns-black);
	border-color: var(--ns-black);
	color: var(--ns-brand-bright);
}

/* ── Empty ── */
.ns-shop-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 56px 24px;
	border-radius: 16px;
	border: 2px dashed rgba(245, 184, 0, 0.45);
	background: var(--af-cream);
}

.ns-shop-empty__icon {
	font-size: 2.4rem;
	margin-bottom: 12px;
}

.ns-shop-empty strong {
	font-size: 1.1rem;
	color: var(--ns-black);
	margin-bottom: 8px;
}

.ns-shop-empty p {
	margin: 0 0 18px;
	color: var(--af-muted);
}

.ns-shop-empty__btn {
	display: inline-flex;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--ns-black);
	color: var(--ns-brand-bright);
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 800;
}

/* ── Notices ── */
.ns-shop .woocommerce-info,
.ns-shop .woocommerce-message,
.ns-shop .woocommerce-error {
	border-radius: var(--af-radius);
}

@media (max-width: 767px) {
	.ns-shop-layout {
		grid-template-columns: 1fr;
	}

	.ns-shop-main {
		grid-column: 1;
	}

	.ns-shop-sidebar {
		display: none;
	}

	.ns-shop .products,
	body.ns-shop-archive-view .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 3px !important;
	}

	.ns-shop .ns-product-loop .woocommerce-loop-product__link {
		padding: 8px 8px 6px;
	}

	.ns-shop .ns-product-loop .woocommerce-loop-product__title {
		margin: 8px 0 6px;
		font-size: 0.78rem;
	}

	.ns-shop .ns-product-loop .product .button,
	.ns-shop .ns-product-loop .product .ns-shop-product__btn {
		width: calc(100% - 16px);
		margin: 0 8px 8px;
		padding: 9px 10px;
		font-size: 0.72rem !important;
	}
}

@media (max-width: 560px) {
	.ns-shop-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.ns-shop-toolbar .woocommerce-ordering select {
		width: 100%;
	}
}

/* ── Brands archive grid ── */
.ns-shop-brands-count {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--af-muted);
}

.ns-shop-brands-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ns-shop-brand-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border-radius: calc(var(--af-radius) + 2px);
	background: var(--af-white);
	border: 1px solid var(--af-border);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ns-shop-brand-card:hover {
	transform: translateY(-4px);
	border-color: rgba(245, 184, 0, 0.45);
	box-shadow: 0 16px 36px rgba(26, 26, 26, 0.1);
}

.ns-shop-brand-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 148px;
	padding: 20px 16px;
	background: linear-gradient(180deg, #faf9f6 0%, #f3f2ef 100%);
}

.ns-shop-brand-card__logo {
	display: block;
	width: 100%;
	max-width: 132px;
	height: auto;
	max-height: 72px;
	object-fit: contain;
}

.ns-shop-brand-card__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 999px;
	background: var(--ns-black);
	color: var(--ns-brand-bright);
	font-size: 1.6rem;
	font-weight: 900;
}

.ns-shop-brand-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 12px 16px;
	text-align: center;
}

.ns-shop-brand-card__name {
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--ns-black);
}

.ns-shop-brand-card__count {
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--af-muted);
}

@media (max-width: 767px) {
	.ns-shop-brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3px;
	}

	.ns-shop-brand-card {
		border-radius: 10px;
		box-shadow: none;
	}

	.ns-shop-brand-card:hover {
		transform: none;
	}

	.ns-shop-brand-card__media {
		min-height: 108px;
		padding: 14px 10px;
	}

	.ns-shop-brand-card__logo {
		max-width: 96px;
		max-height: 52px;
	}

	.ns-shop-brand-card__body {
		padding: 10px 8px 12px;
	}

	.ns-shop-brand-card__name {
		font-size: 0.78rem;
	}

	.ns-shop-brand-card__count {
		font-size: 0.7rem;
	}
}
