/* --- کلاس عمومی کارت شیشه‌ای (Glassmorphism) --- */
.glass-card {
	background: rgba(255, 255, 255, var(--webisoft-glass-opacity, 0.1));
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(31, 85, 130, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(var(--webisoft-glass-blur, 14px)) saturate(135%);
	backdrop-filter: blur(var(--webisoft-glass-blur, 14px)) saturate(135%);
	overflow: hidden;
	transition: 0.3s ease;
}

.glass-card:hover {
	background: rgba(255, 255, 255, 0.62);
	box-shadow: 0 16px 38px rgba(31, 85, 130, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
	transform: translateY(-5px);
}

/* --- تب توضیحات محصول (خروجی ویجت full-description و تب بومی Woodmart) --- */
.woocommerce-product-details__full-description,
#tab-description {
	padding: 20px;
	color: #374151;
	background: rgba(255, 255, 255, var(--webisoft-glass-opacity, 0.1));
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 18px;
	box-shadow: none !important;
	-webkit-backdrop-filter: blur(var(--webisoft-glass-blur, 14px)) saturate(135%);
	backdrop-filter: blur(var(--webisoft-glass-blur, 14px)) saturate(135%);
	overflow: hidden;
	direction: rtl;
	text-align: right;
	line-height: 1.8;
}

.woocommerce-product-details__full-description h1,
.woocommerce-product-details__full-description h2,
.woocommerce-product-details__full-description h3,
#tab-description h1,
#tab-description h2,
#tab-description h3 {
	position: relative;
	display: block;
	margin: 30px 0 20px 0 !important;
	padding: 5px 15px 5px 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #000 !important;
	font-weight: 800;
}

.woocommerce-product-details__full-description h1::before,
.woocommerce-product-details__full-description h2::before,
.woocommerce-product-details__full-description h3::before,
#tab-description h1::before,
#tab-description h2::before,
#tab-description h3::before {
	content: "";
	position: absolute;
	top: 15%;
	right: 0;
	width: 6px;
	height: 70%;
	background: linear-gradient(to bottom, var(--e-global-color-primary), var(--e-global-color-secondary));
	border-radius: 8px;
}

.woocommerce-product-details__full-description ul,
#tab-description ul {
	margin: 20px 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.woocommerce-product-details__full-description ul li,
#tab-description ul li {
	position: relative;
	margin-bottom: 12px;
	padding: 15px 45px 15px 15px !important;
	background: rgba(255, 255, 255, var(--webisoft-glass-opacity, 0.1));
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 18px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
	-webkit-backdrop-filter: blur(var(--webisoft-glass-blur, 14px)) saturate(135%);
	backdrop-filter: blur(var(--webisoft-glass-blur, 14px)) saturate(135%);
	overflow: hidden;
	list-style-type: none !important;
	transition: all 0.3s ease;
}

.woocommerce-product-details__full-description ul li::before,
#tab-description ul li::before {
	content: "✓";
	position: absolute;
	top: 50%;
	right: 15px;
	color: var(--e-global-color-primary);
	font-size: 18px;
	font-weight: bold;
	transform: translateY(-50%);
}

.woocommerce-product-details__full-description table,
#tab-description table {
	margin: 25px 0;
	border: 1px solid #eef2f0;
	border-radius: 12px;
	box-shadow: none !important;
	overflow: hidden;
}

.woocommerce-product-details__full-description table th,
#tab-description table th {
	padding: 12px;
	background: #f0fdf4 !important;
	border: none;
	color: #065f46 !important;
}

.woocommerce-product-details__full-description table td,
#tab-description table td {
	padding: 10px;
	border-top: 1px solid #f0f7f4;
	font-size: 14px;
}

@media (max-width: 768px) {
	.woocommerce-product-details__full-description ul li,
	#tab-description ul li {
		padding: 12px 40px 12px 12px !important;
	}
}

/* --- مگامنو سبک دیجی‌کالا --- */
body .custom-mega-menu,
body .custom-mega-menu > .e-con-inner,
body .custom-mega-menu .elementor-widget-container,
body .custom-mega-menu nav,
body .custom-mega-menu div.elementor-nav-menu__container {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	position: static !important;
}

body .custom-mega-menu ul.elementor-nav-menu {
	display: block !important;
	max-height: 450px !important;
	margin: 0 !important;
	padding: 15px 20px 0 0 !important;
	column-width: 210px !important;
	column-gap: 40px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain !important;
	direction: rtl !important;
}

body .custom-mega-menu ul.elementor-nav-menu > li {
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	break-inside: avoid-column !important;
	page-break-inside: avoid !important;
}

body .custom-mega-menu ul.elementor-nav-menu > li > a {
	display: block !important;
	margin-bottom: 10px !important;
	padding: 0 !important;
	border: none !important;
	color: #1e1e1e;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-align: right !important;
}

body .custom-mega-menu ul.elementor-nav-menu .sub-menu {
	display: block !important;
	position: static !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}

body .custom-mega-menu ul.elementor-nav-menu .sub-menu li {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body .custom-mega-menu ul.elementor-nav-menu .sub-menu li a,
body .custom-mega-menu ul.elementor-nav-menu .sub-menu li a:focus,
body .custom-mega-menu ul.elementor-nav-menu .sub-menu li a:hover {
	display: block !important;
	margin: 0 !important;
	padding: 5px 0 !important;
	border: none !important;
	color: #626262 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-align: right !important;
	transition: color 0.15s ease !important;
}

body .custom-mega-menu ul.elementor-nav-menu .sub-menu li a:hover {
	color: var(--e-global-color-primary) !important;
}

body .custom-mega-menu ul.elementor-nav-menu::-webkit-scrollbar,
body .e-n-tabs-heading::-webkit-scrollbar {
	width: 5px !important;
}

body .custom-mega-menu ul.elementor-nav-menu::-webkit-scrollbar-track,
body .e-n-tabs-heading::-webkit-scrollbar-track {
	background: #f5f5f5 !important;
	border-radius: 10px !important;
}

body .custom-mega-menu ul.elementor-nav-menu::-webkit-scrollbar-thumb,
body .e-n-tabs-heading::-webkit-scrollbar-thumb {
	background: #dddddd !important;
	border-radius: 10px !important;
}

body .custom-mega-menu ul.elementor-nav-menu::-webkit-scrollbar-thumb:hover,
body .e-n-tabs-heading::-webkit-scrollbar-thumb:hover {
	background: var(--e-global-color-secondary) !important;
}

body .custom-mega-menu .sub-arrow {
	display: none !important;
}

body .elementor-widget-n-tabs .e-n-tabs-heading button.e-n-tab-title {
	border: 1px solid transparent !important;
	transition: border 0.2s ease-in-out !important;
}

body .elementor-widget-n-tabs .e-n-tabs-heading button.e-n-tab-title:hover,
body .elementor-widget-n-tabs .e-n-tabs-heading button.e-n-tab-title[aria-selected="true"] {
	background-color: #2479e410 !important;
	border: 1px solid var(--e-global-color-primary) !important;
}

body .e-n-tabs-heading {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	max-height: 450px !important;
	padding-left: 10px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain !important;
	border-left: 1px solid #e9ecef !important;
}

body #go-back-btn {
	cursor: pointer;
}

@media (max-width: 992px) {
	body .custom-mega-menu ul.elementor-nav-menu {
		max-height: none !important;
		padding: 0 !important;
		column-count: 1 !important;
		column-width: 100% !important;
		overflow: visible !important;
	}

	body .e-n-tabs-heading {
		max-height: none !important;
		overflow: visible !important;
		border-left: none !important;
	}

	body .custom-mega-menu ul.elementor-nav-menu > li {
		break-inside: auto !important;
		page-break-inside: auto !important;
	}

	.categories-cat .wd-cat-content {
		display: none;
	}
}
