/**
 * Negar Theme — product archives (categories, attribute archives, product search).
 *
 * Loaded only on product archives (inc/enqueue.php); markup from inc/shop-archive.php and the
 * shared card component (template-parts/components/product-card.php).
 * WooCommerce's float grid is replaced by CSS Grid with selectors one step more specific than
 * WooCommerce's own (no !important).
 *
 * Layout
 *   <768      2 cards per row; filters in a drawer; [filters button | sort] above the grid
 *   768–1023  3 cards per row; filters in a drawer
 *   ≥1024     filters in a sidebar (inline start = right) | toolbar + 3 cards per row
 *
 * Contents
 *   1. Page frame and breadcrumb
 *   2. Title block
 *   3. Layout
 *   4. Toolbar (title, count, filters button, sort, view)
 *   5. Active filters
 *   6. Filters (sidebar / drawer)
 *   7. Product grid and archive card
 *   8. Pagination, empty state
 */

/* 1. Page frame ---------------------------------------------------------- */
.negar-shop-archive .site-main--woocommerce {
	padding-block-start: var(--space-4);
	background: var(--color-background);
}

.negar-shop-archive .woocommerce-breadcrumb {
	margin-block-end: var(--space-4);
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	line-height: var(--line-height-tight);
}

.negar-shop-archive.woocommerce .woocommerce-breadcrumb a {
	color: var(--color-text);
	font-weight: var(--font-weight-bold);
	text-decoration: none;
}

.negar-shop-archive.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--color-primary);
}

@media (min-width: 1024px) {
	.negar-shop-archive .site-main--woocommerce {
		padding-block-start: var(--space-5);
	}

	.negar-shop-archive .woocommerce-breadcrumb {
		font-size: var(--font-size-sm);
	}
}

/* 2. Title block --------------------------------------------------------- */
.shop-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	margin-block-end: var(--space-5);
}

.shop-hero__text {
	min-width: 0;
}

.shop-hero__title {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(1.3125rem, 1.05rem + 1.1vw, 1.875rem);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
}

.shop-hero__mark {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--color-accent);
}

.shop-hero__mark .negar-ornament {
	width: 26px;
	height: 26px;
}

.shop-hero__desc {
	margin-block-start: var(--space-1);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	line-height: var(--line-height-tight);
}

.shop-hero__desc > * {
	margin: 0;
}

.shop-hero__desc > * + * {
	margin-block-start: var(--space-1);
}

/* The heading divider (assets/images/negar-heading-divider.svg) under the title text. */
.shop-hero__divider {
	display: block;
	width: 120px;
	height: auto;
	margin-block-start: var(--space-2);
}

/* Category image (e.g. the floral illustration), with a thin gold rule before it. */
.shop-hero__art {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--space-4);
}

.shop-hero__art::before {
	content: "";
	width: 1px;
	height: 56px;
	background: var(--color-accent);
	opacity: 0.7;
}

.shop-hero__img {
	display: block;
	width: clamp(96px, 26vw, 136px);
	height: auto;
	object-fit: contain;
}

@media (min-width: 768px) {
	.shop-hero {
		margin-block-end: var(--space-7);
	}

	.shop-hero__desc {
		font-size: var(--font-size-md);
	}

	.shop-hero__mark .negar-ornament {
		width: 32px;
		height: 32px;
	}

	.shop-hero__divider {
		width: 150px;
	}

	.shop-hero__art {
		gap: var(--space-6);
	}

	.shop-hero__art::before {
		height: 84px;
	}

	.shop-hero__img {
		width: 210px;
	}
}

/* 3. Layout -------------------------------------------------------------- */
.shop-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.shop-main {
	min-width: 0;
}

@media (min-width: 1024px) {
	/* RTL: the first column (filters) is on the right. */
	.shop-layout {
		grid-template-columns: 300px minmax(0, 1fr);
		align-items: start;
		column-gap: 2rem;
	}
}

/* 4. Toolbar ------------------------------------------------------------- */
.shop-toolbar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin-block-end: var(--space-3);
}

/* Phones and tablets: the heading row is for screen readers only (the page title is above). */
.shop-toolbar__heading {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.shop-toolbar__title {
	margin: 0;
	color: var(--color-primary);
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
}

.shop-toolbar__count {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

.shop-toolbar__count::before {
	content: "";
	width: 2px;
	height: 1.5rem;
	border-radius: 2px;
	background: var(--color-accent);
}

.shop-toolbar__filters {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-width: 0;
	min-height: var(--control-h);
	padding: 0 var(--space-2);
	border: 1.5px solid var(--color-primary);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	box-shadow: none;
	color: var(--color-primary);
	font: inherit;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--transition), box-shadow var(--transition);
}

.shop-toolbar__filters:hover {
	background: var(--color-white);
	box-shadow: var(--shadow-sm);
	color: var(--color-primary);
}

.shop-toolbar__filters .negar-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.shop-toolbar__badge {
	display: inline-grid;
	place-items: center;
	min-width: 1.375rem;
	height: 1.375rem;
	padding-inline: 0.3rem;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-white);
	font-size: var(--font-size-xs);
	line-height: 1;
}

/* Sort: «مرتب‌سازی:» shown inside the field, before the chosen option. */
.shop-sort {
	position: relative;
	min-width: 0;
}

.shop-sort__label {
	position: absolute;
	z-index: 1;
	top: 50%;
	inset-inline-start: 0.625rem;
	color: var(--color-text);
	font-size: 0.8125rem;
	font-weight: var(--font-weight-bold);
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
}

.negar-shop-archive.woocommerce .shop-sort .woocommerce-ordering {
	float: none;
	margin: 0;
}

.negar-shop-archive.woocommerce .shop-sort .woocommerce-ordering::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: var(--space-3);
	width: 18px;
	height: 18px;
	background: var(--color-text);
	pointer-events: none;
	transform: translateY(-50%);
	-webkit-mask: url("../icons/chevron-down.svg") center / contain no-repeat;
	mask: url("../icons/chevron-down.svg") center / contain no-repeat;
}

@media (max-width: 1023px) {
	.negar-shop-archive.woocommerce .shop-sort .woocommerce-ordering::after {
		inset-inline-end: 0.5rem;
	}
}

.negar-shop-archive.woocommerce .shop-sort select.orderby {
	display: block;
	width: 100%;
	height: var(--control-h);
	min-height: 0;
	margin: 0;
	padding-block: 0;
	padding-inline: 4.625rem 1.75rem;
	overflow: hidden;
	border: 1px solid rgb(34 44 90 / 0.16);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	box-shadow: var(--shadow-xs);
	color: var(--color-text);
	font-size: 0.8125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.negar-shop-archive.woocommerce .shop-sort select.orderby:hover {
	border-color: rgb(34 44 90 / 0.32);
}

/* Grid / list view (shown by JavaScript, wide screens only). */
.shop-view {
	display: none;
}

@media (min-width: 768px) {
	.shop-toolbar {
		grid-template-columns: minmax(0, 15rem) minmax(0, 15rem);
		justify-content: space-between;
	}
}

@media (min-width: 1024px) {
	.shop-toolbar {
		display: flex;
		align-items: center;
		gap: var(--space-3);
		margin-block-end: var(--space-4);
	}

	.shop-toolbar__heading {
		position: static;
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		gap: var(--space-3);
		width: auto;
		height: auto;
		min-width: 0;
		overflow: visible;
		clip-path: none;
		white-space: normal;
	}

	.shop-toolbar__filters {
		display: none;
	}

	.shop-sort {
		flex: 0 0 13.5rem;
	}

	.negar-shop-archive.woocommerce .shop-sort select.orderby {
		height: 2.625rem;
		padding-inline: 5.25rem 2.5rem;
		font-size: var(--font-size-sm);
	}

	.shop-sort__label {
		inset-inline-start: var(--space-3);
		font-size: var(--font-size-sm);
	}

	.shop-view:not([hidden]) {
		display: flex;
		gap: var(--space-1);
	}

	.shop-view__button {
		display: grid;
		place-items: center;
		width: 2.625rem;
		height: 2.625rem;
		padding: 0;
		border: 0;
		border-radius: var(--radius-sm);
		background: transparent;
		box-shadow: none;
		color: var(--color-text-muted);
		cursor: pointer;
		transition: background-color var(--transition), color var(--transition);
	}

	.shop-view__button:hover {
		background: var(--color-white);
		box-shadow: none;
		color: var(--color-primary);
	}

	.shop-view__button[aria-pressed="true"] {
		background: var(--color-surface);
		color: var(--color-primary);
	}
}

/* 5. Active filters ------------------------------------------------------ */
.shop-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-2) var(--space-3);
	margin-block-end: var(--space-4);
}

.shop-active__label {
	display: none;
	color: var(--color-text);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
}

.shop-active__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.shop-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 2.125rem;
	padding: 0 var(--space-3);
	border-radius: var(--radius-xs);
	background: var(--color-surface);
	color: var(--color-text);
	font-size: var(--font-size-sm);
	line-height: 1;
	text-decoration: none;
	transition: background-color var(--transition), color var(--transition);
}

.shop-chip:hover {
	background: #dce2ec;
	color: var(--color-primary);
}

.shop-chip .negar-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	opacity: 0.7;
}

@media (min-width: 1024px) {
	.shop-active {
		justify-content: flex-start;
		margin-block-end: var(--space-5);
	}

	.shop-active__label {
		display: inline;
	}

	.shop-active__list {
		justify-content: flex-start;
	}
}

/* 6. Filters ------------------------------------------------------------- */
.shop-filters__form {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.shop-filters__head {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding-block-end: var(--space-3);
	border-block-end: 1px solid rgb(34 44 90 / 0.08);
}

.shop-filters__title {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	color: var(--color-text);
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-ui);
}

.shop-filters__title .negar-icon {
	flex: 0 0 auto;
	color: var(--color-primary);
}

.shop-filters__clear {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	color: #3a5a9a;
	font-size: var(--font-size-xs);
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.shop-filters__clear:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.shop-filters__close {
	display: grid;
	place-items: center;
	width: var(--icon-button);
	height: var(--icon-button);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--color-text);
	cursor: pointer;
}

.shop-filters__close:hover {
	background: var(--color-background);
	box-shadow: none;
	color: var(--color-primary);
}

.shop-filters__none {
	margin: var(--space-4) 0 0;
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

/* One group: collapsible title, options. */
.filter-group {
	border-block-end: 1px solid rgb(34 44 90 / 0.08);
}

.filter-group:last-child {
	border-block-end: 0;
}

.filter-group__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	padding-block: var(--space-4) var(--space-3);
	color: var(--color-text);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-ui);
	list-style: none;
	cursor: pointer;
}

.filter-group__title::-webkit-details-marker {
	display: none;
}

.filter-group__title .negar-icon {
	flex: 0 0 auto;
	color: var(--color-text-muted);
	transition: transform var(--transition);
}

.filter-group:not([open]) .filter-group__title .negar-icon {
	transform: rotate(90deg);
}

.filter-group__list {
	display: grid;
	gap: 0.125rem;
	margin: 0;
	padding: 0 0 var(--space-3);
	list-style: none;
}

/* «نمایش بیشتر»: extra options are hidden only once JavaScript can show them again. */
.js .filter-group__list:not(.is-expanded) .is-extra {
	display: none;
}

.filter-check {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 2rem;
	color: var(--color-text);
	font-size: var(--font-size-sm);
	line-height: var(--line-height-tight);
	cursor: pointer;
}

.filter-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.filter-check__box {
	position: relative;
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
	border: 1.5px solid #9aa3b5;
	border-radius: 4px;
	background: var(--color-white);
	transition: background-color var(--transition), border-color var(--transition);
}

.filter-check:hover .filter-check__box {
	border-color: var(--color-primary);
}

.filter-check input:checked + .filter-check__box {
	border-color: var(--color-primary);
	background: var(--color-primary);
}

.filter-check input:checked + .filter-check__box::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--color-white);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.filter-check input:focus-visible + .filter-check__box {
	box-shadow: var(--focus-ring);
}

.filter-group__more {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	margin: calc(-1 * var(--space-2)) 0 var(--space-3);
	padding: var(--space-1) 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #3a5a9a;
	font: inherit;
	font-size: var(--font-size-xs);
	cursor: pointer;
}

.filter-group__more:hover {
	background: none;
	box-shadow: none;
	color: var(--color-primary);
}

.filter-group__more[aria-expanded="true"] .negar-icon {
	transform: rotate(180deg);
}

/* Range (knot density): two native range inputs on one track. */
.filter-range {
	--thumb: 1.125rem;

	padding: 0 0 var(--space-4);
}

.filter-range__value {
	margin: 0 0 var(--space-2);
	color: var(--color-text);
	font-size: var(--font-size-sm);
	text-align: center;
}

.filter-range__track {
	position: relative;
	height: var(--thumb);
	margin-inline: calc(var(--thumb) / 2);
}

/* Track and selected part (direction: the slider runs right-to-left in RTL). */
.filter-range__track::before,
.filter-range__track::after {
	content: "";
	position: absolute;
	top: 50%;
	height: 3px;
	border-radius: 3px;
	transform: translateY(-50%);
}

.filter-range__track::before {
	inset-inline: 0;
	background: var(--color-surface);
}

.filter-range__track::after {
	inset-inline-start: calc(var(--from) * 100%);
	inset-inline-end: calc((1 - var(--to)) * 100%);
	background: var(--color-primary);
}

.filter-range input[type="range"] {
	position: absolute;
	z-index: 1;
	inset: 0 calc(var(--thumb) / -2);
	width: calc(100% + var(--thumb));
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
}

.filter-range input[type="range"]::-webkit-slider-runnable-track {
	height: 100%;
	background: none;
}

.filter-range input[type="range"]::-moz-range-track {
	height: 100%;
	background: none;
}

.filter-range input[type="range"]::-webkit-slider-thumb {
	width: var(--thumb);
	height: var(--thumb);
	border: 2px solid var(--color-primary);
	border-radius: 50%;
	background: var(--color-white);
	box-shadow: var(--shadow-xs);
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
}

.filter-range input[type="range"]::-moz-range-thumb {
	box-sizing: border-box;
	width: var(--thumb);
	height: var(--thumb);
	border: 2px solid var(--color-primary);
	border-radius: 50%;
	background: var(--color-white);
	cursor: grab;
	pointer-events: auto;
}

.filter-range input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: var(--focus-ring);
}

.filter-range input[type="range"]:focus-visible::-moz-range-thumb {
	box-shadow: var(--focus-ring);
}

.shop-filters__foot {
	padding-block-start: var(--space-4);
}

/* One step above WooCommerce's `.woocommerce button.button` (woocommerce.css). */
body.negar-shop-archive .shop-filters button.shop-filters__apply {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	width: 100%;
	padding-block: 0;
	line-height: 1;
	min-height: 3rem;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	color: var(--color-white);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
}

body.negar-shop-archive .shop-filters button.shop-filters__apply:hover {
	background: #2b3770;
	color: var(--color-white);
}

.shop-filters__apply .negar-icon {
	width: 20px;
	height: 20px;
}

/* Sidebar (≥1024): a white card that scrolls with the page (a sticky card taller than the
   screen would hide its last groups and the apply button). */
@media (min-width: 1024px) {
	.shop-filters {
		padding: var(--space-5);
		border-radius: var(--radius-md);
		background: var(--color-white);
		box-shadow: var(--shadow-card);
	}

	.shop-filters__close,
	.shop-filters-backdrop {
		display: none;
	}
}

/* Drawer (<1024): slides in from the inline start; the apply button stays in view. */
@media (max-width: 1023px) {
	.shop-filters {
		position: fixed;
		z-index: 1000;
		inset-block: 0;
		inset-inline-start: 0;
		display: flex;
		width: min(22rem, 88vw);
		background: var(--color-white);
		box-shadow: var(--shadow-md);
		visibility: hidden;
		transform: translateX(100%);
		transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
	}

	[dir="ltr"] .shop-filters {
		transform: translateX(-100%);
	}

	.shop-filters.is-open {
		visibility: visible;
		transform: none;
		transition: transform 0.3s var(--ease-out), visibility 0s;
	}

	.shop-filters__form {
		flex: 1 1 auto;
		min-height: 0;
		width: 100%;
	}

	.shop-filters__head {
		flex: 0 0 auto;
		padding: var(--space-3) var(--space-4);
	}

	.shop-filters__body {
		flex: 1 1 auto;
		min-height: 0;
		padding-inline: var(--space-4);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.shop-filters__foot {
		flex: 0 0 auto;
		padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
		border-block-start: 1px solid rgb(34 44 90 / 0.08);
		background: var(--color-white);
	}

	.shop-filters-backdrop:not([hidden]) {
		position: fixed;
		z-index: 999;
		inset: 0;
		background: rgb(21 24 31 / 0.4);
		animation: shop-fade 0.2s ease;
	}

	.has-filters-open {
		overflow: hidden;
	}
}

@keyframes shop-fade {
	from {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shop-filters,
	.shop-filters.is-open {
		transition: none;
	}
}

/* 7. Product grid -------------------------------------------------------- */
body.negar-shop-archive .shop-main ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin: 0;
	padding: 0;
}

body.negar-shop-archive .shop-main ul.products::before,
body.negar-shop-archive .shop-main ul.products::after {
	content: none;
	display: none;
}

body.negar-shop-archive .shop-main ul.products li.product {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	text-align: start;
}

@media (min-width: 768px) {
	body.negar-shop-archive .shop-main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-5) 1.25rem;
	}
}

/* Product card: the shared component (components.css «3. Product card»). */

/* List view (≥1024, chosen with the view buttons). */
@media (min-width: 1024px) {
	body.negar-shop-archive .shop-main ul.products.is-list {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-4);
	}

	.is-list .product-card {
		display: grid;
		grid-template-columns: 13rem minmax(0, 1fr);
		gap: var(--space-5);
		align-items: center;
	}

	.is-list .product-card .product-card__body {
		align-items: flex-start;
		padding: var(--space-3) 0 var(--space-3) var(--space-3);
		text-align: start;
	}

	.is-list .product-card__meta {
		justify-content: flex-start;
	}

	.is-list .product-card .product-card__price {
		margin-block-start: var(--space-2);
	}

	.is-list .product-card__cta {
		align-self: flex-start;
		width: auto;
		padding-inline: var(--space-5);
	}
}

/* 8. Pagination ---------------------------------------------------------- */
body.negar-shop-archive .shop-main nav.woocommerce-pagination {
	margin-block-start: var(--space-6);
	text-align: center;
}

body.negar-shop-archive .shop-main nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	margin: 0;
	border: 0;
	white-space: normal;
}

body.negar-shop-archive .shop-main nav.woocommerce-pagination ul.page-numbers li {
	float: none;
	border: 0;
	overflow: visible;
}

body.negar-shop-archive .shop-main nav.woocommerce-pagination ul.page-numbers li .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 var(--space-2);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
	color: var(--color-text);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	text-decoration: none;
	transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

body.negar-shop-archive .shop-main nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
	background: var(--color-white);
	box-shadow: var(--shadow-card-hover);
	color: var(--color-primary);
}

body.negar-shop-archive .shop-main nav.woocommerce-pagination ul.page-numbers li span.current {
	background: var(--color-primary);
	box-shadow: none;
	color: var(--color-white);
}

body.negar-shop-archive .shop-main nav.woocommerce-pagination ul.page-numbers li span.dots {
	background: none;
	box-shadow: none;
}

/* Empty state */
.shop-empty {
	display: grid;
	justify-items: center;
	gap: var(--space-2);
	padding: var(--space-7) var(--space-4);
	border-radius: var(--radius-md);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
	text-align: center;
}

.shop-empty__mark {
	color: var(--color-accent);
}

.shop-empty__title {
	margin: 0;
	color: var(--color-primary);
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-bold);
}

.shop-empty__text {
	margin: 0 0 var(--space-2);
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}
