/**
 * NexaShop Blog Category & Tag Archive Stylesheet
 * Fully integrated with Elementor Global Colors and Theme Typography
 * Supports RTL, mobile-first responsive layout, and modern Persian typography
 *
 * @package NexaShop
 */

.nexashop-archive-container {
	font-family: var(--nexashop-font-family, 'Vazirmatn', Tahoma, sans-serif);
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 20px 80px;
	direction: rtl;
	box-sizing: border-box;
}

/* Breadcrumbs Section */
.nexashop-archive-breadcrumbs-wrap {
	margin-bottom: 20px;
}

.nexashop-post-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--nexashop-sp-meta, #64748b);
	line-height: 1.6;
}

.nexashop-post-breadcrumbs a {
	color: var(--nexashop-sp-meta, #64748b);
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
}

.nexashop-post-breadcrumbs a:hover {
	color: var(--nexashop-primary, #ef4056);
}

.nexashop-post-breadcrumbs .sep {
	color: #cbd5e1;
	font-size: 11px;
}

.nexashop-post-breadcrumbs .current {
	color: var(--nexashop-headings, #0f172a);
	font-weight: 600;
}

/* Category & Tag Hero Header */
.nexashop-archive-hero {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 20px;
	padding: 36px 32px;
	margin-bottom: 36px;
	box-shadow: 0 4px 25px -8px rgba(0, 0, 0, 0.04);
	position: relative;
	overflow: hidden;
}

.nexashop-archive-hero::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 6px;
	height: 100%;
	background: var(--nexashop-arc-hero-border, var(--nexashop-primary, #ef4056));
}

.nexashop-archive-meta-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.nexashop-archive-badge {
	background: var(--nexashop-arc-tag-bg, #eff6ff);
	color: var(--nexashop-arc-tag-color, var(--nexashop-secondary, #2563eb));
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
}

.nexashop-tag-badge-accent {
	background: #fef3c7 !important;
	color: var(--nexashop-accent, #b45309) !important;
}

.nexashop-archive-count {
	font-size: 13px;
	color: #94a3b8;
}

.nexashop-archive-title {
	font-family: var(--nexashop-headings-font, var(--nexashop-font-family, sans-serif));
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	color: var(--nexashop-headings, #0f172a);
	margin: 0 0 12px;
	line-height: 1.4;
}

.nexashop-archive-desc {
	font-size: 15px;
	color: var(--nexashop-text, #64748b);
	line-height: 1.85;
	margin: 0;
	max-width: 860px;
}

/* Sub-categories Quick Filter Bar */
.nexashop-subcats-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9;
	flex-wrap: wrap;
}

.nexashop-subcats-label {
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
}

.nexashop-subcats-list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.nexashop-subcat-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 12.5px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nexashop-subcat-pill:hover {
	background: #ffffff;
	border-color: var(--nexashop-primary, #ef4056);
	color: var(--nexashop-primary, #ef4056);
	transform: translateY(-1px);
}

.nexashop-subcat-count {
	background: #e2e8f0;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 9999px;
}

/* Blog Cards Grid */
.nexashop-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 28px;
}

.nexashop-blog-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.03);
}

.nexashop-blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.08);
	border-color: var(--nexashop-primary, #ef4056);
}

.nexashop-card-thumb-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 ratio */
	overflow: hidden;
	background: #f8fafc;
}

.nexashop-card-thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.nexashop-card-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	color: #94a3b8;
}

.nexashop-blog-card:hover .nexashop-card-thumb {
	transform: scale(1.06);
}

.nexashop-card-cat-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
	z-index: 2;
}

.nexashop-card-cat-badge:hover {
	background: var(--nexashop-primary, #ef4056);
	color: #ffffff;
	transform: scale(1.03);
}

.nexashop-card-content {
	padding: 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.nexashop-card-title {
	font-family: var(--nexashop-headings-font, var(--nexashop-font-family, sans-serif));
	font-size: 17.5px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--nexashop-headings, #0f172a);
	margin: 0 0 10px;
}

.nexashop-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nexashop-card-title a:hover {
	color: var(--nexashop-primary, #ef4056);
}

.nexashop-card-excerpt {
	font-size: 13.5px;
	color: var(--nexashop-text, #64748b);
	line-height: 1.8;
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nexashop-card-footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: #94a3b8;
}

.nexashop-card-author {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #475569;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.nexashop-card-author:hover {
	color: var(--nexashop-primary, #ef4056);
}

.nexashop-card-author img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

.nexashop-card-meta-items {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nexashop-card-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.nexashop-card-views {
	color: #64748b;
}

/* Pagination */
.nexashop-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.nexashop-pagination ul.page-numbers,
.nexashop-pagination .page-numbers {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}

.nexashop-pagination .page-numbers a,
.nexashop-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #334155;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nexashop-pagination .page-numbers a:hover {
	border-color: var(--nexashop-primary, #ef4056);
	color: var(--nexashop-primary, #ef4056);
	transform: translateY(-1px);
}

.nexashop-pagination .page-numbers .current {
	background: var(--nexashop-arc-pagination-active, var(--nexashop-primary, #ef4056));
	border-color: var(--nexashop-arc-pagination-active, var(--nexashop-primary, #ef4056));
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(239, 64, 86, 0.3);
}

/* Empty State Card */
.nexashop-empty-search-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 20px;
	padding: 48px 32px;
	text-align: center;
	max-width: 680px;
	margin: 40px auto;
	box-shadow: 0 4px 25px -8px rgba(0, 0, 0, 0.04);
}

.nexashop-empty-icon-wrap {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.nexashop-empty-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--nexashop-headings, #0f172a);
	margin: 0 0 10px;
}

.nexashop-empty-desc {
	font-size: 14.5px;
	color: #64748b;
	line-height: 1.8;
	margin: 0 0 20px;
}

.nexashop-search-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--nexashop-primary, #ef4056);
	color: #ffffff;
	padding: 11px 24px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.25s ease;
	border: none;
	cursor: pointer;
}

.nexashop-search-btn-primary:hover {
	opacity: 0.92;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(239, 64, 86, 0.3);
	color: #ffffff;
}

.nexashop-search-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #475569;
	padding: 11px 22px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
}

.nexashop-search-btn-outline:hover {
	border-color: var(--nexashop-primary, #ef4056);
	color: var(--nexashop-primary, #ef4056);
	transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
	.nexashop-blog-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.nexashop-archive-container {
		padding: 16px 14px 60px;
	}
	.nexashop-archive-hero {
		padding: 24px 18px;
		border-radius: 16px;
		margin-bottom: 24px;
	}
	.nexashop-blog-grid {
		grid-template-columns: 1fr;
	}
	.nexashop-card-title {
		font-size: 16px;
	}
}
