/**
 * NextShop — صفحه فروشگاه / آرشیو محصول (Sharp + Dark)
 */

.nextshop-shop-page .nextshop-wc-wrap--fullwidth {
	max-width: none;
	width: 100%;
	margin: 0;
	padding-inline: clamp(1rem, 3vw, 2.5rem);
	box-sizing: border-box;
}

.nextshop-shop-page .nextshop-shop-layout {
	--shop-card: var(--ns-surface);
	--shop-border: var(--ns-border);
	--shop-bg-muted: var(--ns-input-bg);
	--shop-bg-subtle: var(--ns-bg);
	--shop-text: var(--ns-text);
	--shop-text-muted: var(--ns-secondary);
	--shop-radius: 0;
}

/* ── Sharp geometry ── */
.nextshop-shop-page .woocommerce ul.products li.product,
.nextshop-shop-page .nextshop-shop-sidebar .widget,
.nextshop-shop-page .nextshop-filter-form--advanced,
.nextshop-shop-page .nextshop-shop-toolbar,
.nextshop-shop-page .nextshop-filter-search,
.nextshop-shop-page .nextshop-filter-cat,
.nextshop-shop-page .nextshop-filter-select-wrap .nextshop-filter-select,
.nextshop-shop-page .nextshop-shop-sidebar .woocommerce-product-search .search-field,
.nextshop-shop-page .nextshop-shop-sidebar .woocommerce-product-search button,
.nextshop-shop-page nav.woocommerce-pagination ul,
.nextshop-shop-page .nextshop-shop-product-badge,
.nextshop-shop-page .nextshop-shop-product-colors__btn,
.nextshop-shop-page .nextshop-price-slider__unit,
.nextshop-shop-page .woocommerce ul.products li.product img {
	border-radius: 0 !important;
}

/* ── Product cards ── */
.nextshop-shop-page .woocommerce ul.products li.product,
.nextshop-shop-page .nextshop-shop-products ul.products li.product {
	background: var(--shop-card);
	border: 1px solid var(--shop-border);
	box-shadow: none;
	padding: 1rem;
	transition: border-color 0.2s ease;
}

.nextshop-shop-page .woocommerce ul.products li.product:hover {
	box-shadow: none;
	transform: none;
	border-color: var(--ns-primary);
}

.nextshop-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
.nextshop-shop-page .nextshop-shop-products .woocommerce-loop-product__title,
.nextshop-shop-page .nextshop-shop-products .woocommerce-loop-product__title a,
.nextshop-shop-page .woocommerce-loop-product__title,
.nextshop-shop-page .woocommerce-loop-product__title a {
	color: var(--shop-text) !important;
}

.nextshop-shop-page .woocommerce ul.products li.product .price,
.nextshop-shop-page .nextshop-shop-products .price {
	color: var(--ns-accent);
}

.nextshop-shop-page .woocommerce ul.products li.product .price del,
.nextshop-shop-page .nextshop-shop-products .price del {
	color: var(--shop-text-muted);
}

.nextshop-shop-page .woocommerce ul.products li.product .button,
.nextshop-shop-page .nextshop-shop-products ul.products li.product .button {
	background: transparent;
	color: var(--shop-text);
	border: 1px solid var(--shop-border);
	box-shadow: none;
}

.nextshop-shop-page .woocommerce ul.products li.product .button:hover,
.nextshop-shop-page .nextshop-shop-products ul.products li.product .button:hover {
	background: var(--ns-primary);
	border-color: var(--ns-primary);
	color: #fff;
}

/* ── Page title (hidden on shop archives) ── */
.nextshop-shop-page .woocommerce-products-header__title.page-title {
	display: none;
}

/* ── Toolbar ── */

.nextshop-shop-page .nextshop-shop-toolbar {
	background: var(--shop-card);
	border: 1px solid var(--shop-border);
	box-shadow: none;
}

.nextshop-shop-page .nextshop-shop-toolbar p.woocommerce-result-count {
	color: var(--shop-text-muted);
}

.nextshop-shop-page .nextshop-shop-toolbar select.orderby {
	background: var(--shop-bg-muted);
	border-color: var(--shop-border);
	color: var(--shop-text);
}

/* ── Sidebar & filter ── */
.nextshop-shop-page .nextshop-shop-sidebar .widget,
.nextshop-shop-page .nextshop-filter-form--advanced {
	background: var(--shop-card);
	border: 1px solid var(--shop-border);
	box-shadow: none;
}

.nextshop-shop-page .nextshop-shop-sidebar .widget-title,
.nextshop-shop-page .nextshop-filter-form--advanced .nextshop-filter-head__title,
.nextshop-shop-page .nextshop-filter-form--advanced .nextshop-filter-section__title {
	color: var(--shop-text);
}

.nextshop-shop-page .nextshop-shop-sidebar ul li {
	border-bottom-color: var(--shop-border);
}

.nextshop-shop-page .nextshop-shop-sidebar ul li a {
	color: var(--shop-text-muted);
}

.nextshop-shop-page .nextshop-shop-sidebar ul li a:hover {
	color: var(--shop-text);
}

.nextshop-shop-page .nextshop-shop-sidebar .count {
	color: var(--shop-text-muted);
}

/* ── Filter tokens (light / dark via --shop-*) ── */
.nextshop-shop-page .nextshop-filter-form--advanced {
	--filter-surface: var(--shop-card);
	--filter-surface-muted: var(--shop-bg-muted);
	--filter-surface-subtle: var(--shop-bg-subtle);
	--filter-surface-hover: var(--shop-bg-muted);
	--filter-border: var(--shop-border);
	--filter-border-light: var(--shop-border);
	--filter-text: var(--shop-text);
	--filter-text-heading: var(--shop-text);
	--filter-text-secondary: var(--shop-text-muted);
	--filter-text-muted: var(--shop-text-muted);
	--filter-text-placeholder: var(--shop-text-muted);
	--filter-icon: var(--shop-text-muted);
	--filter-toggle-bg: var(--shop-bg-muted);
	--filter-toggle-border: var(--shop-border);
	--filter-check-bg: var(--shop-bg-muted);
	--filter-check-border: var(--shop-border);
	--filter-cat-count-bg: var(--shop-border);
	--filter-cat-count-text: var(--shop-text-muted);
	--filter-rail: color-mix(in srgb, var(--shop-border) 65%, #ffffff 35%);
	--filter-slider-fill-start: color-mix(in srgb, var(--ns-primary) 55%, transparent);
	--filter-slider-fill-end: var(--ns-primary);
	--filter-slider-thumb-ring: color-mix(in srgb, var(--ns-primary) 30%, transparent);
	--filter-price-value: var(--shop-text);
	--filter-price-value-max: var(--ns-accent, var(--ns-primary));
	--filter-price-sep: var(--shop-text-muted);
	--filter-price-unit: var(--shop-text-muted);
	--filter-drawer-bg: var(--shop-bg-subtle);
	--filter-drawer-close-bg: var(--shop-bg-muted);
	--filter-shadow: none;
}

.nextshop-shop-page .nextshop-filter-cat:hover:not(.is-active) {
	color: var(--shop-text);
}

.nextshop-shop-page .nextshop-shop-sidebar .woocommerce-product-search .search-field {
	background: var(--shop-bg-muted);
	border-color: var(--shop-border);
	color: var(--shop-text);
}

.nextshop-shop-page .nextshop-shop-sidebar .woocommerce-product-search .search-field:focus {
	background: var(--shop-card);
	box-shadow: none;
}

/* ── Pagination ── */
.nextshop-shop-page nav.woocommerce-pagination ul {
	border-color: var(--shop-border);
}

.nextshop-shop-page nav.woocommerce-pagination ul li {
	border-color: var(--shop-border);
}

.nextshop-shop-page nav.woocommerce-pagination ul li a,
.nextshop-shop-page nav.woocommerce-pagination ul li span {
	background: var(--shop-card);
	color: var(--shop-text-muted);
}

.nextshop-shop-page nav.woocommerce-pagination ul li a:hover {
	background: var(--shop-bg-muted);
	color: var(--shop-text);
}

.nextshop-shop-page nav.woocommerce-pagination ul li span.current {
	background: var(--ns-primary);
	color: #fff;
}

/* ── Color swatches on cards ── */
.nextshop-shop-page .nextshop-shop-product-colors__btn {
	background: var(--shop-card);
	border-color: var(--shop-border);
}

.nextshop-shop-page .nextshop-shop-product-colors__btn.is-active {
	border-color: var(--ns-primary);
}

/* ── Brand archive ── */
.nextshop-shop-page .nextshop-brand-card {
	background: var(--shop-card);
	border-color: var(--shop-border);
	color: var(--shop-text);
	box-shadow: none;
}

.nextshop-shop-page .nextshop-brand-archive-header,
.nextshop-shop-page .term-description {
	color: var(--shop-text-muted);
}

/* ================================================================
 * DARK MODE
 * ================================================================ */
body.nextshop-color-dark.nextshop-shop-page {
	background: #0a0a0a;
	color: #ffffff;
}

body.nextshop-color-dark.nextshop-shop-page .nextshop-shop-layout {
	--shop-card: #141414;
	--shop-border: #2a2a2a;
	--shop-bg-muted: #1a1a1a;
	--shop-bg-subtle: #101010;
	--shop-text: #ffffff;
	--shop-text-muted: #a8a8a8;
}

body.nextshop-color-dark.nextshop-shop-page .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.nextshop-color-dark.nextshop-shop-page .nextshop-shop-products .woocommerce-loop-product__title,
body.nextshop-color-dark.nextshop-shop-page .nextshop-shop-products .woocommerce-loop-product__title a,
body.nextshop-color-dark.nextshop-shop-page .woocommerce-loop-product__title,
body.nextshop-color-dark.nextshop-shop-page .woocommerce-loop-product__title a {
	color: #ffffff !important;
}

body.nextshop-color-dark.nextshop-shop-page .nextshop-filter-fab {
	border-radius: 0;
	box-shadow: none;
}

body.nextshop-color-dark.nextshop-shop-page .nextshop-filter-form--advanced .select2-container--default .select2-selection--multiple,
body.nextshop-color-dark.nextshop-shop-page .nextshop-filter-form--advanced .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	color: var(--shop-text);
}

@media (max-width: 991px) {
	body.nextshop-color-dark.nextshop-filter-open.nextshop-shop-page .nextshop-shop-layout > .nextshop-filter-sidebar {
		background: var(--shop-bg-subtle);
	}
}
