/* =========================================================
   طراحی جدید کارت‌های محصول - آرشیو/دسته‌بندی + اسلایدر (راست‌به‌چپ)
   قالب فرنام
   ========================================================= */

/* گرید محصولات در صفحات آرشیو/دسته‌بندی */
ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
	direction: rtl;
}

ul.products li.tf-shop-card-item {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	list-style: none;
}

@media (max-width: 1200px) {
	ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 420px) {
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* کارت محصول - مشترک بین آرشیو و اسلایدر */
.tf-shop-card,
.tf-pslider-card {
	position: relative;
	background: #F5F5F5;
	border-radius: 16px;
	padding: 20px;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease;
	direction: rtl;
	text-align: right;
}

.tf-shop-card:hover,
.tf-pslider-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.tf-shop-badges,
.tf-pslider-badges {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.tf-badge-sale {
	background: #1A1A1A;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 30px;
	display: inline-block;
}

.tf-badge-rate {
	background: #fff;
	color: #1A1A1A;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 30px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.tf-badge-rate svg {
	width: 12px;
	height: 12px;
	fill: #FFC107;
}

.tf-shop-img,
.tf-pslider-img {
	display: block;
	text-align: center;
	margin: 10px 0 16px;
}

.tf-shop-img img,
.tf-pslider-img img {
	max-width: 100%;
	height: 190px;
	width: auto;
	object-fit: contain;
	margin: 0 auto;
}

.tf-shop-info { margin-top: auto; }

.tf-shop-cat,
.tf-pslider-cat {
	display: block;
	font-size: 13px;
	color: #8A8A8A;
	margin-bottom: 4px;
}

.tf-shop-title,
.tf-pslider-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #1A1A1A !important;
	text-decoration: none;
	margin-bottom: 10px;
	line-height: 1.6;
}

.tf-shop-title:hover,
.tf-pslider-title:hover { opacity: .8; }

.tf-shop-price,
.tf-pslider-price {
	font-size: 15px;
	font-weight: 700;
	color: #1A1A1A;
	margin-top: auto;
}

.tf-shop-price del,
.tf-pslider-price del {
	color: #AFAFAF;
	font-weight: 400;
	font-size: 13px;
	margin-right: 6px;
	text-decoration: line-through;
	opacity: 1;
}

.tf-shop-price del .amount,
.tf-pslider-price del .amount { color: #AFAFAF; }

.tf-shop-price ins,
.tf-pslider-price ins { text-decoration: none; }

.tf-shop-out-of-stock,
.tf-pslider-out-of-stock {
	color: #d63638;
	font-size: 13px;
	font-weight: 700;
}

/* =========================================================
   صفحه‌بندی (Pagination) - راست‌به‌چپ
   ========================================================= */
nav.woocommerce-pagination {
	direction: rtl;
	margin-top: 40px;
	display: flex;
	justify-content: center;
}
nav.woocommerce-pagination ul.page-numbers {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
nav.woocommerce-pagination ul.page-numbers li { list-style: none; }
nav.woocommerce-pagination .page-numbers li a.page-numbers,
nav.woocommerce-pagination .page-numbers li span.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 6px;
	border-radius: 50%;
	background: transparent;
	color: #1A1A1A;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
nav.woocommerce-pagination .page-numbers li span.page-numbers.current {
	background: #1A1A1A;
	color: #fff;
}
nav.woocommerce-pagination .page-numbers li a.page-numbers:hover { background: #EDEDED; }
nav.woocommerce-pagination .page-numbers li a.next.page-numbers,
nav.woocommerce-pagination .page-numbers li a.prev.page-numbers {
	background: transparent;
	border: 1px solid #ddd;
}
nav.woocommerce-pagination .page-numbers li a.next.page-numbers:hover,
nav.woocommerce-pagination .page-numbers li a.prev.page-numbers:hover {
	background: #1A1A1A;
	color: #fff;
	border-color: #1A1A1A;
}
