/* =========================================================
   صفحه محصول - استایل اختصاصی
   ========================================================= */

/* ===== پخش‌کننده صوتی محصول ===== */
.mytheme-product-audio {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 16px 0;
	padding: 12px 16px;
	background: #f7f7f7;
	border-radius: var(--radius);
}
.mytheme-product-audio__label { font-size: 13px; font-weight: 600; color: var(--color-text-light); white-space: nowrap; }
.mytheme-product-audio audio { flex: 1; min-width: 220px; height: 38px; }

/* ===== بخش‌های مستقل (توضیحات/ویژگی‌ها/نظرات - جای تب‌ها) =====
   نکته‌ی مهم: چون .woocommerce div.product خودش یک گرید دوستونی است
   (گالری | خلاصه محصول)، و این بخش‌ها هم به‌صورت فرزند مستقیم همان گرید
   چاپ می‌شوند (نه داخل یک wrapper جدا)، بدون grid-column صریح، دوتا-دوتا
   کنار هم می‌افتند به‌جای اینکه هرکدام تمام‌عرض و زیر هم باشند. */
.mytheme-product-section,
.mytheme-product-upsells-section,
.mytheme-product-related-section {
	grid-column: 1 / -1;
}

.mytheme-product-section {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 40px 20px;
	border-top: 1px solid var(--color-border);
}
.mytheme-product-section__title {
	font-size: 22px;
	margin: 0 0 24px;
}
.mytheme-product-section__body { font-size: 15px; line-height: 1.9; }

/* جدول ویژگی‌های محصول (تمپلیت بومی ووکامرس) */
.mytheme-product-section--attributes table.woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
}
.mytheme-product-section--attributes table.woocommerce-product-attributes th,
.mytheme-product-section--attributes table.woocommerce-product-attributes td {
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	text-align: right;
}
.mytheme-product-section--attributes table.woocommerce-product-attributes th {
	background: #fafafa;
	font-weight: 600;
	width: 220px;
}

/* ===== بخش نظرات ===== */
.mytheme-product-section--reviews .star-rating { color: #ffb300; }
.mytheme-product-section--reviews #review_form_wrapper { margin-top: 32px; }
.mytheme-product-section--reviews .comment-form-pros textarea,
.mytheme-product-section--reviews .comment-form-cons textarea {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 10px;
	font-family: inherit;
}
.mytheme-product-section--reviews .comment-form-pros label,
.mytheme-product-section--reviews .comment-form-cons label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
}

/* نقاط مثبت/منفی زیر هر نظر */
.mytheme-review-pros-cons {
    margin-top: 10px;
    display: block;
    columns: 2;
    gap: 6px;
}
.mytheme-review-pros,
.mytheme-review-cons {
	font-size: 13px;
	padding: 8px 12px;
	border-radius: var(--radius);
}
.mytheme-review-pros { background: #e8f5e9; color: #2e7d32; }
.mytheme-review-cons { background: #fdecea; color: #b71c1c; }

/* ===== بخش‌های محصولات مشابه/مکمل (از اسلایدر مشترک استفاده می‌کنند) ===== */
.mytheme-product-related-section,
.mytheme-product-upsells-section {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 40px 20px;
}





.woocommerce #reviews #comments ol.commentlist li .comment-text {
    padding: 1em 1em 1em;
}














/* =========================================================
   اختصاصی‌سازی پخش‌کننده صوتی محصول
   ========================================================= */
.single-product .mytheme-product-audio {
display: block;
    margin: 20px 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fafcf9 0%, #f8fcf6 100%);
}

.single-product .mytheme-product-audio__head {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:14px;
}

.single-product .mytheme-product-audio__identity {
	display:flex;
	align-items:center;
	gap:11px;
	min-width:0;
}

.single-product .mytheme-product-audio__icon {
	width:42px;
	height:42px;
	flex:0 0 42px;
	display:grid;
	place-items:center;
	border-radius:12px;
	background:#fff;
	border:1px solid #e6e6e6;
	color:var(--color-primary);
}

.single-product .mytheme-product-audio__icon svg {
	width:22px;
	height:22px;
	stroke:currentColor;
	stroke-width:1.7;
	stroke-linecap:round;
	stroke-linejoin:round;
}

.single-product .mytheme-product-audio__identity strong,
.single-product .mytheme-product-audio__identity small {
	display:block;
}

.single-product .mytheme-product-audio__identity strong {
	font-size:14px;
	line-height:1.5;
}

.single-product .mytheme-product-audio__identity small {
	margin-top:2px;
	color:var(--color-text-light);
	font-size:11px;
}

.single-product .mytheme-product-audio__play {
	width:46px;
	height:46px;
	flex:0 0 46px;
	border:0;
	border-radius:50%;
	display:grid;
	place-items:center;
	background:var(--color-primary);
	color:#fff;
	cursor:pointer;
	font-family:inherit;
	transition:transform .18s ease, opacity .18s ease;
}

.single-product .mytheme-product-audio__play:hover {
	transform:scale(1.04);
}

.single-product .mytheme-product-audio__play-icon {
	font-size:16px;
	line-height:1;
	transform:translateX(1px);
}

.single-product .mytheme-product-audio.is-playing .mytheme-product-audio__play-icon {
	font-size:0;
	transform:none;
}

.single-product .mytheme-product-audio.is-playing .mytheme-product-audio__play-icon::before {
	content:"Ⅱ";
	font-size:16px;
}

.single-product .mytheme-product-audio__body {
	display:flex;
	align-items:center;
	gap:10px;
	margin-top:14px;
}

.single-product .mytheme-product-audio__time {
	min-width:36px;
	font-size:11px;
	color:var(--color-text-light);
	text-align:center;
	direction:ltr;
}

.single-product .mytheme-product-audio__progress {
	position:relative;
	flex:1;
	height:7px;
	border-radius:999px;
	background:#e4e5e2;
	cursor:pointer;
	overflow:hidden;
	outline:none;
}

.single-product .mytheme-product-audio__progress:focus {
	box-shadow:0 0 0 3px rgba(147,162,84,.15);
}

.single-product .mytheme-product-audio__progress-fill {
	position:absolute;
	inset:0 auto 0 0;
	width:0;
	border-radius:inherit;
	background:var(--color-primary);
	transition:width .08s linear;
}

.single-product .mytheme-product-audio__native {
	display:none;
}

@media (max-width:600px) {
	.single-product .mytheme-product-audio {
		padding:14px;
	}
	.single-product .mytheme-product-audio__identity small {
		display:none;
	}
}


/* =========================================================
   V18 — Product page visual polish (scoped only to product)
   ========================================================= */
.single-product .mytheme-product-top-layout,
.single-product .mytheme-product-lower-layout { position:relative; }
.single-product .mytheme-product-top-layout > *,
.single-product .mytheme-product-section,
.single-product .mytheme-product-upsells-section,
.single-product .mytheme-product-related-section,
.single-product .mytheme-product-trust,
.single-product .mytheme-purchase-box { animation: mythemeProductFade .55s ease both; }
@keyframes mythemeProductFade { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
.single-product .mytheme-product-section { border-radius:0px; margin-top:18px; }
.single-product .mytheme-product-section__title { display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.3px; }
.single-product .mytheme-product-section__title:before { content:'';width:5px;height:24px;border-radius:8px;background:var(--color-primary); }
.single-product .mytheme-product-section__body { color:#3e4541; }
.single-product .mytheme-product-section--attributes table.woocommerce-product-attributes { border:1px solid #e5e9e5;border-radius:16px;overflow:hidden;display:table;background:#fff; }
.single-product .mytheme-product-section--attributes table.woocommerce-product-attributes th,
.single-product .mytheme-product-section--attributes table.woocommerce-product-attributes td { border-color:#edf0ed;padding:14px 16px; }
.single-product .mytheme-product-section--attributes table.woocommerce-product-attributes tr:nth-child(even) th,
.single-product .mytheme-product-section--attributes table.woocommerce-product-attributes tr:nth-child(even) td { background:#fbfcfa; }
.single-product .mytheme-product-information { border-top:1px solid #e7ebe7; }
.single-product .mytheme-product-information__row { padding:7px 0; transition:transform .2s ease; }
.single-product .mytheme-product-trust { background:#fff;border-color:#e5e9e5; }
.single-product .mytheme-product-trust__item { border-radius:14px;transition:background .2s ease,transform .2s ease; }
.single-product .mytheme-product-trust__item:hover { background:#f8faf7;transform:translateY(-2px); }
.single-product .mytheme-product-trust__icon { border:1px solid #e8ece8;background:#fbfcfa; }
.single-product .mytheme-purchase-box { box-shadow:none; border-color:#e3e8e3; }
.single-product .mytheme-product-section--reviews .commentlist { list-style:none;margin:0;padding:0;display:grid;gap:0px; }
.woocommerce #reviews #comments ol.commentlist li {
    margin: 0 0 10px;
}
.single-product .mytheme-product-section--reviews .comment_container { padding:18px;border:1px solid #e5e9e5;border-radius:16px;background:#fff;transition:border-color .2s ease,transform .2s ease;transform:translateY(-2px); }
.single-product .mytheme-product-section--reviews .comment_container:hover { border-color:#cfd8ce;transform:translateY(-2px); }
.single-product .mytheme-product-section--reviews #review_form_wrapper { padding:22px;border:1px solid #e5e9e5;border-radius:18px;background:#fff; }
.single-product .mytheme-product-section--reviews input[type=text],
.single-product .mytheme-product-section--reviews input[type=email],
.single-product .mytheme-product-section--reviews textarea { border:1px solid #dfe5df;border-radius:12px;background:#fbfcfb;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease; }
.single-product .mytheme-product-section--reviews input:focus,
.single-product .mytheme-product-section--reviews textarea:focus { outline:0;border-color:var(--color-primary);background:#fff;box-shadow:0 0 0 3px rgba(120,140,90,.10); }
.single-product .mytheme-product-section--reviews button[type=submit] { border:0;border-radius:12px;padding:12px 22px;background:var(--color-primary);color:#fff;font-family:inherit;cursor:pointer;transition:transform .2s ease,filter .2s ease; }
.single-product .mytheme-product-section--reviews button[type=submit]:hover { transform:translateY(-2px);filter:brightness(.96); }
@media(max-width:700px){
 .single-product .mytheme-product-section{padding:28px 0px;border-radius:16px;}
 .single-product .mytheme-product-trust{grid-template-columns:1fr 1fr;padding:14px;}
	.comment-form {
    padding: 0px;
		background:#fff;
}
	.single-product .mytheme-product-section--reviews #review_form_wrapper {
    padding: 12px;
}
	.woocommerce div.product .woocommerce-product-rating {
    text-align: center;
}
	.woocommerce #reviews #comments ol.commentlist li .comment-text p {
    font-size: 12px;
}
	.single-product .mytheme-product-section--reviews .mytheme-review-pros, .single-product .mytheme-product-section--reviews .mytheme-review-cons {
    flex-direction: column;
}
	.single-product .mytheme-product-trust {
        max-width: 100%;
    }
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    font-size: .92em;
    color: #767676;
    align-items: start !important;
    width: 100% !important;
    padding-inline: clamp(20px, 5.2vw, 80px);
    margin-top: 20px;
    margin-bottom: 0;
}

/* =========================================================
   V19 — Review / Description UX
   فقط روی کامپوننت‌های اختصاصی صفحه محصول
   ========================================================= */

/* کارت نظر: آواتار و نام در ستون راست، محتوای نظر در ستون اصلی */
.single-product .mytheme-product-section--reviews .comment_container {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	grid-template-areas:
		"avatar meta"
		"author meta"
		". content";
	column-gap: 18px;
	row-gap: 0;
	align-items: start;
	padding: 20px;
}

.single-product .mytheme-product-section--reviews .comment_container > img.avatar {
	grid-area: avatar;
	margin: 0 auto;
	object-fit: cover;
	border-radius: 8%;
}

.single-product .mytheme-product-section--reviews .comment_container > .comment-text {
	display: contents;
}

/* meta را باز می‌کنیم تا نام و تاریخ/امتیاز جای خودشان قرار بگیرند */
.single-product .mytheme-product-section--reviews .comment_container .meta {
	display: contents;
}

.single-product .mytheme-product-section--reviews .woocommerce-review__author {
grid-area: author;
    display: block;
    margin: 62px auto 0px;
    max-width: 76px;
    text-align: center;
    color: #20251f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-product .mytheme-product-section--reviews .woocommerce-review__dash {
	display: none;
}

.single-product .mytheme-product-section--reviews .woocommerce-review__published-date {
	grid-area: date;
	justify-self: end;
	align-self: center;
	color: #909790;
	font-size: 12px;
	line-height: 1.6;
}

.single-product .mytheme-product-section--reviews .comment_container .star-rating {
	grid-area: rating;
	align-self: center;
	margin: 0 !important;
}

/* یک نوار بالایی چسبیده برای امتیاز + تاریخ */
.single-product .mytheme-product-section--reviews .comment_container .star-rating {
	position: relative;
}

.single-product .mytheme-product-section--reviews .comment_container {
	grid-template-columns: 76px minmax(0, 1fr);
	grid-template-areas:
		"avatar top"
		"author content"
		". content";
}

.single-product .mytheme-product-section--reviews .comment_container .star-rating {
	grid-area: top;
}

.single-product .mytheme-product-section--reviews .comment_container .woocommerce-review__published-date {
	position: absolute;
	top: 21px;
	left: 20px;
}

/* متن اصلی */
.single-product .mytheme-product-section--reviews .comment_container .description {
    grid-area: content;
    min-width: 0;
    color: #3f4540;
    line-height: 2;
    margin: 0 0 0em;
    font-size: 18px !important;
}

/* نقاط قوت و ضعف داخل نظر */
.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 0px;
}

.single-product .mytheme-product-section--reviews .mytheme-review-pros,
.single-product .mytheme-product-section--reviews .mytheme-review-cons {
    margin: 0;
    padding: 8px 8px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.9;
    display: flex;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text p {
    margin: 0 0 0em;
}
.single-product .mytheme-product-section--reviews .mytheme-review-pros {
	background: #f3faf4;
	border: 1px solid #deeee1;
	color: #4b6650;
}

.single-product .mytheme-product-section--reviews .mytheme-review-cons {
	background: #fff6f6;
	border: 1px solid #f0dfdf;
	color: #705353;
}

.single-product .mytheme-product-section--reviews .mytheme-review-pros strong,
.single-product .mytheme-product-section--reviews .mytheme-review-cons strong {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 4px;
	font-weight: 800;
}

.single-product .mytheme-product-section--reviews .mytheme-review-pros strong { color: #288744; }
.single-product .mytheme-product-section--reviews .mytheme-review-cons strong { color: #c94d4d; }

.single-product .mytheme-product-section--reviews .mytheme-review-inline-icon,
.single-product .mytheme-product-section--reviews .mytheme-review-inline-icon svg {
	display: inline-flex;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.single-product .mytheme-product-section--reviews .mytheme-review-inline-icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* فرم ثبت نظر: نقاط قوت/ضعف کنار هم */
.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 0px;
}
.woocommerce #review_form #respond p {
    margin: 0 0 0px;
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
    margin-bottom: 0px;
}
.woocommerce #review_form #respond .form-submit input {
    right: auto;
    width: 100%;
    margin-top: 12px;
    border-radius: 12px;
    padding: 16px;
    background: #242424;
    color: #ffffff;
    font-family: inherit;
}
.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons-fields > p {
	margin: 0;
	padding: 14px;
	border: 1px solid #e5e9e4;
	border-radius: 14px;
	background: #fbfcfa;
}

.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons-fields label {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 800;
}

.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons-fields .comment-form-pros label { color: #288744; }
.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons-fields .comment-form-cons label { color: #c94d4d; }

.single-product .mytheme-product-section--reviews .mytheme-review-field-icon,
.single-product .mytheme-product-section--reviews .mytheme-review-field-icon svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.single-product .mytheme-product-section--reviews .mytheme-review-field-icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons-fields textarea {
	min-height: 82px;
	margin: 0;
	resize: vertical;
}

/* توضیحات: تمام متن در DOM باقی می‌ماند؛ فقط نمایش اولیه محدود است */
.single-product .mytheme-product-description-content {
	position: relative;
	max-height: 360px;
	overflow: hidden;
	transition: max-height .35s ease;
}

.single-product .mytheme-product-description-content:not(.is-expanded):after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100px;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
}

.single-product .mytheme-product-description-content.is-expanded,
.single-product .mytheme-product-description-content.is-fully-visible {
	max-height: none;
}

.single-product .mytheme-product-description-content.is-expanded:after,
.single-product .mytheme-product-description-content.is-fully-visible:after {
	display: none;
}

.single-product .mytheme-product-description-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	padding: 11px 18px;
	border: 1px solid #e0e5df;
	border-radius: 12px;
	background: #fff;
	color: var(--color-primary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.comment-form-rating .stars span{
	color: #ffbf29;
}

.single-product .mytheme-product-description-toggle:hover {
	background: #f8faf6;
	border-color: var(--color-primary);
	transform: translateY(-1px);
}

.single-product .mytheme-product-description-toggle__less { display: none; }
.single-product .mytheme-product-description-toggle[aria-expanded="true"] .mytheme-product-description-toggle__more { display: none; }
.single-product .mytheme-product-description-toggle[aria-expanded="true"] .mytheme-product-description-toggle__less { display: inline; }

@media (max-width: 700px) {
	.single-product .mytheme-product-section--reviews .comment_container {
		grid-template-columns: 58px minmax(0, 1fr);
		grid-template-areas:
			"avatar top"
			"author content"
			". content";
		column-gap: 12px;
		padding: 15px;
	}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    font-size: 12px;
    margin-top: 10px;
}
	.single-product .mytheme-product-section--reviews .comment_container > img.avatar {
		width: 50px;
		height: 50px;
	}

	.single-product .mytheme-product-section--reviews .woocommerce-review__author {
		max-width: 58px;
		font-size: 12px;
	}

	.single-product .mytheme-product-section--reviews .comment_container .woocommerce-review__published-date {
		top: 17px;
		left: 15px;
		font-size: 10px;
	}

	.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons,
	.single-product .mytheme-product-section--reviews .mytheme-review-pros-cons-fields {
		grid-template-columns: 1fr;
	}

	.single-product .mytheme-product-section--reviews .comment_container .star-rating {
		width: 80px;
	}
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
    float: right;
    position: absolute;
    top: 0px;
    right: 0;
    padding: 3px;
    width: 74px;
    height: auto;
    background: #e9e6ed;
    border: 1px solid #e1dde7;
    margin: 0;
    box-shadow: none;
}





/* =========================================================
   WooCommerce Product Rating - Modern Style
   ========================================================= */

.woocommerce-product-rating {
margin-bottom:0;
}

/* Star Rating */
.woocommerce-product-rating .star-rating {
    position: relative;
    float: none !important;
    display: inline-block;
    width: 90px;
    height: 18px;
    margin: 0;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 2px;
}

/* Empty stars */
.woocommerce-product-rating .star-rating::before {
    color: #dcdcdc;
}

/* Filled stars */
.woocommerce-product-rating .star-rating span {
    color: #f5a623;
}

/* Make the rating text itself invisible,
   while keeping WooCommerce accessibility intact */
.woocommerce-product-rating .star-rating span {
    overflow: hidden;
}

/* Review link */
.woocommerce-product-rating .woocommerce-review-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    color: #666;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.woocommerce-product-rating .woocommerce-review-link:hover {
    color: #222;
    background: #f5f5f5;
    border-color: #ddd;
    transform: translateY(-1px);
}

/* Number of reviews */
.woocommerce-product-rating .woocommerce-review-link .count {
    color: #222;
    font-weight: 700;
}

/* =========================================================
   Optional separator
   ========================================================= */

.woocommerce-product-rating .woocommerce-review-link::before {
    content: "";
    width: 1px;
    height: 16px;
    margin-right: 4px;
    background: #e1e1e1;
}

/* =========================================================
   Mobile
   ========================================================= */
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins {
    text-decoration: none;
}
@media (max-width: 600px) {
.mytheme-product-related-section, .mytheme-product-upsells-section {
    padding: 16px 0px;
}
    .woocommerce-product-rating {
        gap: 9px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .woocommerce-product-rating .star-rating {
        width: 85px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .woocommerce-product-rating .woocommerce-review-link {
        padding: 6px 9px;
        font-size: 11px;
    }
}