/* صفحه محصول — گالری ساعت امین محمودی
   wp-content/themes/hello-elementor-amp-child/assets/css/single-product-amp.css
   فقط توی صفحه محصول (is_product) لود میشه. */

:root{
	--amp-gold:#C9A227;
	--amp-gold-dark:#8A6F1A;
	--amp-navy:#0E1A2E;
	--amp-navy2:#16213A;
	--amp-bg:#F3F0E8;
	--amp-soft:#F6F4EE;
	--amp-card:#FFFFFF;
	--amp-muted:#9AA5B8;
	--amp-muted2:#6B7386;
	--amp-border:#EDE7D8;
	--amp-border2:#F0EDE3;
	--amp-green-bg:#E7F5EC;
	--amp-green:#1E7A4C;
	--amp-red-bg:#FBEAE8;
	--amp-red:#C0392B;
	--amp-shadow:0 6px 24px rgba(14,26,46,.06);
}

/* ===== ریست قوانین قالب پدر و ووکامرس که layout رو می‌شکنن ===== */
body.single-product .site-main,
body.single-product #primary.content-area{
	max-width:100%!important;
	width:100%!important;
	padding:0!important;
	margin:0!important;
	background:var(--amp-bg);
}
body.single-product,
body.single-product button,
body.single-product input,
body.single-product select,
body.single-product textarea{
	font-family:'Peyda', sans-serif!important;
}
/* breadcrumb تکراری بیرون کارت (خروجی هوک قالب) */
body.single-product .site-main > .woocommerce-breadcrumb{ display:none!important; }

/* ===== نوار بالای موبایل ===== */
.amp-pp-mobile-bar{ display:none; }

@media(max-width:900px){
	.amp-pp-mobile-bar{
		display:flex; align-items:center; justify-content:space-between;
		position:sticky; top:0; z-index:50;
		background:#fff; border-bottom:1px solid var(--amp-border);
		padding:10px 16px; height:52px;
		box-shadow:0 2px 12px rgba(14,26,46,.06);
	}
	.amp-pp-mobile-bar-actions{ display:flex; align-items:center; gap:6px; }
	.amp-pp-mobile-bar-btn{
		display:flex!important; align-items:center!important; justify-content:center!important;
		width:40px!important; height:40px!important; border-radius:12px!important;
		background:var(--amp-soft)!important; border:1px solid var(--amp-border)!important;
		cursor:pointer!important; color:var(--amp-navy2)!important; text-decoration:none!important;
		position:relative!important; transition:background .15s, border-color .15s!important;
		-webkit-appearance:none!important; appearance:none!important; flex-shrink:0!important;
		box-shadow:0 1px 4px rgba(14,26,46,.06)!important;
		font-size:inherit!important; line-height:1!important; padding:0!important;
		min-height:0!important; min-width:0!important;
	}
	.amp-pp-mobile-bar-btn:hover{
		background:var(--amp-border)!important; border-color:var(--amp-muted)!important;
	}
	/* دکمه × برگشت — فقط آیکون، بدون بک‌گراند */
	.amp-pp-back-btn{
		background:none!important; border:none!important;
		box-shadow:none!important; color:var(--amp-muted2)!important;
		width:36px!important; height:36px!important;
	}
	.amp-pp-back-btn svg{ width:24px!important; height:24px!important; }
	.amp-pp-back-btn:hover{ background:none!important; color:var(--amp-navy2)!important; }
	/* دکمه سبد — روی اکتیو طلایی */
	.amp-pp-cart-btn.has-items{
		background:rgba(201,162,39,.1)!important; border-color:var(--amp-gold)!important;
		color:var(--amp-gold)!important;
	}
	.amp-pp-cart-count{
		position:absolute; top:-4px; left:-4px;
		background:var(--amp-gold); color:#0E1A2E;
		font-size:9px; font-weight:800;
		min-width:16px; height:16px; border-radius:8px;
		display:flex; align-items:center; justify-content:center;
		padding:0 4px; border:1.5px solid #fff; line-height:1;
	}
	/* breadcrumb زیر نوار موبایل — کمی فاصله از بالا */
	.amp-pp-breadcrumb{ padding-top:10px; }
}

/* ووکامرس این دوتا رو float:48% می‌کنه — خنثی */
.amp-pp .woocommerce-product-gallery.images,
.amp-pp div.images,
.amp-pp .summary,
.amp-pp .amp-pp-summary,
.amp-pp .amp-pp-gallery{
	float:none!important;
	width:auto!important;
	margin-bottom:0!important;
	clear:none!important;
}

/* ===== شل صفحه ===== */
.amp-pp{
	max-width:1440px;
	margin:0 auto!important;
	padding:15px 48px 40px!important;
	color:var(--amp-navy2);
	background:var(--amp-bg);
	box-sizing:border-box;
	font-family:'Peyda', sans-serif!important;
}
.amp-pp *{ box-sizing:border-box; }

/* ---------- Breadcrumb ---------- */
.amp-pp-breadcrumb{
	margin:0; background:var(--amp-card); border-radius:14px;
	box-shadow:var(--amp-shadow); padding:14px 24px;
	font-size:12.5px; color:var(--amp-muted);
}
.amp-pp-breadcrumb .woocommerce-breadcrumb{ margin:0!important; padding:0; font-size:12.5px; color:var(--amp-muted); }
.amp-pp-breadcrumb .woocommerce-breadcrumb a{ color:var(--amp-gold); text-decoration:none; }

/* ---------- گرید اصلی ---------- */
.amp-pp-main{
	margin:28px 0 24px!important;
	display:grid!important;
	grid-template-columns:0.85fr 1.15fr!important; /* RTL: ستون اول = سمت راست (گالری) */
	gap:24px!important;
	align-items:stretch!important;
}
@media(max-width:1024px){ .amp-pp-main{ grid-template-columns:1fr!important; } }

/* ---------- کارت گالری (سمت راست) ---------- */
.amp-pp-gallery{
	background:var(--amp-card); border-radius:20px; box-shadow:var(--amp-shadow);
	padding:28px; order:1; height:100%; /* گالری سمت راست */
}
.amp-pp-gallery .woocommerce-product-gallery{
	position:relative!important; float:none!important; width:100%!important; margin:0!important; opacity:1!important;
}
.amp-pp-gallery .woocommerce-product-gallery__wrapper{
	position:relative; border-radius:18px; overflow:hidden; background:var(--amp-soft); margin:0!important; padding:0!important;
}
.amp-pp-gallery .woocommerce-product-gallery__image{ margin:0!important; }
.amp-pp-gallery .woocommerce-product-gallery__image a{ display:block; }
.amp-pp-gallery .woocommerce-product-gallery__image img{
	border-radius:18px; aspect-ratio:1; object-fit:contain; width:100%!important; height:auto; max-height:none!important; background:var(--amp-soft);
	transform:none!important;
}
.amp-pp-gallery .woocommerce-product-gallery__image:hover img{ transform:none!important; }
.amp-pp-gallery .zoomImg{ display:none!important; opacity:0!important; pointer-events:none!important; }
/* آیکن ذره‌بین ووکامرس */
.amp-pp-gallery .woocommerce-product-gallery__trigger{
	position:absolute; top:16px; left:16px; z-index:3;
	width:38px; height:38px; border-radius:50%; background:#FFFFFFEE;
	display:flex; align-items:center; justify-content:center;
	box-shadow:0 4px 12px rgba(14,26,46,.15); font-size:0;
}
.amp-pp-gallery .woocommerce-product-gallery__trigger img{ width:18px!important; height:18px; }
.amp-pp-gallery .amp-pp-gallery-nav{
	position:absolute; top:50%; z-index:20; transform:translateY(-50%);
	width:38px!important; height:38px!important; min-width:38px!important; padding:0!important;
	border:0!important; border-radius:50%!important; background:#FFFFFFEE!important;
	box-shadow:0 4px 12px rgba(14,26,46,.15)!important;
	cursor:pointer; display:flex!important; align-items:center; justify-content:center;
}
.amp-pp-gallery .amp-pp-gallery-nav:disabled{
	opacity:.35; cursor:not-allowed; pointer-events:none;
}
.amp-pp-gallery .amp-pp-gallery-nav::before{
	content:""; width:9px; height:9px; border:solid var(--amp-navy2); border-width:0 2px 2px 0;
}
.amp-pp-gallery .amp-pp-gallery-nav-prev{ right:14px; }
.amp-pp-gallery .amp-pp-gallery-nav-next{ left:14px; }
.amp-pp-gallery .amp-pp-gallery-nav-prev::before{ transform:rotate(-45deg); margin-left:2px; }
.amp-pp-gallery .amp-pp-gallery-nav-next::before{ transform:rotate(135deg); margin-right:2px; }
.amp-pp-gallery .amp-pp-gallery-nav:hover{ background:#fff!important; }

/* بندانگشتی‌ها — ۵ ستون */
.amp-pp-gallery .flex-control-thumbs{
	display:grid!important; grid-template-columns:repeat(5,1fr)!important; gap:12px!important;
	margin:14px 0 0!important; padding:0!important; list-style:none!important; float:none!important;
}
.amp-pp-gallery .flex-control-thumbs.amp-pp-more-ready{
	grid-template-columns:repeat(4,1fr)!important;
}
.amp-pp-gallery .flex-control-thumbs li{ list-style:none; width:auto!important; margin:0!important; float:none!important; }
.amp-pp-gallery .flex-control-thumbs img{
	aspect-ratio:1; object-fit:contain; width:100%!important; background:var(--amp-soft);
	border-radius:10px; border:1px solid var(--amp-border); cursor:pointer; opacity:1!important; padding:4px;
}
.amp-pp-gallery .flex-control-thumbs img.flex-active{ border:2px solid var(--amp-gold); }
.amp-pp-gallery .flex-control-thumbs .amp-pp-window-active img{
	border:2px solid var(--amp-gold);
}
.amp-pp-gallery .flex-control-thumbs .amp-pp-thumb-more{
	position:relative; cursor:pointer; border:1px solid #D9DDE5; border-radius:12px;
	background:#fff; overflow:hidden; box-shadow:0 8px 22px rgba(14,26,46,.08);
}
.amp-pp-gallery .flex-control-thumbs .amp-pp-thumb-more img{
	filter:blur(9px); transform:scale(1.08); opacity:.55; border-color:transparent!important;
}
.amp-pp-gallery .flex-control-thumbs .amp-pp-thumb-more::before{
	content:var(--amp-gallery-more-count); position:absolute; top:8px; left:8px; z-index:2;
	min-width:24px; height:24px; padding:0 6px; border-radius:999px; background:#FBE3EC;
	display:flex; align-items:center; justify-content:center;
	color:var(--amp-red); font-size:10.5px; font-weight:800; line-height:1;
	box-shadow:0 0 14px rgba(232,160,180,.45);
}
.amp-pp-gallery .flex-control-thumbs .amp-pp-thumb-more::after{
	content:"•••"; position:absolute; inset:0; z-index:3;
	display:flex; align-items:center; justify-content:center;
	color:var(--amp-navy2); font-size:22px; font-weight:800; letter-spacing:2px;
}
.amp-pp-gallery .flex-control-thumbs .amp-pp-thumb-more:hover{
	border-color:var(--amp-gold); box-shadow:0 10px 26px rgba(201,162,39,.16);
}

.amp-pp-modal-open{ overflow:hidden; }
.amp-pp-gallery-modal{
	position:fixed; inset:0; z-index:999999; display:none;
	background:rgba(14,26,46,.32); backdrop-filter:blur(10px);
	padding:70px 56px 42px; direction:rtl;
}
.amp-pp-gallery-modal.is-open{ display:block; }
.amp-pp-gallery-modal-panel{
	position:relative; width:min(1180px,100%); max-height:100%; margin:0 auto;
	background:#fff; border-radius:18px; box-shadow:0 20px 60px rgba(14,26,46,.18);
	padding:34px; overflow:auto;
}
.amp-pp-gallery-modal-close{
	position:fixed; top:24px; left:28px; z-index:2;
	width:38px!important; height:38px!important; min-width:38px!important; padding:0!important;
	border:0!important; background:transparent!important; box-shadow:none!important;
	color:#111827!important; font-size:34px!important; font-weight:400!important;
	line-height:1!important; cursor:pointer;
}
.amp-pp-gallery-modal-head{
	display:flex; align-items:center; justify-content:space-between; gap:16px;
	margin:0 0 24px; color:var(--amp-navy2);
}
.amp-pp-gallery-modal-head span{ font-size:18px; font-weight:800; }
.amp-pp-gallery-modal-head strong{ font-size:13px; font-weight:700; color:var(--amp-muted2); }
.amp-pp-gallery-modal-grid{
	display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.amp-pp-gallery-modal-item{
	position:relative; display:block; aspect-ratio:1; border:1px solid var(--amp-border);
	border-radius:10px; overflow:hidden; background:#fff; text-decoration:none;
}
.amp-pp-gallery-modal-item img{
	width:100%; height:100%; object-fit:contain; display:block; padding:18px;
}
.amp-pp-gallery-modal-item span{
	position:absolute; top:10px; right:10px; min-width:24px; height:24px; border-radius:999px;
	display:flex; align-items:center; justify-content:center;
	background:var(--amp-red-bg); color:var(--amp-red); font-size:12px; font-weight:800;
}
@media(max-width:900px){
	.amp-pp-gallery-modal{ padding:58px 16px 20px; }
	.amp-pp-gallery-modal-panel{ padding:20px; border-radius:14px; }
	.amp-pp-gallery-modal-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:520px){
	.amp-pp-gallery-modal-grid{ grid-template-columns:1fr; }
}

.amp-pp-new-badge{
	position:absolute; top:16px; right:16px; z-index:3;
	background:var(--amp-navy); color:var(--amp-gold);
	font-size:11.5px; font-weight:700; padding:6px 14px; border-radius:20px;
}
.amp-pp .onsale{ display:none!important; }

/* ---------- کارت اطلاعات (سمت چپ) ---------- */
.amp-pp-summary{
	background:var(--amp-card); border-radius:20px; box-shadow:var(--amp-shadow);
	padding:36px!important; display:flex!important; flex-direction:column!important;
	order:2; float:none!important; width:auto!important; height:100%;
}


.amp-pp-summary .product_title{
	order:2; font-size:26px!important; font-weight:800!important; color:var(--amp-navy2);
	line-height:1.5!important; margin:0 0 12px!important; padding:0!important;
}

.amp-pp-sku-row{ order:3; display:flex; align-items:center; gap:14px; margin-bottom:16px; flex-wrap:wrap; }
.amp-pp-sku{ font-size:12px; color:var(--amp-muted); }
.amp-pp-stock-badge{ font-size:11.5px; font-weight:700; padding:5px 12px; border-radius:20px; white-space:nowrap; }
.amp-pp-stock-badge.in-stock{ color:var(--amp-green); background:var(--amp-green-bg); }
.amp-pp-stock-badge.out-stock{ color:var(--amp-red); background:var(--amp-red-bg); }

.amp-pp-summary .woocommerce-product-rating{
	order:4; display:flex!important; align-items:center; gap:8px; margin:0 0 20px!important;
}
.amp-pp-summary .star-rating{ color:var(--amp-gold); font-size:14px; margin:0!important; float:none!important; }
.amp-pp-summary .woocommerce-review-link{ font-size:12.5px; color:var(--amp-muted2); text-decoration:none; }

.amp-pp-summary .price{
	order:5; font-size:30px!important; font-weight:800!important; color:var(--amp-navy)!important;
	margin:0 0 22px!important; display:flex!important; align-items:baseline; gap:12px; flex-wrap:wrap;
}
.amp-pp-summary > .price.is-variation-price{
	display:block!important;
}
.amp-pp-summary .price del{ font-size:16px; color:var(--amp-muted); font-weight:400; opacity:1; }
.amp-pp-summary .price ins{ text-decoration:none; background:none; }
/* رفع بهم‌ریختگی عدد قیمت در RTL */
.amp-pp .woocommerce-Price-amount.amount{ direction:ltr; unicode-bidi:embed; display:inline-block; }

.amp-pp-summary .woocommerce-product-details__short-description{
	order:6; font-size:13.5px; color:var(--amp-muted2); line-height:2.1; margin:0 0 22px;
}
.amp-pp-summary .woocommerce-product-details__short-description p{ margin:0; font-size:13.5px; line-height:2.1; }
.amp-pp-short-desc{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.amp-pp-short-desc-content{
	position:relative; width:100%; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical;
	-webkit-line-clamp:2; line-clamp:2;
}
.amp-pp-short-desc.has-overflow:not(.is-expanded) .amp-pp-short-desc-content::after{
	content:""; position:absolute; inset:auto 0 0; height:2.1em; pointer-events:none;
	background:linear-gradient(180deg, rgba(255,255,255,0), var(--amp-card) 88%);
}
.amp-pp-short-desc.is-expanded .amp-pp-short-desc-content{
	display:block; -webkit-line-clamp:unset; line-clamp:unset;
}
.amp-pp-short-desc-more{
	appearance:none!important; -webkit-appearance:none!important;
	align-self:flex-start; width:auto!important; min-width:0!important; height:auto!important; min-height:0!important;
	border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important;
	color:var(--amp-gold)!important; padding:0!important; margin:0!important;
	font-size:13px!important; font-weight:800!important; cursor:pointer; line-height:1.6!important;
	display:inline-flex; align-items:center; gap:6px;
	text-decoration:none!important;
}
.amp-pp-short-desc-more::after{
	content:"‹"; direction:ltr; unicode-bidi:isolate;
	font-size:22px; font-weight:800; line-height:1; transform:translateY(-1px);
}
.amp-pp-short-desc.is-expanded .amp-pp-short-desc-more::after{
	content:"›";
}
.amp-pp-short-desc-more:hover{ color:var(--amp-gold-dark); }

/* گرید ۴تایی ویژگی */
.amp-pp-highlights{
	order:7; display:grid!important; grid-template-columns:repeat(4,1fr)!important; gap:12px; margin-bottom:24px;
}
.amp-pp-highlight{
	display:flex; flex-direction:column; align-items:center; gap:8px;
	background:var(--amp-soft); border-radius:12px; padding:14px 8px; text-align:center;
}
.amp-pp-highlight span{ font-size:11px; font-weight:600; color:var(--amp-navy2); line-height:1.5; }

/* انتخاب رنگ / تنوع محصول */
.amp-pp-colors{ order:8; display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.amp-pp-colors-label{ font-size:13px; font-weight:600; color:var(--amp-navy2); flex-shrink:0; }
.amp-pp-swatches{ display:flex; gap:8px; flex-wrap:wrap; }
.amp-pp-swatch{
	width:30px; height:30px; border-radius:50%; border:2px solid transparent;
	box-shadow:inset 0 0 0 1px rgba(14,26,46,.12); cursor:pointer; transition:border-color .15s;
}
.amp-pp-swatch.is-hidden-overflow{ display:none; }

/* نام رنگ انتخاب‌شده کنار برچسب */
.amp-pp-selected-name{
	display:none; align-items:center; gap:6px;
	font-size:13px; font-weight:700; color:var(--amp-navy2);
	margin-inline-start:4px;
}
.amp-pp-selected-name.is-filled{ display:inline-flex; }
.amp-pp-selected-dot{
	width:13px; height:13px; border-radius:50%; display:inline-block;
	box-shadow:inset 0 0 0 1px rgba(14,26,46,.15); flex-shrink:0;
}
.amp-pp-selected-out{
	font-style:normal; font-weight:600; font-size:12px; color:#C0392B;
}

/* دکمه افزودن به سبد وقتی رنگ انتخاب‌شده ناموجود است */
.single_add_to_cart_button.is-soldout-disabled{
	background:#E5E3DF !important;
	color:#8A8F98 !important;
	cursor:not-allowed !important;
	pointer-events:none;
	opacity:1 !important;
	box-shadow:none !important;
}
/* سواچ دورنگ: دو نیم‌دایره با مرز تمیز وسط */
.amp-pp-swatch.is-dual{
	background-repeat:no-repeat; background-size:100% 100%;
	position:relative; overflow:hidden;
}
.amp-pp-swatch.is-active{ border-color:var(--amp-gold); }
.amp-pp-swatch.is-disabled,
.amp-pp-pill.is-disabled{ opacity:.3; cursor:not-allowed; }
/* ناموجود (تنوع هست ولی موجودی صفره) — کم‌رنگ + خط قطری، برخلاف is-disabled قابل کلیک نیست ولی حذف نمیشه */
/* ناموجود: قابل انتخاب است (تا کاربر ببیند چه رنگی تمام شده)،
   ولی با خط قطری مشخص می‌شود و دکمه سبد خرید غیرفعال می‌ماند. */
.amp-pp-swatch.is-soldout{
	opacity:.55; cursor:pointer; position:relative;
}
.amp-pp-swatch.is-soldout.is-active{
	opacity:.8; border-color:#C0392B;
}
.amp-pp-swatch.is-soldout::after{
	content:""; position:absolute; inset:-2px; border-radius:50%;
	background:linear-gradient(to top left, transparent calc(50% - 1px), rgba(14,26,46,.55) calc(50% - 1px), rgba(14,26,46,.55) calc(50% + 1px), transparent calc(50% + 1px));
}
.amp-pp-pill.is-soldout{
	opacity:.45; cursor:not-allowed; text-decoration:line-through;
}
.amp-pp-color-more{
	position:relative; width:34px!important; height:34px!important; min-width:34px!important;
	padding:0!important; border:1px solid #D9DDE5!important; border-radius:50%!important;
	background:#fff!important; overflow:hidden; cursor:pointer;
	box-shadow:0 8px 22px rgba(14,26,46,.08)!important;
	display:inline-flex!important; align-items:center; justify-content:center;
}
.amp-pp-color-more::before{
	content:""; position:absolute; inset:5px; border-radius:50%; z-index:1;
	background:var(--amp-color-more-bg,#9AA5B8); filter:blur(5px); opacity:.55; transform:scale(1.18);
}
.amp-pp-color-more::after{
	content:attr(data-more-count); position:absolute; top:-6px; left:-6px; z-index:3;
	min-width:22px; height:22px; padding:0 5px; border-radius:999px; background:#FBE3EC;
	display:flex; align-items:center; justify-content:center;
	color:var(--amp-red); font-size:10px; font-weight:800; line-height:1;
	box-shadow:0 0 14px rgba(232,160,180,.45);
}
.amp-pp-color-more span{
	position:relative; z-index:2; color:var(--amp-navy2); font-size:16px; font-weight:800; line-height:1; letter-spacing:1px;
}
.amp-pp-color-more:hover{
	border-color:var(--amp-gold)!important; box-shadow:0 10px 26px rgba(201,162,39,.16)!important;
}
.amp-pp-color-more.is-active{ border-color:var(--amp-gold)!important; }
.amp-pp-pill{
	min-height:34px; padding:0 14px; border-radius:10px; border:1px solid var(--amp-border);
	background:#fff; font-size:12.5px; font-weight:600; color:var(--amp-navy2);
	display:inline-flex; align-items:center; cursor:pointer; transition:all .15s;
}
.amp-pp-pill.is-active{ border-color:var(--amp-gold); background:var(--amp-soft); }

.amp-pp-color-modal{
	position:fixed; inset:0; z-index:999999; display:none;
	background:rgba(14,26,46,.32); backdrop-filter:blur(10px);
	padding:70px 28px 42px; direction:rtl;
}
.amp-pp-color-modal.is-open{ display:block; }
.amp-pp-color-modal-panel{
	position:relative; width:min(720px,100%); max-height:100%; margin:0 auto;
	background:#fff; border-radius:18px; box-shadow:0 20px 60px rgba(14,26,46,.18);
	padding:30px; overflow:auto;
}
.amp-pp-color-modal-close{
	position:fixed; top:24px; left:28px; z-index:2;
	width:38px!important; height:38px!important; min-width:38px!important; padding:0!important;
	border:0!important; background:transparent!important; box-shadow:none!important;
	color:#111827!important; font-size:34px!important; font-weight:400!important;
	line-height:1!important; cursor:pointer;
}
.amp-pp-color-modal-head{
	display:flex; align-items:center; justify-content:space-between; gap:16px;
	margin:0 0 22px; color:var(--amp-navy2);
}
.amp-pp-color-modal-head span{ font-size:18px; font-weight:800; }
.amp-pp-color-modal-head strong{ font-size:13px; font-weight:700; color:var(--amp-muted2); }
.amp-pp-color-modal-grid{
	display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
}
.amp-pp-color-modal-item{
	min-height:52px; border:1px solid var(--amp-border)!important; border-radius:12px!important;
	background:#fff!important; padding:9px 10px!important;
	display:flex!important; align-items:center; justify-content:flex-start; gap:9px;
	color:var(--amp-navy2)!important; cursor:pointer; box-shadow:none!important; text-align:right;
}
.amp-pp-color-modal-dot{
	width:24px; height:24px; border-radius:50%; flex-shrink:0;
	background:var(--amp-modal-swatch-color,#9AA5B8);
	border:2px solid transparent; box-shadow:inset 0 0 0 1px rgba(14,26,46,.12);
}
.amp-pp-color-modal-name{
	font-size:12px; font-weight:600; line-height:1.6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.amp-pp-color-modal-item.is-active{
	border-color:var(--amp-gold)!important; background:var(--amp-soft)!important;
}
.amp-pp-color-modal-item.is-active .amp-pp-color-modal-dot{ border-color:var(--amp-gold); }
.amp-pp-color-modal-item.is-disabled{ opacity:.35; cursor:not-allowed; }
.amp-pp-color-modal-item.is-soldout{ opacity:.45; cursor:not-allowed; }
.amp-pp-color-modal-item.is-soldout .amp-pp-color-modal-dot{
	position:relative;
}
.amp-pp-color-modal-item.is-soldout .amp-pp-color-modal-dot::after{
	content:""; position:absolute; inset:-2px; border-radius:50%;
	background:linear-gradient(to top left, transparent calc(50% - 1px), rgba(14,26,46,.55) calc(50% - 1px), rgba(14,26,46,.55) calc(50% + 1px), transparent calc(50% + 1px));
}
.amp-pp-color-modal-item.is-soldout .amp-pp-color-modal-name em{
	font-style:normal; color:var(--amp-red); font-size:10.5px; font-weight:600;
}
@media(max-width:720px){
	.amp-pp-color-modal{ padding:58px 16px 20px; }
	.amp-pp-color-modal-panel{ padding:20px; border-radius:14px; }
	.amp-pp-color-modal-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ردیف‌های انتخاب تنوع (محصول متغیر) */
.amp-pp-variations{ display:flex; flex-direction:column; gap:14px; margin-bottom:18px; width:100%; }
.amp-pp-var-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

/* ===== فرم محصول متغیر ===== */
.amp-pp-summary form.variations_form.cart{
	order:9; display:flex!important; flex-direction:column!important; align-items:stretch!important;
	gap:0!important; margin:14px 0 20px!important; background:none!important; padding:0!important; border:none!important;
}
/* جدول dropdown پیش‌فرض ووکامرس مخفی، ولی تو DOM می‌مونه تا JS کار کنه */
.amp-pp-summary form.variations_form table.variations{
	position:absolute!important; width:1px!important; height:1px!important;
	overflow:hidden!important; clip:rect(0 0 0 0)!important; margin:0!important; padding:0!important;
}
.amp-pp-summary form.variations_form .reset_variations{
	font-size:12px; color:var(--amp-muted2); text-decoration:underline; margin-bottom:10px; display:inline-block;
}
.amp-pp-summary .single_variation_wrap{ display:flex!important; flex-direction:column; gap:0; width:100%; }
.amp-pp-summary .woocommerce-variation{ margin:0 0 12px!important; }
.amp-pp-summary .woocommerce-variation-price{ display:none!important; }
.amp-pp-summary .woocommerce-variation-price .price{
	order:0!important; font-size:22px!important; margin:0 0 4px!important;
}
.amp-pp-summary .woocommerce-variation-availability p{ margin:0; font-size:12.5px; color:var(--amp-muted2); }
.amp-pp-summary .woocommerce-variation-availability p.stock.out-of-stock{
	height:54px; display:flex; align-items:center; justify-content:center;
	border-radius:12px; background:var(--amp-red-bg); color:var(--amp-red);
	font-weight:700; font-size:14px;
}
.amp-pp-summary .woocommerce-variation-add-to-cart{
	display:flex!important; gap:14px; align-items:center; width:100%;
}
.amp-pp-summary .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button{
	opacity:.45; cursor:not-allowed; background:var(--amp-navy)!important;
}
.amp-pp-summary .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled{
	display:none!important;
}

/* دکمه خرید */
.amp-pp-summary form.cart{
	order:9; display:flex!important; gap:14px; margin:14px 0 20px!important; align-items:center;
}
.amp-pp-summary form.cart .quantity{ margin:0!important; }
.amp-pp-summary form.cart .quantity input.qty{
	width:64px; height:54px; border-radius:12px; border:1px solid var(--amp-border);
	text-align:center; font-size:14px; background:#fff;
}
.amp-pp-summary .single_add_to_cart_button{
	flex:1; display:flex!important; align-items:center; justify-content:center; gap:10px;
	background:var(--amp-navy)!important; color:#F5F1E6!important;
	font-size:14.5px!important; font-weight:700!important; height:54px; line-height:1;
	border-radius:12px!important; border:none!important; cursor:pointer; padding:0 20px!important;
	float:none!important;
}
.amp-pp-summary .single_add_to_cart_button:hover{ background:var(--amp-navy2)!important; }
/* دکمه علاقه‌مندی */
.amp-pp-wishlist{
	width:54px; height:54px; border-radius:12px; border:1px solid var(--amp-border)!important;
	display:flex!important; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0;
	background:#fff!important; box-shadow:none!important; padding:0!important;
	transition:border-color .15s, background .15s;
}
.amp-pp-wishlist:hover { border-color:var(--amp-gold)!important; }
.amp-pp-wishlist.is-active { border-color:#e74c3c!important; background:#fdf2f2!important; }
.amp-pp-wishlist .amp-wl-icon-empty  { display:block; color:var(--amp-navy2); }
.amp-pp-wishlist .amp-wl-icon-filled { display:none; }
.amp-pp-wishlist.is-active .amp-wl-icon-empty  { display:none; }
.amp-pp-wishlist.is-active .amp-wl-icon-filled { display:block; }
.amp-pp-wishlist.amp-wl-pop { animation:amp-wl-pop .22s ease; }
/* پیام ناموجود */
.amp-pp-summary p.stock.out-of-stock{
	order:9; margin:14px 0 20px!important; height:54px; display:flex; align-items:center; justify-content:center;
	border-radius:12px; background:var(--amp-red-bg); color:var(--amp-red); font-weight:700; font-size:14px;
}

/* نوار اعتماد */
.amp-pp-trust-row{
	order:10; display:flex!important; align-items:center; justify-content:space-between;
	padding-top:18px; border-top:1px solid var(--amp-border); margin-top:auto;
}
.amp-pp-trust-item{ display:flex; flex-direction:column; align-items:center; gap:6px; flex:1; }
.amp-pp-trust-label{ font-size:11px; color:var(--amp-muted2); }

.amp-pp-summary .product_meta{ display:none!important; } /* تکراری با نوار SKU بالا */

/* ---------- استریپ ۶تایی ویژگی‌ها ---------- */
.amp-pp-benefits{
	margin:0 0 24px; background:var(--amp-card); border-radius:20px;
	box-shadow:var(--amp-shadow); padding:40px 36px;
}
.amp-pp-benefits-grid{ display:grid!important; grid-template-columns:repeat(6,1fr)!important; gap:24px; }
@media(max-width:1024px){ .amp-pp-benefits-grid{ grid-template-columns:repeat(3,1fr)!important; } }
@media(max-width:640px){ .amp-pp-benefits-grid{ grid-template-columns:repeat(2,1fr)!important; } }
.amp-pp-benefit{ display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; }
.amp-pp-benefit-icon{
	width:52px; height:52px; border-radius:50%; background:#FFFFFF;
	display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(14,26,46,.06); flex-shrink:0;
}
.amp-pp-benefit-title{ font-size:13px; font-weight:700; color:var(--amp-navy2); }
.amp-pp-benefit-desc{ font-size:11px; color:var(--amp-muted); line-height:1.7; }

/* ---------- تب‌ها ---------- */
.amp-pp-tabs-wrap{
	margin:0 0 24px; background:var(--amp-card); border-radius:20px;
	box-shadow:var(--amp-shadow); padding:36px;
}
.amp-pp .woocommerce-tabs{ padding:0!important; margin:0!important; }
.amp-pp .woocommerce-tabs ul.tabs{
	display:flex!important; gap:36px; border-bottom:1px solid var(--amp-border);
	margin:0 0 28px!important; padding:0!important; list-style:none!important;
}
.amp-pp .woocommerce-tabs ul.tabs::before,
.amp-pp .woocommerce-tabs ul.tabs::after,
.amp-pp .woocommerce-tabs ul.tabs li::before,
.amp-pp .woocommerce-tabs ul.tabs li::after{ display:none!important; }
.amp-pp .woocommerce-tabs ul.tabs li{
	margin:0!important; padding:0!important; background:none!important;
	border:none!important; border-radius:0!important; box-shadow:none!important;
}
.amp-pp .woocommerce-tabs ul.tabs li a{
	font-size:14.5px!important; font-weight:600; color:var(--amp-muted)!important;
	padding:0 0 16px!important; display:block; text-decoration:none;
}
.amp-pp .woocommerce-tabs ul.tabs li.active a{
	font-weight:700; color:var(--amp-navy2)!important; border-bottom:2px solid var(--amp-gold);
}
.amp-pp .woocommerce-tabs .panel{ margin:0!important; padding:0!important; }
.amp-pp .woocommerce-tabs .panel > h2:first-child{ display:none; }
.amp-pp .woocommerce-tabs .panel p{ font-size:13.5px; line-height:2.1; color:var(--amp-muted2); }
.amp-pp .woocommerce-tabs .panel h2{ font-size:16px; font-weight:700; color:var(--amp-navy2); margin:24px 0 10px; }

/* جدول مشخصات فنی */
.amp-pp table.woocommerce-product-attributes{
	width:100%; border:none!important; margin:0!important; border-collapse:separate!important;
	display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px!important;
}
@media(max-width:900px){ .amp-pp table.woocommerce-product-attributes{ grid-template-columns:1fr!important; } }
.amp-pp table.woocommerce-product-attributes tbody{ display:contents; }
.amp-pp table.woocommerce-product-attributes tr{
	position:relative; display:grid!important; grid-template-columns:128px minmax(0,1fr);
	direction:rtl; align-items:stretch; gap:0; min-height:68px; overflow:hidden;
	border:1px solid var(--amp-border2)!important; border-radius:14px; background:#fff!important;
	box-shadow:0 8px 22px rgba(14,26,46,.035); transition:border-color .15s, box-shadow .15s;
}
.amp-pp table.woocommerce-product-attributes tr:hover{
	border-color:rgba(201,162,39,.34)!important; box-shadow:0 10px 28px rgba(14,26,46,.055);
}
.amp-pp table.woocommerce-product-attributes th,
.amp-pp table.woocommerce-product-attributes td{
	border:none!important; background:none!important; text-align:start!important; font-style:normal!important;
}
.amp-pp table.woocommerce-product-attributes th{
	display:flex!important; align-items:center; justify-content:flex-start;
	padding:14px 16px!important; background:var(--amp-soft)!important;
	color:var(--amp-muted2)!important; font-size:12.5px; font-weight:600!important; line-height:1.7;
}
.amp-pp table.woocommerce-product-attributes th::before{
	content:""; width:7px; height:7px; border-radius:50%; background:var(--amp-gold);
	margin-inline-end:8px; box-shadow:0 0 0 4px rgba(201,162,39,.12); flex-shrink:0;
}
.amp-pp table.woocommerce-product-attributes td{
	display:flex!important; align-items:center; justify-content:flex-start; min-width:0;
	padding:14px 32px 14px 22px!important; color:var(--amp-navy2)!important;
	font-size:13.5px; font-weight:700; line-height:2;
}
.amp-pp table.woocommerce-product-attributes td p{
	width:100%; max-width:100%; margin:0!important; font-size:13.5px; line-height:2; color:inherit;
	text-align:start; overflow-wrap:anywhere;
}
.amp-pp table.woocommerce-product-attributes td a{ color:var(--amp-gold-dark); text-decoration:none; }
.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_pa_color,
.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_color{
	grid-column:1/-1; grid-template-columns:128px minmax(0,1fr);
}
.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_pa_color td,
.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_color td{
	align-items:flex-start; background:linear-gradient(180deg,#fff,var(--amp-soft))!important;
	color:var(--amp-muted2)!important; font-weight:600; line-height:2.15;
	padding-inline-start:36px!important; padding-inline-end:24px!important;
}
@media(max-width:560px){
	.amp-pp table.woocommerce-product-attributes tr,
	.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_pa_color,
	.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_color{
		grid-template-columns:1fr;
	}
	.amp-pp table.woocommerce-product-attributes th{ padding:12px 14px!important; }
	.amp-pp table.woocommerce-product-attributes td{ padding:12px 14px 14px!important; }
}

/* ---------- محصولات مشابه ---------- */
.amp-pp-related{
	margin:0 0 40px; background:var(--amp-card); border-radius:20px;
	box-shadow:var(--amp-shadow); padding:36px;
}
.amp-pp-related .related.products{ margin:0; padding:0; border:none; }
.amp-pp-related .related.products > h2{
	font-size:22px!important; font-weight:800; color:var(--amp-navy2); margin:0 0 22px!important;
}
/* اسکرول افقی — عرض هر کارت ثابت، لیست خودش کش میاد */
.amp-pp-related ul.products{
	display:flex!important; flex-wrap:nowrap!important; gap:16px!important;
	list-style:none!important; margin:0!important; padding:0 0 6px!important;
	overflow-x:auto!important; overflow-y:hidden;
	scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
	scrollbar-width:thin;
}
.amp-pp-related ul.products::before,
.amp-pp-related ul.products::after{ display:none!important; }
.amp-pp-related ul.products li.product{
	border:1px solid var(--amp-border); border-radius:14px; overflow:hidden;
	width:200px!important; flex:0 0 200px!important; margin:0!important; float:none!important; padding:0!important;
	display:flex!important; flex-direction:column; scroll-snap-align:start;
}
.amp-pp-related ul.products li.product a.woocommerce-loop-product__link{ text-decoration:none; display:block; }
.amp-pp-related ul.products li.product img{
	aspect-ratio:1; object-fit:contain; width:100%!important; margin:0!important;
	background:var(--amp-soft); padding:8px;
}
.amp-pp-related ul.products li.product .woocommerce-loop-product__title{
	font-size:12.5px!important; font-weight:600; color:var(--amp-navy2);
	margin:0 0 8px!important; padding:12px 12px 0!important; line-height:1.7;
	display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
}
.amp-pp-related ul.products li.product .price{
	font-size:13.5px!important; font-weight:700; color:var(--amp-navy)!important;
	padding:0 12px 14px!important; margin:0!important; display:block;
}
.amp-pp-related ul.products li.product .price del{ font-size:11.5px; color:var(--amp-muted); font-weight:400; }
.amp-pp-related ul.products li.product .price ins{ text-decoration:none; background:none; }
.amp-pp-related ul.products li.product .button,
.amp-pp-related ul.products li.product .star-rating,
.amp-pp-related ul.products li.product .onsale{ display:none!important; }

/* نشانگر گالری سبک دیجی‌کالا — فقط موبایل نشون داده میشه (JS در functions.php می‌سازتش) */
.amp-pp-gallery-pill{
	display:none; position:absolute; bottom:42px; left:14px; z-index:4;
	align-items:center; gap:8px; background:#FFFFFFF2; border-radius:20px;
	padding:6px 12px 6px 8px; box-shadow:0 4px 14px rgba(14,26,46,.14);
	direction:ltr; /* شمارنده n/m چپ‌به‌راست خونده بشه */
}
.amp-pp-gallery-pill-icon{
	display:flex; align-items:center; justify-content:center; color:var(--amp-navy2); flex-shrink:0;
}
.amp-pp-gallery-pill-track{
	position:relative; width:52px; height:3px; border-radius:2px; background:var(--amp-border); overflow:hidden; flex-shrink:0;
}
.amp-pp-gallery-pill-fill{
	position:absolute; inset:0 auto 0 0; height:100%; border-radius:2px; background:var(--amp-gold); transition:width .2s;
}
.amp-pp-gallery-pill-count{
	font-size:10.5px; font-weight:700; color:var(--amp-navy2); line-height:1; white-space:nowrap;
}

/* نوار استیکی پایین — قیمت + دکمه افزودن به سبد (فقط موبایل) */
.amp-pp-sticky-bar{ display:none; }
.amp-pp-sticky-price{ display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.amp-pp-sticky-price .price{ font-size:15px; font-weight:800; color:var(--amp-navy); }
.amp-pp-sticky-price del{ font-size:11px; color:var(--amp-muted); font-weight:400; }
.amp-pp-sticky-price del .amount{ font-size:inherit; }
.amp-pp-sticky-price ins{ text-decoration:none; }
.amp-pp-sticky-cta{
	-webkit-appearance:none!important; appearance:none!important;
	border:none!important; outline:none!important; box-shadow:none!important; cursor:pointer;
	background:var(--amp-navy)!important; color:#F5F1E6!important;
	font-family:'Peyda', sans-serif!important; font-size:13px!important; font-weight:700!important; line-height:1!important;
	height:46px!important; min-width:0!important; min-height:0!important;
	padding:0 22px!important; margin:0!important; border-radius:11px!important; flex-shrink:0;
}
.amp-pp-sticky-cta:hover{ background:var(--amp-navy2)!important; }
.amp-pp-sticky-cta:disabled{ opacity:.45!important; cursor:not-allowed; }

/* =======================================================================
   موبایل — صفحه محصول (مطابق طرح «صفحه محصول - موبایل»)
   ======================================================================= */
@media(max-width:767px){

	.amp-pp{ padding:0 0 90px!important; } /* فاصله پایین برای نوار استیکی */

	.amp-pp-breadcrumb{
		margin:14px 14px 0; border-radius:12px; box-shadow:0 4px 14px rgba(14,26,46,.06);
		padding:11px 14px; font-size:10.5px;
		white-space:nowrap; overflow-x:auto;
	}
	.amp-pp-breadcrumb .woocommerce-breadcrumb{ font-size:10.5px; }

	/* از گرید به فلکس ساده — از هم‌پوشانی کارت اطلاعات با گالری موقع اسکرول جلوگیری می‌کنه */
	.amp-pp-main{
		display:flex!important; flex-direction:column!important; align-items:stretch!important;
		margin:10px 0 0!important; gap:0!important;
	}
	.amp-pp-main > *{ flex:0 0 auto!important; min-height:0!important; max-height:none!important; }

	/* گالری تمام‌عرض بدون کارت — چسبیده بالا، کارت اطلاعات روش اسکرول میشه */
	.amp-pp-gallery{
		background:var(--amp-soft); border-radius:0; box-shadow:none;
		padding:0!important; height:auto!important; min-height:0!important;
		position:sticky!important; top:0; z-index:1; overflow:hidden; display:block!important;
	}
	.amp-pp-gallery .woocommerce-product-gallery{ display:block!important; height:auto!important; }
	/* مهم: aspect-ratio نباید روی wrapper باشه — فلکس‌اسلایدر عرضش رو inline روی ۱۴۰۰٪ می‌ذاره
	   و aspect-ratio ارتفاع رو هم همون‌قدر بزرگ می‌کنه. نسبت روی خود تصویر اعمال میشه. */
	.amp-pp-gallery .woocommerce-product-gallery__wrapper{
		border-radius:0; aspect-ratio:auto!important; height:auto!important; min-height:0!important; max-height:none!important;
	}
	.amp-pp-gallery .woocommerce-product-gallery__image{ height:auto!important; }
	.amp-pp-gallery .woocommerce-product-gallery__image img{
		border-radius:0; aspect-ratio:1!important; height:auto!important; object-fit:contain;
	}
	.amp-pp-gallery .flex-control-thumbs,
	.amp-pp-gallery .amp-pp-gallery-nav{ display:none!important; }
	.amp-pp-gallery-pill{ display:flex; }
	.amp-pp-new-badge{ top:14px; right:14px; font-size:10.5px; padding:5px 12px; }

	/* کارت اطلاعات — مثل شیت، از بالا گرد و روی تصویر سُر می‌خوره */
	.amp-pp-summary{
		position:relative; z-index:2;
		background:var(--amp-card); border-radius:20px 20px 0 0;
		box-shadow:0 -8px 24px rgba(14,26,46,.1);
		padding:20px 14px 18px!important; height:auto; margin-top:-22px!important;
	}
	/* دستگیره کوچک بالای شیت */
	.amp-pp-summary::before{
		content:""; position:absolute; top:9px; left:50%; transform:translateX(-50%);
		width:42px; height:4px; border-radius:2px; background:var(--amp-border);
	}
	.amp-pp-brand{ font-size:11px; }
	.amp-pp-summary .product_title{ font-size:17px!important; line-height:1.6!important; margin:0 0 10px!important; }
	.amp-pp-sku-row{ gap:10px; margin-bottom:12px; }
	.amp-pp-sku{ font-size:10.5px; }
	.amp-pp-stock-badge{ font-size:10px; padding:4px 10px; }
	.amp-pp-summary .woocommerce-product-rating{ margin:0 0 16px!important; gap:6px; }
	.amp-pp-summary .star-rating{ font-size:13px; }
	.amp-pp-summary .woocommerce-review-link{ font-size:10.5px; }
	.amp-pp-summary .price{ font-size:19px!important; gap:8px; margin:0 0 14px!important; }
	.amp-pp-summary .price del{ font-size:12px; }
	.amp-pp-summary .woocommerce-product-details__short-description,
	.amp-pp-summary .woocommerce-product-details__short-description p{ font-size:11.5px; line-height:1.9; }
	.amp-pp-summary .woocommerce-product-details__short-description{ margin:0 0 16px; }

	.amp-pp-highlights{ gap:8px; margin-bottom:18px; }
	.amp-pp-highlight{ padding:10px 4px; gap:6px; border-radius:10px; }
	.amp-pp-highlight-icon svg{ width:17px; height:17px; }
	.amp-pp-highlight span{ font-size:9px; }

	.amp-pp-colors,
	.amp-pp-variations{ margin-bottom:16px; }
	.amp-pp-colors-label{ font-size:12px; }
	.amp-pp-swatch{ width:24px; height:24px; }

	.amp-pp-summary form.cart,
	.amp-pp-summary form.variations_form.cart{ margin:0 0 16px!important; gap:10px; }
	.amp-pp-summary form.cart .quantity input.qty{ width:52px; height:46px; font-size:13px; }
	.amp-pp-summary .single_add_to_cart_button{ height:46px; font-size:12.5px!important; border-radius:11px!important; }
	.amp-pp-wishlist{ width:46px; height:46px; border-radius:11px; }
	.amp-pp-summary p.stock.out-of-stock{ height:46px; font-size:12.5px; }

	.amp-pp-trust-row{ padding-top:14px; }
	.amp-pp-trust-item svg{ width:17px; height:17px; }
	.amp-pp-trust-label{ font-size:9.5px; }

	/* استریپ ویژگی‌ها — ۳ ستون، بدون توضیح */
	.amp-pp-benefits{ border-radius:0; box-shadow:none; padding:18px 14px; border-top:1px solid var(--amp-border); margin:0; }
	.amp-pp-benefits-grid{ grid-template-columns:repeat(3,1fr)!important; gap:16px; }
	.amp-pp-benefit-icon{ width:40px; height:40px; box-shadow:none; }
	.amp-pp-benefit-icon svg{ width:18px; height:18px; }
	.amp-pp-benefit-title{ font-size:9.5px; line-height:1.4; }
	.amp-pp-benefit-desc{ display:none; }

	/* تب‌ها/مشخصات — بدون کارت، عنوان ساده */
	.amp-pp-tabs-wrap{ border-radius:0; box-shadow:none; padding:18px 14px; border-top:1px solid var(--amp-border); margin:0; }
	.amp-pp .woocommerce-tabs ul.tabs{ gap:20px; overflow-x:auto; white-space:nowrap; margin:0 0 16px!important; }
	.amp-pp .woocommerce-tabs ul.tabs li a{ font-size:13px!important; padding:0 0 12px!important; }
	/* «اطلاعات فنی» اول، «توضیحات» دومی — فقط ترتیب بصری، DOM دست‌نخورده */
	.amp-pp .woocommerce-tabs ul.tabs li.additional_information_tab{ order:-1; }
	.amp-pp .woocommerce-tabs ul.tabs li.description_tab{ order:1; }
	.amp-pp .woocommerce-tabs ul.tabs li.reviews_tab{ order:2; }

	/* جدول مشخصات — هر ردیف دوطبقه (برچسب بالا، مقدار پایین) برای مقادیر طولانی فارسی */
	.amp-pp table.woocommerce-product-attributes{ display:flex!important; flex-direction:column; gap:0!important; }
	.amp-pp table.woocommerce-product-attributes tr{
		display:flex!important; flex-direction:column; align-items:flex-start!important; gap:4px;
		grid-template-columns:none!important;
		border:none!important; border-radius:0; box-shadow:none; background:none!important;
		min-height:0; padding:12px 0; border-bottom:1px solid var(--amp-border2)!important;
	}
	.amp-pp table.woocommerce-product-attributes th{
		padding:0!important; background:none!important; font-size:11px; color:var(--amp-muted)!important; font-weight:500!important;
	}
	.amp-pp table.woocommerce-product-attributes th::before{ display:none; }
	.amp-pp table.woocommerce-product-attributes td{
		padding:0!important; font-size:12.5px; font-weight:600; line-height:1.8;
		width:100%; white-space:normal;
	}
	.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_pa_color,
	.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_color{
		grid-column:auto!important;
	}
	.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_pa_color td,
	.amp-pp table.woocommerce-product-attributes .woocommerce-product-attributes-item--attribute_color td{
		padding-inline-start:0!important; padding-inline-end:0!important; background:none!important;
	}

	/* محصولات مشابه — دو کارت کنار هم */
	.amp-pp-related{ border-radius:0; box-shadow:none; padding:18px 0; border-top:1px solid var(--amp-border); margin:0; }
	.amp-pp-related .related.products > h2{ font-size:14px!important; margin:0 0 14px!important; padding:0 14px; }
	.amp-pp-related ul.products{ gap:12px; padding:0 14px 6px; }
	.amp-pp-related ul.products li.product{ width:150px!important; flex:0 0 150px!important; }
	.amp-pp-related ul.products li.product .woocommerce-loop-product__title{ font-size:12px!important; padding:10px 10px 0!important; }
	.amp-pp-related ul.products li.product .price{ font-size:13px!important; padding:0 10px 12px!important; }

	/* ردیف افزودن به سبد داخل کارت مخفی — نوار استیکی پایین جایگزینشه */
	.amp-pp-summary form.cart:not(.variations_form){ display:none!important; }
	.amp-pp-summary .woocommerce-variation-add-to-cart{ display:none!important; }
	.amp-pp-wishlist{ display:none!important; }

	/* نوار استیکی پایین صفحه */
	.amp-pp-sticky-bar{
		display:flex!important; position:fixed; bottom:0; left:0; right:0; z-index:9999;
		align-items:center; justify-content:space-between; gap:12px;
		background:#fff; padding:10px 14px; padding-bottom:calc(10px + env(safe-area-inset-bottom));
		box-shadow:0 -6px 20px rgba(14,26,46,.1); direction:rtl;
	}
}

/* ارتفاع .flex-viewport رو خود فلکس‌اسلایدر inline ست می‌کنه — بهش دست نمی‌زنیم،
   وگرنه اسلایدهای float شده باعث collapse شدنش میشن. */

.amp-pp-gallery .flexslider{ height:auto!important; margin:0!important; }

/* ===== ردیف برند + دکمه قلب (بالای عنوان محصول) ===== */
.amp-pp-brand-row {
	display:flex; align-items:center; justify-content:space-between;
	direction:rtl; margin-bottom:10px; order:0;
}
.amp-pp-brand-link {
	font-size:13px; font-weight:600; color:var(--amp-muted);
	text-decoration:none!important; transition:color .15s;
}
.amp-pp-brand-link:hover { color:var(--amp-navy2); }

/* دکمه قلب در صفحه محصول */
.amp-pp-wl-heart {
	-webkit-appearance:none !important; appearance:none !important;
	width:36px; height:36px; border-radius:0 !important; border:none !important;
	background:transparent !important; box-shadow:none !important;
	cursor:pointer; padding:0; outline:none !important;
	display:flex; align-items:center; justify-content:center;
	transition:transform .18s; flex-shrink:0;
}
.amp-pp-wl-heart:hover { transform:scale(1.15); background:transparent !important; }
.amp-pp-wl-heart .amp-wl-icon-empty  { display:block; color:var(--amp-muted2); }
.amp-pp-wl-heart .amp-wl-icon-filled { display:none;  color:#e74c3c; fill:#e74c3c; }
.amp-pp-wl-heart.is-active .amp-wl-icon-empty  { display:none; }
.amp-pp-wl-heart.is-active .amp-wl-icon-filled { display:block; }
.amp-pp-wl-heart.amp-wl-pop { animation:amp-wl-pop .22s ease; }
