/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Default Font ------------------------------------------------*/
@font-face {
        font-family: 'YekanBakh';
    src: url('/wp-content/uploads/2026/06/YekanBakh-VF.woff2') format('woff2-variations'),
         url('/wp-content/uploads/2026/06/YekanBakh-VF.woff') format('woff-variations');
    font-weight: 100 900; /* بازه کامل وزن‌های فونت Variable */
    font-style: normal;
    font-display: swap;
	
	/* اصلاح تعادل عمودی */
    ascent-override: 88%;
    descent-override: 22%;
    line-gap-override: 0%;
}

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: 'YekanBakh', Tahoma, sans-serif;
}
/*------------------------------------------------------------------------*/


/* Scrool and Highlite element -------------------------------------------*/
.focus-highlight {
	position: relative;
	z-index: 1;
	display: inline-block;

	animation: focus-highlight-animation 1.4s ease-in-out;
}

.focus-highlight::after {
	content: "";
	position: absolute;
	inset: -6px -12px;
	z-index: -1;

	border: 2px solid transparent;
	border-radius: 10px;
	background-color: transparent;

	pointer-events: none;

	animation: focus-highlight-glow 1.4s ease-in-out;
}

@keyframes focus-highlight-animation {
	0% {
		transform: scale(1);
		color: inherit;
	}

	25% {
		transform: scale(1.035);
		color: #ffffff;
	}

	55% {
		transform: scale(1.02);
		color: #ffffff;
	}

	100% {
		transform: scale(1);
		color: inherit;
	}
}

@keyframes focus-highlight-glow {
	0% {
		background-color: rgba(28, 97, 231, 0);
		border-color: rgba(28, 97, 231, 0);
		box-shadow: 0 0 0 0 rgba(28, 97, 231, 0);
		transform: scale(0.96);
		opacity: 0;
	}

	25% {
		background-color: #1c61e7;
		border-color: rgba(255, 255, 255, 0.3);
		box-shadow:
			0 8px 24px rgba(28, 97, 231, 0.35),
			0 0 0 5px rgba(28, 97, 231, 0.12);
		transform: scale(1);
		opacity: 1;
	}

	65% {
		background-color: #1c61e7;
		border-color: rgba(255, 255, 255, 0.2);
		box-shadow:
			0 5px 18px rgba(28, 97, 231, 0.25),
			0 0 0 8px rgba(28, 97, 231, 0);
		transform: scale(1);
		opacity: 1;
	}

	100% {
		background-color: rgba(28, 97, 231, 0);
		border-color: rgba(28, 97, 231, 0);
		box-shadow: 0 0 0 12px rgba(28, 97, 231, 0);
		transform: scale(1.02);
		opacity: 0;
	}
}
/*------------------------------------------------------------------------*/



/* Product FAQ List Style ------------------------------------------------*/

/* اجازه‌ی انیمیشن ارتفاع به مقدار auto — باید روی ریشه باشد */
:root {
    interpolate-size: allow-keywords;
}

/* ===== کانتینر کلی ===== */
.product-faq {
    max-width: 760px;
    margin: 0 auto;
    font-family: inherit;
}

/* ===== هر آیتم به‌صورت کارت ===== */
.product-faq__item {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.product-faq__item:hover {
    border-color: #d9d9d9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}

.product-faq__item[open] {
    border-color: #c7c7c7;
}

/* ===== سؤال (summary) ===== */
.product-faq__q {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 1.02rem;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.product-faq__q::-webkit-details-marker { display: none; }

/* فلش سفارشی (سمت چپ چون RTL است) */
.product-faq__q::after {
    content: "";
    width: 9px;
    height: 9px;
    border-left: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(-45deg);      /* رو به پایین */
    transition: transform .3s ease;
    flex-shrink: 0;
}

.product-faq__item[open] .product-faq__q::after {
    transform: rotate(135deg);      /* رو به بالا وقتی باز است */
}

/* ===== انیمیشن نرمِ محتوای بومی details ===== */
::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .3s ease, content-visibility .3s ease allow-discrete;
}

.product-faq__item[open]::details-content {
    block-size: auto;
}

/* ===== پاسخ ===== */
.product-faq__a {
    padding: 8px 20px 18px;
    color: #555;
    line-height: 2;
    font-size: .97rem;
}

.product-faq__a p { margin: 0 0 10px; }
.product-faq__a p:last-child { margin-bottom: 0; }

/*------------------------------------------------------------------------*/



/* Product Price & Download Links Section Style --------------------------*/
.mv-price{
	direction:rtl !important;
	display: block;
}

.mv-price-free {
    direction: rtl !important;
    display: block;
    color: rgb(36 177 81);
    font-weight: 600;
    border: 1px solid;
    border-radius: 50px;
    padding: 2px 5px 2px 5px;
    background-color: rgb(36 177 81 / 6%);
	letter-spacing: 0px;
	text-align: center;
}


/* product download now button-----*/
.download-now-btn {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 7px 20px;

	border: none;
	border-radius: 6px;

	font-size: 18px;
	color: #ffffff;
	background: #1c61e7 !important;

	cursor: pointer;

	box-shadow:
		0 4px 10px rgba(0, 0, 0, 0.15),
		0 0 0 0 rgba(28, 97, 231, 0);

	transform: translateY(0) scale(1);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.download-now-btn img {
	display: block;
	max-width: 100%;
	margin: 0 auto;

	/* هیچ افکت رنگی روی تصویر اعمال نمی‌شود */
	filter: none !important;
	opacity: 1;
}

/* Hover */
.download-now-btn:hover {
	background: #1c61e7 !important;
	background-color: #1c61e7 !important;
	color: #ffffff;

	transform: translateY(-3px);

	box-shadow:
		0 10px 22px rgba(0, 0, 0, 0.22),
		0 0 0 4px rgba(28, 97, 231, 0.18),
		0 0 18px rgba(28, 97, 231, 0.3);
}

.download-now-btn:hover img {
	filter: none !important;
	opacity: 1;
	transform: none;
}

/* هنگام کلیک */
.download-now-btn:active {
	background: #1c61e7 !important;
	background-color: #1c61e7 !important;

	transform: translateY(-1px) scale(0.99);

	box-shadow:
		0 5px 12px rgba(0, 0, 0, 0.18),
		0 0 0 2px rgba(28, 97, 231, 0.15);
}

/* فوکوس با کیبورد */
.download-now-btn:focus,
.download-now-btn:focus-visible {
	background: #1c61e7 !important;
	background-color: #1c61e7 !important;
	outline: none;

	box-shadow:
		0 6px 16px rgba(0, 0, 0, 0.2),
		0 0 0 4px rgba(28, 97, 231, 0.22);
}
/*----------*/

.product-download-link{
    margin: 5px auto;
    display: block;
    font-weight: 400 !important;
    font-size: 17px;
}

.product-download-link-disabled{
	font-size: 17px !important;
    font-weight: 400 !important;
    margin: 5px auto;
    display: block;
	text-align: left;
}

.product-download-notic {
    text-align: center;
    font-weight: 500;
    font-size: 18px;
    color: #363636;
    padding: 20px 10px;
    border-radius: 8px;
    background: #eaf3ff;
}

.product-download-file-details{
	color: #5a5858;
}
/*------------------------------------------------------------------------*/



/* Custom Product List Item Style ----------------------------------------*/
.custom-product-loop-item-tags
 {
    padding: 4px 9px 2px 9px !important;
    left: 7px;
    bottom: 7px;
    border-radius: 4px;
    color: rgb(70 70 70) !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    letter-spacing: 0.03em;
    background-color: #ffffff9e !important;
    backdrop-filter: blur(7px);
}

.custom-product-loop-item-tags a{
	color: rgb(70 70 70) !important;
}

.star-rating.wd-style-simple:after{
    margin-top: -4px !important;
    margin-left: 3px !important;
    line-height: 20px !important;
}
/*------------------------------------------------------------------------*/



/* Heder VIP Membership Button -------------------------------------------*/
.become-vip-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgb(68 178 255), rgb(27, 79, 208));
    box-shadow: rgba(37, 99, 235, 0.28) 0px 6px 18px;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    z-index: 1;
	border-radius: 10px;
	font-size: 15px;
	line-height: normal;
	padding: 0px 20px;
}

.become-vip-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #04D7F2, #0065f4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.become-vip-btn:hover::before {
    opacity: 1;
}

.become-vip-btn:hover {
    box-shadow: rgb(4, 215, 242, 0.5) 0px 6px 18px;
    transform: translateY(-2px);
}

.become-vip-btn img {
    margin-right: 5px;
}
/*------------------------------------------------------------------------*/



/* User Dashboard Styles -------------------------------------------------*/
.woocommerce-account .wd-my-acc-memberships .wd-nav-icon::before {
    content: "\f149" !important;   /* آیکون دلخواه برای Memberships */
}

.woocommerce-account .wd-my-acc-support .wd-nav-icon::before {
    content: "\f131" !important;   /* آیکون دلخواه برای Support */
}

.woocommerce-account .wd-my-acc-download-history .wd-nav-icon::before {
    content: "\f190" !important;   /* آیکون دلخواه برای Download History */
}

.yith-wcmbs-my-account-accordion h3{
	font-size: 20px !important;
}
/*------------------------------------------------------------------------*/



/* Footer Styles ---------------------------------------------------------*/
.wd-footer.footer-container{
	border-top: 1px solid rgba(118, 118, 118, .12) !important;	
}
/*------------------------------------------------------------------------*/
