/* =========================================================================
   حلما جین - استایل تکمیلی
   ۱) آیکن باز/بسته جعبه جستجوی هدر
   ۲) دکمه‌ی افزودن به سبد خرید در کارت محصول
   ۳) صفحه اختصاصی محصول
   ۴) صفحه فروشگاه (سایدبار + نوار ابزار)
   این فایل آخرین فایل CSS بارگذاری شده است.
   ========================================================================= */

/* ---------------------------------------------------------------------
   ۱) آیکن جستجو: بزرگنمایی <-> ضربدر
   --------------------------------------------------------------------- */
#searchTrigger { display: flex; align-items: center; gap: 6px; }
#searchTrigger .helmaJeanIcon--searchClose { display: none; }
#searchTrigger.is-active .helmaJeanIcon--searchOpen { display: none; }
#searchTrigger.is-active .helmaJeanIcon--searchClose { display: block; color: var(--helma-jean-pink); }
#searchTrigger.is-active .searchTitle { color: var(--helma-jean-pink); }

#header .cd-search { background: #fff; }
#header .cd-search input[type="text"] { background: #faf9fc; }
.helmaJeanSearchResults { border-radius: 0 0 14px 14px; }

/* ---------------------------------------------------------------------
   ۲) دکمه‌ی افزودن به سبد خرید (کارت محصول در فروشگاه/صفحه اصلی)
   هر نوع لینکی که ووکامرس رندر کند (افزودن به سبد خرید / انتخاب گزینه‌ها /
   اطلاعات بیشتر) داخل کارت محصول با همین ظاهر یکدست پر رنگ نمایش داده شود.
   --------------------------------------------------------------------- */
.products__content { width: 100%; padding: 0 6px 14px; box-sizing: border-box; }
.products__content .btn,
.products__content a.button,
.products__content a.add_to_cart_button,
.products__content a.product_type_variable,
.products__content a.product_type_grouped,
.products__content a.product_type_external,
.products__content a.product_type_simple {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 12px auto 0;
	height: 44px;
	line-height: 42px;
	padding: 0 10px;
	border-radius: 10px;
	background: var(--helma-jean-navy, #2b3a80);
	border: 1px solid var(--helma-jean-navy, #2b3a80);
	color: #fff;
	text-align: center;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.products__content .btn:hover,
.products__content a.button:hover,
.products__content a.add_to_cart_button:hover,
.products__content a.product_type_variable:hover,
.products__content a.product_type_grouped:hover,
.products__content a.product_type_external:hover,
.products__content a.product_type_simple:hover {
	background: var(--helma-jean-pink, #e5177f);
	border-color: var(--helma-jean-pink, #e5177f);
	color: #fff;
}
.products__content a.added_to_cart {
	display: block; margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--helma-jean-pink);
}

/* ---------------------------------------------------------------------
   ۳) صفحه اختصاصی محصول
   --------------------------------------------------------------------- */
.helma-jean-single-product { padding: 26px 0 60px; }

.helma-jean-single-product .woocommerce-breadcrumb {
	font-size: 12.5px; color: #9b9aa8; margin-bottom: 18px; display: block;
}
.helma-jean-single-product .woocommerce-breadcrumb a { color: #9b9aa8; text-decoration: none; }
.helma-jean-single-product .woocommerce-breadcrumb a:hover { color: var(--helma-jean-pink); }

.single-product div.product {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
}
.single-product div.product > .woocommerce-product-gallery { flex: 1 1 460px; max-width: 520px; }
.single-product div.product > .summary { flex: 1 1 380px; min-width: 300px; padding: 0 6px; }

/* فاصله‌ی عمودی بین ردیف‌های ستون اطلاعات محصول (قبلاً همه به‌هم چسبیده
   بودن؛ هر بخش اصلی یه مقدار margin-bottom می‌گیره تا نفس بکشه) */
.single-product .summary > .helmaJeanProductTop,
.single-product .summary > .product_title.entry-title,
.single-product .summary > .helmaJeanProductCat,
.single-product .summary > .price,
.single-product .summary > .woocommerce-product-details__short-description,
.single-product .summary > .variations,
.single-product .summary > form.cart {
	margin-bottom: 22px;
}
.single-product .summary > form.cart { margin-bottom: 10px; }
.single-product .summary .variations tr + tr { margin-top: 8px; }
.single-product .summary .variations td.value { padding-bottom: 4px; }

/* --- گالری تصاویر: نوار تصاویر کوچک کنار تصویر اصلی --- */
.woocommerce-product-gallery { display: flex; align-items: flex-start; gap: 12px; }
.woocommerce-product-gallery__wrapper {
	flex: 1; min-width: 0; margin: 0; border-radius: var(--helma-jean-radius, 14px);
	overflow: hidden; background: #f7f6fa; border: 1px solid var(--helma-jean-line, #eceaf3);
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
	width: 100%; height: auto; display: block; border-radius: 0;
}
.woocommerce-product-gallery .flex-control-thumbs {
	flex: 0 0 78px; width: 78px; display: flex; flex-direction: column; gap: 10px;
	margin: 0; padding: 0; list-style: none;
}
.woocommerce-product-gallery .flex-control-thumbs li { list-style: none; }
.woocommerce-product-gallery .flex-control-thumbs img {
	width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: pointer;
	border: 1.5px solid var(--helma-jean-line, #eceaf3); opacity: .65; transition: .2s;
}
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs .flex-active img,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1; border-color: var(--helma-jean-pink);
}
@media (max-width: 767px) {
	.woocommerce-product-gallery { flex-direction: column-reverse; }
	.woocommerce-product-gallery .flex-control-thumbs { flex-direction: row; width: 100%; flex: 0 0 auto; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
	.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
	.woocommerce-product-gallery .flex-control-thumbs img { width: 56px; flex: 0 0 56px; }
}

/* --- ردیف بالای عنوان: آیکن‌های علاقه‌مندی و اشتراک‌گذاری --- */
.helmaJeanProductTop { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 6px; }
.helmaJeanProductTop__icon {
	width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--helma-jean-line, #eceaf3);
	background: #fff; display: flex; align-items: center; justify-content: center;
	color: var(--helma-jean-ink, #20223a); cursor: pointer; position: relative; transition: .2s;
}
.helmaJeanProductTop__icon:hover { border-color: var(--helma-jean-pink); color: var(--helma-jean-pink); }
.helmaJeanProductTop__icon svg {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	flex-shrink: 0 !important;
	display: block !important;
}
.helmaJeanShareBtn__copied {
	position: absolute; top: 46px; left: 50%; transform: translateX(-50%);
	background: var(--helma-jean-ink, #20223a); color: #fff; font-size: 11.5px; padding: 4px 10px;
	border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s;
}
.helmaJeanShareBtn.is-copied .helmaJeanShareBtn__copied { opacity: 1; }

/* دکمه‌ی قلب/علاقه‌مندی */
.helmaJeanWishlistBtn { color: var(--helma-jean-ink, #20223a); }
.helmaJeanWishlistBtn:hover { border-color: var(--helma-jean-pink); color: var(--helma-jean-pink); }
.helmaJeanWishlistBtn.is-active { border-color: var(--helma-jean-pink); color: var(--helma-jean-pink); background: #fff0f6; }
.helmaJeanWishlistBtn.is-loading { opacity: .6; pointer-events: none; }
.helmaJeanWishlistBtn.is-bump svg { animation: helmaJeanWishlistBump .32s ease; }
@keyframes helmaJeanWishlistBump {
	0% { transform: scale(1); }
	40% { transform: scale(1.28); }
	100% { transform: scale(1); }
}
.helmaJeanWishlistBtn.is-copied .helmaJeanShareBtn__copied { opacity: 1; }

.single-product .summary > .product_title.entry-title {
	font-size: 22px; font-weight: 800; color: var(--helma-jean-ink, #20223a); margin: 0 0 8px;
}
.helmaJeanProductCat { font-size: 13px; color: #8a8a95; margin-bottom: 14px; }
.helmaJeanProductCat a { color: var(--helma-jean-navy); text-decoration: none; }
.helmaJeanProductCat a:hover { color: var(--helma-jean-pink); }

/* --- تب «علاقه‌مندی‌ها» در حساب کاربری (از همون کارت/گرید فروشگاه استفاده می‌کنه) --- */
.helmaJeanWishlistGrid.shopGrid {
	margin: 4px 0 0;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.helmaJeanWishlistGrid__cell {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.helmaJeanWishlistGrid .products { height: auto; flex: none; }
.helmaJeanWishlistEmpty { color: #8a8a95; font-size: 14px; padding: 20px 0; }
.helmaJeanWishlistRemove {
	width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--helma-jean-line, #eceaf3);
	background: #fff; color: #b3261e; font-size: 12.5px; cursor: pointer; transition: .2s;
}
.helmaJeanWishlistRemove:hover { background: #fdecec; border-color: #f3b9b4; }


/* --- قیمت + نشان تخفیف --- */
.single-product .summary .price {
	display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--helma-jean-ink);
	margin: 10px 0 18px; flex-wrap: wrap;
}
.single-product .summary .price ins { text-decoration: none; font-weight: 800; font-size: 22px; color: var(--helma-jean-ink); }
.single-product .summary .price del { color: #adacb8; font-size: 14px; order: 2; }
.single-product .summary .price .unit { font-size: 14px; font-weight: 400; color: var(--helma-jean-ink); }
.helmaJeanSingleDiscount {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; background: var(--helma-jean-pink);
	color: #fff; font-size: 13px; font-weight: 800; order: -1;
}

/* --- رنگ‌ها/سایزها به‌صورت دکمه --- */
.helmaJeanVisuallyHidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.variations { width: 100%; border: 0; margin: 0 0 14px; }
table.variations tbody, table.variations tr, table.variations td, table.variations th { display: block; border: 0; padding: 0; background: none; }
table.variations tr { margin-bottom: 16px; }
table.variations label { display: block; font-size: 13.5px; font-weight: 700; color: var(--helma-jean-ink); margin-bottom: 10px; }

.helmaJeanSwatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.helmaJeanSwatches--pill .helmaJeanSwatch {
	min-width: 46px; height: 40px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--helma-jean-line, #eceaf3);
	background: #fff; color: var(--helma-jean-ink); font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s;
}
.helmaJeanSwatches--pill .helmaJeanSwatch:hover { border-color: var(--helma-jean-pink); }
.helmaJeanSwatches--pill .helmaJeanSwatch.is-active { background: var(--helma-jean-navy); border-color: var(--helma-jean-navy); color: #fff; }
.helmaJeanSwatches--color .helmaJeanSwatch {
	width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--helma-jean-line, #eceaf3);
	cursor: pointer; padding: 0; transition: .2s;
}
.helmaJeanSwatches--color .helmaJeanSwatch.is-active { box-shadow: 0 0 0 2px var(--helma-jean-pink); }
.helmaJeanSwatches--color .helmaJeanSwatch.is-disabled { opacity: .3; cursor: not-allowed; }

.helmaJeanSizeGuideBtn {
	display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 14px;
	background: none; border: 0; color: var(--helma-jean-navy); font-size: 12.5px; font-weight: 700; cursor: pointer;
	text-decoration: underline; text-underline-offset: 3px;
}
.helmaJeanSizeGuideBtn svg { width: 16px; height: 16px; }
.helmaJeanSizeGuideBtn:hover { color: var(--helma-jean-pink); }

.helmaJeanSizeGuideModal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.helmaJeanSizeGuideModal.is-open { display: flex; }
.helmaJeanSizeGuideModal__backdrop { position: absolute; inset: 0; background: rgba(20,20,30,.55); }
.helmaJeanSizeGuideModal__box {
	position: relative; background: #fff; border-radius: 16px; padding: 26px; max-width: 420px; width: 100%;
	box-shadow: 0 24px 60px rgba(0,0,0,.25); max-height: 86vh; overflow: auto;
}
.helmaJeanSizeGuideModal__box h4 { margin: 0 0 16px; font-size: 16px; color: var(--helma-jean-ink); }
.helmaJeanSizeGuideModal__box table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.helmaJeanSizeGuideModal__box th, .helmaJeanSizeGuideModal__box td { border: 1px solid var(--helma-jean-line); padding: 8px 6px; text-align: center; }
.helmaJeanSizeGuideModal__box th { background: #faf9fc; }
.helmaJeanSizeGuideModal__note { font-size: 11.5px; color: #9b9aa8; margin: 14px 0 0; line-height: 1.8; }
.helmaJeanSizeGuideModal__close {
	position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 50%; border: 0;
	background: #f2f1f6; font-size: 18px; line-height: 1; cursor: pointer; color: var(--helma-jean-ink);
}

/* --- دکمه افزودن به سبد خرید + تعداد --- */
.single-product .summary form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }

/* محصولات متغیر (دارای رنگ/سایز): ووکامرس quantity و دکمه رو داخل دو
   لایه‌ی میانی تودرتو می‌ذاره (.single_variation_wrap > .woocommerce-variation-add-to-cart)
   که هیچ‌کدوم عرض کامل نداشتن، برای همین با اینکه لایه‌ی داخلی flex بود،
   خودِ جعبه داخل یه عرض کوچیک جمع می‌شد و دکمه نمی‌تونست flex:1 بگیره. */
.single-product .summary form.cart .single_variation_wrap,
.single-product .summary form.cart .woocommerce-variation-add-to-cart {
	flex: 1 1 100%; width: 100%;
}
.single-product .summary form.cart .woocommerce-variation-add-to-cart {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}

.single-product .summary form.cart .quantity { margin: 0; }
.single-product .summary form.cart .quantity .qty {
	width: 84px; height: 48px; border: 1.5px solid var(--helma-jean-line); border-radius: 10px; text-align: center; font-size: 14px;
}

/* دکمه‌های + / - سفارشی (توسط helma-jean-custom.js دور input تعداد ساخته می‌شود) */
.single-product .summary form.cart .helmaJeanQtyBox {
	display: flex; align-items: center; height: 48px; border: 1.5px solid var(--helma-jean-line); border-radius: 10px; overflow: hidden;
}
.single-product .summary form.cart .helmaJeanQtyBox .qty {
	width: 48px; height: 100%; border: 0; border-radius: 0; text-align: center; font-size: 14px; -moz-appearance: textfield;
}
.single-product .summary form.cart .helmaJeanQtyBox .qty::-webkit-outer-spin-button,
.single-product .summary form.cart .helmaJeanQtyBox .qty::-webkit-inner-spin-button {
	-webkit-appearance: none; margin: 0;
}
.single-product .summary form.cart .helmaJeanQtyBox button {
	width: 36px; height: 100%; border: 0; background: #f5f4f9; color: var(--helma-jean-ink);
	font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.single-product .summary form.cart .helmaJeanQtyBox button:hover { background: #ece9f5; }

.single-product .summary form.cart button.single_add_to_cart_button {
	flex: 1; min-width: 180px; height: 48px; border-radius: 10px; border: 0;
	background: var(--helma-jean-navy); color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: .2s;
}
.single-product .summary form.cart button.single_add_to_cart_button:hover { background: var(--helma-jean-pink); }
.single-product .summary form.cart button.single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }

/* نشان «ناموجود» صفحه محصول - وقتی محصول اصلا قابل خرید نیست و فرم cart
   رندر نمی‌شود (helma_jean_single_product_out_of_stock_notice در functions.php) */
.single-product .summary .helmaJeanOutOfStockBtn {
	display: flex; align-items: center; justify-content: center;
	flex: 1; min-width: 180px; height: 48px; border-radius: 10px; border: 0;
	background: #cfcfd6; color: #5b5a68; font-size: 14.5px; font-weight: 700;
	margin-top: 6px; opacity: .8;
}

.single-product .summary .woocommerce-product-details__short-description { font-size: 13.5px; color: #5b5a68; line-height: 2; margin-top: 20px; }
.single-product .product_meta { font-size: 12px; color: #9b9aa8; margin-top: 18px; }
.single-product .product_meta > span { display: block; margin-bottom: 4px; }
.single-product .product_meta a { color: var(--helma-jean-navy); text-decoration: none; }

@media (max-width: 767px) {
	.single-product div.product { gap: 22px; }
	.single-product .summary .price ins { font-size: 19px; }
}

/* ---------------------------------------------------------------------
   ۴) صفحه فروشگاه: چیدمان با سایدبار
   --------------------------------------------------------------------- */
.shopLayout { display: flex; flex-direction: row; align-items: flex-start; gap: 26px; padding: 26px 0 50px; }
.shopMain { flex: 1; min-width: 0; }
.shopSidebar { flex: 0 0 270px; width: 270px; }

.shopSidebar__box {
	background: #fff; border: 1px solid var(--helma-jean-line, #eceaf3); border-radius: var(--helma-jean-radius, 14px);
	padding: 18px; margin-bottom: 18px;
}
.shopSidebar__title { font-size: 14px; font-weight: 800; color: var(--helma-jean-ink); margin-bottom: 14px; }

.shopSidebar__search { position: relative; }
.shopSidebar__search input {
	width: 100%; height: 42px; border: 1.5px solid var(--helma-jean-line); border-radius: 999px;
	padding: 0 40px 0 14px; font-size: 13px; box-sizing: border-box; background: #faf9fc;
}
.shopSidebar__search input:focus { outline: none; border-color: var(--helma-jean-pink); background: #fff; }
.shopSidebar__search svg { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 17px; height: 17px; color: #9b9aa8; }

.shopFilterCats__item { border-bottom: 1px solid var(--helma-jean-line); padding: 10px 0; }
.shopFilterCats__item:first-child { padding-top: 0; }
.shopFilterCats__item summary {
	display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
	font-size: 13.5px; font-weight: 600; color: var(--helma-jean-ink);
}
.shopFilterCats__item summary::-webkit-details-marker { display: none; }
.shopFilterCats__item summary a { color: inherit; text-decoration: none; flex: 1; }
.shopFilterCats__item summary a:hover { color: var(--helma-jean-pink); }
.shopFilterCats__item summary svg { width: 15px; height: 15px; transition: transform .2s; color: #9b9aa8; }
.shopFilterCats__item[open] summary svg { transform: rotate(180deg); }
.shopFilterCats__sub { list-style: none; margin: 10px 0 0; padding: 0 16px 0 0; }
.shopFilterCats__sub li { margin-bottom: 8px; }
.shopFilterCats__sub a { font-size: 12.5px; color: #6f6e7c; text-decoration: none; }
.shopFilterCats__sub a:hover, .shopFilterCats__sub a.is-active { color: var(--helma-jean-pink); }
.shopFilterCats__flat {
	display: block; padding: 10px 0; border-bottom: 1px solid var(--helma-jean-line); font-size: 13.5px;
	font-weight: 600; color: var(--helma-jean-ink); text-decoration: none;
}
.shopFilterCats__flat:hover, .shopFilterCats__flat.is-active { color: var(--helma-jean-pink); }
.shopFilterCats__flat:last-child { border-bottom: 0; }

/* --- اسلایدر قیمت --- */
.helmaJeanPriceSlider { position: relative; height: 20px; margin: 6px 4px 14px; }
.helmaJeanPriceSlider__track { position: absolute; top: 50%; right: 0; left: 0; height: 4px; background: var(--helma-jean-line); border-radius: 4px; transform: translateY(-50%); }
.helmaJeanPriceSlider__range { position: absolute; top: 50%; height: 4px; background: var(--helma-jean-navy); border-radius: 4px; transform: translateY(-50%); }
.helmaJeanPriceSlider input[type="range"] {
	position: absolute; top: 50%; right: 0; left: 0; width: 100%; margin: 0; transform: translateY(-50%);
	-webkit-appearance: none; appearance: none; background: none; pointer-events: none; height: 20px;
}
.helmaJeanPriceSlider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 3px solid var(--helma-jean-navy); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.helmaJeanPriceSlider input[type="range"]::-moz-range-thumb {
	pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff;
	border: 3px solid var(--helma-jean-navy); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.helmaJeanPriceSlider__labels { display: flex; justify-content: space-between; font-size: 11.5px; color: #6f6e7c; margin-bottom: 14px; }
.helmaJeanPriceSlider__apply {
	width: 100%; height: 40px; border-radius: 8px; border: 0; background: var(--helma-jean-navy); color: #fff;
	font-size: 13px; font-weight: 700; cursor: pointer; transition: .2s;
}
.helmaJeanPriceSlider__apply:hover { background: var(--helma-jean-pink); }

/* --- نوار ابزار بالای شبکه محصولات --- */
.shopToolbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	background: #fff; border: 1px solid var(--helma-jean-line); border-radius: var(--helma-jean-radius, 14px);
	padding: 14px 18px; margin-bottom: 22px;
}
.shopToolbar__toggles { display: flex; flex-wrap: wrap; gap: 22px; }
.shopToggle { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12.5px; color: var(--helma-jean-ink); }
.shopToggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.shopToggle__track {
	position: relative; width: 40px; height: 22px; border-radius: 999px; background: #e4e3ec; transition: .2s; flex-shrink: 0;
}
.shopToggle__thumb {
	position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s;
}
.shopToggle input:checked + .shopToggle__track { background: var(--helma-jean-pink); }
.shopToggle input:checked + .shopToggle__track .shopToggle__thumb { right: 20px; }

.shopSortTabs { display: flex; flex-wrap: wrap; gap: 4px; }
.shopSortTabs a {
	display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
	color: #6f6e7c; text-decoration: none; transition: .2s; white-space: nowrap;
}
.shopSortTabs a:hover { background: #faf9fc; color: var(--helma-jean-ink); }
.shopSortTabs a.is-active { background: var(--helma-jean-navy); color: #fff; }

@media (max-width: 991px) {
	.shopLayout { flex-direction: column; }
	.shopSidebar { width: 100%; flex: 1 1 auto; }
	.shopToolbar { flex-direction: column; align-items: stretch; }
	.shopSortTabs { overflow-x: auto; flex-wrap: nowrap; }
}

/* =========================================================================
 * حساب کاربری (My Account) - چیدمان کلی: نویگیشن + محتوا
 * ========================================================================= */
body.woocommerce-account .helma-jean-page__content {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}
body.woocommerce-account .helma-jean-page__content > .woocommerce-notices-wrapper,
body.woocommerce-account .helma-jean-page__content > .woocommerce-message,
body.woocommerce-account .helma-jean-page__content > .woocommerce-error,
body.woocommerce-account .helma-jean-page__content > .woocommerce-info {
	flex-basis: 100%; width: 100%; box-sizing: border-box;
}
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	list-style: none; margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; font-size: 13.5px;
}
.woocommerce-message { background: #eaf7ee; color: #1e7a3e; }
.woocommerce-error { background: #fdecec; color: #b3261e; }
.woocommerce-info { background: #eef1fb; color: var(--helma-jean-navy); }
.woocommerce-message li, .woocommerce-error li, .woocommerce-info li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button {
	float: left; display: inline-block; margin-inline-start: 12px; padding: 6px 16px; border-radius: 8px;
	background: var(--helma-jean-navy); color: #fff; text-decoration: none; font-size: 12.5px;
}
.woocommerce-MyAccount-navigation {
	flex: 0 0 240px;
	width: 240px;
	background: #fff;
	border: 1px solid var(--helma-jean-line, #eceaf3);
	border-radius: var(--helma-jean-radius, 14px);
	padding: 10px;
	box-sizing: border-box;
	position: sticky;
	top: 20px;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { list-style: none; margin: 0; }
.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	color: var(--helma-jean-ink, #20223a);
	text-decoration: none;
	transition: .18s;
	margin-bottom: 2px;
}
.woocommerce-MyAccount-navigation li a:hover { background: #faf6f9; color: var(--helma-jean-pink); }
.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--helma-jean-pink); color: #fff; font-weight: 600;
}
.woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid var(--helma-jean-line, #eceaf3); margin-top: 8px; padding-top: 8px; }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: #b3261e; }
.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fdecec; color: #b3261e; }

.woocommerce-MyAccount-content {
	flex: 1 1 0%;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--helma-jean-line, #eceaf3);
	border-radius: var(--helma-jean-radius, 14px);
	padding: 26px;
	box-sizing: border-box;
}
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-MyAccount-content table.shop_table {
	width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px;
}
.helmaJeanTableScroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
	padding: 12px 10px; border-bottom: 1px solid var(--helma-jean-line, #eceaf3); text-align: right;
}
.woocommerce-MyAccount-content table.shop_table .button {
	display: inline-block; padding: 6px 14px; border-radius: 8px; background: var(--helma-jean-navy);
	color: #fff; font-size: 12px; text-decoration: none;
}
.woocommerce-MyAccount-content .woocommerce-Message {
	background: #fff8ec; border: 1px solid #f1dfb2; border-radius: 10px; padding: 14px 16px;
	font-size: 13px; list-style: none; margin: 0 0 18px;
}
.woocommerce-MyAccount-content form p { margin: 0 0 14px; }
.woocommerce-MyAccount-content form label { display: block; font-size: 13px; margin-bottom: 6px; color: #6f6e7c; }
.woocommerce-MyAccount-content form input.input-text,
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea {
	width: 100%; height: 44px; border: 1px solid var(--helma-jean-line, #eceaf3); border-radius: 10px;
	padding: 0 14px; font-size: 13.5px; box-sizing: border-box; font-family: inherit; background: #fbfaf9;
}
.woocommerce-MyAccount-content form textarea { height: auto; padding: 10px 14px; }
.woocommerce-MyAccount-content form input.input-text:focus,
.woocommerce-MyAccount-content form select:focus,
.woocommerce-MyAccount-content form textarea:focus { outline: none; border-color: var(--helma-jean-pink); background: #fff; }
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
	display: inline-block; height: 46px; padding: 0 26px; border: 0; border-radius: 10px; cursor: pointer;
	background: linear-gradient(135deg, var(--helma-jean-pink), var(--helma-jean-pink-dark));
	color: #fff; font-size: 14px; font-weight: 600; font-family: inherit;
}

@media (max-width: 900px) {
	body.woocommerce-account .helma-jean-page__content { flex-direction: column; }
	.woocommerce-MyAccount-navigation { width: 100%; flex: 1 1 auto; position: static; }
	.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 4px; }
	.woocommerce-MyAccount-navigation li { flex: 1 1 auto; }
	.woocommerce-MyAccount-content { padding: 18px; }
}

/* --- تب «آدرس‌ها» --- */
.woocommerce-MyAccount-content .u-columns,
.woocommerce-Addresses {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 20px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.woocommerce-MyAccount-content .u-columns > *,
.woocommerce-Address {
	border: 1px solid var(--helma-jean-line, #eceaf3) !important;
	border-radius: 12px !important;
	padding: 18px !important;
	background: #fff;
	box-sizing: border-box !important;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}
.woocommerce-Address-title {
	display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px;
}
.woocommerce-Address-title h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--helma-jean-ink); }
.woocommerce-Address-title a {
	font-size: 12.5px; color: var(--helma-jean-pink); text-decoration: none; font-weight: 600;
}
.woocommerce-Address-title a:hover { text-decoration: underline; }
.woocommerce-Address address { font-style: normal; font-size: 13.5px; line-height: 2.1; color: #55545f; }
@media (max-width: 700px) {
	.woocommerce-MyAccount-content .u-columns,
	.woocommerce-Addresses { grid-template-columns: 1fr !important; }
}

/* --- داشبورد سفارشی --- */
.helmaJeanDashboard__profile {
	border: 1px solid var(--helma-jean-line, #eceaf3); border-radius: 12px; padding: 20px; margin-bottom: 22px;
}
.helmaJeanDashboard__profileHeader { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.helmaJeanDashboard__profileHeader h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--helma-jean-ink); }
.helmaJeanDashboard__editBtn {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
	border: 1px solid var(--helma-jean-line, #eceaf3); color: var(--helma-jean-navy); font-size: 12.5px;
	text-decoration: none; font-weight: 600; transition: .2s;
}
.helmaJeanDashboard__editBtn:hover { border-color: var(--helma-jean-pink); color: var(--helma-jean-pink); }
.helmaJeanDashboard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
.helmaJeanDashboard__field { display: flex; flex-direction: column; gap: 4px; }
.helmaJeanDashboard__label { font-size: 12px; color: #9a99a6; }
.helmaJeanDashboard__value { font-size: 14px; color: var(--helma-jean-ink); font-weight: 600; }

.helmaJeanDashboard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.helmaJeanDashboard__statCard {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	border: 1px solid var(--helma-jean-line, #eceaf3); border-radius: 12px; padding: 22px 10px;
	text-decoration: none; color: inherit; transition: .2s; text-align: center;
}
a.helmaJeanDashboard__statCard:hover { border-color: var(--helma-jean-pink); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(229,23,127,.35); }
.helmaJeanDashboard__statIcon { color: var(--helma-jean-pink); }
.helmaJeanDashboard__statNum { font-size: 22px; font-weight: 800; color: var(--helma-jean-ink); }
.helmaJeanDashboard__statLabel { font-size: 12.5px; color: #7a7d94; }

@media (max-width: 700px) {
	.helmaJeanDashboard__grid { grid-template-columns: 1fr 1fr; }
	.helmaJeanDashboard__stats { grid-template-columns: 1fr; }
}


/* =========================================================================
 * v1.1.12 - تصاویر دسته‌ها در موبایل و پیام‌های حساب کاربری
 * ========================================================================= */
.catSection__item .catSection__image,
.catSection__item img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    display: block !important;
}
@media (max-width: 560px) {
    .catSection__list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
    .catSection__item,
    .catSection__item:nth-child(4),
    .catSection__item:nth-child(5) { min-width: 0 !important; grid-column: span 1 !important; }
    .catSection__item .catSection__image,
    .catSection__item img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        object-position: center 25% !important;
    }
    .catSection__ribbon { font-size: 10px !important; padding: 6px 3px !important; bottom: 8px !important; }
}

/* اعلان‌های سفارش: آیکن کنار متن و چیدمان مرتب در راست‌چین */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error,
body.woocommerce-account .helma-jean-page__content > .woocommerce-info,
body.woocommerce-account .helma-jean-page__content > .woocommerce-message,
body.woocommerce-account .helma-jean-page__content > .woocommerce-error {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.9 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(59, 74, 122, .14) !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 12px rgba(25, 35, 70, .045) !important;
    box-sizing: border-box !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error::before,
body.woocommerce-account .helma-jean-page__content > .woocommerce-info::before,
body.woocommerce-account .helma-jean-page__content > .woocommerce-message::before,
body.woocommerce-account .helma-jean-page__content > .woocommerce-error::before {
    position: static !important;
    inset: auto !important;
    float: none !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    line-height: 22px !important;
    text-align: center !important;
    align-self: center !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info > *,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message > *,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error > * {
    min-width: 0;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.9 !important;
    border-color: #f1dfb2 !important;
    box-shadow: 0 3px 12px rgba(25, 35, 70, .04) !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message::before {
    position: static !important;
    float: none !important;
    flex: 0 0 22px !important;
    margin: 0 !important;
    align-self: center !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button {
    flex: 0 0 auto !important;
    float: none !important;
    margin-inline-start: auto !important;
    white-space: nowrap !important;
}
@media (max-width: 600px) {
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message {
        align-items: flex-start !important;
        padding: 12px !important;
        font-size: 12.5px !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error::before,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Message::before {
        margin-top: 2px !important;
    }
}


/* اعلان‌های سبد خرید: آیکن در ستون جداگانه و متن بدون هم‌پوشانی */
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-error,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-info,
body.woocommerce-cart > .woocommerce-error,
body.woocommerce-cart > .woocommerce-message,
body.woocommerce-cart > .woocommerce-info {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    align-items: start !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.9 !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
}
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-error::before,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message::before,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-info::before,
body.woocommerce-cart > .woocommerce-error::before,
body.woocommerce-cart > .woocommerce-message::before,
body.woocommerce-cart > .woocommerce-info::before {
    position: static !important;
    inset: auto !important;
    float: none !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 22px !important;
    height: 22px !important;
    margin: 3px 0 0 !important;
    line-height: 22px !important;
    text-align: center !important;
    align-self: start !important;
}
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-error li,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message li,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-info li,
body.woocommerce-cart > .woocommerce-error li,
body.woocommerce-cart > .woocommerce-message li,
body.woocommerce-cart > .woocommerce-info li {
    grid-column: 2 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-error,
    body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message,
    body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-info,
    body.woocommerce-cart > .woocommerce-error,
    body.woocommerce-cart > .woocommerce-message,
    body.woocommerce-cart > .woocommerce-info {
        padding: 12px !important;
        column-gap: 8px !important;
        font-size: 12.5px !important;
    }
}
