/* ===============================
🎨 CSS VARIABLES
=============================== */
:root {
	--main-color: #5e0520;
	--main-color-dark: #5e061f;
	--secondary-color: #1f1f1f;
	--gray-color: #656565;
	--light-gray: #ededed;
	--border-color: #eeeff1;
	--table-border: #e5e5e5;
	--white: #ffffff;
	--font-main: "asp", Sans-serif;
	--font-num: "asp", Sans-serif;
	--font-medium: "asp", Sans-serif;
	--font-size-sm: 13px;
	--font-size-md: 14px;
	--font-size-lg: 16px;
	--font-size-xl: 20px;
	--border-radius-sm: 4px;
	--border-radius-md: 6px;
	--border-radius-lg: 8px;
	--border-radius-xl: 12px;
	--transition-none: none !important;
	--gap-md: 16px;
	--gap-lg: 24px;
}



body{
	min-height: 100vh;
}

/* ===============================
🧭 MEGA MENU
=============================== */

.custom-mega-menu {
	display: flex;
}

.custom-mega-menu-tabs {
	background: var(--light-gray);
}

.custom-mega-menu-tabs ul {
	min-width: 200px;
	display: flex;
	flex-direction: column;
	gap: var(--gap-lg);
	padding: var(--gap-lg) 0;
}

@media screen and (max-width: 1366px) {
	.custom-mega-menu-tabs ul {
		gap: 8px;
	}
}

.custom-mega-menu-tabs ul li {
	display: flex;
	width: 100%;
}

.custom-mega-menu-tabs ul li a {
	padding: 0 var(--gap-md);
	color: var(--gray-color);
	font-size: var(--font-size-md);
	width: 100%;
}

.custom-mega-menu-tabs ul li a.active {
	color: var(--main-color);
	position: relative;
}

.custom-mega-menu-tabs ul li a.active:before {
	content: "";
	position: absolute;
	width: 5px;
	height: 100%;
	border-radius: 20px 0 0 20px;
	background: var(--main-color);
	right: 0;
}

.custom-mega-menu-sections {
	flex-grow: 1;
	position: relative;
}

.custom-mega-menu-sections section {
	position: absolute;
	width: 100%;
	height: 100%;
	padding: var(--gap-md);
	display: none;
	overflow-y: auto;
}

.custom-mega-menu-sections section > a {
	color: var(--main-color);
	margin-bottom: 8px;
	display: inline-flex;
}

.custom-mega-menu-sections section > ul {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--gap-md);
}

.custom-mega-menu-sections section > ul > li {
	display: flex;
	flex-direction: column;
}

.custom-mega-menu-sections section > ul > li > a {
	font-size: var(--font-size-sm);
	color: var(--secondary-color);
	padding: 0px var(--gap-md);
	position: relative;
	width: 100%;
}

.custom-mega-menu-sections section > ul > li > a:before {
	content: "";
	position: absolute;
	width: 5px;
	height: 100%;
	border-radius: 20px;
	background: var(--main-color);
	right: 0;
	top: 0;
}

.custom-mega-menu-sections section > ul > li > ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
}

.custom-mega-menu-sections section a {
	font-family: var(--font-main);
	font-size: var(--font-size-sm);
	color: var(--secondary-color);
	padding: 4px 0;
	position: relative;
	width: 100%;
}
.custom-mega-menu-sections section > ul > li > ul > li > ul {
	border-right: 1px solid var(--light-gray);
	padding-right: 12px;display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 4px;
}

.custom-mega-menu-sections section > ul > li > ul > li a:hover {
	color: var(--main-color);
}

/* ===============================
📱 RESPONSIVE TABLE
=============================== */
@media screen and (max-width: 768px) {
	#mweb_23e690a table tbody tr {
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	#mweb_23e690a table tbody tr td.td_img {
		grid-column: span 6 / span 6;
		display: flex;
		justify-content: center;
	}

	#mweb_23e690a table tbody tr td.td_sku {
		grid-column: span 2 / span 1;
	}

	#mweb_23e690a table tbody tr td.td_title {
		grid-column: span 4 / span 4;
		display: flex;
	}

	#mweb_23e690a table tbody tr td.td_title a {
		padding-block: 0;
	}

	#mweb_23e690a table tbody tr td.td_attribute {
		grid-column: span 2 / span 2;
	}

	#mweb_23e690a table tbody tr td.td_price,
	#mweb_23e690a table tbody tr td.td_action {
		grid-column: span 3 / span 3;
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

/* ===============================
📊 DATATABLE
=============================== */
/*.elementor-element.e-con-full.e-flex.e-con.e-child:has(> .elementor-widget-text-editor) {*/
/*	overflow: auto !important;*/
/*	height: auto !important;*/
/*}*/

.elm_datatable thead tr th {
	border-bottom: 1px solid var(--table-border) !important;
}

.elm_datatable tbody tr {
	background-color: var(--white) !important;
}

.elm_datatable tbody tr td {
	border-bottom: 1px solid var(--table-border);
	padding: 0 12px !important;
	color: #333 !important;
}

.elm_datatable tbody tr td * {
	color: #333 !important;
	transition: var(--transition-none);
}

.elm_datatable tbody tr td a {
	padding-block: 8px;
}

.elm_datatable tbody tr:hover {
	background-color: #f9f9f9 !important;
}

/* ===============================
🧱 TABLEPRESS STYLES
=============================== */
.elementor-element:has(.elementor-widget-woocommerce-breadcrumb) {
	background-color: transparent !important;
}

.elementor-button.elementor-button-link.elementor-size-lg[href^="tel:09917788"] {
	background-color: var(--main-color) !important;
}

body .tablepress-table-name {
	padding: 24px var(--gap-md);
	font-size: var(--font-size-xl);
	font-weight: bold;
	background: var(--main-color);
	margin-bottom: var(--gap-md);
	color: var(--white);
	border-radius: var(--border-radius-xl);
	text-align: center;
	display: flex;
	width: 100%;
	gap: var(--gap-md);
	justify-content: space-between;
	align-items: center;
}

body .tablepress-table-name .last-update {
	color: var(--main-color);
	background: var(--white);
	font-size: var(--font-size-md);
	font-weight: normal;
	padding: 4px 12px;
	border-radius: var(--border-radius-sm);
}

body .tablepress {
	table-layout: fixed;
	border-collapse: collapse;
	border-radius: 12px;
	overflow: hidden;
}

body .tablepress tr th,
body .tablepress tr td {
	border: 1px solid var(--border-color);
}

body .tablepress tr th a,
body .tablepress tr td a {
	font-weight: bold;
	background: var(--main-color);
	color: var(--white);
	padding: 2px 8px;
	border-radius: var(--border-radius-sm);
	display: inline-flex;
}

body .tablepress tr td {
	font-size: var(--font-size-md);
	font-family: var(--font-num);
	background: var(--white);
}

body .tablepress tr th {
	background: var(--main-color-dark);
	color: var(--white);
	border-color: var(--main-color-dark);
	font-family: var(--font-medium);
	font-weight: 100;
	font-size: var(--font-size-lg) !important;
}

body .tablepress-table-description {
	font-size: 10px;
	display: flex;
	flex-direction: column;
}

body .tablepress-table-description span {
	padding: var(--gap-md);
	background: var(--main-color);
	color: var(--white);
	border-radius: var(--border-radius-xl);
	display: flex;
	width: 100%;
	gap: var(--gap-md);
	font-weight: 100;
	font-size: var(--font-size-lg);
	line-height: 32px;
	position: relative;
	overflow: hidden;
}

body .tablepress-table-description strong{
	color: var(--main-color);
	border-radius: var(--border-radius-xl);
	display: flex;
	width: 100%;
	gap: var(--gap-md);
	font-weight: 100;
	font-size: var(--font-size-lg);
	line-height: 32px;
	position: relative;
	overflow: hidden;
}


body .tablepress-table-description br{
	display: none;
}

/* ===============================
📄 PAGINATION
=============================== */
body .dt-layout-end:has(.paging_simple_numbers) {
	justify-content: center !important;
	margin: auto;
}

body .dt-layout-end:has(.paging_simple_numbers) .paging_simple_numbers {
	display: flex;
}

body .dt-layout-end:has(.paging_simple_numbers) .paging_simple_numbers button {
	font-family: var(--font-medium);
	border: none !important;
	border-radius: var(--border-radius-lg);
	font-size: var(--font-size-lg);
}

body .dt-layout-end:has(.paging_simple_numbers) .paging_simple_numbers button.current,
body .dt-layout-end:has(.paging_simple_numbers) .paging_simple_numbers button:hover {
	background: var(--main-color);
	color: var(--white) !important;
}

/* ===============================
📱 TABLEPRESS RESPONSIVE
=============================== */
@media screen and (max-width: 768px) {
	body .tablepress-table-name {
		flex-direction: column;
	}
}

/* ===============================
🔘 FILTER BUTTONS
=============================== */
.filter-buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.filter-buttons button {
	background: var(--white);
	border: none;
	padding: 8px 16px;
	border-radius: var(--border-radius-md);
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
	font-family: var(--font-main), Tahoma;
	cursor: pointer;
}

.filter-buttons button:hover,
.filter-buttons button.active {
	background-color: var(--main-color) !important;
	border-color: var(--main-color) !important;
	color: var(--white) !important;
}

.filter-buttons button.clear-filter {
	background: color-mix(in lch, var(--main-color), #ffffff 80%) !important;
	color: var(--main-color) !important;
}

.flip-clock {
	text-align: center;
	perspective: 400px;
	margin: 0 auto;
	display: flex;
	flex-direction: row-reverse;
	justify-content: start;
}
.flip-clock *,
.flip-clock *:before,
.flip-clock *:after {
	box-sizing: border-box;
}
.flip-clock__piece {
	display: inline-block;
	margin: 0 4px;
}
.flip-clock__slot {
	font-size: 27px;
	color: #FFFFFF;
	margin-top: 10px; 
}
.card {
	display: block;
	position: relative;
	padding-bottom: 0.72em;
	font-size: 42px;
	line-height: 0.95;
	letter-spacing: -4px
}
@media screen and (max-width:1025px){
	.card{
		font-size: 42px;
	}

	.flip-clock__piece{
		margin: 0 12px;
	}
}
.card__top,
.card__bottom,
.card__back::before,
.card__back::after {
	display: block;
	height: 0.72em;
	color: #fff;
	background: linear-gradient(90deg, #474747 0%, #333333 100%);
	padding: 0.25em 0.25em;
	border-radius: 0.25em 0.25em 0 0;
	backface-visiblity: hidden;
	transform-style: preserve-3d;
	width: 1.6em;
	transform: translateZ(0);
	box-shadow: 0 1px 0 #474747 inset, 1px 0 0 #474747 inset, -1px 0 0 #474747 inset, 0 -1px 0 #262626 inset;
}
.card__bottom {
	color: #FFF;
	position: absolute;
	top: 50%;
	left: 0;
	border-radius: 0 0 0.25em 0.25em;
	pointer-events: none;
	overflow: hidden;
	background: linear-gradient(90deg, #262626 0%, #191919 100%);
	box-shadow: 0 1px 0 #474747 inset, 1px 1px 0 #474747 inset, -1px 1px 0 #474747 inset, 0 -1px 0 #191919 inset;
}
.card__bottom::after {
	display: block;
	margin-top: -0.72em;
}
.card__back::before,
.card__bottom::after {
	content: attr(data-value);
}
.card__back {
	position: absolute;
	top: 0;
	height: 100%;
	left: 0%;
	pointer-events: none;
}
.card__back::before {
	position: relative;
	z-index: -1;
	overflow: hidden;
}
.flip .card__back::before {
	-webkit-animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
	animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	transform-origin: center bottom;
}
.flip .card__back .card__bottom {
	transform-origin: center top;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
	animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
}
@-webkit-keyframes flipTop {
	0% {
		transform: rotateX(0deg);
		z-index: 2;
	}
	0%,
	99% {
		opacity: 0.99;
	}
	100% {
		transform: rotateX(-90deg);
		opacity: 0;
	}
}
@keyframes flipTop {
	0% {
		transform: rotateX(0deg);
		z-index: 2;
	}
	0%,
	99% {
		opacity: 0.99;
	}
	100% {
		transform: rotateX(-90deg);
		opacity: 0;
	}
}
@-webkit-keyframes flipBottom {
	0%,
	50% {
		z-index: -1;
		transform: rotateX(90deg);
		opacity: 0;
	}
	51% {
		opacity: 0.99;
	}
	100% {
		opacity: 0.99;
		transform: rotateX(0deg);
		z-index: 5;
	}
}
@keyframes flipBottom {
	0%,
	50% {
		z-index: -1;
		transform: rotateX(90deg);
		opacity: 0;
	}
	51% {
		opacity: 0.99;
	}
	100% {
		opacity: 0.99;
		transform: rotateX(0deg);
		z-index: 5;
	}
}

/*div:has(section summary){*/
/*	display: flex;*/
/*	flex-direction: column;*/
/*	gap: 12px;*/
/*	counter-reset: summary;*/
/*	width: 100%;*/
/*}*/

section:has(summary) {
    background: #F9F9F9;
    padding: 16px;
    border-radius: 16px;
    margin-block: 10px;
}

section summary{
	border-bottom: 1px solid #CCC;
	padding-bottom: 16px;
	margin-bottom: 16px;
}

section:has(summary) div{
	font-size: 14px !important;
	font-weight: 400 !important;
}

section summary :is(h1,h2,h3,h4,h5,h6){
	font-size: 16px !important;
}

/* @media (max-width: 767px) {
	[data-elementor-type="wp-page"] > .elementor-element {
		--padding-left: 12px !important;
	}
} */
.filter-dropdown {
	background: #fff;
	padding: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid #CCC;
	margin-bottom: 12px;
}

.filter-dropdown span {
	flex-grow: 1;
}

.woocommerce-account.woocommerce-page .woocommerce{
	max-width: 1140px;
	margin-inline: auto;
    padding-inline: 16px;
}

.protected_by_digits{
	display: none !important;
}

.digits_secure_modal_box, .digits_ui, .digits_secure_modal_box *, .digits_ui *, .digits_font, .dig_ma-box, .dig_ma-box input, .dig_ma-box input::placeholder, .dig_ma-box ::placeholder, .dig_ma-box label, .dig_ma-box button, .dig_ma-box select, .dig_ma-box *{
	font-family: inherit !important;
	text-align: center;
}

.digits-form_tabs{
	display: none !important;
}

.digits_form_index_section .digits_form-init_step_data, .digits_otp_info:hover .digits_otp_info_desc{
	max-width: fit-content;
	margin-inline: auto;
}

.digits-form_button:hover, .digits-form_button[type=submit]:hover{
	background-color: #28020e
}

.digits-login-modal{
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Solar by 480 Design - https://creativecommons.org/licenses/by/4.0/ --><g fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="6" r="4"/><path d="M20 17.5c0 2.485 0 4.5-8 4.5s-8-2.015-8-4.5S7.582 13 12 13s8 2.015 8 4.5Z"/></g></svg>');
	overflow: hidden;
	width: 32px;
	height: 32px;
	display: flex;
	font-size: 0;
}

@media only screen and (max-width: 992px) {
	.woocommerce-account .woocommerce-MyAccount-navigation{
		position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-bottom: 20px !important;
	}
}

@font-face{
	font-family: "IranNastaliq";
	src: url("https://ahanshahr.com/wp-content/uploads/2025/12/IranNastaliq.woff2") format("woff2");
}
@font-face{
	font-family: "ahanshahr";
	src: url("https://ahanshahr.com/wp-content/uploads/2026/02/PeydaWebVF.woff") format("woff-variations");
}
@font-face{
	font-family: "ahanshahr";
	src: url("https://ahanshahr.com/wp-content/uploads/2026/02/PeydaWebVF.woff2") format("woff2-variations");
}

.faal-hafez{
	.poem{
		font-family: "IranNastaliq", sans-serif;
		font-size: 36px;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		word-spacing: 14px;
		text-align: center;
		color: #000;
        gap: 24px;
	}
	.explanation{
		font-size: 15px;
		margin-top: 40px;
	}
}