/* =========================================================
   I Love PPT - Minimal Header Styles
   ========================================================= */

/* Base */
body {
	margin: 0;
	padding: 0;
	font-family: Tahoma, Vazirmatn, Arial, sans-serif;
	direction: rtl;
	background: #f8f9fa;
	color: #222;
	line-height: 1.6;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.grid-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ========== Header ========== */
.iloveppt-header {
	background: #ffffff;
	border-bottom: 1px solid #eee;
}

/* ردیف ۱ */
.header-row-1 {
	padding: 16px 0;
}

.inside-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* لوگو */
.header-logo {
	flex: 0 0 150px;
}

.header-logo img {
	max-height: 48px;
	width: auto;
}

.site-title {
	font-size: 20px;
	font-weight: 700;
	color: #111;
}

/* جستجو */
.header-search {
	flex: 1;
	max-width: 520px;
	position: relative;
}

.search-wrapper {
	display: flex;
	align-items: center;
	background: #f4f4f4;
	border-radius: 50px;
	overflow: hidden;
	border: 1px solid transparent;
	transition: border-color 0.2s;
}

.search-wrapper:focus-within {
	border-color: #ddd;
	background: #fff;
}

.search-category {
	border: none;
	background: transparent;
	padding: 10px 14px;
	font-size: 13px;
	color: #555;
	outline: none;
	cursor: pointer;
	border-left: 1px solid #e0e0e0;
	min-width: 110px;
}

.search-field {
	flex: 1;
	border: none;
	background: transparent;
	padding: 11px 16px;
	font-size: 14px;
	outline: none;
}

.search-submit {
	background: #111;
	color: #fff;
	border: none;
	padding: 10px 22px;
	font-size: 13px;
	cursor: pointer;
	border-radius: 0 50px 50px 0;
	transition: background 0.2s;
}

.search-submit:hover {
	background: #e94560;
}

/* حساب و سبد */
.header-account-cart {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 13px;
	flex-shrink: 0;
}

.account-links {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #555;
}

.account-links a:hover {
	color: #e94560;
}

.sep {
	color: #ccc;
	font-size: 12px;
}

.cart-area a {
	color: #333;
	font-weight: 500;
}

.cart-area a:hover {
	color: #e94560;
}

/* ========== ردیف ۲ ========== */
.header-row-2 {
	padding: 10px 0;
	background: #fafafa;
	border-top: 1px solid #f0f0f0;
}

.header-row-2 .inside-header-row {
	gap: 20px;
}

/* منو */
.header-menu {
	flex: 1;
}

.product-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.product-menu a {
	font-size: 13px;
	color: #444;
	padding: 4px 0;
}

.product-menu a:hover {
	color: #e94560;
}

/* پیام */
.header-message {
	flex: 0 1 260px;
	justify-content: center;
}

.header-message-box {
	background: #fff;
	border: 1px solid #eee;
	padding: 6px 14px;
	border-radius: 30px;
	font-size: 12.5px;
	color: #666;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* شبکه‌های اجتماعی */
.header-social {
	flex-shrink: 0;
}

.social-icons {
	display: flex;
	gap: 14px;
}

.social-icons a {
	font-size: 12px;
	color: #777;
}

.social-icons a:hover {
	color: #e94560;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
	.inside-header-row {
		flex-wrap: wrap;
		gap: 14px;
	}

	.header-logo {
		flex: 0 0 auto;
		order: 1;
	}

	.header-account-cart {
		order: 2;
		margin-right: auto;
	}

	.header-search {
		flex: 1 1 100%;
		max-width: 100%;
		order: 3;
	}

	.header-menu {
		flex: 1 1 100%;
		order: 4;
	}

	.header-message {
		flex: 1 1 auto;
		order: 5;
	}

	.header-social {
		order: 6;
	}
}

@media (max-width: 600px) {
	.header-row-1 {
		padding: 12px 0;
	}

	.search-wrapper {
		border-radius: 8px;
	}

	.search-submit {
		border-radius: 0 8px 8px 0;
	}

	.header-message-box {
		white-space: normal;
		border-radius: 8px;
	}

	.account-links,
	.cart-area {
		font-size: 12px;
	}
}







/* =========================================================
   Footer Styles - Minimal
   ========================================================= */

.iloveppt-footer {
	background: #1a1a2e;
	color: #ddd;
	margin-top: 60px;
	font-size: 13.5px;
}

.footer-main {
	padding: 50px 0 40px;
}

.footer-columns {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	flex-wrap: wrap;
}

.footer-col {
	flex: 1 1 200px;
	min-width: 180px;
}

.footer-about .footer-text {
	line-height: 1.8;
	color: #ccc;
}

.footer-text-placeholder {
	color: #777;
	font-size: 12px;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin-bottom: 10px;
}

.footer-menu a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #bbb;
}

.footer-menu a:hover {
	color: #fff;
}

.footer-link-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 20px;
}

.footer-social a {
	color: #bbb;
}

.footer-social a:hover {
	color: #e94560;
}

.footer-badges {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.footer-badges img {
	max-height: 60px;
	width: auto;
}

/* کپی‌رایت جدا و تمام‌عرض */
.footer-bottom {
	display: block !important;
	width: 100%;
	clear: both;
	background: #12122a;
	padding: 16px 0;
	border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom .copyright {
	text-align: center;
	font-size: 12.5px;
	color: #888;
}

/* اگر جایی کپی‌رایت داخل ستون آمده مخفی‌اش نکن؛ ساختار را درست کردیم */

@media (max-width: 768px) {
	.footer-columns {
		flex-direction: column;
		gap: 28px;
		text-align: center;
	}

	.footer-social,
	.footer-badges,
	.footer-menu {
		justify-content: center;
	}

	.footer-menu a {
		justify-content: center;
	}
}



/* مخفی کردن کپی‌رایت پیش‌فرض GeneratePress */
.site-info,
.copyright-bar,
.footer-bar,
.inside-site-info,
.generate-copyright {
	display: none !important;
}

/* فقط کپی‌رایت فوتر سفارشی ما نمایش داده شود */
.iloveppt-footer .footer-bottom {
	display: block !important;
}

.iloveppt-footer .copyright {
	display: block !important;
}





/* =========================================================
   Home Page
   ========================================================= */

.home-page {
	padding: 50px 0 70px;
}

.home-layout {
	display: flex;
	align-items: center;
	gap: 50px;
	min-height: 420px;
}

.home-col-content {
	flex: 1 1 55%;
}

.home-col-image {
	flex: 1 1 45%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.home-welcome {
	margin-bottom: 30px;
}

.home-welcome h1 {
	font-size: 28px;
	font-weight: 700;
	color: #111;
	margin: 0 0 12px;
	line-height: 1.4;
}

.home-welcome p {
	font-size: 15px;
	color: #555;
	margin: 0 0 8px;
	line-height: 1.7;
}

.home-search {
	position: relative;
	max-width: 520px;
}

.home-search .search-wrapper {
	border-radius: 50px;
}

.home-featured-image {
	max-width: 100%;
	border-radius: 12px;
	box-shadow: none;
		background: transparent;
		border-radius: 0;
}

.home-image-placeholder {
	width: 100%;
	min-height: 280px;
	background: #f0f0f0;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 18px;
}

/* Responsive */
@media (max-width: 900px) {
	.home-layout {
		flex-direction: column-reverse;
		gap: 35px;
		min-height: auto;
	}

	.home-col-content,
	.home-col-image {
		flex: 1 1 100%;
		width: 100%;
	}

	.home-search {
		max-width: 100%;
	}

	.home-welcome h1 {
		font-size: 24px;
	}

	.home-page {
		padding: 35px 0 50px;
	}
}

@media (max-width: 576px) {
	.home-welcome h1 {
		font-size: 20px;
	}
}








/* =========================================================
   AJAX Search Results
   ========================================================= */

.iloveppt-search-results {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	max-height: 380px;
	overflow-y: auto;
	z-index: 9999;
	box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.ajax-search-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.ajax-search-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	transition: background 0.15s;
}

.ajax-search-item a:hover {
	background: #f7f7f7;
}

.search-thumb img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
}

.search-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.search-title {
	font-size: 13.5px;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-price {
	font-size: 12px;
	color: #e94560;
	font-weight: 600;
}

.search-loading,
.search-no-result {
	padding: 16px;
	text-align: center;
	font-size: 13px;
	color: #777;
}








/* =========================================================
   Products Archive Page
   ========================================================= */

.products-archive {
	padding: 40px 0 60px;
}

.products-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

/* سایدبار دسته‌ها */
.products-sidebar {
	flex: 0 0 240px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 18px;
	position: sticky;
	top: 20px;
}

.sidebar-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #111;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
}

.cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-item {
	margin-bottom: 2px;
}

.cat-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 13.5px;
	color: #333;
	transition: background 0.15s;
}

.cat-link:hover,
.cat-item.active > .cat-link {
	background: #f5f5f5;
	color: #e94560;
}

.cat-count {
	font-size: 12px;
	color: #999;
}

.child-cats {
	padding-right: 14px;
	margin-top: 2px;
}

.child-cats .cat-link {
	font-size: 13px;
}

/* محتوای محصولات */
.products-content {
	flex: 1;
	min-width: 0;
}

.products-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	gap: 15px;
	flex-wrap: wrap;
}

.results-info {
	font-size: 13px;
	color: #666;
}

.toolbar-left {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.toolbar-left select {
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
	outline: none;
}

/* گرید محصولات */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	min-height: 200px;
}

.products-loading,
.products-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 50px 20px;
	color: #888;
	font-size: 14px;
}

/* کارت محصول */
.product-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.product-card-image {
	aspect-ratio: 4/3;
	background: #f5f5f5;
	overflow: hidden;
}

.product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card-body {
	padding: 14px;
}

.product-card-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-card-title a:hover {
	color: #e94560;
}

.product-card-price {
	font-size: 14px;
	font-weight: 700;
	color: #e94560;
}

.product-card-price .edd_price {
	margin: 0;
}

/* صفحه‌بندی */
.products-pagination {
	margin-top: 30px;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.products-pagination a,
.products-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 13px;
	color: #333;
	background: #fff;
	transition: all 0.15s;
}

.products-pagination a:hover {
	border-color: #e94560;
	color: #e94560;
}

.products-pagination .current {
	background: #111;
	border-color: #111;
	color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
	.products-layout {
		flex-direction: column;
	}

	.products-sidebar {
		flex: 1 1 100%;
		width: 100%;
		position: static;
	}
}

@media (max-width: 576px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.product-card-body {
		padding: 10px;
	}

	.product-card-title {
		font-size: 13px;
	}
}









/* =========================================================
   Single Product Page
   ========================================================= */

.single-download-page {
	padding: 30px 0 60px;
}

.product-breadcrumb {
	font-size: 13px;
	color: #888;
	margin-bottom: 25px;
}

.product-breadcrumb a:hover {
	color: #e94560;
}

.product-breadcrumb .sep {
	margin: 0 6px;
	color: #ccc;
}

.product-breadcrumb .current {
	color: #333;
}

/* ردیف ۲ */
.product-top {
	display: flex;
	gap: 35px;
	margin-bottom: 40px;
	align-items: flex-start;
}

.product-gallery {
	flex: 0 0 36%;
		max-width: 420px;
}

.gallery-main {
	background: #f5f5f5;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 4/3;
}

.gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-main.no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
}

.product-summary {
	flex: 1;
}

.product-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 18px;
	line-height: 1.4;
	color: #111;
}

.product-summary-row {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.product-attributes .attr-item {
	font-size: 13.5px;
	margin-bottom: 8px;
	color: #555;
}

.product-short-desc {
	font-size: 14px;
	color: #444;
	line-height: 1.7;
}

/* ردیف ۳ */
.product-middle {
	display: flex;
	gap: 30px;
	margin-bottom: 40px;
}

.product-description {
	flex: 1 1 60%;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 22px;
}

.product-side {
	flex: 0 0 32%;
}

.section-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #111;
}

.content-body {
	font-size: 14.5px;
	line-height: 1.8;
	color: #333;
}

.product-video {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 20px;
}

.video-wrapper {
	aspect-ratio: 16/9;
	background: #f0f0f0;
	border-radius: 8px;
	overflow: hidden;
}

.video-wrapper iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.related-products {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 16px;
}

.related-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.related-item a {
	display: flex;
	align-items: center;
	gap: 10px;
}

.related-item img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 6px;
}

.related-title {
	font-size: 13px;
	color: #333;
}

.related-item a:hover .related-title {
	color: #e94560;
}

/* ردیف ۴ */
.product-bottom {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 25px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	flex-wrap: wrap;
}

.product-price-box {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.price-label {
	font-size: 13px;
	color: #777;
}

.price-value {
	font-size: 22px;
	font-weight: 700;
	color: #e94560;
}

.price-currency {
	font-size: 13px;
	color: #777;
}

.product-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: 0.2s;
}

.btn-cart,
.edd-add-to-cart,
.edd_purchase_link_button {
	background: #111 !important;
	color: #fff !important;
}

.btn-cart:hover,
.edd-add-to-cart:hover {
	background: #333 !important;
}

.btn-buy {
	background: #e94560;
	color: #fff;
}

.btn-buy:hover {
	background: #d63851;
	color: #fff;
}

/* مخفی کردن فیلد تعداد EDD */
.edd_download_quantity_wrapper,
.edd-item-quantity {
	display: none !important;
}

@media (max-width: 900px) {
	.product-top,
	.product-middle {
		flex-direction: column;
	}

	.product-gallery,
	.product-side {
		flex: 1 1 100%;
		width: 100%;
	}
}









/* =========================================================
   Search Results Page
   ========================================================= */

.search-results-page {
	padding: 40px 0 60px;
}

.search-page-header {
	margin-bottom: 24px;
}

.search-page-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	color: #111;
}

.search-term {
	font-weight: 500;
	color: #e94560;
}

.search-empty {
	text-align: center;
	padding: 50px 20px;
}

.search-empty .btn {
	margin-top: 12px;
}

.search-order-form {
	display: flex;
	align-items: center;
	gap: 8px;
}












/* =========================================================
   404 Page
   ========================================================= */

.error-404-page {
	padding: 60px 0 80px;
}

.error-404-content {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.error-code {
	font-size: 92px;
	font-weight: 700;
	line-height: 1;
	color: #e94560;
	opacity: 0.9;
	margin-bottom: 10px;
}

.error-title {
	font-size: 24px;
	font-weight: 700;
	color: #111;
	margin: 0 0 12px;
}

.error-message {
	font-size: 15px;
	color: #666;
	line-height: 1.7;
	margin-bottom: 28px;
}

.error-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}

.error-search {
	max-width: 420px;
	margin: 0 auto;
}

.error-search p {
	font-size: 13px;
	color: #888;
	margin-bottom: 10px;
}

.error-search .search-wrapper {
	border-radius: 50px;
}

@media (max-width: 576px) {
	.error-code {
		font-size: 64px;
	}

	.error-title {
		font-size: 20px;
	}
}








/* =========================================================
   Cart & Checkout
   ========================================================= */

/* مخفی کردن تعداد */
.edd-item-quantity,
.edd_download_quantity_wrapper,
.edd_quantity_input,
input.edd-item-quantity,
td.edd_cart_item_quantity {
	display: none !important;
}

/* ظاهر کلی سبد */
.edd-cart,
#edd_checkout_cart,
#edd_checkout_form_wrap {
	max-width: 900px;
	margin: 0 auto;
}

#edd_checkout_cart {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #eee;
}

#edd_checkout_cart th,
#edd_checkout_cart td {
	padding: 14px 16px;
	border-bottom: 1px solid #f0f0f0;
	text-align: right;
	font-size: 14px;
}

#edd_checkout_cart th {
	background: #fafafa;
	font-weight: 600;
	color: #333;
}

#edd_checkout_cart img {
	border-radius: 6px;
	max-width: 60px;
	height: auto;
}

.edd_cart_remove_item_btn,
.edd-remove-from-cart {
	color: #e94560 !important;
	font-size: 13px;
}

.edd_cart_remove_item_btn:hover {
	color: #b00020 !important;
}

#edd_checkout_form_wrap {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 24px;
	margin-top: 24px;
}

#edd_checkout_form_wrap label {
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

#edd_checkout_form_wrap input[type="text"],
#edd_checkout_form_wrap input[type="email"],
#edd_checkout_form_wrap input[type="password"],
#edd_checkout_form_wrap select,
#edd_checkout_form_wrap textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 12px;
}

#edd-purchase-button,
.edd-submit {
	background: #e94560 !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 28px !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

#edd-purchase-button:hover,
.edd-submit:hover {
	background: #d63851 !important;
}

/* پیام سبد خالی */
.edd_empty_cart,
.cart-empty {
	text-align: center;
	padding: 50px 20px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	font-size: 15px;
	color: #666;
}

/* صفحه سبد/تسویه فاصله کلی */
.iloveppt-checkout-page #content,
.edd-checkout #content {
	padding: 40px 0 60px;
}







/* =========================================================
   Checkout RTL Fix
   ========================================================= */

.iloveppt-checkout-page,
.edd-checkout,
#edd_checkout_form_wrap,
#edd_checkout_cart_form {
	direction: rtl;
	text-align: right;
}

#edd_checkout_cart th,
#edd_checkout_cart td {
	text-align: right !important;
}

/* جابه‌جایی منطقی ستون‌ها در حالت RTL */
#edd_checkout_cart .edd_cart_item_name {
	text-align: right;
}

#edd_checkout_cart .edd_cart_item_price,
#edd_checkout_cart th.edd_cart_item_price {
	text-align: left;
}

#edd_checkout_form_wrap legend,
#edd_checkout_form_wrap h3,
#edd_checkout_cart_form h3 {
	text-align: right;
	font-size: 16px;
	margin-bottom: 14px;
}

#edd_checkout_form_wrap p {
	text-align: right;
}

#edd_checkout_form_wrap input,
#edd_checkout_form_wrap select,
#edd_checkout_form_wrap textarea {
	text-align: right;
	direction: rtl;
}

#edd_checkout_form_wrap input[type="email"] {
	direction: ltr;
	text-align: left;
}

/* دکمه پرداخت تمام‌عرض‌تر و مرتب */
#edd_purchase_submit {
	text-align: right;
	margin-top: 16px;
}




/* =========================================================
   Mobile only (تا 768px) — تبلت مثل دسکتاپ می‌ماند
   ========================================================= */

.mobile-bar,
.mobile-menu-panel,
.mobile-menu-overlay {
	display: none;
}

@media (max-width: 768px) {

	/* نوار موبایل */
	.mobile-bar {
		display: block;
		background: #fff;
		border-bottom: 1px solid #eee;
		padding: 12px 0;
	}

	.mobile-bar-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.mobile-menu-toggle {
		background: #111;
		color: #fff;
		border: none;
		border-radius: 8px;
		padding: 10px 14px;
		font-size: 14px;
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		opacity: 1 !important;
		visibility: visible !important;
	}

	.mobile-menu-toggle:hover {
		background: #e94560;
		color: #fff;
	}

	.mobile-cart-link {
		font-size: 13px;
		font-weight: 600;
		color: #111;
		padding: 8px 10px;
	}

	/* هدر دسکتاپ در موبایل مخفی */
	.header-row-1,
	.header-row-2 {
		display: none !important;
	}

	/* لوگو وسط — اگر خواستی لوگو را در mobile-bar هم نشان بده */
	.mobile-logo {
		flex: 1;
		text-align: center;
	}

	.mobile-logo img {
		max-height: 40px;
		margin: 0 auto;
	}

	/* پنل منو */
	.mobile-menu-panel {
		display: block;
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		max-width: 85%;
		height: 100%;
		background: #fff;
		z-index: 10000;
		padding: 20px 16px;
		overflow-y: auto;
		transition: right 0.25s ease;
		box-shadow: -4px 0 24px rgba(0,0,0,0.12);
	}

	.mobile-menu-panel.is-open {
		right: 0;
	}

	.mobile-menu-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.45);
		z-index: 9999;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: 0.25s;
	}

	.mobile-menu-overlay.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.mobile-menu-close {
		background: #f5f5f5;
		border: none;
		border-radius: 8px;
		padding: 8px 12px;
		font-size: 13px;
		margin-bottom: 16px;
		cursor: pointer;
		width: 100%;
		text-align: center;
	}

	.mobile-menu-list {
		list-style: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.mobile-menu-list li {
		border-bottom: 1px solid #f0f0f0;
		margin: 0;
		list-style: none;
	}

	.mobile-menu-list a {
		display: block !important;
		padding: 14px 8px !important;
		font-size: 15px !important;
		color: #222 !important;
		opacity: 1 !important;
		visibility: visible !important;
		text-decoration: none !important;
	}

	.mobile-menu-list a:hover {
		color: #e94560 !important;
		background: #fafafa;
	}

	.mobile-menu-list .sub-menu {
		list-style: none;
		margin: 0;
		padding: 0 0 0 12px;
		display: none;
		background: #fafafa;
	}

	.mobile-menu-list .sub-menu a {
		font-size: 14px !important;
		padding: 10px 8px !important;
	}

	body.mobile-menu-open {
		overflow: hidden;
	}

	/* ===== صفحه اول موبایل ===== */
	.home-col-image {
		display: none !important;
	}

	.home-layout {
		flex-direction: column;
		min-height: auto;
		gap: 24px;
		text-align: center;
	}

	.home-col-content {
		width: 100%;
		text-align: center;
	}

	.home-welcome {
		text-align: center;
	}

	.home-welcome h1,
	.home-welcome p {
		text-align: center;
	}

	.home-search {
		max-width: 100%;
		margin: 0 auto;
	}

	.home-search .search-wrapper {
		justify-content: center;
	}
}

/* تبلت و بالاتر: منوی موبایل نباشد */
@media (min-width: 769px) {
	.mobile-bar,
	.mobile-menu-panel,
	.mobile-menu-overlay {
		display: none !important;
	}

	.header-row-1,
	.header-row-2 {
		display: block;
	}

	.header-row-1 .inside-header-row,
	.header-row-2 .inside-header-row {
		display: flex;
	}
}




@media (max-width: 768px) {
	.mobile-menu-panel.is-open {
		display: block !important;
		right: 0 !important;
		visibility: visible !important;
		opacity: 1 !important;
		z-index: 10000 !important;
	}

	.mobile-menu-overlay.is-open {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		z-index: 9999 !important;
	}

	.mobile-menu-toggle {
		pointer-events: auto !important;
		cursor: pointer !important;
		z-index: 10001;
		position: relative;
	}
}



.footer-menu a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer-link-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
}







.cat-link {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cat-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}










