/*
Theme Name: AsanBazar
Theme URI: 
Author: محسن خلیلی
Author URI: 
Description: آسان بازار (AsanBazar) - تم سفارشی فروشگاهی
Version: 5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: app-theme
*/

/* فونت شور — کل قالب */
@font-face {
	font-family: 'Shoor';
	src: url('assets/fonts/shoor/webfonts/woff2/ShoorFaNum-Light.woff2') format('woff2'),
	     url('assets/fonts/shoor/webfonts/woff/ShoorFaNum-Light.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Shoor';
	src: url('assets/fonts/shoor/webfonts/woff2/ShoorFaNum-Regular.woff2') format('woff2'),
	     url('assets/fonts/shoor/webfonts/woff/ShoorFaNum-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Shoor';
	src: url('assets/fonts/shoor/webfonts/woff2/ShoorFaNum-SemiBold.woff2') format('woff2'),
	     url('assets/fonts/shoor/webfonts/woff/ShoorFaNum-SemiBold.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Shoor';
	src: url('assets/fonts/shoor/webfonts/woff2/ShoorFaNum-SemiBold.woff2') format('woff2'),
	     url('assets/fonts/shoor/webfonts/woff/ShoorFaNum-SemiBold.woff') format('woff');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Shoor';
	src: url('assets/fonts/shoor/webfonts/woff2/ShoorFaNum-Bold.woff2') format('woff2'),
	     url('assets/fonts/shoor/webfonts/woff/ShoorFaNum-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Shoor';
	src: url('assets/fonts/shoor/webfonts/woff2/ShoorFaNum-ExtraBold.woff2') format('woff2'),
	     url('assets/fonts/shoor/webfonts/woff/ShoorFaNum-ExtraBold.woff') format('woff');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* رنگ کل صفحه و همیشه نسخهٔ موبایل (دسکتاپ هم موبایل) */
body {
	font-family: 'Shoor', system-ui, sans-serif;
	font-size: 16px;
	margin: 0;
	padding: 0;
	background-color: #878469;
}
a { text-decoration: none; color: inherit; }

/* در دسکتاپ هم عرض موبایل — محتوا مثل موبایل لود می‌شود */
.site-wrapper {
	display: flex;
	flex-direction: column;
	max-width: 428px;
	min-height: 100vh;
	margin: 0 auto;
	padding: 0 1rem;
	background-color: #e5e3d4;
	box-sizing: border-box;
}
.site-wrapper * { box-sizing: border-box; }

/* نوار پیشرفت بالای صفحه هنگام جابه‌جایی بین صفحات */
.page-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 99999;
	pointer-events: none;
	background: transparent;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.page-progress.is-active {
	opacity: 1;
}
.page-progress__bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #1a4d3e, #2e8b6b);
	box-shadow: 0 0 8px rgba(26, 77, 62, 0.5);
	transition: width 0.25s ease-out;
}

/* محتوای اصلی فضای بین هدر و فوتر را پر می‌کند تا فوتر همیشه پایین صفحه بماند (صفحه خالی یا پر) */
.site-main {
	flex: 1;
	margin-bottom: 20px;
}

/* هدر — آیکون جستجو | عنوان | آیکون تماس */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	margin: 0 -1rem;
	padding-left: 1rem;
	padding-right: 1rem;
	background-color: #e5e3d4;
}
.site-title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 600;
}
.site-title a {
	color: #1a4d3e;
	text-decoration: none;
}
.site-title a:hover { opacity: 0.85; }
.site-title .site-logo {
	display: block;
	height: 32px;
	width: auto;
}
.header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #7a6b5d;
	text-decoration: none;
	padding: 0.5rem;
}
.header-icon:hover { color: #5a4d42; }
.header-icon svg { display: block; }

/* هدر آرشیو محصول — فقط در صفحه آرشیو محصول: آیکون برگشت | عنوان دسته | عکس دسته */
.archive-product-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 1rem;
	margin: 0 -1rem;
	padding-left: 1rem;
	padding-right: 1rem;
	direction: rtl;
	min-height: 72px;
	box-sizing: border-box;
}
.archive-product-header .archive-product-header__back {
	flex-shrink: 0;
}
.archive-product-header .archive-product-header__back img {
	display: block;
	width: 24px;
	height: 24px;
}
.archive-product-header__title-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 0;
	padding: 0 0.5rem;
}
.archive-product-header__title {
	margin: 0;
	padding: 0;
	font-family: 'Shoor', system-ui, sans-serif;
	font-weight: 600;
	font-style: normal;
	font-size: 22px;
	line-height: 100%;
	letter-spacing: 0;
	text-align: center;
	vertical-align: middle;
	color: #333;
	min-width: 0;
}
.archive-product-header__spacer {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	visibility: hidden;
}
.archive-product-header__img-wrap {
	flex-shrink: 0;
	width: 40px;
	height: 31px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3.43px;
	overflow: hidden;
	background: #e8e6dc;
}
.archive-product-header__img {
	width: 40px;
	height: 31px;
	object-fit: cover;
	opacity: 1;
	border-radius: 3.43px;
	display: block;
}

/* هدر صفحه محصول */
.single-product-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	direction: rtl;
	flex-direction: row-reverse;
}

.single-product-header__chips {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100% - 86px);
	overflow: hidden;
	flex-direction: row-reverse;
}

.single-product-header__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	text-decoration: none;
	flex-shrink: 0;
}

.single-product-header__cart img {
	display: block;
	width: 20px;
	height: 20px;
}

.single-product-header__cart-badge {
	position: absolute;
	top: -8px;
	left: -10px;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #8b5f3d;
	color: #fff;
	padding: 0 4px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	text-align: center;
}

.single-product-header__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 3px 11px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.single-product-header__chip--category {
	background: #e8e6dc;
	color: #4a433d;
}

.single-product-header__chip--home {
	background: #fff;
	color: #4a433d;
	border: 1px solid #d8d3c7;
}

.single-product-header__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.single-product-header__back img {
	display: block;
	width: 24px;
	height: 24px;
}

/* بنر صفحه اصلی */
.home-banner {
	margin: 0 -1rem 1rem;
	border-radius: 1rem;
	overflow: hidden;
	background: #e8e6dc;
}
.home-banner__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	min-height: 140px;
}
.home-banner__image {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	border-radius: 0.75rem;
	overflow: hidden;
	background: #ddd;
}
.home-banner__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.home-banner__image--placeholder {
	background: linear-gradient(135deg, #d4d2c8 0%, #e0ded4 100%);
}
.home-banner__content { flex: 1; min-width: 0; }
.home-banner__title {
	margin: 0 0 0.25rem;
	font-size: 1.375rem;
	font-weight: 700;
	color: #1a3d32;
}
.home-banner__subtitle {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	color: #5a5348;
}
.home-banner__btn {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	background: #1a4d3e;
	color: #fff;
	text-decoration: none;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
}
.home-banner__btn:hover { background: #153d31; color: #fff; }
.home-banner__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem;
}
.home-banner__dot {
	width: 0.5rem;
	height: 0.25rem;
	border-radius: 2px;
	background: #b8b4a8;
}
.home-banner__dot[aria-current="true"] { background: #fff; width: 1rem; }

/* اسلایدر صفحه اصلی */
.home-slider {
	margin: 0 -1rem 1rem;
	border-radius: 1rem;
	overflow: hidden;
	background: #e8e6dc;
	position: relative;
}
.home-slider__slides {
	position: relative;
	min-height: 140px;
}
.home-slider__slide {
	display: none;
	padding: 0;
}
.home-slider__slide--active {
	display: block;
}
.home-slider__slide img,
.home-slider__link img {
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
	vertical-align: middle;
	padding-left: 20px;
	padding-right: 20px;
}
.home-slider__link {
	display: block;
	line-height: 0;
}
.home-slider__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem;
}
.home-slider__dot {
	width: 0.5rem;
	height: 0.25rem;
	border-radius: 2px;
	background: #b8b4a8;
	border: none;
	cursor: pointer;
	padding: 0;
}
.home-slider__dot:hover { background: #9a9488; }
.home-slider__dot--active,
.home-slider__dot[aria-current="true"] {
	background: #1a4d3e;
	width: 1rem;
}

/* هزینه ارسال زیر بنر */
.home-shipping {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	margin-bottom: 1rem;
}
.home-shipping__icon {
	flex-shrink: 0;
	color: #b85c38;
}
.home-shipping__icon svg { display: block; }
.home-shipping__text {
	margin: 0;
	font-size: 1rem;
	color: #b85c38;
	line-height: 1.4;
}
.home-shipping__text strong { font-weight: 600; }

/* دسته‌بندی محصولات — کارت با تصویر، عنوان، تعداد، لینک به آرشیو */
.home-categories { margin-bottom: 1.5rem; }
.home-categories__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.home-categories__item { margin: 0; }
.home-categories__card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 1rem;
	background: #f5f3eb;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	text-decoration: none;
	color: inherit;
	direction: rtl;
	transition: box-shadow 0.2s, background 0.2s;
}
.home-categories__card:hover {
	background: #eeebe2;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.home-categories__image {
	flex-shrink: 0;
	width: 110px;
	/* height: 64px; */
	border-radius: 0.5rem;
	overflow: hidden;
}
.home-categories__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.home-categories__image--placeholder {
	background: linear-gradient(135deg, #d8d6cc 0%, #e5e3d8 100%);
}
.home-categories__body {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}
.home-categories__title {
	font-size: 20px;
	font-weight: 600;
	color: #2d2a24;
}
.home-categories__meta {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: #6a6358;
	font-size: 1rem;
}
.home-categories__count { font-variant-numeric: tabular-nums; }
.home-categories__arrow {
	display: flex;
	color: #8b8278;
}
.home-categories__arrow svg { display: block; }

/* بنر پشتیبانی / ضمانت / پرداخت امن — زیر دسته‌بندی‌ها */
.home-trust-bar {
	margin: 0 -1rem 1.5rem;
}
.home-trust-bar__image {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

/* بخش داستان آسان بازار — بنر تمام‌عرض Frame 26.png + متن و دکمه */
.home-about {
	margin: 0 -1rem 1.5rem;
	direction: rtl;
	color: #fff;
}

.home-about__banner {
	width: 100%;
	line-height: 0;
}
.home-about__banner-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.home-about__content {
	padding: 2rem 1rem;
	background-color: #275449;
	text-align: center;
	margin-top: -5px;
}
.description.home-about__text {
	line-height: 1.8;
	font-size: 1.0625rem;
	text-align: justify;
	color: #d1d1d1;
	margin: 0 0 40px;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	display: -webkit-box;
	transition: -webkit-line-clamp 0.25s ease, overflow 0.25s ease;
}
.description.home-about__text.is-expanded {
	-webkit-line-clamp: unset;
	overflow: visible;
	display: block;
}
.description strong { color: #fff; }
.description p { margin: 0; }

/* دکمه بیشتر بخوانید + فلش */
.read-more.home-about__btn {
	cursor: pointer;
	font-size: 1rem;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: none;
	color: #fff;
	font-family: inherit;
	padding: 0;
}
.read-more.home-about__btn:hover { opacity: 0.9; }
.arrow-down.home-about__btn-icon {
	border: solid #fff;
	border-width: 0 2px 2px 0;
	display: inline-block;
	width: 8px;
	height: 8px;
	padding: 0;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.read-more.home-about__btn.is-expanded .arrow-down.home-about__btn-icon {
	transform: rotate(-135deg);
}

/* آکاردئون پرسش‌های متداول — کادر غیر سبز (#e9e8d5) */
.accordion-wrap {
	background-color: #e9e8d5;
	padding: 2rem 1rem 2.5rem;
}
.accordion-container {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}
.accordion-header-title {
	text-align: center;
	color: #2d5a4c;
	margin-bottom: 1.5rem;
}
.accordion-header-title__sub {
	font-size: 22px;
	margin: 0 0 0.25rem;
	font-weight: 500;
}
.accordion-header-title__main {
	font-size: 2.125rem;
	margin: 0;
	font-weight: 700;
}
.accordion-item {
	border-bottom: 1px solid #8a8a8a;
}
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
	width: 100%;
	padding: 1.25rem 0.75rem;
	background: none;
	border: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	text-align: right;
	font-size: 1.125rem;
	font-weight: 500;
	color: #333;
	font-family: inherit;
	transition: 0.3s;
}
.accordion-header:hover { opacity: 0.9; }
.accordion-header .accordion-icon {
	width: 14px;
	height: 14px;
	border-right: 2px solid #8b4513;
	border-bottom: 2px solid #8b4513;
	transform: rotate(45deg);
	transition: 0.3s;
	flex-shrink: 0;
}
.accordion-header.active .accordion-icon {
	transform: rotate(-135deg);
	margin-top: 7px;
}
.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	padding: 0 0.75rem;
}
.accordion-content p {
	font-size: 20px;
	line-height: 1.8;
	color: #555;
	padding-bottom: 1.25rem;
	margin: 0;
	text-align: justify;
}

/* تصویر بالای فوتر — Frame10.svg */
.footer-before-img {
	margin: 0 -1rem;
	line-height: 0;
}
.footer-before-img__img {
	display: block;
	height: auto;
	width: 100%;
}

/* فوتر آسان بازار */
.footer {
	background-color: #2F2F2F;
	color: #fff;
	padding: 0px 20px;
	margin: 0 -1rem;
	direction: rtl;
}
.footer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
}
.logo-text {
	color: #5eb48a;
	font-size: 34px;
	font-weight: bold;
}
.logo-icon img {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #fff;
	padding: 5px;
	object-fit: contain;
}
.contact-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #444;
	flex-direction: row-reverse;
}
.phone-box {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
}
.phone-box .phone-icon { display: flex; color: #fff; }
.phone-box .phone-icon svg { display: block; }
.phone-box a { color: #fff; text-decoration: none; }
.support-time {
	color: #bbb;
	font-size: 15px;
}
.social-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #444;
	flex-direction: row-reverse;
}
.social-icons {
	display: flex;
	gap: 20px;
	font-size: 26px;
}
.social-icons a { color: #fff; }
.social-icons a:hover { opacity: 0.85; }
.social-icons svg { display: block; }
.social-icons__img { display: block; width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.social-icons a:hover .social-icons__img { opacity: 0.9; }
.social-text {
	font-size: 16px;
	color: #bbb;
}
.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-links li {
	border-bottom: 1px solid #444;
}
.footer-links a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 5px;
	color: #fff;
	text-decoration: none;
	font-size: 17px;
}
.footer-links a:hover { opacity: 0.9; }
.footer-links a::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid #555;
	border-bottom: 2px solid #555;
	transform: rotate(-45deg);
}
.copyright {
	text-align: center;
	color: #bbb;
	font-size: 14px;
	margin-top: 40px;
	padding-bottom: 10px;
}

/* ——— کارت محصول آرشیو (مطابق reference) ——— */
.product-cards-list {
	list-style: none;
	margin: 0 -1rem 1.5rem;
	padding: 0 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.product-card {
	margin: 0;
	list-style: none;
	position: relative;
}
.product-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
	position: relative;
	z-index: 1;
}
.product-card__link:hover { opacity: 1; }
.product-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 15px;
	z-index: -1;
}
.product-card__inner {
	display: flex;
	align-items: stretch;
	flex-direction: row-reverse;
	justify-content: space-between;
	gap: 1rem;
	padding: 20px;
	height: 150px;
	min-height: 150px;
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	direction: rtl;
	position: relative;
	overflow: visible;
	max-width: 100%;
	box-sizing: border-box;
}
@media (max-width: 389px) {
    .product-card__inner {
        height: 185px !important;
    }
}

@media (max-width: 340px) {
    .product-card__inner {
        height: 215px !important;
    }
}
.product-card__image-wrap {
	position: relative;
	flex-shrink: 0;
	width: 110px;
	height: 110px;
	border-radius: 0.5rem;
	overflow: visible;
	background: #eee;
}
.product-card__image-link {
	border-radius: 0.5rem;
	overflow: hidden;
	display: block;
	width: 100%;
	height: 100%;
}
.product-card__image {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	vertical-align: middle;
}
.product-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-left: 15px;
	gap: 0;
}
.product-card__title {
	margin: 0 0 10px 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.6;
	color: #333;
}
.product-card__title a {
	color: #333;
	text-decoration: none;
}
.product-card__title a:hover { opacity: 0.85; }
.product-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 15px;
	flex-direction: row-reverse;
}
.product-card__rating {
	font-size: 1rem;
	color: #444;
	display: flex;

}
.product-card__rating::before {
	content: "★";
	color: #ffc107;
	margin-left: 5px;
}
.product-card__stock {
	margin: 0;
	font-family: 'Shoor', system-ui, sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 13px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: right;
	vertical-align: middle;
	color: #FF0000;
}
.product-card__stock--out {
	font-family: 'Shoor', system-ui, sans-serif;
	font-weight: 500;
	font-size: 13px;
	line-height: 100%;
	letter-spacing: 0%;
	text-align: right;
	vertical-align: middle;
	color: #FF0000;
}
.product-card__price-section {
	display: flex;
	flex-direction: column;
	flex-direction: row-reverse;
	align-items: flex-start;
}
.product-card__badge {
	align-self: flex-end;
	background: #8d6e63;
	color: #fff;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 0.9375rem;
	margin-bottom: 5px;
}

.product-card__price {
	display: flex;
	flex-direction: row-reverse;
	font-family: 'Shoor', system-ui, sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 18px;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;
	color: #333;
	align-items: center;
}
.product-card__price .amount,
.product-card__price bdi {
	font-family: 'Shoor', system-ui, sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;
	color: #333;
}
.product-card__price .current-price-part { font-size: 18px; }
.product-card__price del { color: #bbb; font-weight: 400; font-size: 1rem; display: block; margin-top: 2px; text-decoration: line-through; }
.product-card__price del .amount { color: #bbb; font-weight: 400; }
.product-card__btn {
	display: inline-block;
	width: 100%;
	padding: 0.5rem 0.75rem;
	background: #8b7355;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-top: 0.25rem;
}
.product-card__btn:hover { opacity: 0.9; color: #fff; }

/* دکمه افزودن به سبد — سبز تیره گرد، گوشه پایین راست تصویر (مطابق reference) */
.product-card__action--add {
	position: absolute;
	bottom: -10px;
	right: -10px;
	left: auto;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: #2d4a43;
	color: #fff;
	border: 3px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 26px;
	line-height: 1;
	font-weight: 300;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	z-index: 2;
}
.product-card__action--add:hover { background: #243d37; color: #fff; }
.product-card__action--add {
	z-index: 2;
	cursor: pointer;
	transition: background 0.2s ease;
}

/* نوار کنترل در سبد */
.quantity-controls-wrapper {
	position: absolute;
	bottom: 0.25rem;
	left: 0.25rem;
	right: 0.25rem;
	z-index: 3;
}
.product-card__actions--in-cart {
	position: absolute;
	bottom: 0.25rem;
	left: 0.25rem;
	right: 0.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem;
	background: rgba(255,255,255,0.95);
	border-radius: 999px;
	padding: 0.2rem 0.35rem;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.product-card__action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	text-decoration: none;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	padding: 0;
}
.product-card__action:hover { background: #eee; color: #333; }
.product-card__action svg { display: block; }
.product-card__qty-form { display: flex; margin: 0; }
.product-card__qty-num {
	font-size: 1rem;
	font-weight: 600;
	color: #2d2a24;
	min-width: 1.5rem;
	text-align: center;
}
.product-card__action--plus,
.product-card__action--minus { font-weight: 400; }
.product-card__action--remove { color: #c0392b; }
.product-card__action--remove:hover { color: #a5281a; background: #ffeaea; }


.woocommerce ul.products[class*=columns-] li.product,
.woocommerce-page ul.products[class*=columns-] li.product {
	width: 100% !important;
	box-sizing: border-box;
}

/* مخفی کردن breadcrumb و عنوان صفحه در آرشیو محصول */
.post-type-archive-product .woocommerce-breadcrumb,
.post-type-archive-product .woocommerce-products-header,
.tax-product_cat .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-products-header,
.tax-product_tag .woocommerce-breadcrumb,
.tax-product_tag .woocommerce-products-header {
	display: none !important;
}

/* فرم مرتب‌سازی وویسکامرس — هماهنگ با UI تم */
form.woocommerce-ordering {
	margin: 0 0 1rem;
	padding: 0;
}
form.woocommerce-ordering select.orderby {
	font-family: 'Shoor', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	color: #333;
	background-color: #fff;
	border: 1px solid #b8b4a8;
	border-radius: 0.5rem;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	min-height: 40px;
	height: auto;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5348' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 0.75rem center;
	direction: rtl;
}
form.woocommerce-ordering select.orderby:hover {
	border-color: #8b7355;
}
form.woocommerce-ordering select.orderby:focus {
	outline: none;
	border-color: #1a4d3e;
	box-shadow: 0 0 0 2px rgba(26, 77, 62, 0.2);
}
form.woocommerce-ordering label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #5a5348;
	margin-bottom: 0.35rem;
}

aside#secondary {
	display: none;
}

/* ——— ناوبری پایین (فقط موبایل) ——— */
.bottom-nav {
	display: none;
}

@media (min-width: 0px) {
	.bottom-nav {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		margin: 0 auto;
		bottom: 0;
		width: 100%;
		max-width: 428px;
		background-color: #e5e3d4;
		padding: 10px 10px 0;
		border-radius: 25px 25px 0 0;
		box-sizing: border-box;
		z-index: 100;
		border: 1px solid #8B5E3C;
	}

	.bottom-nav__cart-summary {
		direction: rtl;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		background: #e5e3d4;
		border-radius: 18px;
		padding: 30px 10px;
		margin: 0 0 8px;
		position: relative;
		flex-direction: row-reverse;
	}

	.cart-total-fragment:empty {
		display: none;
	}

	.bottom-nav__checkout-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-decoration: none;
		background: #2D4A43;
		color: #fff;
		border-radius: 14px;
		padding: 14px 18px;
		font-size: 22px;
		font-weight: 600;
		min-width: 170px;
		white-space: nowrap;
	}

	.bottom-nav__checkout-btn:hover {
		opacity: 0.95;
	}

	.bottom-nav__total {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 6px;
		color: #2D4A43;
		min-width: 0;
	}

	.bottom-nav__total-label {
		font-size: 18px;
		font-weight: 600;
		line-height: 1.1;
	}

	.bottom-nav__total-amount {
		display: flex;
		align-items: baseline;
		gap: 8px;
		font-size: 24px;
		font-weight: 700;
		line-height: 1.1;
	}

	.bottom-nav__total-currency {
		font-size: 18px;
		font-weight: 600;
		opacity: 0.9;
	}

	.bottom-nav__list {
		display: flex;
		justify-content: space-around;
		align-items: flex-end;
		list-style: none;
		padding: 0;
		height: 70px;
		position: relative;
		z-index: 1;
		background: #2D4A43;
		margin: -10px;
		border-radius: 25px 25px 0 0;
	}

	.bottom-nav__item {
		flex: 1;
		text-align: center;
		transition: all 0.3s ease;
	}

	.bottom-nav__item a {
		text-decoration: none;
		color: #FFFFFF;
		display: flex;
		flex-direction: column;
		align-items: center;
		font-size: 14px;
		font-family: 'Shoor', system-ui, sans-serif;
		margin-bottom: 10px;
	}

	.bottom-nav__item.active {
		background-color: #8D6242;
		border-radius: 50px 50px 0 0;
		height: 100px;
		display: flex;
		justify-content: center;
		border: 5px solid #fff;
		border-bottom: none;
		position: relative;
		padding-top: 40px;
	}

	.bottom-nav__item.active a {
		padding-bottom: 10px;
	}

	.bottom-nav__icon-wrapper {
		position: relative;
		margin-bottom: 5px;
		font-size: 26px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.bottom-nav__icon {
		display: block;
		width: 25px;
		height: 25px;
		object-fit: contain;
	}

	.bottom-nav__badge {
		position: absolute;
		top: -8px;
		right: -12px;
		background-color: #8D6242;
		color: #e5e3d4;
		border-radius: 50%;
		padding: 2px 6px;
		font-size: 22px;
		font-weight: 600;
		line-height: 1.2;
		min-width: 18px;
		height: 18px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		box-sizing: border-box;
	}

	/* فضای پایین صفحه برای دیده شدن ناوبری */
	.site-wrapper {
		padding-bottom: 90px;
	}

	/* روی صفحه سبد، به‌خاطر بخش جمع کل، فضای بیشتری لازم است */
	body.woocommerce-cart .site-wrapper {
		padding-bottom: 170px;
	}
}

/* حالت خالی سبد خرید — آیکن + متن «سبد خرید شما خالی است» */
.cart-empty-state {
	text-align: center;
	padding: 17.5rem 1rem;
}
.cart-empty-state__icon {
	display: block;
	margin: 0 auto 1rem;
	width: 80px;
	height: 80px;
	object-fit: contain;
	/* رنگ قهوه‌ای تیره برای خوانایی روی پس‌زمینه روشن */
	filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(500%) hue-rotate(350deg);
}
.cart-empty-state__text {
	font-size: 1.25rem;
	color: #5c4033;
	margin: 0;
	direction: rtl;
}

.cart-empty-state__back {
	margin: 1.25rem 0 0;
}

/* وقتی سبد با بلاک Cart خالی است، بلاک پیش‌فرض (عنوان + محصولات جدید) را مخفی کن و فقط حالت خالی سفارشی دیده شود */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
	display: none !important;
}

/* ——— کارت سبد خرید — تصویر راست، جزئیات چپ (row-reverse)، بدون تداخل با قالب ——— */
body.woocommerce-cart .cart-product-cards-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 600px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

body.woocommerce-cart .product-card {
	direction: rtl;
	display: flex;
	flex-direction: row;
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 12px;
	gap: 15px;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

body.woocommerce-cart .image-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 120px;
	flex-shrink: 0;
}

/* جداسازی تصویر از استایل‌های پیش‌فرض قالب/ووکامرس */
body.woocommerce-cart .product-image-wrapper {
	line-height: 0;
	display: block;
	width: 120px;
	height: 120px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
}

body.woocommerce-cart .product-image-wrapper a,
body.woocommerce-cart .product-image-wrapper img {
	display: block;
	width: 100%;
	height: 100%;
}

body.woocommerce-cart .product-img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
}

body.woocommerce-cart .quantity-controller {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #e0e0e2;
	border-radius: 8px;
	padding: 4px 8px;
	width: 110px;
	background: #fff;
	margin-top: -30px;
}

body.woocommerce-cart .quantity-controller button.plus,
body.woocommerce-cart .quantity-controller button.minus {
	background: none;
	border: none;
	cursor: pointer;
	color: #1a535c;
	text-decoration: none;
	display: flex;
	align-items: center;
}

body.woocommerce-cart .quantity-controller button.plus {
	font-size: 22px;
}

body.woocommerce-cart .quantity-controller button.minus {
	font-size: 22px;
	padding: 0;
}

body.woocommerce-cart .quantity-controller .count {
	font-weight: bold;
	font-size: 18px;
}

body.woocommerce-cart .quantity-controller input.count {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	width: 38px;
	text-align: center;
	outline: none;
}

body.woocommerce-cart .details-section {
	flex: 1;
	padding-right: 15px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	text-align: right;
}

body.woocommerce-cart .details-section .title {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: #333;
	line-height: 1.6;
}

body.woocommerce-cart .details-section .title a {
	color: inherit;
	text-decoration: none;
}

body.woocommerce-cart .status-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

body.woocommerce-cart .stock-warning {
	color: #ef4056;
	font-size: 14px;
	font-weight: bold;
}

body.woocommerce-cart .rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 15px;
	color: #666;
}

body.woocommerce-cart .star {
	color: #f9bc00;
}

body.woocommerce-cart .price-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

body.woocommerce-cart .discount-badge {
	background: #845f47;
	color: #fff;
	padding: 2px 10px;
	border-radius: 6px;
	font-size: 15px;
}

body.woocommerce-cart .price-container {
	text-align: left;
}

body.woocommerce-cart .final-price {
	font-size: 20px;
	font-weight: bold;
	color: #222;
}

body.woocommerce-cart .old-price {
	font-size: 14px;
	color: #bbb;
	text-decoration: line-through;
}

body.woocommerce-cart .cart-actions {
	display: none;
}

/* ——— بلاک کارت ووکامرس (Cart Block) — تصویر + کنترلر دقیقاً زیر تصویر، مشابه کارت محصول ——— */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row {
	direction: rtl;
	display: grid !important;
	grid-template-columns: 120px 1fr;
	grid-template-rows: auto auto auto;
	gap: 10px 12px;
	background: #fff !important;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	align-items: start;
	margin-bottom: 12px;
}

/* سلول محصول و wrap را contents کنیم تا کنترلر در یک ستون با تصویر قرار بگیرد */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__product,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__wrap {
	display: contents;
}

/* ستون اول: تصویر ردیف ۱، کنترلر تعداد ردیف ۲ (دقیقاً زیر تصویر، مشابه کارت محصول) */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__image {
	grid-column: 1;
	grid-row: 1;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__image img {
	width: 100%;
	max-width: 120px;
	height: auto;
	border-radius: 8px;
	display: block;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__quantity {
	grid-column: 1;
	grid-row: 2;
	justify-self: start;
}

/* ستون دوم: نام محصول ردیف ۱، توضیحات (معرفی محصول) ردیف ۲، قیمت ردیف ۳ */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row > .wc-block-components-product-name {
	grid-column: 2;
	grid-row: 1;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row > .wc-block-components-product-metadata {
	grid-column: 2;
	grid-row: 2;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-components-product-metadata__description,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-components-product-metadata__description p {
	display: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__total,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row > td:last-child {
	grid-column: 2;
	grid-row: 3;
	align-self: end;
}

/* جدول بلاک کارت را از حالت جدول خارج کن تا ردیف‌ها مثل کارت درست چیده شوند */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items {
	display: block;
	border: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items tbody {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row td {
	display: block;
	border: none;
	padding: 0;
	vertical-align: middle;
}

/* فقط قیمت نهایی (جمع ردیف) — مخفی کردن قیمت واحد و قیمت قبلی در بلاک کارت */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__product .wc-block-components-product-price {
	display: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__product .wc-block-components-formatted-money-amount {
	display: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row del,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .price del {
	display: none !important;
}

/* نام محصول در بلاک کارت — بدون زیرخط، Main Black1، فونت ۱۶ */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-components-product-name {
	text-decoration: none !important;
	color: #222;
	font-size: 18px;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items__row .wc-block-components-product-name:hover {
	color: #222;
	text-decoration: none !important;
}

/* ——— کنترلر تعداد بلاک کارت — مطابق نمونه: پس‌زمینه کرم، حاشیه سبز-خاکستری، پلاس | تعداد | سطل زباله ——— */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: #f0efe8;
	border: 1px solid #e0e0e2;
	border-radius: 8px;
	padding: 4px 8px;
	min-width: 100px;
	width: 100%;
	max-width: 120px;
	box-sizing: border-box;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__button {
	background: none !important;
	border: none !important;
	color: #1a535c !important;
	font-size: 20px !important;
	line-height: 1;
	padding: 4px;
	cursor: pointer;
	min-width: 28px;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector__input {
	color: #1a535c;
	font-weight: bold;
	font-size: 18px;
	text-align: center;
	border: none;
	background: transparent;
	width: 2em;
}

/* دکمه حذف — فقط آیکن سطل زباله، رنگ سبز-آبی */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: none !important;
	border: none !important;
	color: #1a535c !important;
	padding: 4px !important;
	min-width: 28px;
	min-height: 28px;
	cursor: pointer;
	font-size: 0 !important;
	text-decoration: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__remove-link span {
	display: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__remove-link::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231a535c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
}

/* وقتی تعداد ۱ است: دکمه کاهش مخفی، فقط آیکن حذف | تعداد | پلاس */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity.is-qty-one .wc-block-components-quantity-selector__button--minus,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity.is-qty-one button[aria-label*="کم"],
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity.is-qty-one .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:first-child {
	display: none !important;
}


.cart_totals {
    display: none;
}

/* ------------------------------------------------------------
 * Checkout page — UI/UX هماهنگ با تم (کارت‌محور، تک‌صفحه)
 * ------------------------------------------------------------ */
body.woocommerce-checkout .site-wrapper {
	direction: rtl;
	padding-bottom: 120px;
}

body.woocommerce-checkout .woocommerce {
	max-width: 600px;
	margin: 0 auto;
}

/* فرم اصلی */
body.woocommerce-checkout form.checkout {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* کارت: اطلاعات مشتری / آدرس */
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
	display: block;
}

body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
	width: 100%;
	float: none;
	padding: 0;
}

body.woocommerce-checkout #customer_details .woocommerce-billing-fields,
body.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
body.woocommerce-checkout #customer_details .woocommerce-additional-fields {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 0;
}

body.woocommerce-checkout #customer_details h3 {
	margin: 0 0 12px 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #4a433d;
	border: none;
	padding: 0;
}

body.woocommerce-checkout #customer_details .woocommerce-billing-fields.ab-checkout-accordion,
body.woocommerce-checkout .woocommerce-additional-fields.ab-checkout-accordion {
	padding: 0;
	overflow: hidden;
}

body.woocommerce-checkout .ab-checkout-accordion__toggle {
	width: 100%;
	min-height: 54px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 0;
	background: transparent;
	padding: 16px;
	color: #4a433d;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	text-align: right;
	cursor: pointer;
}

body.woocommerce-checkout .ab-checkout-accordion__toggle::after {
	content: "⌄";
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f3f0e8;
	color: #2D4A43;
	font-size: 18px;
	line-height: 1;
	transition: transform 180ms ease;
}

body.woocommerce-checkout .ab-checkout-accordion.is-open .ab-checkout-accordion__toggle::after {
	transform: rotate(180deg);
}

body.woocommerce-checkout .woocommerce-billing-fields.ab-checkout-accordion .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields.ab-checkout-accordion .woocommerce-additional-fields__field-wrapper {
	padding: 0 16px 16px;
}

body.woocommerce-checkout .woocommerce-billing-fields.ab-checkout-accordion:not(.is-open) .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields.ab-checkout-accordion:not(.is-open) .woocommerce-additional-fields__field-wrapper {
	display: none;
}

body.woocommerce-checkout .woocommerce-form-row {
	margin-bottom: 14px;
}

body.woocommerce-checkout .woocommerce-form-row:last-child {
	margin-bottom: 0;
}

body.woocommerce-checkout .woocommerce-form-row label {
	display: block;
	margin-bottom: 6px;
	color: #4a433d;
	font-weight: 500;
	font-size: 16px;
}

body.woocommerce-checkout .woocommerce-form-row input[type="text"],
body.woocommerce-checkout .woocommerce-form-row input[type="email"],
body.woocommerce-checkout .woocommerce-form-row input[type="tel"],
body.woocommerce-checkout .woocommerce-form-row input[type="number"],
body.woocommerce-checkout .woocommerce-form-row select {
	width: 100%;
	height: 30px;
	border: 1px solid #b8b4a8;
	border-radius: 15px;
	background-color: #fff;
	padding: 0 12px;
	font-family: inherit;
	font-size: 17px;
	box-sizing: border-box;
}

body.woocommerce-checkout .woocommerce-form-row textarea {
	width: 100%;
	min-height: 60px;
	border: 1px solid #b8b4a8;
	border-radius: 15px;
	background-color: #fff;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 17px;
	box-sizing: border-box;
}

body.woocommerce-checkout .woocommerce-form-row input:focus,
body.woocommerce-checkout .woocommerce-form-row textarea:focus,
body.woocommerce-checkout .woocommerce-form-row select:focus {
	outline: none;
	border-color: #2d4a43;
	box-shadow: 0 0 0 2px rgba(45, 74, 67, 0.15);
}

body.woocommerce-checkout .woocommerce-form-row .required {
	color: #ef4056;
}

body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last {
	width: 100%;
	float: none;
}

/* کارت: خلاصه سفارش */
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #order_review_heading {
	width: 100%;
	float: none;
	padding: 0;
}

body.woocommerce-checkout #order_review_heading {
	margin: 0 0 8px 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #4a433d;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th {
	background: #f7f3ea;
	color: #4a433d;
	padding: 12px 14px;
	text-align: right;
	font-size: 15px;
	font-weight: 600;
	border-bottom: 1px solid #eee9df;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody td {
	padding: 10px 14px;
	text-align: right;
	border-bottom: 1px solid #eee9df;
	font-size: 16px;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody .cart_item .product-name {
	color: #333;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td {
	padding: 10px 14px;
	text-align: right;
	border-bottom: 1px solid #eee9df;
	font-size: 16px;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot tr:last-child th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot tr:last-child td {
	border-bottom: none;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .order-total td {
	font-weight: 700;
	font-size: 18px;
	color: #222;
	background: #f7f3ea;
	padding: 14px;
}

/* کارت: روش پرداخت */
body.woocommerce-checkout .woocommerce-checkout-payment {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_methods {
	list-style: none;
	margin: 0 0 16px 0;
	padding: 0;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method {
	margin-bottom: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #eee9df;
	display: flex;

}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method:last-of-type {
	margin-bottom: 0;
	border-bottom: none;
}

body.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_method label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 500;
	color: #333;
}

body.woocommerce-checkout .woocommerce-checkout-payment .payment_box {
	background: #f7f3ea;
	border-radius: 8px;
	padding: 12px;
	margin: 8px 0 0 24px;
	font-size: 15px;
	color: #4a433d;
}

/* دکمه نهایی ثبت سفارش */
body.woocommerce-checkout #place_order {
	width: 100%;
	display: block;
	background: #2d4a43;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 14px 20px;
	font-size: 19px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.2s;
}

body.woocommerce-checkout #place_order:hover {
	opacity: 0.92;
}

body.woocommerce-checkout #place_order:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* پیام‌های سیستم */
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message {
	list-style: none;
	margin: 0 0 16px 0;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 16px;
	border: 1px solid transparent;
}

body.woocommerce-checkout .woocommerce-error {
	background: #f9dede;
	color: #7f1d1d;
	border-color: #e7b4b4;
}

body.woocommerce-checkout .woocommerce-message {
	background: #e8f5e9;
	color: #1b5e20;
	border-color: #a5d6a7;
}

body.woocommerce-checkout .woocommerce-error li,
body.woocommerce-checkout .woocommerce-message li {
	margin: 0;
	padding: 0;
}

/* شناورها را پاک کن تا چیدمان تک‌ستون درست نمایش داده شود */
body.woocommerce-checkout form.checkout::after {
	content: "";
	display: table;
	clear: both;
}

body.woocommerce-checkout #order_review {
	display: block;
}

/* وضعیت خطای اعتبارسنجی فیلدها */
body.woocommerce-checkout .woocommerce-form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout .woocommerce-form-row.woocommerce-invalid select,
body.woocommerce-checkout .woocommerce-form-row.woocommerce-invalid textarea {
	border-color: #ef4056;
}

body.woocommerce-checkout .woocommerce-form-row.woocommerce-invalid .required {
	color: #c62828;
}

/* چک‌باکس و کوپن در checkout */
body.woocommerce-checkout .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 400;
	color: #4a433d;
}

body.woocommerce-checkout .woocommerce-form__input-checkbox {
	width: 18px;
	height: 18px;
	accent-color: #2d4a43;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle {
	margin-bottom: 12px;
}

body.woocommerce-checkout .checkout_coupon {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.woocommerce-checkout .checkout_coupon .form-row {
	margin-bottom: 0;
}

/* عنوان صفحه پرداخت */
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .page-title {
	direction: rtl;
	text-align: right;
	margin-bottom: 1rem;
	font-size: 1.375rem;
	color: #1a4d3e;
}

/* ریسپانسیو: عرض‌های کوچک */
@media (max-width: 430px) {
	body.woocommerce-checkout .site-wrapper {
		padding-left: 12px;
		padding-right: 12px;
		padding-bottom: 130px;
	}

	body.woocommerce-checkout #customer_details .woocommerce-billing-fields,
	body.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
	body.woocommerce-checkout #customer_details .woocommerce-additional-fields,
	body.woocommerce-checkout .woocommerce-checkout-payment {
		padding: 12px;
		margin-top: 10px;
	}

	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th,
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td {
		padding: 10px 12px;
		font-size: 15px;
	}

	body.woocommerce-checkout #place_order {
		padding: 12px 16px;
		font-size: 18px;
	}
}

/* ------------------------------------------------------------
 * Auth page (Template: page-login.php)
 * ------------------------------------------------------------ */
body.page-template-page-login {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background-color: #E6E4D5;
	display: flex;
	justify-content: center;
	align-items: center;
}

body.page-template-page-login .site-header,
body.page-template-page-login .footer,
body.page-template-page-login .bottom-nav,
body.page-template-page-login .footer-before-img {
	display: none !important;
}

body.page-template-page-login .site-wrapper {
	width: 100%;
}

body.page-template-page-login main.ab-auth {
	width: 100%;
}

.ab-auth__container {
	width: 100%;
	max-width: 400px;
	height: 100vh;
	height: 100dvh;
	background-color: #E6E4D5;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
}

.ab-auth__header-waves {
	display: flex;
	justify-content: center;
	background-color: transparent;
	height: 100px;
	position: relative;
}

.ab-auth__wave {
	width: 20%;
	height: 80px;
	background-color: #2D5349;
	border-bottom-left-radius: 50px;
	border-bottom-right-radius: 50px;
	border: 2px solid #A68B5B;
	border-top: none;
}

.ab-auth__back {
	position: absolute;
	top: 20px;
	right: 20px;
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
}

.ab-auth__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 20px;
	gap: 24px;
}

.ab-auth__logo-section {
	text-align: center;
}

.ab-auth__logo-img {
	width: 100px;
	height: auto;
	margin-bottom: 10px;
}

.ab-auth__form {
	width: 100%;
	text-align: center;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ab-auth__form form {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	width: 100%;
	padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.ab-auth__form h2 {
	color: #2D5349;
	font-size: 1.375rem;
	margin: 0 0 30px;
}

.ab-auth__form p {
	color: #666;
	margin: 0 0 15px;
}

.ab-auth__notice {
	width: 90%;
	margin: 0 auto 14px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 16px;
}

.ab-auth__notice--error {
	background: #f9dede;
	color: #7f1d1d;
	border: 1px solid #e7b4b4;
}

.ab-auth__phone-input {
	width: 90%;
	padding: 15px;
	border: none;
	border-radius: 10px;
	background-color: #fff;
	text-align: center;
	font-size: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
	font-family: 'Shoor';
}

.ab-auth__input-wrap {
	position: relative;
	width: 90%;
	margin: 0 auto 20px;
}

.ab-auth__input-wrap .ab-auth__phone-input {
	width: 100%;
	margin-bottom: 0;
}

.ab-auth__popup {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	z-index: 20;
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff4db;
	color: #8a4b00;
	border: 1px solid #f1c27d;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
	font-size: 15px;
	line-height: 1.7;
	text-align: center;
	transform: translateX(-50%) translateY(8px);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.ab-auth__popup.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.ab-auth__submit-btn {
	width: 90%;
	padding: 15px;
	background-color: #2D5349;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.3s;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: 16px;
	margin: 0;
	z-index: 130;
	font-family: 'Shoor';
}

body.page-template-page-login .ab-auth__submit-btn {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	width: calc(100% - 48px);
	max-width: 356px;
	bottom: 16px;
	z-index: 130;
}

.ab-auth__submit-btn:hover {
	background-color: #1f3a33;
}

@media (max-width: 420px) {
	.ab-auth__container {
		max-width: 100%;
		height: 100vh;
	}
}

/* ------------------------------------------------------------
 * OTP page (Template: page-otp.php)
 * ------------------------------------------------------------ */
body.page-template-page-otp {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background-color: #E6E4D5;
	display: flex;
	justify-content: center;
	align-items: center;
}

body.page-template-page-otp .site-header,
body.page-template-page-otp .footer,
body.page-template-page-otp .bottom-nav,
body.page-template-page-otp .footer-before-img {
	display: none !important;
}

body.page-template-page-otp .site-wrapper,
body.page-template-page-otp main.ab-otp {
	width: 100%;
}

.ab-otp__container {
	width: 100%;
	max-width: 400px;
	height: 100vh;
	height: 100dvh;
	background-color: #E6E4D5;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.ab-otp__header-waves {
	display: flex;
	justify-content: center;
	height: 100px;
	position: relative;
}

.ab-otp__wave {
	width: 20%;
	height: 90px;
	background-color: #2D5349;
	border-bottom-left-radius: 50px;
	border-bottom-right-radius: 50px;
	border: 1.5px solid #A68B5B;
	border-top: none;
}

.ab-otp__back {
	position: absolute;
	top: 25px;
	right: 25px;
	color: #fff;
	font-size: 26px;
	text-decoration: none;
	cursor: pointer;
	z-index: 10;
	line-height: 1;
}

.ab-otp__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 20px;
	text-align: center;
	color: #2D5349;
}

.ab-otp__title {
	font-size: 22px;
	font-weight: 700;
	margin-top: 100px;
	margin-bottom: 30px;
}

.ab-otp__hint {
	font-size: 16px;
	opacity: 0.85;
	margin-top: -18px;
	margin-bottom: 18px;
	letter-spacing: 1px;
}

.ab-otp__timer {
	font-size: 20px;
	letter-spacing: 2px;
	margin-bottom: 40px;
}

.ab-otp__form {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.ab-otp__inputs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 50px;
}

.ab-otp__input {
	width: 55px;
	height: 65px;
	border: none;
	border-radius: 12px;
	background-color: #fff;
	text-align: center;
	font-size: 26px;
	font-weight: 700;
	color: #2D5349;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	font-family: 'shoor';
}

.ab-otp__input:focus {
	outline: 2px solid #A68B5B;
}

.ab-otp__submit-btn {
	width: 90%;
	padding: 16px;
	background-color: #2D5349;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.3s;
	margin-top: auto;
	margin-bottom: 12px;
	position: sticky;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 5;
	font-family: 'shoor';
}

.ab-otp__submit-btn:hover {
	opacity: 0.9;
}

.ab-otp__notice {
	width: 90%;
	padding: 10px 12px;
	border-radius: 10px;
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.8;
}

.ab-otp__notice--error {
	background: #f9dede;
	color: #7f1d1d;
	border: 1px solid #e7b4b4;
}

.ab-otp__notice--success {
	background: #e6f4ec;
	color: #14532d;
	border: 1px solid #b7dcc5;
}

.ab-otp__invalid {
	color: #7f1d1d;
	margin: 12px 0;
}

.ab-otp__link {
	color: #2D5349;
	text-decoration: underline;
	font-weight: 600;
}

.ab-otp__resend {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.ab-otp__resend-btn {
	min-height: 44px;
	padding: 10px 18px;
	background: rgba(45, 83, 73, 0.1);
	border: 1px solid rgba(45, 83, 73, 0.18);
	border-radius: 10px;
	color: #2D5349;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	font-family: 'shoor';
}

.ab-otp__resend-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ab-otp__resend-time {
	color: #666;
	font-size: 15px;
	min-width: 66px;
}

.ab-otp__profile-form {
	width: 90%;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 20px;
}

.ab-otp__text-input {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 12px;
	background: #fff;
	margin-bottom: 12px;
	font-size: 18px;
	color: #2D5349;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ------------------------------------------------------------
 * My Orders (WooCommerce: my-account/orders + Template: page-orders.php)
 * ------------------------------------------------------------ */
body.woocommerce-account .ab-orders,
body.page-template-page-orders .ab-orders {
	color: #2D5349;
}

body.woocommerce-account .ab-orders__container,
body.page-template-page-orders .ab-orders__container {
	padding: 20px 0;
}

body.woocommerce-account .ab-orders__title,
body.page-template-page-orders .ab-orders__title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	text-align: right;
	padding-right: 10px;
}

/* Tabs */
body.woocommerce-account .ab-orders .tabs-container,
body.page-template-page-orders .ab-orders .tabs-container {
	display: flex;
	overflow-x: auto;
	white-space: nowrap;
	gap: 10px;
	padding-bottom: 15px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

body.woocommerce-account .ab-orders .tabs-container::-webkit-scrollbar,
body.page-template-page-orders .ab-orders .tabs-container::-webkit-scrollbar {
	display: none;
}

body.woocommerce-account .ab-orders .tab,
body.page-template-page-orders .ab-orders .tab {
	padding: 8px 16px;
	border-radius: 25px;
	background-color: #FFFFFF;
	border: 1px solid #D1CFC0;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	text-decoration: none;
	color: #2D5349;
}

body.woocommerce-account .ab-orders .tab.active,
body.woocommerce-account .ab-orders .tab[aria-selected="true"],
body.page-template-page-orders .ab-orders .tab.active,
body.page-template-page-orders .ab-orders .tab[aria-selected="true"] {
	background-color: #2D5349;
	color: #FFFFFF;
	border-color: #2D5349;
}

body.woocommerce-account .ab-orders .tab-count,
body.page-template-page-orders .ab-orders .tab-count {
	background-color: #F0EFE6;
	color: #2D5349;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.4;
}

body.woocommerce-account .ab-orders .tab[aria-selected="true"] .tab-count,
body.woocommerce-account .ab-orders .tab.active .tab-count,
body.page-template-page-orders .ab-orders .tab[aria-selected="true"] .tab-count,
body.page-template-page-orders .ab-orders .tab.active .tab-count {
	background-color: #3d6b5e;
	color: #FFFFFF;
}

/* Cards */
body.woocommerce-account .ab-orders .order-list,
body.page-template-page-orders .ab-orders .order-list {
	padding-top: 5px;
}

body.woocommerce-account .ab-orders .order-card,
body.page-template-page-orders .ab-orders .order-card {
	background-color: #FFFFFF;
	border-radius: 15px;
	padding: 20px;
	margin-bottom: 15px;
	position: relative;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
	display: block;
	text-decoration: none;
	color: inherit;
}

body.woocommerce-account .ab-orders .order-card:hover,
body.page-template-page-orders .ab-orders .order-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

body.woocommerce-account .ab-orders .order-header,
body.page-template-page-orders .ab-orders .order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

body.woocommerce-account .ab-orders .order-info-row,
body.page-template-page-orders .ab-orders .order-info-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 16px;
	justify-content: flex-start;

}

body.woocommerce-account .ab-orders .label,
body.page-template-page-orders .ab-orders .label {
	color: #2D5349;
}

body.woocommerce-account .ab-orders .value,
body.page-template-page-orders .ab-orders .value {
	font-weight: 700;
}

body.woocommerce-account .ab-orders .price,
body.page-template-page-orders .ab-orders .price {
	font-size: 18px;
	font-weight: 700;
	margin-top: 10px;
}

body.woocommerce-account .ab-orders .arrow-left,
body.page-template-page-orders .ab-orders .arrow-left {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: #A68B5B;
	font-size: 22px;
	font-weight: 700;
	rotate: 180deg;
}

/* Status */
body.woocommerce-account .ab-orders__status,
body.page-template-page-orders .ab-orders__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
}

body.woocommerce-account .ab-orders__status--completed,
body.page-template-page-orders .ab-orders__status--completed {
	color: #4CAF50;
}

body.woocommerce-account .ab-orders__status--cancelled,
body.page-template-page-orders .ab-orders__status--cancelled,
body.woocommerce-account .ab-orders__status--failed,
body.page-template-page-orders .ab-orders__status--failed {
	color: #d32f2f;
}

body.woocommerce-account .ab-orders__status--refunded,
body.page-template-page-orders .ab-orders__status--refunded {
	color: #A68B5B;
}

body.woocommerce-account .ab-orders__empty,
body.page-template-page-orders .ab-orders__empty {
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	color: #2D5349;
	border: 1px dashed #D1CFC0;
}

/* Orders page: hide default MyAccount navigation + default page title */
body.woocommerce-account.woocommerce-orders nav.woocommerce-MyAccount-navigation,
body.page-template-page-orders nav.woocommerce-MyAccount-navigation {
	display: none !important;
}

body.woocommerce-account.woocommerce-orders h2.page-title,
body.page-template-page-orders h2.page-title {
	display: none !important;
}

/* ------------------------------------------------------------
 * My Account (WooCommerce: dashboard + endpoints)
 * ------------------------------------------------------------ */
body.woocommerce-account .site-main {
	padding-top: 10px;
}

body.woocommerce-account .ab-account {
	direction: rtl;
	color: #2f2f2f;
}

body.woocommerce-account .ab-account__header {
	margin-bottom: 14px;
}

body.woocommerce-account .ab-account__name {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	color: #2e2e2e;
}

body.woocommerce-account .ab-account__layout {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.woocommerce-account .ab-account-nav ul,
body.woocommerce-account .ab-account-nav li {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-account .ab-account-nav__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.woocommerce-account .ab-account-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border-radius: 14px;
	padding: 14px 16px;
	text-decoration: none;
	color: #3a342f;
	border: 1px solid transparent;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-account .ab-account-nav__item:hover {
	border-color: #d7d1c5;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body.woocommerce-account .ab-account-nav__item.is-active {
	background: #f5f1e8;
	border-color: #d3cab8;
}

body.woocommerce-account .ab-account-nav__icon {
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #8b5e3c;
	flex-shrink: 0;
}

body.woocommerce-account .ab-account-nav__icon svg {
	width: 22px;
	height: 22px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.woocommerce-account .ab-account-nav__label {
	flex: 1;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.4;
}

body.woocommerce-account .ab-account-nav__chevron {
	color: #6e675f;
	font-size: 26px;
	line-height: 1;
	transform: translateY(-1px);
}

body.woocommerce-account .ab-account__content {
	background: transparent;
}

body.woocommerce-account .ab-account__content > p,
body.woocommerce-account .ab-account__content > .woocommerce-message,
body.woocommerce-account .ab-account__content > .woocommerce-info,
body.woocommerce-account .ab-account__content > .woocommerce-error,
body.woocommerce-account .ab-account__content .woocommerce-Address,
body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content > h2,
body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content > h3,
body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content > form,
body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content > table,
body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content > .woocommerce-Addresses,
body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content > .woocommerce-account-downloads {
	background: #ffffff;
	border-radius: 14px;
	padding: 14px 16px;
	border: 1px solid #ece8de;
	margin: 0 0 12px;
}

body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content > :last-child {
	margin-bottom: 0;
}

body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content p {
	line-height: 1.8;
}

body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content a {
	color: #8b5e3c;
}

body.woocommerce-account .ab-account__content .woocommerce-MyAccount-content a:hover {
	color: #6f4b31;
}

body.woocommerce-account .ab-account__content .woocommerce-form-row label {
	display: block;
	margin-bottom: 6px;
	color: #4a433d;
	font-weight: 500;
}

body.woocommerce-account .ab-account__content input[type="text"],
body.woocommerce-account .ab-account__content input[type="email"],
body.woocommerce-account .ab-account__content input[type="password"],
body.woocommerce-account .ab-account__content input[type="tel"],
body.woocommerce-account .ab-account__content textarea,
body.woocommerce-account .ab-account__content select {
	width: 100%;
	min-height: 44px;
	border: 1px solid #dbd4c8;
	border-radius: 10px;
	background: #fffdfa;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 17px;
}

body.woocommerce-account .ab-account__content .button,
body.woocommerce-account .ab-account__content button,
body.woocommerce-account .ab-account__content input[type="submit"] {
	background: #2d4a43;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 18px;
	font-family: inherit;
}

body.woocommerce-account .ab-account__content .button:hover,
body.woocommerce-account .ab-account__content button:hover,
body.woocommerce-account .ab-account__content input[type="submit"]:hover {
	opacity: 0.92;
}

body.woocommerce-account .ab-account__content .shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid #e6e0d4;
}

body.woocommerce-account .ab-account__content .shop_table th,
body.woocommerce-account .ab-account__content .shop_table td {
	padding: 12px 10px;
	text-align: right;
	border-bottom: 1px solid #eee9df;
}

body.woocommerce-account .ab-account__content .shop_table tr:last-child td {
	border-bottom: none;
}

body.woocommerce-account .ab-account__content .shop_table thead th {
	background: #f7f3ea;
	color: #4a433d;
}

body.woocommerce-account .ab-account__content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

body.woocommerce-account .ab-account__content .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

/* ——— صفحه داخلی محصول (موبایل) ——— */
/* مثل سایر صفحات فیکس و تمام‌عرض در موبایل */
body.single-product {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}
body.single-product .site-wrapper {
	width: min(100%, 428px);
	max-width: 428px;
	padding-bottom: 108px;
}
body.single-product .site-main.single-product-mobile {
	width: 100%;
	min-width: 0;
	overflow-x: hidden;
}

body.single-product .site-main.single-product-mobile {
	direction: rtl;
	padding-top: 4px;
}

body.single-product .bottom-nav {
	display: none !important;
}

body.single-product .woocommerce-breadcrumb,
body.single-product .product_meta,
body.single-product .related.products,
body.single-product .upsells.products,
body.single-product .woocommerce-tabs,
body.single-product .woocommerce-notices-wrapper:empty {
	display: none !important;
}

/* جلوگیری از بزرگ شدن عرض لایوت به‌خاطر محتوای عریض توضیحات محصول */
body.single-product .single-product-mobile__description,
body.single-product .single-product-mobile__cell,
body.single-product .single-product-mobile__review-content {
	overflow-wrap: anywhere;
	word-break: break-word;
}

body.single-product .single-product-mobile__description img,
body.single-product .single-product-mobile__description table,
body.single-product .single-product-mobile__description iframe,
body.single-product .single-product-mobile__description video {
	max-width: 100%;
	height: auto;
}

body.single-product .single-product-mobile__description table {
	display: block;
	width: 100% !important;
	overflow-x: auto;
}

body.single-product .single-product-mobile__description figure,
body.single-product .single-product-mobile__description .wp-block-image {
	max-width: 100%;
	margin-inline: 0;
}

.single-product-mobile__hero {
	margin-bottom: 18px;
}

.single-product-mobile__hero-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid rgba(141, 133, 116, 0.35);
	padding: 6px;
	position: relative;
}

/* گالری تصاویر — scroll-snap سوایپ */
.single-product-mobile__gallery {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	touch-action: pan-x;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.single-product-mobile__gallery::-webkit-scrollbar {
	display: none;
}
.single-product-mobile__gallery-track {
	display: flex;
	flex-direction: row;
	min-width: 100%;
}
.single-product-mobile__gallery-slide {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-width: 0;
	box-sizing: border-box;
}
.single-product-mobile__hero-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
}
.single-product-mobile__rate-pill {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.92);
	color: #5f5648;
	border-radius: 10px;
	padding: 3px 9px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
}
.single-product-mobile__rate-star {
	color: #f4b400;
}
.single-product-mobile__hero-dots {
	position: absolute;
	bottom: 13px;
	right: 13px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	background: rgba(101, 101, 101, 0.55);
	border-radius: 999px;
}
.single-product-mobile__hero-dot {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #d7d7d7;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}
.single-product-mobile__hero-dot.is-active {
	width: 22px;
	background: #fff;
}

.single-product-mobile__summary {
	margin-bottom: 14px;
}

.single-product-mobile__title {
	font-size: 26px;
	line-height: 1.4;
	font-weight: 700;
	margin: 0 0 7px;
	color: #2f2f2f;
}
.single-product-mobile__price {
	font-size: 24px;
	font-weight: 600;
	color: #2f2f2f;
	margin-bottom: 5px;
}
.single-product-mobile__price .amount,
.single-product-mobile__price bdi {
	font-size: 24px;
	font-weight: 600;
}
.single-product-mobile__stock {
	color: #ce2323;
	font-size: 16px;
	font-weight: 500;
}
.single-product-mobile__section-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: #222;
}

.single-product-mobile__intro,
.single-product-mobile__specs,
.single-product-mobile__reviews {
	margin-bottom: 22px;
}

.single-product-mobile__description {
	color: #333;
	line-height: 1.8;
	font-size: 17px;
}

.single-product-mobile__description p {
	margin: 0;
}

.single-product-mobile__description.is-collapsed {
	max-height: 6.2em;
	overflow: hidden;
	position: relative;
}

.single-product-mobile__description.is-collapsed::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	bottom: 0;
	height: 40px;
	background: linear-gradient(to top, #e5e3d4, rgba(229, 227, 212, 0));
}

.single-product-mobile__toggle {
	margin-top: 10px;
	width: 100%;
	min-height: 44px;
	border: none;
	border-radius: 12px;
	background: #ece9dd;
	color: #333;
	font-size: 18px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
}

.single-product-mobile__toggle::before {
	content: "⌄";
	margin-left: 6px;
}

.single-product-mobile__cta {
	margin-bottom: 20px;
}

.single-product-mobile__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	font-family: inherit;
	cursor: pointer;
	padding: 10px 14px;
}

.single-product-mobile__btn--add {
	background: #245948;
	color: #fff;
}

.single-product-mobile__btn--call {
	background: #8b5f3d;
	color: #fff;
}

.single-product-mobile__btn--disabled {
	background: #f3f3f3;
	color: #e10000;
	border-color: #d8d4c9;
	cursor: not-allowed;
}

.single-product-mobile__cart-form {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin: 0;
}

body.single-product .single-product-mobile__cart-form {
	padding: 0;
}

.single-product-mobile__qty-wrap {
	width: 148px;
	flex-shrink: 0;
}

.single-product-mobile__qty-wrap .quantity {
	width: 100%;
	height: 100%;
}

.single-product-mobile__qty-wrap .quantity.app-step-qty,
.single-product-mobile__variable-form .quantity.app-step-qty {
	display: grid;
	grid-template-columns: 36px minmax(42px, 1fr) 36px;
	align-items: center;
	gap: 6px;
	width: 148px;
	height: 52px;
}

.app-step-qty__button {
	width: 36px;
	height: 52px;
	border: 1px solid #d6d1c3;
	border-radius: 10px;
	background: #fff;
	color: #294a40;
	font-family: inherit;
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.single-product-mobile__qty-wrap .qty {
	width: 100%;
	height: 52px;
	border-radius: 10px;
	border: 1px solid #d6d1c3;
	background: #fff;
	text-align: center;
	font-size: 20px;
	font-family: inherit;
}

.single-product-mobile__in-cart {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8f8f8;
	border: 1px solid #d5d0c1;
	border-radius: 10px;
	padding: 9px 10px;
	margin-bottom: 10px;
}

.single-product-mobile__go-cart {
	color: #f00;
	text-decoration: none;
	font-size: 20px;
	font-weight: 500;
}

.single-product-mobile__qty-actions {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
}

.single-product-mobile__qty-actions button {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid #d0c9b9;
	background: #fff;
	color: #294a40;
	font-size: 22px;
	font-family: inherit;
	cursor: pointer;
}
.single-product-mobile__qty-num {
	min-width: 18px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

input.single-product-mobile__qty-num {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	width: 44px;
	outline: none;
}

/* فرم محصول متغیر — استایل موبایل */
.single-product-mobile__variable-form .variations {
	margin-bottom: 15px;
}
.single-product-mobile__variable-form .variations td {
	display: block;
	padding: 5px 0;
}
.single-product-mobile__variable-form .variations select {
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid #d6d1c3;
	background: #fff;
	font-family: 'Shoor', sans-serif;
	font-size: 18px;
}
.single-product-mobile__variable-form .single_variation_wrap {
	margin-top: 15px;
}
.single-product-mobile__variable-form .woocommerce-variation-price {
	margin-bottom: 15px;
}
.single-product-mobile__variable-form .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 10px;
	align-items: stretch;
}
.single-product-mobile__variable-form .quantity {
	width: 148px;
}
.single-product-mobile__variable-form .qty {
	width: 100%;
	height: 52px;
	border-radius: 10px;
	border: 1px solid #d6d1c3;
	background: #fff;
	text-align: center;
	font-size: 20px;
	font-family: inherit;
}
.single-product-mobile__variable-form .single_add_to_cart_button {
	flex: 1;
	min-height: 52px;
	border-radius: 10px;
	background: #245948;
	color: #fff;
	border: none;
	font-size: 20px;
	font-weight: 600;
	cursor: pointer;
	font-family: 'Shoor', sans-serif;
}

.single-product-mobile__table {
	border-top: 1px solid #3a3a3a;
}

.single-product-mobile__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #3a3a3a;
}

.single-product-mobile__cell {
	font-size: 16px;
	color: #2f2f2f;
}

.single-product-mobile__cell--label {
	text-align: right;
	color: #8b5f3d;
}

.single-product-mobile__reviews-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.single-product-mobile__reviews-head .single-product-mobile__section-title {
	margin-bottom: 0;
}

.single-product-mobile__review-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	background: #245948;
	color: #fff;
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 16px;
	font-weight: 500;
}

.single-product-mobile__review-btn::before {
	content: "+";
	font-size: 26px;
	line-height: 1;
}

.single-product-mobile__rating-text {
	margin: 0 0 10px;
	color: #8b5f3d;
	font-size: 16px;
}
.single-product-mobile__review-card {
	background: #fff;
	border: 1px solid #d9d4c6;
	border-radius: 12px;
	padding: 12px;
	color: #2f2f2f;
}
.single-product-mobile__review-card header {
	margin-bottom: 3px;
	font-size: 18px;
	color: #245948;
}
.single-product-mobile__review-stars {
	color: #f4b400;
	font-size: 16px;
	margin-bottom: 6px;
}
.single-product-mobile__review-content {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 6px;
}

.single-product-mobile__review-card time {
	color: #777;
	font-size: 18px;
}

.single-product-mobile .comment-respond {
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid #d2cdbf;
}

.single-product-mobile .comment-respond .comment-reply-title {
	font-size: 20px;
	margin: 0 0 10px;
}
.single-product-mobile .comment-respond input[type="text"],
.single-product-mobile .comment-respond input[type="email"],
.single-product-mobile .comment-respond textarea {
	width: 100%;
	border: 1px solid #cfc8b8;
	border-radius: 10px;
	background: #fff;
	padding: 9px 10px;
	font-family: inherit;
	font-size: 18px;
}
.single-product-mobile .comment-respond .form-submit input[type="submit"] {
	width: 100%;
	min-height: 46px;
	border: none;
	border-radius: 10px;
	background: #245948;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
}

.app-reviews {
	margin-top: 18px;
}

.app-review-form-wrap {
	position: fixed;
	inset: 0;
	display: none;
	align-items: flex-end;
	justify-content: center;
	padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
	background: rgba(24, 24, 24, 0.38);
	z-index: 250;
}

.app-review-form-wrap.is-open {
	display: flex;
}

.app-review-form-modal {
	background: #d8d7c7;
	border-radius: 14px;
	padding: 16px 14px 14px;
	width: 100%;
	max-width: 396px;
	max-height: min(88vh, 760px);
	overflow: auto;
}

.app-review-form-head {
	display: flex;
	align-items: center;
	margin-bottom: 22px;
}

.app-review-form-product {
	font-size: 26px;
	color: #252525;
	font-weight: 500;
}

.app-review-form-back {
	appearance: none;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	color: #8b5f3d;
	font-size: 32px;
	line-height: 1;
	transform: scaleX(-1);
}

body.app-review-modal-open {
	overflow: hidden;
}

.app-review-label {
	display: block;
	margin-bottom: 10px;
	color: #245948;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

.app-review-rating-select {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.app-review-stars {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	gap: 8px;
	margin: 0 auto 20px;
	max-width: 360px;
}

.app-review-form-wrap p.stars {
	display: none !important;
}

.app-review-star {
	appearance: none;
	border: none;
	background: url("assets/images/not-rated.svg") no-repeat center;
	background-size: contain;
	width: 58px;
	height: 58px;
	font-size: 0;
	line-height: 0;
	padding: 0;
	cursor: pointer;
	flex: 0 0 58px;
}

.app-review-star.is-active {
	background-image: url("assets/images/rated.svg");
}

.app-review-comment-wrap {
	margin: 0;
}

.app-review-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 172px;
	border: none;
	border-radius: 10px;
	background: #f3f3f3;
	padding: 14px 12px;
	color: #2d2d2d;
	font-family: inherit;
	font-size: 31px;
	line-height: 1.75;
	resize: none;
}

.app-review-form textarea:focus {
	outline: 2px solid rgba(36, 89, 72, 0.25);
}

.app-review-limit {
	display: block;
	margin-top: 12px;
	font-size: 26px;
	color: #245948;
	direction: ltr;
}

.app-review-form .form-submit {
	margin-top: 28px;
}

.app-review-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	border: none;
	border-radius: 8px;
	background: #245948;
	color: #fff;
	text-decoration: none;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	cursor: pointer;
}

.app-review-hidden-field {
	position: absolute !important;
	left: auto;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

.app-review-success {
	background: #efefef;
	border-radius: 12px;
	padding: 22px 16px 16px;
	text-align: center;
}

.app-review-success__icon {
	display: block;
	margin: 0 auto 14px;
	color: #5f9f72;
	font-size: 74px;
	line-height: 1;
}

.app-review-success__text {
	margin: 0 0 24px;
	color: #245948;
	font-size: 48px;
	line-height: 1.5;
	font-weight: 700;
}

@media (max-width: 390px) {
	.single-product-mobile__title {
		font-size: 24px;
	}
	.single-product-mobile__price,
	.single-product-mobile__price .amount,
	.single-product-mobile__price bdi {
		font-size: 22px;
	}
	.single-product-mobile__section-title {
		font-size: 19px;
	}
	.single-product-mobile__btn {
		font-size: 18px;
		min-height: 48px;
	}
	.single-product-mobile__variable-form .single_add_to_cart_button {
		font-size: 18px;
		min-height: 48px;
	}
	.single-product-mobile__variable-form .qty {
		height: 48px;
		font-size: 18px;
	}
	.app-review-form-product {
		font-size: 18px;
	}
	.app-review-label {
		font-size: 20px;
	}
	.app-review-star {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}
	.app-review-form textarea {
		font-size: 18px;
	}
	.app-review-limit {
		font-size: 16px;
	}
	.app-review-submit-btn {
		font-size: 18px;
		min-height: 48px;
	}
	.app-review-success__text {
		font-size: 26px;
	}
}

@media (max-width: 360px) {
	.single-product-mobile__title {
		font-size: 22px;
	}
	.single-product-mobile__price,
	.single-product-mobile__price .amount,
	.single-product-mobile__price bdi {
		font-size: 20px;
	}
	.single-product-mobile__btn {
		min-height: 46px;
	}
	.single-product-mobile__variable-form .single_add_to_cart_button {
		min-height: 46px;
	}
	.single-product-mobile__variable-form .qty {
		height: 46px;
	}
}

/* صفحه‌بندی آرشیو محصولات */
.woocommerce-pagination {
	margin: 8px 0 16px;
}

.woocommerce-pagination .page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	direction: rtl;
}

.woocommerce-pagination .page-numbers li {
	margin: 0;
	padding: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 10px;
	border: 1px solid #d3ccba;
	background: #fff;
	color: #2d4a43;
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-pagination .page-numbers .current {
	background: #2d4a43;
	border-color: #2d4a43;
	color: #fff;
}

.woocommerce-pagination .page-numbers .next,
.woocommerce-pagination .page-numbers .prev {
	min-width: 44px;
	font-size: 24px;
	line-height: 1;
}


.elementor.elementor-1070,
body.woocommerce-account .ab-account__name,
h1.ab-account__name{
	display:none;
}

/* ------------------------------------------------------------
 * Search page (Template: search.php)
 * ------------------------------------------------------------ */
/* جستجو: همان هدر/فوتر/ناوبری پایین سایت حفظ می‌شود (قبلاً این بخش‌ها مخفی بودند). */
body.search .site-main.search-page {
	margin: 0;
	padding-top: 10px;
}

.search-page__container {
	direction: rtl;
}

.search-page .is-hidden {
	display: none !important;
}

.search-page__header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.search-page__form {
	flex: 1;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #ddd9c8;
	min-height: 48px;
	padding: 0 12px;
}

.search-page__submit {
	order: 1;
	background: transparent;
	border: 0;
	color: #8d6242;
	font-size: 28px;
	line-height: 1;
	padding: 0 0 2px;
	cursor: pointer;
}

.search-page__input {
	order: 2;
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: 'Shoor', system-ui, sans-serif;
	font-size: 26px;
	font-weight: 400;
	color: #444;
	padding: 0 10px;
	text-align: right;
}

.search-page__input::placeholder {
	color: #777;
	opacity: 1;
}

.search-page__clear {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	text-decoration: none;
	color: #8d6242;
	background: transparent;
	font-size: 38px;
	line-height: 1;
}

.search-page__suggestions {
	margin-top: 18px;
}

.search-page__suggestions-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-page__suggestion-item + .search-page__suggestion-item {
	margin-top: 4px;
}

.search-page__suggestion-btn {
	width: 100%;
	border: 0;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	cursor: pointer;
	color: #202020;
	font-family: 'Shoor', system-ui, sans-serif;
	font-size: 32px;
	text-align: right;
}

.search-page__suggestion-text {
	display: inline-block;
}

.search-page__suggestion-icon {
	width: 20px;
	height: 20px;
	border: 2px solid #8d6242;
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
	margin-right: 8px;
}

.search-page__suggestion-icon::before {
	content: "";
	position: absolute;
	width: 2px;
	height: 6px;
	background: #8d6242;
	top: 3px;
	left: 8px;
	border-radius: 2px;
}

.search-page__suggestion-icon::after {
	content: "";
	position: absolute;
	width: 5px;
	height: 2px;
	background: #8d6242;
	top: 8px;
	left: 8px;
	border-radius: 2px;
}

.search-page__results {
	margin-top: 14px;
}

.search-page__results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	padding: 0 2px;
	font-size: 24px;
	color: #484848;
}

.search-page__results-count {
	font-size: 22px;
	color: #5f5f5f;
}

.search-page__results .product-cards-list {
	margin-top: 0;
}

.search-page__empty {
	background: #fff;
	border-radius: 14px;
	padding: 18px 16px;
	color: #5d5d5d;
	font-size: 18px;
}

.return-to-shop {
	display: none;
}


#billing_first_name,
#billing_last_name,
#billing_email,
#billing_phone,
#billing_address_1,
#billing_city,
#billing_state,
#billing_postcode,
#billing_country,
#coupon_code,
.select2-container--default .select2-selection--single
{
	width: 100%;
    border: 1px solid #b8b4a8;
    background-color: #fff;
    border-radius: 15px;
    height: 30px;
	font-family: 'Shoor';
	direction: rtl;
	font-size: 20px;
	border-radius: 8px;
    margin: 5px;

}


.button{
	display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border: 0px none rgb(255, 255, 255);
    border-radius: 8px;
    background: rgb(36, 89, 72) none repeat scroll 0% 0% / auto padding-box border-box;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-family: Shoor, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
	margin-top: 5px;
}
.woocommerce-order-overview__email.email {
    display: none;
}
.woocommerce-customer-details--email {
    display: none;
}

.woocommerce-info {
    background: rgb(255, 255, 255) none repeat scroll 0% 0% / auto padding-box border-box;
    border: 1px solid rgb(238, 238, 238);
    border-radius: 12px;
    padding: 16px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 8px 0px;
    margin-bottom: 0px;
    box-sizing: border-box;
}

#order_comments {
	    margin-top: 10px;
    outline: rgba(36, 89, 72, 0.25) solid 2px;
    width: 100%;
    min-height: 172px;
    border: 1px solid rgb(207, 200, 184);
    border-radius: 10px;
    background: rgb(255, 255, 255) none repeat scroll 0% 0% / auto padding-box border-box;
    padding: 9px 10px;
    color: rgb(45, 45, 45);
    font-family: Shoor, system-ui, sans-serif;
    font-size: 18px;
    line-height: 28px;
    resize: none;
    box-sizing: border-box;
    max-width: 100%;
}
.single-product-mobile__cta {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    width: 315px;
    background-color: #fff;  /* یا هر رنگ زمینه‌ای که مد نظر دارید */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* سایه‌ای ملایم برای جداسازی از محتوا */
    padding: 10px; /* فاصله داخلی دلخواه */
    box-sizing: border-box;
    transform: translateX(-50%);
	z-index: 1;
}


@media (min-width: 1024px) {
    .single-product-mobile__cta {
        width: 315px;
    }
}


.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
    display: none;
}

.woocommerce-result-count {
    display: none;
}


.ab-address-page {
    padding: 20px;
}

.ab-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.ab-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ab-address-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.ab-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ab-edit-btn {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
}

.ab-edit-btn:hover {
    text-decoration: underline;
}

.ab-empty {
    color: #888;
}

.ab-edit-account {
    max-width: 600px;
    margin: 0 auto;
}

.ab-title {
    margin-bottom: 20px;
}

.ab-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-wide {
    grid-column: span 2;
}

.ab-password-section {
    margin-top: 30px;
}

.ab-save-btn {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
}



/* ظرف اصلی کنترل‌کننده عدد */
.quantity-controller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    padding: 4px 8px;
    width: 100px; /* کمی کوچک‌تر برای جا شدن در کارت محصول */
    background: #fff;
	margin-top: -25px;
	position: relative;
  	z-index: 10;
}

/* استایل کلی دکمه‌های مثبت و منفی */
.quantity-controller button.qty-change {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a535c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 25px;
    height: 25px;
    transition: opacity 0.2s;
}

/* استایل خاص دکمه مثبت */
.quantity-controller button.plus {
    font-size: 22px;
}

/* استایل علامت منفی */
.quantity-controller .minus-icon {
    font-size: 24px; /* کمی بزرگتر برای وضوح */
    font-weight: bold;
    line-height: 1;
}

/* استایل تصویر آیکون حذف */
.quantity-controller .trash-icon-img {
    width: 16px;  /* اندازه افقی آیکون */
    height: 16px; /* اندازه عمودی آیکون */
    display: block;
    /* اگر آیکون شما رنگی نیست و می‌خواهید رنگ آن را با CSS تغییر دهید (برای SVGها)، 
       می‌توانید از filter استفاده کنید، مثلاً برای سیاه کردن: */
    /* filter: brightness(0); */
}

/* استایل عدد تعداد (قبلاً داده شده بود) */
.quantity-controller .qty-number {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    min-width: 20px;
    text-align: center;
}

.quantity-controller input.qty-number {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	width: 38px;
	outline: none;
	appearance: textfield;
}

.quantity-controller input.qty-number::-webkit-outer-spin-button,
.quantity-controller input.qty-number::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.app-qty-validation-popup {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(96px + env(safe-area-inset-bottom));
	z-index: 1000;
	max-width: 428px;
	margin: 0 auto;
	padding: 12px 14px;
	border: 1px solid #8B5E3C;
	border-radius: 10px;
	background: #fff7e6;
	color: #2f2f2f;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	direction: rtl;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.app-qty-validation-popup.is-visible {
	opacity: 1;
	transform: translateY(0);
}


/* =========================
   EMPTY STATE (بدون نتیجه)
========================= */
.search-page__empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 40px auto;
}

.search-page__empty p:first-child {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.search-page__empty p:nth-child(2) {
    font-size: 16px;
    color: #777;
    line-height: 1.8;
}

.search-page__empty a {
    color: #8B5E3C;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-page__empty a:hover {
    color: #6f472d;
}

/* =========================
   دکمه‌ها
========================= */
.search-page__empty p:last-child a {
    display: inline-block;
    margin-top: 20px;
    background: #8B5E3C;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.search-page__empty p:last-child a:hover {
    background: #6f472d;
    transform: translateY(-2px);
}

/* =========================
   لینک فروشگاه
========================= */
.search-page__empty p:nth-child(2) a {
    border-bottom: 1px dashed #8B5E3C;
}

/* =========================
   آیکن (اختیاری)
========================= */
.search-page__empty::before {
    content: "🔍";
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
}

body.woocommerce-order-received h2.page-title {
	display: none !important;
}

body.woocommerce-order-received .site-main {
	padding-bottom: 180px;
}

body.woocommerce-order-received .woocommerce,
body.woocommerce-order-received .woocommerce-order {
	direction: rtl;
	color: #2f2f2f;
}

body.woocommerce-order-received .woocommerce-notice {
	background: #ffffff;
	border: 1px solid #D1CFC0;
	border-radius: 14px;
	padding: 14px 16px;
	margin: 10px 0 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	color: #2D4A43;
}

body.woocommerce-order-received .woocommerce-notice--success {
	border-right: 6px solid #2D4A43;
}

body.woocommerce-order-received .woocommerce-notice--error {
	border-right: 6px solid #d32f2f;
	color: #6b1b1b;
}

body.woocommerce-order-received ul.woocommerce-order-overview {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

body.woocommerce-order-received ul.woocommerce-order-overview li {
	background: #ffffff;
	border: 1px solid #D1CFC0;
	border-radius: 14px;
	padding: 12px 14px;
	margin: 0;
	color: #2D4A43;
	font-weight: 600;
	line-height: 1.5;
}

body.woocommerce-order-received ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 6px;
	font-size: 20px;
	font-weight: 800;
	color: #2D4A43;
}

body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
	margin-top: 14px;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 800;
	color: #2D4A43;
	text-align: right;
}

body.woocommerce-order-received table.woocommerce-table--order-details {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	border: 1px solid #D1CFC0;
	border-radius: 14px;
	overflow: hidden;
}

body.woocommerce-order-received table.woocommerce-table--order-details th,
body.woocommerce-order-received table.woocommerce-table--order-details td {
	padding: 12px 14px;
	text-align: right;
	vertical-align: top;
	border-bottom: 1px solid #EEECE1;
	color: #2f2f2f;
	font-weight: 600;
}

body.woocommerce-order-received table.woocommerce-table--order-details tr:last-child th,
body.woocommerce-order-received table.woocommerce-table--order-details tr:last-child td {
	border-bottom: 0;
}

body.woocommerce-order-received table.woocommerce-table--order-details thead th {
	background: #F7F5EE;
	color: #2D4A43;
	font-weight: 800;
}

body.woocommerce-order-received table.woocommerce-table--order-details tfoot th {
	background: #F7F5EE;
	color: #2D4A43;
	font-weight: 800;
}

body.woocommerce-order-received .woocommerce-customer-details address {
	background: #ffffff;
	border: 1px solid #D1CFC0;
	border-radius: 14px;
	padding: 12px 14px;
	margin: 0;
	line-height: 1.9;
	color: #2f2f2f;
}

body.woocommerce-order-received .ab-thankyou-appreturn {
	position: fixed;
	left: 0;
	right: 0;
	max-width: 428px;
	margin: 0 auto;
	bottom: calc(82px + env(safe-area-inset-bottom));
	padding: 0 1rem;
	z-index: 120;
}

body.woocommerce-order-received .ab-thankyou-appreturn__inner {
	direction: rtl;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #e5e3d4;
	border: 1px solid #8B5E3C;
	border-radius: 18px;
	padding: 12px 12px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

body.woocommerce-order-received .ab-thankyou-appreturn__text {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: #2D4A43;
}

body.woocommerce-order-received .ab-thankyou-appreturn__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: #2D4A43;
	color: #ffffff;
	border-radius: 14px;
	padding: 12px 14px;
	font-size: 18px;
	font-weight: 800;
	white-space: nowrap;
}

body.woocommerce-order-received .ab-thankyou-appreturn__btn:hover {
	opacity: 0.95;
	color: #ffffff;
}

@media (max-width: 360px) {
	body.woocommerce-order-received ul.woocommerce-order-overview {
		grid-template-columns: 1fr;
	}

	body.woocommerce-order-received .ab-thankyou-appreturn__inner {
		flex-direction: column;
		align-items: stretch;
	}

	body.woocommerce-order-received .ab-thankyou-appreturn__btn {
		width: 100%;
	}
}

@media (max-width: 361.98px) {
	.product-card__title {
		line-height: 1.6 !important;
	}

.woocommerce-pagination .page-numbers {
    gap: 0px !important;
}

}


#payment ,
.woocommerce-additional-fields ,
.woocommerce-shipping-fields
{
    margin-top: 10px;
}
