/**
 * ووکامرس — نِکست‌شاپ
 */

.woocommerce .nextshop-product-grid {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body:not(.nextshop-shop-page) .woocommerce .nextshop-product-grid ul.products,
body:not(.nextshop-shop-page) .woocommerce .nextshop-shop-products ul.products {
	display: grid;
	gap: 1.25rem;
	width: 100%;
	max-width: 100%;
	grid-template-columns: repeat(var(--ns-shop-cols-desktop, 3), minmax(0, 1fr));
}

@media (max-width: 992px) {
	body:not(.nextshop-shop-page) .woocommerce .nextshop-product-grid ul.products,
	body:not(.nextshop-shop-page) .woocommerce .nextshop-shop-products ul.products,
	body:not(.nextshop-shop-page) .nextshop-shop-layout--has-filter .nextshop-shop-content ul.products {
		grid-template-columns: repeat(var(--ns-shop-cols-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 576px) {
	body:not(.nextshop-shop-page) .woocommerce .nextshop-product-grid ul.products,
	body:not(.nextshop-shop-page) .woocommerce .nextshop-shop-products ul.products,
	body:not(.nextshop-shop-page) .nextshop-shop-layout--has-filter .nextshop-shop-content ul.products {
		grid-template-columns: repeat(var(--ns-shop-cols-mobile, 2), minmax(0, 1fr));
	}
}

/* شبکه برندها */
.nextshop-brands-grid {
	display: grid;
	gap: 1rem;
	margin: 1.5rem 0;
}

.nextshop-brands-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.nextshop-brands-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.nextshop-brands-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.nextshop-brands-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
.nextshop-brands-grid.columns-6 { grid-template-columns: repeat(6, 1fr); }

.nextshop-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s;
}

.nextshop-brand-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nextshop-brand-card img {
	max-width: 80px;
	max-height: 48px;
	object-fit: contain;
	margin-bottom: 0.5rem;
}

.nextshop-brand-archive-header {
	text-align: center;
	margin: 2rem 0;
}

.nextshop-brand-archive-logo {
	max-height: 80px;
	width: auto;
	margin-bottom: 1rem;
}

/* =========================================
 * Single Product — modern layout
 * ========================================= */

.nextshop-wc-single-product.nextshop-container {
	--sp-accent: var(--ns-primary);
	--sp-accent-hover: var(--ns-primary-dark);
	--sp-text: var(--ns-text);
	--sp-muted: var(--ns-secondary);
	--sp-border: var(--ns-border);
	--sp-bg: var(--ns-body-bg);
	--sp-card: var(--ns-surface);
	--sp-bg-muted: var(--ns-input-bg);
	--sp-bg-subtle: var(--ns-bg);
	--sp-text-secondary: var(--ns-secondary);
	--sp-tabs-track: var(--ns-bg);
	--sp-tabs-active-bg: var(--ns-surface);
	--sp-gallery-bg: linear-gradient(160deg, color-mix(in srgb, var(--ns-bg) 70%, var(--ns-surface)) 0%, var(--ns-bg) 100%);
	--sp-rating-pill-bg: var(--ns-bg);
	--sp-zoom-bg: color-mix(in srgb, var(--ns-surface) 94%, transparent);
	--sp-zoom-color: var(--ns-text);
	--sp-radius: 0;
	--sp-radius-sm: 0;
	--sp-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	--sp-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ns-container-width);
	margin-inline: auto;
	padding: 1.25rem 1rem 3rem;
}

.nextshop-wc-single-product .nextshop-single-product-article,
.nextshop-wc-single-product .nextshop-single-product-sections-wrap,
.nextshop-wc-single-product .nextshop-single-product-trust {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.nextshop-wc-single-product .woocommerce div.product {
	width: 100%;
	max-width: 100%;
	float: none;
	clear: both;
	margin: 0;
}

body.single-product {
	background: var(--ns-body-bg);
}

.nextshop-wc-single-product .nextshop-single-product-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0 1rem;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.nextshop-breadcrumb {
	flex: 1;
	min-width: 0;
}

.nextshop-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
	color: var(--sp-muted);
}

.nextshop-breadcrumb__item {
	display: inline-flex;
	align-items: center;
}

.nextshop-breadcrumb__item:not(:last-child)::after {
	content: '/';
	margin-inline-start: 0.35rem;
	color: var(--ns-border);
}

.nextshop-breadcrumb__item a {
	color: var(--sp-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.nextshop-breadcrumb__item a:hover {
	color: var(--sp-accent);
}

.nextshop-breadcrumb__item.is-current span {
	color: var(--sp-text);
	font-weight: 600;
}

.nextshop-single-product-brand-icons {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.nextshop-brand-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 6px;
	border: 1px solid var(--ns-border);
	border-radius: 0;
	background: var(--ns-surface);
	text-decoration: none;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.nextshop-brand-icon-link:hover {
	border-color: var(--sp-accent);
	box-shadow: 0 4px 12px rgba(239, 57, 78, 0.18);
}

.nextshop-brand-icon-link img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.nextshop-brand-icon-fallback {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--sp-text);
	text-align: center;
	line-height: 1.2;
}

.nextshop-single-product-article {
	margin: 0;
}

.nextshop-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
}

.nextshop-wc-single-product .nextshop-single-product-sections-wrap {
	width: 100%;
	max-width: 100%;
}

/* Gallery */
.nextshop-product-gallery-wrapper {
	min-width: 0;
	position: sticky;
	top: calc(80px + 1rem);
}

.nextshop-product-gallery {
	position: relative;
	background: var(--sp-card);
	border-radius: var(--sp-radius);
	border: 1px solid var(--sp-border);
	overflow: hidden;
	width: 100%;
	box-shadow: var(--sp-shadow);
}

.nextshop-gallery-main {
	width: 100%;
	aspect-ratio: 1;
	position: relative;
	background: var(--sp-gallery-bg);
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
	outline: none;
}

.nextshop-gallery-track {
	display: flex;
	width: 100%;
	height: 100%;
	will-change: transform;
	transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nextshop-gallery-main.is-dragging {
	cursor: grabbing;
}

.nextshop-gallery-main.is-dragging .nextshop-gallery-track {
	transition: none;
}

.nextshop-gallery-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.nextshop-gallery-preview {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sp-gallery-bg);
}

.nextshop-gallery-preview[hidden] {
	display: none !important;
}

.nextshop-gallery-preview__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.nextshop-gallery-zoom {
	position: absolute;
	bottom: 12px;
	inset-inline-end: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: var(--sp-zoom-bg);
	color: var(--sp-zoom-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nextshop-gallery-zoom:hover {
	background: var(--sp-card);
	color: var(--sp-accent);
	transform: scale(1.05);
}

.nextshop-gallery-image,
.nextshop-gallery-video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

.nextshop-gallery-image {
	cursor: zoom-in;
}

.nextshop-gallery-image.is-hidden,
.nextshop-gallery-video[hidden] {
	display: none !important;
}

.nextshop-gallery-video {
	cursor: pointer;
	background: #000;
}

.nextshop-gallery-zoom.is-hidden {
	display: none !important;
}

/* Hover zoom (desktop) */
@media (min-width: 1025px) {
	.has-gallery-hover-zoom .nextshop-product-summary-wrapper {
		position: relative;
	}

	.has-gallery-hover-zoom .nextshop-gallery-hover-zoom-lens {
		position: absolute;
		z-index: 5;
		pointer-events: none;
		border: 1px solid rgba(0, 0, 0, 0.12);
		background: rgba(255, 255, 255, 0.28);
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
	}

	.has-gallery-hover-zoom .nextshop-gallery-hover-zoom-lens[hidden] {
		display: none !important;
	}

	.has-gallery-hover-zoom .nextshop-gallery-main.is-hover-zooming {
		cursor: crosshair;
	}

	.has-gallery-hover-zoom .nextshop-gallery-main.is-hover-zooming .nextshop-gallery-image {
		cursor: crosshair;
	}

	.has-gallery-hover-zoom .nextshop-gallery-hover-zoom-pane {
		position: absolute;
		top: 0;
		inset-inline-start: 0;
		z-index: 25;
		width: var(--ns-hover-zoom-pane-size, 100%);
		height: var(--ns-hover-zoom-pane-size, auto);
		aspect-ratio: 1 / 1;
		max-width: 100%;
		pointer-events: none;
		background-color: var(--sp-gallery-bg, #f8f8f8);
		background-repeat: no-repeat;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.15s ease, visibility 0.15s ease;
		border: 1px solid var(--sp-border, #e5e5e5);
	}

	.has-gallery-hover-zoom .nextshop-gallery-hover-zoom-pane.is-visible {
		opacity: 1;
		visibility: visible;
	}

	.has-gallery-hover-zoom .nextshop-gallery-hover-zoom-pane[hidden]:not(.is-visible) {
		display: none !important;
	}
}

.nextshop-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: var(--sp-zoom-bg);
	color: var(--sp-zoom-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}

.nextshop-gallery-nav:hover {
	background: var(--sp-card);
	color: var(--sp-accent);
	transform: translateY(-50%) scale(1.05);
}

.nextshop-gallery-nav--prev {
	inset-inline-start: 12px;
}

.nextshop-gallery-nav--next {
	inset-inline-end: 12px;
}

[dir='rtl'] .nextshop-gallery-nav svg {
	transform: scaleX(-1);
}

/* Thumbnails */
.nextshop-gallery-thumbs {
	display: flex;
	gap: 0.65rem;
	padding: 1rem 1.15rem 1.15rem;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.nextshop-gallery-thumbs::-webkit-scrollbar {
	height: 4px;
}

.nextshop-gallery-thumbs::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.nextshop-gallery-thumb {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border: 2px solid var(--sp-border);
	border-radius: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sp-card);
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
	overflow: hidden;
	padding: 0;
	text-decoration: none;
}

.nextshop-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nextshop-gallery-thumb:hover {
	border-color: #94a3b8;
	transform: translateY(-1px);
}

.nextshop-gallery-thumb.active {
	border-color: var(--sp-accent);
	box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.12);
}

.nextshop-gallery-thumb {
	position: relative;
}

.nextshop-gallery-thumb--video .nextshop-gallery-thumb-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	pointer-events: none;
}

.nextshop-gallery-thumb-video-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 48px;
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Gallery lightbox / zoom */
body.nextshop-gallery-lightbox-open {
	overflow: hidden;
	touch-action: none;
}

body.nextshop-gallery-lightbox-open .nextshop-site-header,
body.nextshop-gallery-lightbox-open .nextshop-mobile-bottom-nav,
body.nextshop-gallery-lightbox-open .nextshop-product-buybox {
	z-index: auto;
}

.nextshop-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 250000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.94);
	padding: max(72px, calc(80px + env(safe-area-inset-top))) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
	isolation: isolate;
}

.nextshop-gallery-lightbox[hidden] {
	display: none !important;
}

.nextshop-gallery-lightbox__close {
	position: absolute;
	top: max(12px, env(safe-area-inset-top));
	inset-inline-end: max(12px, env(safe-area-inset-right));
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
}

.nextshop-gallery-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.nextshop-gallery-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.nextshop-gallery-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

.nextshop-gallery-lightbox__prev {
	inset-inline-start: max(12px, env(safe-area-inset-left));
}

.nextshop-gallery-lightbox__next {
	inset-inline-end: max(12px, env(safe-area-inset-right));
}

.nextshop-gallery-lightbox__counter {
	position: absolute;
	bottom: max(16px, env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.nextshop-gallery-lightbox__viewport {
	width: 100%;
	height: 100%;
	max-height: calc(100dvh - 96px);
	overflow: hidden;
	touch-action: none;
	position: relative;
}

.nextshop-gallery-lightbox__track {
	display: flex;
	width: 100%;
	height: 100%;
	will-change: transform;
	transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nextshop-gallery-lightbox__viewport.is-dragging .nextshop-gallery-lightbox__track {
	transition: none;
}

.nextshop-gallery-lightbox__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.nextshop-gallery-lightbox__preview {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nextshop-gallery-lightbox__track[hidden] {
	display: none !important;
}

.nextshop-gallery-lightbox__viewport.is-dragging {
	cursor: grabbing;
}

.nextshop-gallery-lightbox__preview[hidden] {
	display: none !important;
}

.nextshop-gallery-lightbox__preview-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transform-origin: center center;
	transition: transform 0.05s linear;
	user-select: none;
	-webkit-user-drag: none;
}

.nextshop-gallery-lightbox__image,
.nextshop-gallery-lightbox__video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.nextshop-gallery-lightbox__image {
	transform-origin: center center;
	transition: transform 0.05s linear;
	user-select: none;
	-webkit-user-drag: none;
}

.nextshop-gallery-lightbox__video {
	background: #000;
	pointer-events: auto;
}

.nextshop-gallery-lightbox__image[hidden],
.nextshop-gallery-lightbox__video[hidden] {
	display: none !important;
}

@media (max-width: 768px) {
	.nextshop-gallery-lightbox__nav {
		width: 40px;
		height: 40px;
	}

	.nextshop-gallery-lightbox__prev {
		inset-inline-start: max(8px, env(safe-area-inset-left));
	}

	.nextshop-gallery-lightbox__next {
		inset-inline-end: max(8px, env(safe-area-inset-right));
	}
}

[dir='rtl'] .nextshop-gallery-lightbox__nav svg {
	transform: scaleX(-1);
}

/* Summary */
.nextshop-product-summary-wrapper {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.woocommerce div.product div.images {
	display: none;
}

.nextshop-wc-single-product .woocommerce div.product div.summary {
	width: 100%;
	float: none;
	margin: 0;
	padding: 0;
	display: contents;
}

.nextshop-product-title,
.nextshop-wc-single-product .product_title {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	margin: 0;
	font-weight: 800;
	line-height: 1.45;
	color: var(--sp-text);
	letter-spacing: -0.02em;
}

.nextshop-product-rating,
.nextshop-wc-single-product .woocommerce-product-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin: 0;
}

.nextshop-wc-single-product .star-rating {
	color: #f59e0b;
	font-size: 0.95rem;
}

.nextshop-rating-link {
	font-size: 0.875rem;
	color: var(--sp-muted);
	text-decoration: none;
	padding: 0.2rem 0.65rem;
	background: var(--sp-rating-pill-bg);
	border-radius: 999px;
	transition: color 0.2s, background 0.2s;
}

.nextshop-rating-link:hover {
	color: var(--sp-accent);
	background: rgba(239, 57, 78, 0.08);
}

/* Buy box */
.nextshop-product-buybox,
.nextshop-buy-box {
	background: var(--sp-card);
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	padding: 1.35rem 1.5rem;
	box-shadow: var(--sp-shadow);
}

.nextshop-wc-single-product .nextshop-product-buybox .price,
.nextshop-wc-single-product .nextshop-product-price .price {
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 800;
	color: var(--sp-accent);
	margin: 0 0 1.25rem;
	line-height: 1.3;
	display: block;
}

.nextshop-wc-single-product .price del {
	font-size: 0.95rem;
	color: var(--sp-muted);
	font-weight: 500;
	opacity: 0.85;
}

.nextshop-wc-single-product .price ins {
	text-decoration: none;
	font-weight: 800;
}

/* طرح‌های اقساط — صفحه تک‌محصول */
.nextshop-product-installments {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(34, 113, 177, 0.22);
	border-radius: var(--sp-radius, 12px);
	background: linear-gradient(145deg, #f0f7ff 0%, #fafcff 55%, #ffffff 100%);
	box-shadow: 0 4px 18px rgba(34, 113, 177, 0.08);
}

.nextshop-product-installments__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px dashed rgba(34, 113, 177, 0.2);
}

.nextshop-product-installments__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #2271b1;
	color: #fff;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.nextshop-product-installments__heading {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.nextshop-product-installments__title {
	font-size: 1rem;
	font-weight: 800;
	color: #1d2327;
}

.nextshop-product-installments__subtitle {
	font-size: 0.82rem;
	color: var(--sp-muted, #64748b);
}

.nextshop-product-installments__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.nextshop-product-installments__plan {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.85rem;
	border-radius: var(--sp-radius-sm, 8px);
	background: #fff;
	border: 1px solid rgba(34, 113, 177, 0.12);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nextshop-product-installments__plan:hover {
	border-color: rgba(34, 113, 177, 0.35);
	box-shadow: 0 2px 10px rgba(34, 113, 177, 0.1);
}

.nextshop-product-installments__plan-label {
	font-size: 0.95rem;
	font-weight: 700;
	color: #2271b1;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.nextshop-product-installments__extra-badge {
	font-size: 0.72rem;
	font-weight: 700;
	color: #135e96;
	background: #e8f2fc;
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
}

.nextshop-product-installments__plan-amount {
	text-align: left;
	font-size: 0.88rem;
	color: var(--sp-muted, #64748b);
}

.nextshop-product-installments__each-label {
	margin-left: 0.35rem;
}

.nextshop-product-installments__each-value,
.nextshop-product-installments__first-value {
	display: inline;
	font-size: 1rem;
	font-weight: 800;
	color: #1d2327;
}

.nextshop-product-installments__split {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.2rem;
}

.nextshop-product-installments__first,
.nextshop-product-installments__each {
	display: block;
}

.nextshop-product-installments__note {
	margin: 0.65rem 0 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--sp-muted, #64748b);
}

.nextshop-product-installments__note--profit {
	margin-top: 0.45rem;
}

@media (max-width: 480px) {
	.nextshop-product-installments__plan {
		flex-direction: column;
		align-items: flex-start;
	}

	.nextshop-product-installments__plan-amount,
	.nextshop-product-installments__split {
		align-items: flex-start;
		text-align: right;
		width: 100%;
	}
}

/* فروش عمده — صفحه تک‌محصول */
.nextshop-product-wholesale {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(22, 163, 74, 0.28);
	border-radius: var(--sp-radius, 12px);
	background: linear-gradient(145deg, #ecfdf3 0%, #f7fef9 55%, #ffffff 100%);
	box-shadow: 0 4px 18px rgba(22, 163, 74, 0.1);
}

.nextshop-product-wholesale__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px dashed rgba(22, 163, 74, 0.22);
}

.nextshop-product-wholesale__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.nextshop-product-wholesale__heading {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.nextshop-product-wholesale__title {
	font-size: 1rem;
	font-weight: 800;
	color: #14532d;
}

.nextshop-product-wholesale__subtitle {
	font-size: 0.82rem;
	color: var(--sp-muted, #64748b);
}

.nextshop-product-wholesale__active {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
	padding: 0.75rem 0.9rem;
	border-radius: var(--sp-radius-sm, 8px);
	background: #dcfce7;
	border: 1px solid rgba(22, 163, 74, 0.35);
}

.nextshop-product-wholesale__active-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	flex-shrink: 0;
}

.nextshop-product-wholesale__active-text {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.88rem;
	color: #166534;
}

.nextshop-product-wholesale__active-title {
	font-size: 0.95rem;
	font-weight: 800;
	color: #14532d;
}

.nextshop-product-wholesale__active-saved {
	font-size: 0.82rem;
	font-weight: 700;
	color: #15803d;
}

.nextshop-product-wholesale__hint {
	margin-bottom: 0.75rem;
	padding: 0.55rem 0.75rem;
	border-radius: var(--sp-radius-sm, 8px);
	background: #f0fdf4;
	border: 1px dashed rgba(22, 163, 74, 0.25);
	font-size: 0.82rem;
	color: #166534;
}

.nextshop-product-wholesale__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.nextshop-product-wholesale__tier {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.85rem;
	border-radius: var(--sp-radius-sm, 8px);
	background: #fff;
	border: 1px solid rgba(22, 163, 74, 0.14);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.nextshop-product-wholesale__tier:hover {
	border-color: rgba(22, 163, 74, 0.35);
	box-shadow: 0 2px 10px rgba(22, 163, 74, 0.1);
}

.nextshop-product-wholesale__tier.is-active {
	border-color: #16a34a;
	background: #f0fdf4;
	box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.15);
}

.nextshop-product-wholesale__tier-range {
	font-size: 0.95rem;
	font-weight: 700;
	color: #15803d;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.nextshop-product-wholesale__discount-badge {
	font-size: 0.72rem;
	font-weight: 700;
	color: #166534;
	background: #dcfce7;
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
}

.nextshop-product-wholesale__tier-price {
	text-align: left;
	font-size: 0.88rem;
	color: var(--sp-muted, #64748b);
}

.nextshop-product-wholesale__tier-label {
	margin-left: 0.35rem;
}

.nextshop-product-wholesale__tier-value {
	display: inline;
	font-size: 1rem;
	font-weight: 800;
	color: #14532d;
}

.nextshop-product-wholesale__note {
	margin: 0.65rem 0 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--sp-muted, #64748b);
}

.nextshop-wholesale-cart-badge {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #15803d;
}

@media (max-width: 480px) {
	.nextshop-product-wholesale__tier {
		flex-direction: column;
		align-items: flex-start;
	}

	.nextshop-product-wholesale__tier-price {
		text-align: right;
		width: 100%;
	}
}

.nextshop-product-buybox form.cart,
.nextshop-buy-box form.cart {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.85rem;
	margin: 0;
}

.nextshop-product-buybox .woocommerce-variation-add-to-cart,
.nextshop-buy-box .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
	width: 100%;
}

.nextshop-product-buybox form.cart .quantity,
.nextshop-buy-box form.cart .quantity {
	flex: 0 0 auto;
	align-self: flex-start;
	display: flex;
	align-items: stretch;
}

.nextshop-product-buybox form.cart .nextshop-qty-stepper,
.nextshop-buy-box form.cart .nextshop-qty-stepper {
	min-width: 132px;
	min-height: 52px;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-sm);
	background: #f8fafc;
	overflow: hidden;
}

.nextshop-qty-stepper__btn {
	flex: 0 0 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--sp-text);
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.nextshop-qty-stepper__btn:hover:not(:disabled) {
	background: #eef2f7;
	color: var(--sp-accent);
}

.nextshop-qty-stepper__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.nextshop-qty-stepper__btn--minus {
	border-inline-end: 1px solid var(--sp-border);
}

.nextshop-qty-stepper__btn--plus {
	border-inline-start: 1px solid var(--sp-border);
}

.nextshop-product-buybox form.cart .quantity .qty,
.nextshop-buy-box form.cart .quantity input.qty {
	width: 100%;
	min-height: 52px;
	padding: 0 0.75rem;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-sm);
	text-align: center;
	font-size: 1.05rem;
	font-weight: 600;
	background: #f8fafc;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nextshop-product-buybox form.cart .nextshop-qty-stepper .nextshop-qty-stepper__input,
.nextshop-buy-box form.cart .nextshop-qty-stepper .nextshop-qty-stepper__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 2.75rem;
	min-height: 0;
	padding: 0 0.35rem;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	-moz-appearance: textfield;
}

.nextshop-qty-stepper .nextshop-qty-stepper__input::-webkit-outer-spin-button,
.nextshop-qty-stepper .nextshop-qty-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.nextshop-product-buybox form.cart .quantity .qty:focus,
.nextshop-buy-box form.cart .quantity input.qty:focus {
	outline: none;
	border-color: var(--sp-accent);
	box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.12);
}

.nextshop-product-buybox form.cart .nextshop-qty-stepper .nextshop-qty-stepper__input:focus,
.nextshop-buy-box form.cart .nextshop-qty-stepper .nextshop-qty-stepper__input:focus {
	border: none;
	box-shadow: none;
}

.nextshop-product-buybox form.cart .nextshop-qty-stepper:focus-within,
.nextshop-buy-box form.cart .nextshop-qty-stepper:focus-within {
	border-color: var(--sp-accent);
	box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.12);
}

.nextshop-product-buybox .single_add_to_cart_button,
.nextshop-product-buybox form.cart .button,
.nextshop-buy-box form.cart .button,
.nextshop-wc-single-product .single_add_to_cart_button {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	min-height: 52px;
	background: var(--sp-accent) !important;
	color: #fff !important;
	border: none !important;
	padding: 0 1.5rem !important;
	border-radius: var(--sp-radius-sm) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
	box-shadow: 0 4px 14px rgba(239, 57, 78, 0.28);
}

.nextshop-product-buybox .single_add_to_cart_button:hover,
.nextshop-product-buybox form.cart .button:hover,
.nextshop-wc-single-product .single_add_to_cart_button:hover {
	background: var(--sp-accent-hover) !important;
	transform: translateY(-1px);
}

.nextshop-product-buybox .single_add_to_cart_button:disabled,
.nextshop-product-buybox form.cart .button.disabled {
	background: #cbd5e1 !important;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

.nextshop-product-short-description,
.nextshop-wc-single-product .woocommerce-product-details__short-description {
	line-height: 1.9;
	color: var(--sp-text-secondary);
	font-size: 0.95rem;
	padding: 1.15rem 1.25rem;
	background: var(--sp-card);
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-sm);
}

.nextshop-product-short-description p:last-child,
.nextshop-wc-single-product .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

.nextshop-wc-single-product .product_meta {
	font-size: 0.85rem;
	color: var(--sp-muted);
	margin: 0.35rem 0 0.85rem;
	padding: 1rem 1.15rem;
	background: var(--sp-card);
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-sm);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.nextshop-wc-single-product .product_meta > span {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.nextshop-wc-single-product .product_meta a {
	color: var(--sp-text);
	text-decoration: none;
	font-weight: 600;
}

.nextshop-wc-single-product .product_meta a:hover {
	color: var(--sp-accent);
}

/* Variations */
.nextshop-wc-single-product table.variations {
	width: 100%;
	margin: 0 0 1rem;
	border-collapse: separate;
	border-spacing: 0 0.75rem;
}

.nextshop-wc-single-product table.variations td {
	padding: 0;
	display: block;
	border: none;
}

.nextshop-wc-single-product table.variations td.label {
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--sp-text);
	margin-bottom: 0.35rem;
}

.nextshop-wc-single-product table.variations select {
	width: 100%;
	min-height: 46px;
	padding: 0 0.85rem;
	border: 1px solid var(--sp-border);
	border-radius: 0;
	background: #f8fafc;
	font-family: inherit;
	font-size: 0.9rem;
}

.nextshop-wc-single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
	padding-top: 0;
	border-top: none;
}

/* Product tabs (woocommerce-tabs) */
.nextshop-wc-single-product .woocommerce-tabs,
.nextshop-wc-single-product .wc-tabs-wrapper {
	width: 100%;
	margin-top: clamp(2rem, 4vw, 3rem);
	background: var(--sp-card);
	border-radius: var(--sp-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--sp-shadow);
	border: 1px solid var(--sp-border);
	clear: both;
}

.nextshop-wc-single-product .woocommerce-tabs::before,
.nextshop-wc-single-product .woocommerce-tabs::after,
.nextshop-wc-single-product .wc-tabs-wrapper::before,
.nextshop-wc-single-product .wc-tabs-wrapper::after {
	display: none;
}

.nextshop-wc-single-product .woocommerce-tabs ul.tabs,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs,
.nextshop-wc-single-product .wc-tabs-wrapper ul.tabs,
.nextshop-wc-single-product .wc-tabs-wrapper ul.wc-tabs {
	list-style: none !important;
	padding: 0.4rem !important;
	margin: 0 0 1.75rem !important;
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.5rem;
	border: none !important;
	background: var(--sp-bg-muted);
	border-radius: 12px;
	overflow: visible !important;
}

.nextshop-wc-single-product .woocommerce-tabs ul.tabs::before,
.nextshop-wc-single-product .woocommerce-tabs ul.tabs::after,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs::before,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs::after {
	display: none !important;
	content: none !important;
}

.nextshop-wc-single-product .woocommerce-tabs ul.tabs li,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs li,
.nextshop-wc-single-product .wc-tabs-wrapper ul.tabs li,
.nextshop-wc-single-product .wc-tabs-wrapper ul.wc-tabs li {
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	border-radius: 0;
	float: none !important;
	position: relative;
}

.nextshop-wc-single-product .woocommerce-tabs ul.tabs li::before,
.nextshop-wc-single-product .woocommerce-tabs ul.tabs li::after,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs li::before,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs li::after {
	display: none !important;
	content: none !important;
	border: none !important;
	box-shadow: none !important;
}

.nextshop-wc-single-product .woocommerce-tabs ul.tabs li a,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs li a {
	display: block;
	padding: 0.7rem 1.2rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--sp-muted);
	text-decoration: none;
	border-radius: 0;
	transition: color 0.2s, background 0.2s;
	background: transparent;
}

.nextshop-wc-single-product .woocommerce-tabs ul.tabs li:hover a,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs li:hover a {
	color: var(--sp-text);
}

.nextshop-wc-single-product .woocommerce-tabs ul.tabs li.active,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs li.active {
	background: var(--sp-card) !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.nextshop-wc-single-product .woocommerce-tabs ul.tabs li.active a,
.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs li.active a {
	color: var(--sp-accent);
}

/* Tab panels */
.nextshop-wc-single-product .woocommerce-tabs .panel,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-Tabs-panel,
.nextshop-wc-single-product .wc-tabs-wrapper .panel,
.nextshop-wc-single-product .wc-tabs-wrapper .woocommerce-Tabs-panel {
	padding: 0.25rem 0 0;
	margin: 0;
	color: var(--sp-text-secondary);
	line-height: 1.85;
	font-size: 0.95rem;
	border: none;
	background: transparent;
}

.nextshop-wc-single-product .woocommerce-tabs .panel::before,
.nextshop-wc-single-product .woocommerce-tabs .panel::after,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-Tabs-panel::before,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-Tabs-panel::after {
	display: none;
}

.nextshop-wc-single-product .woocommerce-tabs .panel h2,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
	font-size: 1.1rem;
	margin: 0 0 1rem;
	color: var(--sp-text);
	font-weight: 700;
}

.nextshop-wc-single-product .woocommerce-tabs .panel p,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
	margin: 0 0 1rem;
}

.nextshop-wc-single-product .woocommerce-tabs .panel img,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-Tabs-panel img {
	max-width: 100%;
	height: auto;
	border-radius: 0;
}

.nextshop-wc-single-product .woocommerce-tabs .panel ul,
.nextshop-wc-single-product .woocommerce-tabs .panel ol,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-Tabs-panel ul,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-Tabs-panel ol {
	padding-inline-start: 1.25rem;
	margin: 0 0 1rem;
}

/* Additional information table */
.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes,
.nextshop-wc-single-product .woocommerce-tabs .woocommerce-product-attributes {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--sp-border);
	border-radius: 12px;
	overflow: hidden;
}

.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes th,
.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--sp-border);
	font-size: 0.9rem;
	vertical-align: top;
}

.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes tr:last-child th,
.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes tr:last-child td {
	border-bottom: none;
}

.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes th,
.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes th p {
	font-weight: 700;
	color: var(--sp-text);
	margin: 0;
	background: #f8fafc;
	width: 35%;
}

.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes td,
.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes td p {
	color: var(--sp-text-secondary);
	margin: 0;
}

.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes a {
	color: var(--sp-accent);
	text-decoration: none;
	font-weight: 600;
}

/* Reviews tab */
.nextshop-wc-single-product #reviews #comments {
	margin-bottom: 2rem;
}

.nextshop-wc-single-product #reviews .woocommerce-Reviews-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--sp-text);
	margin: 0 0 1.25rem;
}

.nextshop-wc-single-product #reviews ol.commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.nextshop-wc-single-product #reviews ol.commentlist li {
	margin: 0;
	padding: 0;
}

.nextshop-wc-single-product #reviews ol.commentlist li .comment_container {
	display: flex;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	background: #f8fafc;
	border: 1px solid var(--sp-border);
	border-radius: 12px;
}

.nextshop-wc-single-product #reviews ol.commentlist img.avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid var(--sp-card);
	flex-shrink: 0;
}

.nextshop-wc-single-product #reviews .comment-text {
	flex: 1;
	min-width: 0;
}

.nextshop-wc-single-product #reviews .comment-text .meta {
	font-size: 0.8rem;
	color: var(--sp-muted);
	margin-bottom: 0.5rem;
}

.nextshop-wc-single-product #reviews .comment-text .meta strong {
	color: var(--sp-text);
	font-weight: 700;
}

.nextshop-wc-single-product #reviews .comment-text .description p {
	margin: 0;
	color: var(--sp-text-secondary);
	line-height: 1.75;
}

.nextshop-wc-single-product #review_form_wrapper {
	padding: 1.35rem 1.5rem;
	background: #f8fafc;
	border: 1px solid var(--sp-border);
	border-radius: 12px;
}

.nextshop-wc-single-product #review_form #reply-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--sp-text);
	margin: 0 0 1rem;
}

.nextshop-wc-single-product #review_form .comment-form-author,
.nextshop-wc-single-product #review_form .comment-form-email,
.nextshop-wc-single-product #review_form .comment-form-comment {
	margin-bottom: 1rem;
}

.nextshop-wc-single-product #review_form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--sp-text);
	margin-bottom: 0.35rem;
}

.nextshop-wc-single-product #review_form input[type='text'],
.nextshop-wc-single-product #review_form input[type='email'],
.nextshop-wc-single-product #review_form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--sp-border);
	border-radius: 0;
	font-family: inherit;
	font-size: 0.9rem;
	background: var(--sp-card);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nextshop-wc-single-product #review_form input:focus,
.nextshop-wc-single-product #review_form textarea:focus {
	outline: none;
	border-color: var(--sp-accent);
	box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.1);
}

.nextshop-wc-single-product #review_form #submit {
	background: var(--sp-accent);
	color: #fff;
	border: none;
	padding: 0.75rem 1.75rem;
	border-radius: 0;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.nextshop-wc-single-product #review_form #submit:hover {
	background: var(--sp-accent-hover);
}

.nextshop-wc-single-product .woocommerce-noreviews {
	padding: 1rem 1.15rem;
	background: #f8fafc;
	border-radius: 0;
	color: var(--sp-muted);
	font-size: 0.9rem;
}

.nextshop-wc-single-product .related.products,
.nextshop-wc-single-product .upsells.products {
	width: 100%;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: var(--sp-card);
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	box-shadow: var(--sp-shadow);
}

.nextshop-wc-single-product .related.products > h2,
.nextshop-wc-single-product .upsells.products > h2 {
	font-size: 1.2rem;
	margin: 0 0 1.25rem;
	color: var(--sp-text);
	font-weight: 800;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--sp-accent);
	display: inline-block;
}

.nextshop-wc-single-product .related.products ul.products,
.nextshop-wc-single-product .upsells.products ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nextshop-wc-single-product .related.products ul.products.nextshop-related-products-grid {
	display: grid !important;
	gap: 1.5rem;
	width: 100%;
	max-width: 100%;
	list-style: none;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	grid-template-columns: repeat(var(--ns-related-cols-desktop, 4), minmax(0, 1fr));
}

.nextshop-wc-single-product .related.products ul.products li.product .button,
.nextshop-wc-single-product .related.products ul.products li.product a.added_to_cart {
	display: none !important;
}

@media (max-width: 992px) {
	.nextshop-wc-single-product .related.products ul.products.nextshop-related-products-grid {
		grid-template-columns: repeat(var(--ns-related-cols-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 576px) {
	.nextshop-wc-single-product .related.products ul.products.nextshop-related-products-grid {
		grid-template-columns: repeat(var(--ns-related-cols-mobile, 1), minmax(0, 1fr));
	}
}

.nextshop-wc-single-product .nextshop-single-product-trust {
	margin-top: clamp(2rem, 4vw, 3rem);
	width: 100%;
}

.nextshop-wc-single-product .nextshop-single-product-trust .nextshop-trust-badges__item {
	background: var(--sp-card);
	border-color: var(--sp-border);
	box-shadow: var(--sp-shadow);
}

/* Responsive */
@media (max-width: 1024px) {
	.nextshop-product-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.nextshop-wc-single-product .related.products ul.products,
	.nextshop-wc-single-product .upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nextshop-product-gallery-wrapper {
		position: static;
	}

	.nextshop-gallery-main {
		max-height: none;
		aspect-ratio: var(--ns-gallery-aspect-ratio, auto);
		height: auto;
		min-height: 0;
	}

	.nextshop-gallery-image,
	.nextshop-gallery-video {
		width: 100%;
		height: auto;
		max-height: none;
	}
}

@media (max-width: 768px) {
	.nextshop-wc-single-product.nextshop-container {
		padding-top: 0.75rem;
	}

	.nextshop-wc-single-product .related.products ul.products,
	.nextshop-wc-single-product .upsells.products ul.products {
		grid-template-columns: minmax(0, 1fr);
	}

	.nextshop-wc-single-product .nextshop-single-product-topbar {
		padding: 0.85rem 1rem;
		margin-bottom: 1rem;
	}

	.nextshop-breadcrumb__list {
		font-size: 0.78rem;
	}

	.nextshop-brand-icon-link {
		width: 48px;
		height: 48px;
	}

	.nextshop-gallery-thumb {
		width: 64px;
		height: 64px;
	}

	.nextshop-wc-single-product .woocommerce-tabs ul.tabs,
	.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs {
		flex-direction: column;
	}

	.nextshop-wc-single-product .woocommerce-tabs ul.tabs li a,
	.nextshop-wc-single-product .woocommerce-tabs ul.wc-tabs li a {
		text-align: center;
	}

	.nextshop-wc-single-product #reviews ol.commentlist li .comment_container {
		flex-direction: column;
		align-items: flex-start;
	}

	.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes th {
		width: auto;
		display: block;
	}

	.nextshop-wc-single-product .woocommerce-tabs table.shop_attributes td {
		display: block;
	}
}

@media (max-width: 480px) {
	.nextshop-product-buybox,
	.nextshop-buy-box {
		padding: 1.1rem;
	}
}

/* =========================================
 * Shop Page Layout (Sidebar & Grid)
 * ========================================= */
.nextshop-shop-layout {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 2rem;
	margin-top: 2rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Sidebar - Right Side */
.nextshop-shop-sidebar {
	width: 280px;
	flex: 0 0 280px;
	max-width: 280px;
	min-width: 0;
}

.nextshop-shop-sidebar > .nextshop-filter-form--advanced {
	margin-bottom: 1.5rem;
}
.nextshop-shop-sidebar .widget {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.nextshop-shop-sidebar .widget-title {
	font-size: 1.1rem;
	font-weight: bold;
	color: #333;
	margin-top: 0;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--ns-primary);
	display: inline-block;
}

/* Sidebar lists (categories, etc) */
.nextshop-shop-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.nextshop-shop-sidebar ul li {
	padding: 8px 0;
	border-bottom: 1px solid #f3f4f6;
	display: flex;
	justify-content: space-between;
}
.nextshop-shop-sidebar ul li:last-child {
	border-bottom: none;
}
.nextshop-shop-sidebar ul li a {
	color: #4b5563;
	text-decoration: none;
	transition: color 0.2s;
}
.nextshop-shop-sidebar ul li a:hover {
	color: var(--ns-primary);
}
.nextshop-shop-sidebar .count {
	color: #9ca3af;
	font-size: 0.85rem;
}

/* Shop Content */
.nextshop-shop-content {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
}

/* Product Grid — ستون‌ها از تنظیمات فیلترینگ (--ns-shop-cols-* و columns-N روی wrapper) */
@media (min-width: 993px) {
	.nextshop-shop-page .nextshop-shop-products.columns-1 ul.products { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.nextshop-shop-page .nextshop-shop-products.columns-2 ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nextshop-shop-page .nextshop-shop-products.columns-3 ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nextshop-shop-page .nextshop-shop-products.columns-4 ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.nextshop-shop-page .nextshop-shop-products.columns-5 ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.nextshop-shop-page .nextshop-shop-products.columns-6 ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.nextshop-shop-page .nextshop-shop-content ul.products,
.nextshop-shop-page .nextshop-shop-content .nextshop-product-grid ul.products {
	display: grid;
	grid-template-columns: repeat(var(--ns-shop-cols-desktop, 3), minmax(0, 1fr));
	gap: 1.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.nextshop-shop-page .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(var(--ns-shop-cols-desktop, 3), minmax(0, 1fr));
	gap: 1.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
/* Fix for WooCommerce clearfix pseudo-elements taking up grid cells */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}
.woocommerce ul.products li.product {
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
	float: none !important;
	clear: none !important; /* Fix for WooCommerce default breaks */
	margin: 0 !important;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.2rem;
	text-align: center;
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
	height: 100%; /* Force uniform height */
	box-sizing: border-box;
	overflow: hidden;
}
.woocommerce ul.products li.product:hover {
	box-shadow: 0 8px 25px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}
.woocommerce ul.products li.product img {
	max-width: 100%;
	height: auto;
	margin-bottom: 1rem;
	border-radius: 8px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	flex: 1; /* Make the link wrapper expand */
	text-decoration: none;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 12px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 0.5rem;
	line-height: 1.5;
}
.woocommerce ul.products li.product .price {
	color: #e53935;
	font-weight: bold;
	font-size: 1.1rem;
	margin-top: auto; /* Push price to bottom of the link wrapper */
	margin-bottom: 1rem;
}
.woocommerce ul.products li.product .button {
	display: block;
	width: 100%;
	background: #fff;
	color: var(--ns-primary);
	border: 1px solid var(--ns-primary);
	padding: 8px 0;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s;
	margin-top: auto; /* Push button to bottom of the card */
}
.woocommerce ul.products li.product .button:hover {
	background: var(--ns-primary);
	color: #fff;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
	margin-top: 3rem;
	text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}
.woocommerce nav.woocommerce-pagination ul li {
	border-left: 1px solid #e5e7eb;
}
.woocommerce nav.woocommerce-pagination ul li:last-child {
	border-left: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: block;
	padding: 10px 18px;
	color: #4b5563;
	text-decoration: none;
	font-weight: 500;
	background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--ns-primary);
	color: #fff;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: #f9fafb;
	color: var(--ns-primary);
}

@media (max-width: 992px) {
	.nextshop-shop-page .nextshop-shop-products[class*="columns-"] ul.products {
		grid-template-columns: repeat(var(--ns-shop-cols-tablet, 2), minmax(0, 1fr));
	}

	.nextshop-shop-page .nextshop-shop-content ul.products,
	.nextshop-shop-page .nextshop-shop-content .nextshop-product-grid ul.products,
	.nextshop-shop-page .woocommerce ul.products {
		grid-template-columns: repeat(var(--ns-shop-cols-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 576px) {
	.nextshop-shop-page .nextshop-shop-products[class*="columns-"] ul.products {
		grid-template-columns: repeat(var(--ns-shop-cols-mobile, 2), minmax(0, 1fr));
	}

	.nextshop-shop-page .nextshop-shop-content ul.products,
	.nextshop-shop-page .nextshop-shop-content .nextshop-product-grid ul.products,
	.nextshop-shop-page .woocommerce ul.products {
		grid-template-columns: repeat(var(--ns-shop-cols-mobile, 2), minmax(0, 1fr));
	}
}

/* Responsive layout */
@media (max-width: 992px) {
	.nextshop-shop-layout {
		flex-direction: column;
	}
	.nextshop-shop-sidebar,
	.nextshop-shop-sidebar.nextshop-filter-sidebar {
		width: 100%;
		max-width: none;
		flex: none;
	}
	.nextshop-shop-sidebar:not(.nextshop-filter-sidebar) {
		width: 100%;
		flex: none;
	}
	.nextshop-shop-sidebar:not(.nextshop-filter-sidebar) .widget {
		margin-bottom: 1rem;
	}
}
@media (max-width: 480px) {
	.nextshop-front-page .nextshop-fp-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================
 * Layout & Sidebar Tweaks
 * ========================================= */

.nextshop-shop-content .woocommerce-products-header__title.page-title {
	font-size: 1.8rem;
	font-weight: bold;
	margin-top: 0;
	margin-bottom: 1.5rem;
	color: #1f2937;
}

/* Shop Toolbar */
.nextshop-shop-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	padding: 10px 20px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	margin-bottom: 2rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.nextshop-shop-toolbar p.woocommerce-result-count {
	margin: 0;
	color: var(--sp-muted);
	font-size: 0.95rem;
}
.nextshop-shop-toolbar form.woocommerce-ordering {
	margin: 0;
}
.nextshop-shop-toolbar select.orderby {
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	outline: none;
	font-family: inherit;
	cursor: pointer;
}

/* Grid flow follows page reading direction */
html[dir="rtl"] .woocommerce ul.products,
body.rtl .woocommerce ul.products {
	direction: rtl;
}

html[dir="ltr"] .woocommerce ul.products {
	direction: ltr;
}

/* Beautiful Search Widget */
.nextshop-shop-sidebar .woocommerce-product-search {
	display: flex;
	position: relative;
	width: 100%;
}
.nextshop-shop-sidebar .woocommerce-product-search label {
	display: none;
}
.nextshop-shop-sidebar .woocommerce-product-search .search-field {
	width: 100%;
	padding: 12px 15px 12px 60px; /* space for button on left */
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	font-size: 0.95rem;
	transition: all 0.2s;
	font-family: inherit;
}
.nextshop-shop-sidebar .woocommerce-product-search .search-field:focus {
	background: #fff;
	border-color: var(--ns-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.1);
}
.nextshop-shop-sidebar .woocommerce-product-search button {
	position: absolute;
	left: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--ns-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 0.85rem;
	font-family: inherit;
	transition: background 0.2s;
}
.nextshop-shop-sidebar .woocommerce-product-search button:hover {
	background: #d32f2f;
}

/* =========================================
 * My Account Dashboard Custom Styles
 * ========================================= */

.nextshop-dashboard-wrap {
	display: flex;
	gap: 2rem;
	margin: 2rem 0;
	align-items: flex-start;
	direction: rtl; /* RTL aligned */
	text-align: right;
}

/* Navigation Sidebar */
.nextshop-dashboard-sidebar {
	width: 300px;
	flex: 0 0 300px;
	background: #ffffff;
	border: 1px solid #eef2f6;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* User Card in Sidebar */
.nextshop-sidebar-user-card {
	padding: 1.75rem 1.5rem;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.nextshop-sidebar-user-card .user-avatar img {
	border-radius: 50%;
	border: 3px solid #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.nextshop-sidebar-user-card .user-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow: hidden;
}

.nextshop-sidebar-user-card .user-name {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e293b;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.nextshop-sidebar-user-card .user-email {
	font-size: 0.85rem;
	color: #64748b;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

/* Nav Menu */
.nextshop-dashboard-nav {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.nextshop-dashboard-nav li {
	border-bottom: 1px solid #f1f5f9;
	margin: 0 !important;
	padding: 0 !important;
}

.nextshop-dashboard-nav li:last-child {
	border-bottom: none;
}

.nextshop-dashboard-nav li a {
	display: flex;
	align-items: center;
	padding: 1.1rem 1.5rem;
	color: #475569;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	position: relative;
}

.nextshop-dashboard-nav li a .nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 0.75rem;
	color: #94a3b8;
	transition: color 0.3s ease;
}

.nextshop-dashboard-nav li a .nav-icon svg {
	width: 20px;
	height: 20px;
}

.nextshop-dashboard-nav li a .nav-label {
	flex-grow: 1;
}

.nextshop-dashboard-nav li a .nav-chevron {
	display: flex;
	align-items: center;
	color: #cbd5e1;
	transform: scaleX(-1); /* mirror arrow since RTL */
	transition: all 0.3s ease;
}

/* Hover & Active States */
.nextshop-dashboard-nav li a:hover {
	background-color: #f8fafc;
	color: var(--ns-primary); /* Primary theme color */
}

.nextshop-dashboard-nav li a:hover .nav-icon {
	color: var(--ns-primary);
}

.nextshop-dashboard-nav li a:hover .nav-chevron {
	color: var(--ns-primary);
	transform: scaleX(-1) translateX(4px);
}

.nextshop-dashboard-nav li.is-active a {
	background-color: #fff1f2;
	color: var(--ns-primary);
}

.nextshop-dashboard-nav li.is-active a::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--ns-primary);
}

.nextshop-dashboard-nav li.is-active a .nav-icon {
	color: var(--ns-primary);
}

.nextshop-dashboard-nav li.is-active a .nav-chevron {
	color: var(--ns-primary);
}

/* Dashboard Main Content area */
.nextshop-dashboard-content {
	flex: 1;
	background: #ffffff;
	border: 1px solid #eef2f6;
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	min-width: 0;
}

/* Welcome Panel Styles */
.nextshop-dashboard-welcome-panel {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.nextshop-dashboard-welcome-header {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: linear-gradient(135deg, #fff5f6 0%, #fffcfc 100%);
	border: 1px solid #ffe4e6;
	padding: 1.75rem;
	border-radius: 14px;
}

.nextshop-welcome-avatar img {
	border-radius: 50%;
	border: 4px solid #ffffff;
	box-shadow: 0 4px 12px rgba(239, 57, 78, 0.15);
}

.nextshop-welcome-text h2 {
	margin: 0 0 0.5rem 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: #1e293b;
}

.nextshop-welcome-text p {
	margin: 0;
	font-size: 0.95rem;
	color: #475569;
	line-height: 1.7;
}

/* Stats Cards Grid */
.nextshop-dashboard-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
}

.nextshop-stat-card {
	display: flex;
	align-items: center;
	padding: 1.25rem;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #ffffff;
}

.nextshop-stat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	border-color: #cbd5e1;
}

.nextshop-stat-card .stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	margin-left: 1rem;
	transition: all 0.3s ease;
}

.nextshop-stat-card .stat-icon svg {
	width: 24px;
	height: 24px;
}

.nextshop-stat-card .stat-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nextshop-stat-card .stat-label {
	font-size: 0.85rem;
	color: #64748b;
	font-weight: 600;
}

.nextshop-stat-card .stat-value {
	font-size: 1.15rem;
	font-weight: 800;
	color: #1e293b;
}

/* Specific Card Colors */
.card-wallet .stat-icon {
	background: #f0fdf4;
	color: #15803d;
}
.card-wallet:hover {
	border-color: #86efac;
}

.card-club .stat-icon {
	background: #fef9c3;
	color: #a16207;
}
.card-club:hover {
	border-color: #fde047;
}

.card-orders .stat-icon {
	background: #eff6ff;
	color: var(--ns-primary-dark);
}
.card-orders:hover {
	border-color: #93c5fd;
}

.card-addresses .stat-icon {
	background: #faf5ff;
	color: #7e22ce;
}
.card-addresses:hover {
	border-color: #d8b4fe;
}

/* Dashboard notifications */
.nextshop-dashboard-notifications-panel {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
}

.nextshop-notifications-list--dashboard .nextshop-notification-item {
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid #f1f5f9;
}

.nextshop-notifications-list--dashboard .nextshop-notification-item:last-child {
	border-bottom: 0;
}

.nextshop-notifications-list--dashboard .nextshop-notification-item.is-unread {
	background: #fffafb;
	border-right: 3px solid var(--ns-primary);
}

.nextshop-notification-item__badge {
	display: inline-flex;
	margin-bottom: 0.5rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--sp-bg-muted);
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 700;
}

/* Dashboard Sections */
.nextshop-dashboard-section h3 {
	font-size: 1.15rem;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 1.25rem 0;
	border-right: 4px solid var(--ns-primary);
	padding-right: 0.5rem;
}

/* Last Order Card */
.last-order-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.order-meta-info {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.order-meta-info .meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.order-meta-info .meta-label {
	font-size: 0.85rem;
	color: #64748b;
}

.order-meta-info .meta-value {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
}

.order-meta-info .meta-value.status-completed {
	color: #16a34a;
}
.order-meta-info .meta-value.status-processing {
	color: var(--ns-primary);
}
.order-meta-info .meta-value.status-on-hold {
	color: #ea580c;
}
.order-meta-info .meta-value.status-pending {
	color: #d97706;
}

.nextshop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.25rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	border: none;
}

.nextshop-btn-primary {
	background: var(--ns-primary);
	color: #ffffff;
}

.nextshop-btn-primary:hover {
	background: #d32f2f;
}

.nextshop-btn-outline {
	border: 1px solid var(--ns-primary);
	color: var(--ns-primary);
	background: transparent;
}

.nextshop-btn-outline:hover {
	background: var(--ns-primary);
	color: #ffffff;
}

/* Quick Links Grid */
.quick-links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.quick-links-grid a {
	display: flex;
	align-items: center;
	padding: 1rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	color: #334155;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	gap: 0.75rem;
}

.quick-links-grid a .link-icon {
	display: flex;
	align-items: center;
	color: #64748b;
	transition: color 0.3s ease;
}

.quick-links-grid a .link-icon svg {
	width: 18px;
	height: 18px;
}

.quick-links-grid a:hover {
	border-color: var(--ns-primary);
	color: var(--ns-primary);
	background: #fff5f6;
}

.quick-links-grid a:hover .link-icon {
	color: var(--ns-primary);
}

.quick-links-grid a.logout-link:hover {
	border-color: #dc2626;
	color: #dc2626;
	background: #fef2f2;
}

.quick-links-grid a.logout-link:hover .link-icon {
	color: #dc2626;
}

/* Wallet Table and Panels Styling */
.nextshop-wallet-panel, .nextshop-club-panel {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.nextshop-wallet-balance {
	font-size: 1.1rem;
	color: #475569;
	background: #f8fafc;
	padding: 1.25rem;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nextshop-wallet-balance strong {
	font-size: 1.35rem;
	color: #16a34a;
	font-weight: 800;
}

.nextshop-wallet-charge {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
}

.nextshop-wallet-charge input[type="number"],
.nextshop-club-panel input[type="text"] {
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s;
	flex: 1;
	min-width: 180px;
}

.nextshop-wallet-charge input[type="number"]:focus,
.nextshop-club-panel input[type="text"]:focus {
	border-color: var(--ns-primary);
}

.nextshop-wallet-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.nextshop-wallet-table th {
	background: #f8fafc;
	color: #64748b;
	font-weight: 700;
	text-align: right;
	padding: 0.75rem 1rem;
	border-bottom: 2px solid #e2e8f0;
}

.nextshop-wallet-table td {
	padding: 1rem;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}

.nextshop-wallet-table tbody tr:hover {
	background: #fafafa;
}

/* Club Panel Description */
.nextshop-club-panel .description {
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.6;
}

/* Form layout for Account Details / Edit addresses, etc (WooCommerce standard form styling) */
.woocommerce-EditAccountForm, .woocommerce-address-fields, .woocommerce-form-login {
	background: #ffffff;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.woocommerce-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100% !important;
	float: none !important;
	margin-bottom: 0.5rem !important;
}

.woocommerce-form-row label {
	font-weight: 600;
	font-size: 0.9rem;
	color: #334155;
}

.woocommerce-form-row input.input-text,
.woocommerce-form-row select,
.woocommerce-form-row textarea {
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	outline: none;
	width: 100%;
	transition: all 0.2s;
}

.woocommerce-form-row input.input-text:focus,
.woocommerce-form-row select:focus,
.woocommerce-form-row textarea:focus {
	border-color: var(--ns-primary);
	box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.1);
}

.woocommerce-EditAccountForm fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem;
	margin-top: 1rem;
}

.woocommerce-EditAccountForm legend {
	font-weight: 700;
	font-size: 0.95rem;
	color: #1e293b;
	padding: 0 10px;
}

/* Address Blocks styling */
.woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.woocommerce-Address {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem;
}

.woocommerce-Address-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 0.5rem;
}

.woocommerce-Address-title h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
}

.woocommerce-Address-title .edit {
	color: var(--ns-primary);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
}

.woocommerce-Address-title .edit:hover {
	text-decoration: underline;
}

.woocommerce-Address address {
	font-style: normal;
	line-height: 1.8;
	color: #475569;
	font-size: 0.9rem;
}

/* ─── Edit address (my-account) ─── */
.nextshop-edit-address {
	--ns-addr-accent: var(--ns-primary);
	--ns-addr-accent-soft: var(--ns-primary-soft);
	--ns-addr-border: #eef2f6;
	--ns-addr-muted: #64748b;
	--ns-addr-text: #1e293b;
	direction: rtl;
	text-align: right;
}

.nextshop-edit-address__toolbar {
	margin-bottom: 1.25rem;
}

.nextshop-edit-address__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ns-addr-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: color 0.2s;
}

.nextshop-edit-address__back:hover {
	color: var(--ns-addr-accent);
}

.nextshop-edit-address__hero {
	margin-bottom: 1.5rem;
	padding: 1.35rem 1.5rem;
	background: linear-gradient(135deg, #fff5f6 0%, #ffffff 55%, #f8fafc 100%);
	border: 1px solid var(--ns-addr-border);
	border-radius: 16px;
}

.nextshop-edit-address__hero-title {
	margin: 0 0 0.35rem;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--ns-addr-text);
}

.nextshop-edit-address__hero-desc {
	margin: 0;
	color: var(--ns-addr-muted);
	font-size: 0.92rem;
	line-height: 1.7;
}

.nextshop-edit-address__card {
	background: #ffffff;
	border: 1px solid var(--ns-addr-border);
	border-radius: 16px;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nextshop-edit-address__header {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #f1f5f9;
}

.nextshop-edit-address__icon {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--ns-addr-accent-soft);
	color: var(--ns-addr-accent);
	font-size: 1.3rem;
}

.nextshop-edit-address__intro h2 {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--ns-addr-text);
}

.nextshop-edit-address__intro p {
	margin: 0;
	color: var(--ns-addr-muted);
	font-size: 0.9rem;
	line-height: 1.65;
}

.nextshop-edit-address__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	margin-bottom: 0.5rem;
}

.nextshop-edit-address__grid::before,
.nextshop-edit-address__grid::after {
	display: none !important;
	content: none !important;
}

.nextshop-edit-address__grid .form-row {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}

.nextshop-edit-address__grid .form-row-wide {
	grid-column: 1 / -1;
}

.nextshop-edit-address--form .woocommerce-address-fields {
	background: transparent;
	padding: 0;
	gap: 0;
}

.nextshop-edit-address--form .woocommerce-form-row label {
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--ns-addr-text);
}

.nextshop-edit-address--form .woocommerce-form-row .required {
	color: var(--ns-addr-accent);
}

.nextshop-edit-address--form .woocommerce-form-row input.input-text,
.nextshop-edit-address--form .woocommerce-form-row select,
.nextshop-edit-address--form .woocommerce-form-row textarea {
	padding: 0.72rem 0.95rem;
	border: 1px solid #e2e8f0;
	border-radius: 0;
	background: #f8fafc;
	font-size: 0.92rem;
}

.nextshop-edit-address--form .woocommerce-form-row input.input-text:focus,
.nextshop-edit-address--form .woocommerce-form-row select:focus,
.nextshop-edit-address--form .woocommerce-form-row textarea:focus {
	background: #ffffff;
	border-color: var(--ns-addr-accent);
	box-shadow: 0 0 0 3px var(--ns-addr-accent-soft);
}

.nextshop-edit-address--form .woocommerce-form-row select {
	cursor: pointer;
	appearance: auto;
}

.nextshop-edit-address__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #f1f5f9;
}

.nextshop-edit-address__submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 180px;
	min-height: 46px;
	padding: 0.8rem 1.75rem !important;
	border-radius: 10px !important;
	font-size: 0.95rem !important;
}

.nextshop-edit-address__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}

.nextshop-edit-address__address-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--ns-addr-border);
	border-radius: 16px;
	padding: 0;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nextshop-edit-address__address-card:hover {
	border-color: rgba(239, 57, 78, 0.3);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nextshop-edit-address__address-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid #f1f5f9;
	background: #fafbfc;
}

.nextshop-edit-address__address-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.nextshop-edit-address__address-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	background: var(--ns-addr-accent-soft);
	color: var(--ns-addr-accent);
	font-size: 1rem;
}

.nextshop-edit-address__address-head h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--ns-addr-text);
}

.nextshop-edit-address__edit-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
	padding: 0.45rem 0.85rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: var(--ns-addr-accent) !important;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s, border-color 0.2s;
}

.nextshop-edit-address__edit-link:hover {
	background: var(--ns-addr-accent-soft);
	border-color: rgba(239, 57, 78, 0.35);
	text-decoration: none !important;
}

.nextshop-edit-address__address-body {
	padding: 1.15rem 1.25rem 1.25rem;
	flex: 1;
}

.nextshop-edit-address__address-body address {
	font-style: normal;
	line-height: 1.85;
	color: #475569;
	font-size: 0.9rem;
	white-space: pre-line;
}

.nextshop-edit-address__empty-hint {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	padding: 0.85rem 1rem;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 0;
	color: var(--ns-addr-muted);
	font-size: 0.88rem;
	line-height: 1.6;
}

.nextshop-edit-address__empty-hint i {
	margin-top: 0.15rem;
	color: var(--ns-addr-accent);
}

/* ─── Edit account (my-account) ─── */
.nextshop-edit-account {
	--ns-addr-accent: var(--ns-primary);
	--ns-addr-accent-soft: var(--ns-primary-soft);
	--ns-addr-border: #eef2f6;
	--ns-addr-muted: #64748b;
	--ns-addr-text: #1e293b;
	direction: rtl;
	text-align: right;
	max-width: 720px;
}

.nextshop-edit-account__hero {
	margin-bottom: 1.5rem;
	padding: 1.35rem 1.5rem;
	background: linear-gradient(135deg, #fff5f6 0%, #ffffff 55%, #f8fafc 100%);
	border: 1px solid var(--ns-addr-border);
	border-radius: 16px;
}

.nextshop-edit-account__hero-title {
	margin: 0 0 0.35rem;
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--ns-addr-text);
}

.nextshop-edit-account__hero-desc {
	margin: 0;
	color: var(--ns-addr-muted);
	font-size: 0.92rem;
	line-height: 1.7;
}

.nextshop-edit-account__form > .clear {
	display: none !important;
}

.nextshop-edit-account__card {
	background: #ffffff;
	border: 1px solid var(--ns-addr-border);
	border-radius: 16px;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	margin-bottom: 1.25rem;
}

.nextshop-edit-account__card--password {
	background: #fafbfc;
}

.nextshop-edit-account__header {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.35rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid #f1f5f9;
}

.nextshop-edit-account__icon {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--ns-addr-accent-soft);
	color: var(--ns-addr-accent);
	font-size: 1.3rem;
}

.nextshop-edit-account__icon--muted {
	background: #e2e8f0;
	color: #475569;
}

.nextshop-edit-account__intro h3 {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--ns-addr-text);
}

.nextshop-edit-account__intro p {
	margin: 0;
	color: var(--ns-addr-muted);
	font-size: 0.88rem;
	line-height: 1.65;
}

.nextshop-edit-account__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.nextshop-edit-account__grid--single {
	grid-template-columns: 1fr;
}

.nextshop-edit-account__grid::before,
.nextshop-edit-account__grid::after {
	display: none !important;
	content: none !important;
}

.nextshop-edit-account__grid .form-row {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}

.nextshop-edit-account__grid .form-row-wide {
	grid-column: 1 / -1;
}

.nextshop-edit-account__grid label {
	display: block;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--ns-addr-text);
	margin-bottom: 0.4rem;
}

.nextshop-edit-account__grid .required {
	color: var(--ns-addr-accent);
}

.nextshop-edit-account__grid .input-text {
	width: 100%;
	padding: 0.72rem 0.95rem;
	border: 1px solid #e2e8f0;
	border-radius: 0;
	background: #f8fafc;
	font-size: 0.92rem;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.nextshop-edit-account__grid .input-text:focus {
	background: #ffffff;
	border-color: var(--ns-addr-accent);
	box-shadow: 0 0 0 3px var(--ns-addr-accent-soft);
	outline: none;
}

.nextshop-edit-account__hint {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.82rem;
	color: var(--ns-addr-muted);
	line-height: 1.55;
}

.nextshop-edit-account__hint em {
	font-style: normal;
}

.nextshop-edit-account__label-badge {
	display: inline-block;
	margin-right: 0.5rem;
	padding: 0.12rem 0.5rem;
	background: var(--ns-addr-accent-soft);
	color: var(--ns-addr-accent);
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	vertical-align: middle;
}

.nextshop-edit-account__club-note {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 0;
	color: #92400e;
	font-size: 0.88rem;
	line-height: 1.6;
}

.nextshop-edit-account__club-note i {
	margin-top: 0.15rem;
	color: #d97706;
}

.nextshop-edit-account__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.nextshop-edit-account__submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 200px;
	min-height: 48px;
	padding: 0.85rem 1.85rem !important;
	border-radius: 10px !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	background: var(--ns-addr-accent) !important;
	border-color: var(--ns-addr-accent) !important;
	color: #fff !important;
}

.nextshop-edit-account__submit:hover {
	filter: brightness(1.05);
}

@media (max-width: 640px) {
	.nextshop-edit-account__grid {
		grid-template-columns: 1fr;
	}

	.nextshop-edit-account__card {
		padding: 1.15rem 1.2rem;
	}

	.nextshop-edit-account__submit {
		width: 100%;
	}
}

.nextshop-edit-address__map {
	margin: 1.25rem 0 0;
	padding: 1.25rem;
	border: 1px solid var(--ns-addr-border);
	border-radius: 14px;
	background: #fafbfc;
}

.nextshop-map-wrapper__label {
	display: block;
	margin-bottom: 0.85rem;
	padding-right: 0.65rem;
	border-right: 4px solid var(--ns-addr-accent);
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--ns-addr-text);
}

.nextshop-map-search-wrap {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.nextshop-map-search-wrap .input-text {
	flex: 1;
	min-width: 0;
	padding: 0.65rem 0.9rem;
	border: 1px solid #e2e8f0;
	border-radius: 0;
	font-family: inherit;
	background: #ffffff;
}

.nextshop-map-search-btn {
	flex-shrink: 0;
	padding: 0 1.25rem !important;
	font-weight: 700 !important;
	border-radius: 10px !important;
	background: var(--ns-addr-accent) !important;
	color: #fff !important;
	border: none !important;
}

.nextshop-map-search-results {
	display: none;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0;
	margin-bottom: 0.75rem;
	max-height: 200px;
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 20;
}

.nextshop-map-container {
	height: 300px;
	width: 100%;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	position: relative;
	z-index: 10;
	overflow: hidden;
}

@media (max-width: 640px) {
	.nextshop-edit-address__grid {
		grid-template-columns: 1fr;
	}

	.nextshop-edit-address__card {
		padding: 1.15rem 1.1rem;
	}

	.nextshop-edit-address__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.nextshop-edit-address__address-head {
		flex-direction: column;
		align-items: stretch;
	}

	.nextshop-edit-address__edit-link {
		justify-content: center;
	}

	.nextshop-edit-address__submit {
		width: 100%;
	}
}

/* Standard WooCommerce Alerts styling */
.woocommerce-error, .woocommerce-info, .woocommerce-message {
	border-radius: 10px !important;
	padding: 1rem 1.5rem !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	margin-bottom: 1.5rem !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	list-style: none !important;
	border-left: none !important;
}

.woocommerce-message {
	background-color: #f0fdf4 !important;
	border-right: 4px solid #16a34a !important;
	color: #15803d !important;
}

.woocommerce-info {
	background-color: #eff6ff !important;
	border-right: 4px solid var(--ns-primary-dark) !important;
	color: var(--ns-primary-dark) !important;
}

.woocommerce-error {
	background-color: #fef2f2 !important;
	border-right: 4px solid #dc2626 !important;
	color: #b91c1c !important;
}

/* Button & general form submission styling */
.woocommerce-Button, .woocommerce-button, .woocommerce-form-login .button {
	background: var(--ns-primary) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	border: none !important;
	padding: 0.75rem 1.5rem !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	font-family: inherit !important;
	transition: all 0.2s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 0.9rem !important;
}

.woocommerce-Button:hover, .woocommerce-button:hover, .woocommerce-form-login .button:hover {
	background: #d32f2f !important;
	box-shadow: 0 4px 12px rgba(239, 57, 78, 0.2) !important;
}

/* My Account Orders Table styling */
.woocommerce-MyAccount-orders {
	width: 100% !important;
	border-collapse: collapse !important;
}

.woocommerce-MyAccount-orders th {
	background: #f8fafc;
	color: #64748b;
	font-weight: 700;
	padding: 1rem !important;
	border-bottom: 2px solid #e2e8f0;
}

.woocommerce-MyAccount-orders td {
	padding: 1.25rem 1rem !important;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	font-size: 0.9rem;
}

.woocommerce-MyAccount-orders .button {
	background: #f1f5f9 !important;
	color: #334155 !important;
	font-size: 0.8rem !important;
	padding: 0.5rem 1rem !important;
	border-radius: 6px !important;
}

.woocommerce-MyAccount-orders .button:hover {
	background: #e2e8f0 !important;
	color: #1e293b !important;
	box-shadow: none !important;
}

/* =========================================
 * Responsive Media Queries for Account Dashboard
 * ========================================= */

@media (max-width: 992px) {
	.nextshop-dashboard-wrap {
		flex-direction: column;
		gap: 1.5rem;
	}
	
	.nextshop-dashboard-sidebar {
		width: 100%;
		flex: none;
	}
	
	.nextshop-sidebar-user-card {
		padding: 1.25rem 1rem;
	}
	
	/* Horizontal scrolling menu for mobile navigation */
	.nextshop-dashboard-nav-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.nextshop-dashboard-nav {
		display: flex !important;
		flex-direction: row !important;
		white-space: nowrap;
	}
	
	.nextshop-dashboard-nav li {
		border-bottom: none;
		border-left: 1px solid #f1f5f9;
		flex-shrink: 0;
	}
	
	.nextshop-dashboard-nav li a {
		padding: 1rem 1.25rem;
	}
	
	.nextshop-dashboard-nav li a .nav-chevron {
		display: none; /* Hide chevron on mobile horizontal navigation */
	}
	
	.nextshop-dashboard-nav li.is-active a::after {
		right: 0;
		left: 0;
		top: auto;
		bottom: 0;
		height: 3px;
		width: auto;
	}
}

@media (max-width: 576px) {
	.nextshop-dashboard-content {
		padding: 1.25rem;
	}
	
	.nextshop-dashboard-welcome-header {
		flex-direction: column;
		text-align: center;
		padding: 1.25rem;
	}
	
	.nextshop-dashboard-stats-grid {
		grid-template-columns: 1fr;
	}
	
	.last-order-card {
		flex-direction: column;
		align-items: flex-start;
		padding: 1rem;
	}
	
	.order-meta-info {
		flex-direction: column;
		gap: 0.75rem;
	}
}

/* مخفی کردن عنوان پیش‌فرض در صفحات حساب کاربری */
.woocommerce-account .nextshop-page-header {
	display: none !important;
}

/* استایل دکمه چاپ فاکتور فارسی */
.nextshop-invoice-actions {
	margin: 1.5rem 0;
}
.nextshop-btn-invoice.button {
	background: #10b981 !important;
	color: #fff !important;
	border: 1px solid #10b981 !important;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 8px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: all 0.2s;
}
.nextshop-btn-invoice.button:hover {
	background: #059669 !important;
	border-color: #059669 !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* =========================================
 * Product tabs — override (بعد از WC)
 * ========================================= */
body.single-product .nextshop-product-tabs,
body.single-product .woocommerce-tabs.wc-tabs-wrapper {
	width: 100%;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--sp-card);
	border: 1px solid var(--sp-border);
	border-radius: 0;
	box-shadow: none;
	clear: both;
}

body.single-product .nextshop-product-tabs::before,
body.single-product .nextshop-product-tabs::after,
body.single-product .woocommerce-tabs.wc-tabs-wrapper::before,
body.single-product .woocommerce-tabs.wc-tabs-wrapper::after {
	display: none !important;
	content: none !important;
}

body.single-product .nextshop-product-tabs > ul.tabs,
body.single-product .nextshop-product-tabs > ul.wc-tabs,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.tabs,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.wc-tabs {
	list-style: none !important;
	margin: 0 0 1.75rem !important;
	padding: 0.4rem !important;
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.5rem;
	float: none !important;
	width: 100% !important;
	border: none !important;
	background: transparent !important;
	border-radius: 0;
	overflow: visible !important;
}

body.single-product .nextshop-product-tabs > ul.tabs::before,
body.single-product .nextshop-product-tabs > ul.tabs::after,
body.single-product .nextshop-product-tabs > ul.wc-tabs::before,
body.single-product .nextshop-product-tabs > ul.wc-tabs::after,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.tabs::before,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.tabs::after {
	display: none !important;
	content: none !important;
}

body.single-product .nextshop-product-tabs > ul.tabs > li,
body.single-product .nextshop-product-tabs > ul.wc-tabs > li,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.tabs > li,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.wc-tabs > li {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	border-radius: 0;
	position: relative;
	display: block !important;
}

body.single-product .nextshop-product-tabs > ul.tabs > li::before,
body.single-product .nextshop-product-tabs > ul.tabs > li::after,
body.single-product .nextshop-product-tabs > ul.wc-tabs > li::before,
body.single-product .nextshop-product-tabs > ul.wc-tabs > li::after,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.tabs > li::before,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.tabs > li::after {
	display: none !important;
	content: none !important;
	border: none !important;
	box-shadow: none !important;
	width: auto !important;
	height: auto !important;
	position: static !important;
}

body.single-product .nextshop-product-tabs > ul.tabs > li > a,
body.single-product .nextshop-product-tabs > ul.wc-tabs > li > a,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.tabs > li > a,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.wc-tabs > li > a {
	display: block;
	padding: 0.7rem 1.2rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--sp-muted);
	text-decoration: none;
	border-radius: 0;
	background: transparent;
	float: none !important;
}

body.single-product .nextshop-product-tabs > ul.tabs > li:hover > a,
body.single-product .nextshop-product-tabs > ul.wc-tabs > li:hover > a {
	color: var(--sp-text);
}

body.single-product .nextshop-product-tabs > ul.tabs > li.active,
body.single-product .nextshop-product-tabs > ul.wc-tabs > li.active,
body.single-product .woocommerce-tabs.wc-tabs-wrapper > ul.tabs > li.active {
	background: var(--sp-tabs-active-bg) !important;
	box-shadow: var(--sp-shadow);
}

body.single-product .nextshop-product-tabs > ul.tabs > li.active > a,
body.single-product .nextshop-product-tabs > ul.wc-tabs > li.active > a,
body.single-product .nextshop-product-tabs > ul.tabs > li > a[aria-selected='true'],
body.single-product .nextshop-product-tabs > ul.wc-tabs > li > a[aria-selected='true'] {
	color: var(--ns-primary);
}

body.single-product .nextshop-product-tabs .woocommerce-Tabs-panel,
body.single-product .nextshop-product-tabs .panel,
body.single-product .nextshop-product-tabs .wc-tab,
body.single-product .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs.wc-tabs-wrapper .panel {
	padding: 0.25rem 0 0;
	margin: 0;
	color: var(--sp-text-secondary);
	line-height: 1.85;
	font-size: 0.95rem;
	border: none;
	background: transparent;
}

body.single-product .nextshop-product-tabs .woocommerce-Tabs-panel::before,
body.single-product .nextshop-product-tabs .woocommerce-Tabs-panel::after,
body.single-product .nextshop-product-tabs .panel::before,
body.single-product .nextshop-product-tabs .panel::after {
	display: none !important;
	content: none !important;
}

body.single-product .nextshop-product-tabs .woocommerce-Tabs-panel h2,
body.single-product .nextshop-product-tabs .panel h2 {
	font-size: 1.1rem;
	margin: 0 0 1rem;
	color: var(--sp-text);
	font-weight: 700;
}

body.single-product .nextshop-product-tabs table.shop_attributes {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--sp-border);
	border-radius: 12px;
	overflow: hidden;
}

body.single-product .nextshop-product-tabs table.shop_attributes th,
body.single-product .nextshop-product-tabs table.shop_attributes td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--sp-border);
}

body.single-product .nextshop-product-tabs table.shop_attributes tr:last-child th,
body.single-product .nextshop-product-tabs table.shop_attributes tr:last-child td {
	border-bottom: none;
}

body.single-product .nextshop-product-tabs table.shop_attributes th {
	font-weight: 700;
	color: var(--sp-text);
	background: var(--sp-bg-subtle);
	width: 35%;
}

@media (max-width: 768px) {
	body.single-product .nextshop-product-tabs > ul.tabs,
	body.single-product .nextshop-product-tabs > ul.wc-tabs {
		flex-direction: column;
	}

}

body.single-product .nextshop-product-tabs > ul.tabs > li > a,
body.single-product .nextshop-product-tabs > ul.wc-tabs > li > a {
	text-align: center;
}


/* =========================================
 * Full Screen My Account Panel
 * ========================================= */
body.nextshop-my-account-fullscreen {
background: #f3f4f6;
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
}

.nextshop-fullscreen-wrapper {
max-width: 100% !important;
width: 100%;
height: 100%;
margin: 0 !important;
padding: 0 !important;
display: flex;
flex-direction: column;
}

.nextshop-my-account-fullscreen .nextshop-page-content {
height: 100%;
display: flex;
flex-direction: column;
}

.nextshop-my-account-fullscreen .woocommerce {
height: 100%;
display: flex;
flex-direction: column;
}

.nextshop-my-account-fullscreen .nextshop-dashboard-wrap {
display: flex;
height: 100%;
width: 100%;
overflow: hidden;
background: #fff;
}

.nextshop-my-account-fullscreen .nextshop-dashboard-sidebar {
width: 280px;
background: #1f2937;
color: #fff;
height: 100%;
overflow-y: auto;
flex-shrink: 0;
}

.nextshop-my-account-fullscreen .nextshop-dashboard-sidebar a {
color: #d1d5db;
}

.nextshop-my-account-fullscreen .nextshop-dashboard-sidebar .nextshop-sidebar-user-card {
background: #374151;
border-bottom: 1px solid #4b5563;
padding: 2rem 1.5rem;
color: #fff;
margin-bottom: 0;
border-radius: 0;
}

.nextshop-my-account-fullscreen .nextshop-dashboard-sidebar .user-name {
color: #fff;
}

.nextshop-my-account-fullscreen .nextshop-dashboard-sidebar .user-email {
color: #9ca3af;
}

.nextshop-my-account-fullscreen .nextshop-dashboard-nav-container {
padding-top: 1rem;
}

.nextshop-my-account-fullscreen .nextshop-dashboard-sidebar a:hover,
.nextshop-my-account-fullscreen .nextshop-dashboard-sidebar li.is-active a {
color: #fff;
background: rgba(255, 255, 255, 0.1);
}

.nextshop-my-account-fullscreen .nextshop-dashboard-content {
flex: 1;
height: 100%;
overflow-y: auto;
padding: 2rem;
background: #f9fafb;
}

@media (max-width: 768px) {
.nextshop-my-account-fullscreen .nextshop-dashboard-wrap {
	flex-direction: column;
}
.nextshop-my-account-fullscreen .nextshop-dashboard-sidebar {
	width: 100%;
	height: auto;
	max-height: 300px;
}
}

/* صفحه ورود مهمان — اسکرول و چیدمان موبایل */
body.nextshop-my-account-fullscreen.nextshop-auth-guest {
	height: auto;
	min-height: 100dvh;
	overflow-x: hidden;
	overflow-y: auto;
}

body.nextshop-auth-guest.nextshop-my-account-fullscreen .nextshop-fullscreen-wrapper,
body.nextshop-auth-guest.nextshop-my-account-fullscreen .nextshop-page-content,
body.nextshop-auth-guest.nextshop-my-account-fullscreen .woocommerce {
	height: auto;
	overflow: visible;
}
