@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: bold;
	src: url('../fonts/eot/IRANSansWeb_Bold.eot');
	src: url('../fonts/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */ url('../fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/IRANSansWeb_Bold.woff')
			format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/ttf/IRANSansWeb_Bold.ttf')
			format('truetype');
}
@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 500;
	src: url('../fonts/eot/IRANSansWeb_Medium.eot');
	src: url('../fonts/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */ url('../fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/IRANSansWeb_Medium.woff')
			format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/ttf/IRANSansWeb_Medium.ttf')
			format('truetype');
}
@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 300;
	src: url('../fonts/eot/IRANSansWeb_Light.eot');
	src: url('../fonts/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */ url('../fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/IRANSansWeb_Light.woff')
			format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/ttf/IRANSansWeb_Light.ttf')
			format('truetype');
}
@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 200;
	src: url('../fonts/eot/IRANSansWeb_UltraLight.eot');
	src: url('../fonts/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */ url('../fonts/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/IRANSansWeb_UltraLight.woff')
			format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/ttf/IRANSansWeb_UltraLight.ttf')
			format('truetype');
}
@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/eot/IRANSansWeb.eot');
	src: url('../fonts/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
		/* IE6-8 */ url('../fonts/woff2/IRANSansWeb.woff2') format('woff2'),
		/* FF39+,Chrome36+, Opera24+*/ url('../fonts/woff/IRANSansWeb.woff') format('woff'),
		/* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/ttf/IRANSansWeb.ttf')
			format('truetype');
}

/* Z-index hierarchy system */
:root {
	--z-base: 1;
	--z-dropdown: 10;
	--z-sticky: 50;
	--z-header: 51;
	--z-modal: 2000;
	--z-overlay: 1999;
	--z-popover: 100;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'IRANSans';
	direction: rtl;
	background-color: #f8f9fa;
	background-image: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
	color: #333;
	line-height: 1.6;
	scroll-behavior: smooth;
}

header {
	transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease, background-color 0.3s ease;
}

section {
	padding: 60px 0;
	position: relative;
}

section .container {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

.container {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 15px;
}

input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3);
}

button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* header */
.search-container {
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.search-container::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
	animation: search-loading 20s linear infinite;
}

.md-spinner-search {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid rgba(30, 60, 114, 0.1);
	border-top-color: #1e3c72;
	animation: spin-search 0.8s linear infinite;
}

@keyframes spin-search {
	to {
		transform: rotate(360deg);
	}
}

.search-results {
	max-height: 400px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	z-index: 1000; /* z-index بالاتر از هدر */
}

.search-results-content {
	max-height: 350px;
	overflow-y: auto;
	overscroll-behavior: contain; /* جلوگیری از اسکرول صفحه هنگام اسکرول نتایج */
}

.search-results-bottom {
	transform-origin: top;
}

.search-results-top {
	transform-origin: bottom;
}

.search-toggle-btn {
	transition: all 0.3s ease;
}

.search-toggle-btn .hidden {
	display: none;
}

.search-toggle-btn:hover {
	transform: translateY(-50%) scale(1.05);
}

input[type='search']::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.dropdown-menu {
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-link {
	position: relative;
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	right: 0;
	width: 0;
	height: 2px;
	background: #3498db;
	transition: width 0.3s ease;
}

.nav-link:hover::after {
	width: 100%;
	left: 0;
}

.md-badge {
	font-family: sans-serif;
	position: absolute;
	top: 0;
	right: 0;
	background-color: #e53e3e;
	color: white;
	border-radius: 12px;
	min-width: 18px;
	height: 18px;
	font-size: 11px;
	font-weight: 500;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translate(25%, -25%);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
	z-index: 5;
}

.cart-badge {
	font-family: sans-serif;
	position: absolute;
	top: -4px;
	right: 0;
	border-radius: 12px;
	min-width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ef4444;
	color: white;
	font-size: 10px;
	font-weight: 500;
	padding: 0 3px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	z-index: 100;
	transform: translateX(50%);
}

.cart-badge.hidden {
	display: none !important;
}

.animate-badge {
	animation: badgePulse 0.3s ease-in-out;
}

@keyframes badgePulse {
	0% {
		transform: translate(25%, -25%) scale(1);
	}
	50% {
		transform: translate(25%, -25%) scale(1.3);
	}
	100% {
		transform: translate(25%, -25%) scale(1);
	}
}

.cart-btn-simple {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: transparent;
	transition: background-color 0.2s ease;
}

.cart-btn-simple:hover {
	background-color: rgba(0, 0, 0, 0.08);
}

.cart-btn-simple .material-icons-round {
	font-size: 24px;
	color: #1e3c72;
}

/* product */
.section-products {
	padding: 70px 0;
	background-color: #f9fafb;
}

.product-image-container {
	overflow: hidden;
	position: relative;
}

.add-to-cart {
	background: linear-gradient(135deg, #1e3c72, #2a5298);
	color: white;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s;
}

.add-to-cart:hover {
	background: linear-gradient(135deg, #2a5298, #1e3c72);
	box-shadow: 0 4px 8px rgba(30, 60, 114, 0.25);
}

.spinner {
	width: 64px;
	height: 64px;
	border: 4px solid rgba(30, 60, 114, 0.1);
	border-left-color: #1e3c72;
	border-radius: 50%;
	animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.ripple-container {
	position: relative;
	overflow: hidden;
	transform: translate3d(0, 0, 0);
}

.color-option {
	position: relative;
	margin: 0 3px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.color-option:hover {
	transform: translateY(-3px);
}

.color-option .color-label {
	position: absolute;
	top: -25px;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	background-color: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	white-space: nowrap;
	z-index: 30;
}

.color-option:hover .color-label {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.product-color-bottom {
	position: absolute;
	bottom: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	background: rgba(255, 255, 255, 0.9);
	padding: 6px 2px;
	border-radius: 15px;
	z-index: 10;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	transform: translateY(0);
	opacity: 1;
}

.product-color-bottom .color-dot {
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	border: 2px solid white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease-in-out;
}

.product-color-bottom .color-dot:hover {
	transform: scale(1.1);
}

.product-color-bottom .color-dot.selected {
	border: 2px solid #3b82f6 !important;
	transform: scale(1.1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	animation: pulse-animation 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-animation {
	0% {
		box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
	}

	70% {
		box-shadow: 0 0 0 5px rgba(59, 130, 246, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
	}
}

.pulse-animation {
	animation: pulse-animation 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.prose {
	max-width: 65ch;
	color: #374151;
}

.prose p {
	margin-top: 1.25em;
	margin-bottom: 1.25em;
}

.prose strong {
	font-weight: 600;
	color: #111827;
}

.prose ul {
	margin-top: 1.25em;
	margin-bottom: 1.25em;
	list-style-type: disc;
	padding-left: 1.625em;
}

.prose li {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.prose img {
	margin-top: 2em;
	margin-bottom: 2em;
	border-radius: 0.375rem;
}

.prose h2 {
	font-weight: 700;
	font-size: 1.5em;
	margin-top: 2em;
	margin-bottom: 1em;
	color: #111827;
}

.prose h3 {
	font-weight: 600;
	font-size: 1.25em;
	margin-top: 1.6em;
	margin-bottom: 0.6em;
	color: #111827;
}

.product-image-container {
	position: relative;
}

.product-thumbnails {
	margin-top: 1rem;
	display: flex;
	overflow-x: auto;
	gap: 0.5rem;
	padding: 0.5rem 0;
	scrollbar-width: thin;
}

.product-thumbnail-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.product-thumbnail-item img {
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.product-thumbnail-item:hover img {
	border-color: #3b82f6;
}

.product-detail-page {
	background-color: #f9fafb;
	min-height: 100vh;
}

.product-detail-container {
	background-color: white;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: all 0.3s ease;
}

.product-detail-image {
	position: relative;
	overflow: hidden;
}

.product-detail-image img {
	transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.detail-slider-prev,
.detail-slider-next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	transition: all 0.2s ease;
	opacity: 0.7;
}

.detail-slider-prev:hover,
.detail-slider-next:hover {
	transform: scale(1.1);
	opacity: 1;
	background-color: white;
}

.color-select-dot {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
}

.color-select-dot:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.color-select-dot.ring {
	position: relative;
	border: 2px solid transparent;
	box-shadow: 0 0 0 2px white, 0 0 0 4px #3b82f6;
}

.color-select-dot.selected {
	border: 2px solid #3b82f6 !important;
	transform: scale(1.1);
}

.color-name {
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.2s ease;
	pointer-events: none;
}

.color-name.show {
	opacity: 1;
	transform: translateY(0);
}

.product-quantity {
	display: flex;
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.quantity-btn-minus,
.quantity-btn-plus {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f3f4f6;
	cursor: pointer;
	transition: all 0.2s ease;
}

.quantity-btn-minus:hover,
.quantity-btn-plus:hover {
	background-color: #e5e7eb;
}

/* feature container */
.feature-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 25px;
	margin-top: -40px;
	position: relative;
	z-index: 20;
}

.feature-box {
	background: white;
	border-radius: 20px;
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
	transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
	overflow: hidden;
	position: relative;
}

.feature-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #2a5298, #1e3c72);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-box:hover {
	transform: translateY(-15px);
	box-shadow: 0 25px 50px rgba(42, 82, 152, 0.2);
}

.feature-box:hover::before {
	transform: scaleX(1);
}

.feature-icon {
	width: 90px;
	height: 90px;
	border-radius: 22px;
	background: linear-gradient(135deg, #1e3c72, #2a5298);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
	box-shadow: 0 10px 30px rgba(42, 82, 152, 0.3);
}

.feature-box:hover .feature-icon {
	transform: rotate(10deg) scale(1.1);
}

.feature-icon span {
	font-size: (50px);
	color: white;
}

.feature-title {
	font-size: 22px;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 10px;
}

.feature-desc {
	color: #7f8c8d;
	font-size: 16px;
}

/* login */
.login-container {
	background-color: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 5px 10px rgba(0, 0, 0, 0.05);
	width: 100%;
	max-width: 420px;
	transform: scale(1);
	opacity: 1;
	transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
	position: relative;
	z-index: 10;
}

.stepper-progress {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	padding: 16px 20px 8px;
	background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
	border-bottom: 1px solid #e2e8f0;
}

.step {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 2;
}

.step-indicator {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 3px solid transparent;
	overflow: hidden;
	z-index: 3;
}

.step-indicator.active {
	transform: scale(1.1);
	box-shadow: 0 8px 25px rgba(30, 60, 114, 0.25);
}

.step-indicator.completed {
	background: linear-gradient(135deg, #22c55e, #16a34a) !important;
	color: white !important;
	border-color: #22c55e;
	box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.step-label {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 500;
	text-align: center;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.step-connector {
	position: absolute;
	top: 24px;
	right: calc(50% + 24px);
	width: calc(100% - 48px);
	height: 4px;
	background: #e2e8f0;
	border-radius: 2px;
	z-index: 1;
	overflow: hidden;
}

.step:last-child .step-connector {
	display: none;
}

.step-connector-fill {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #1e3c72, #2a5298);
	border-radius: 2px;
	transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* انیمیشن‌های بهبود یافته */
@keyframes step-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(30, 60, 114, 0.4);
	}
	50% {
		box-shadow: 0 0 0 10px rgba(30, 60, 114, 0);
	}
}

@keyframes check-bounce {
	0% {
		transform: scale(0) rotate(0deg);
		opacity: 0;
	}
	50% {
		transform: scale(1.3) rotate(180deg);
		opacity: 1;
	}
	100% {
		transform: scale(1) rotate(360deg);
		opacity: 1;
	}
}

@keyframes connector-progress {
	0% {
		width: 0;
		opacity: 0.5;
	}
	100% {
		width: 100%;
		opacity: 1;
	}
}

/* حالت‌های مختلف Step */
.step.active .step-indicator {
	background: linear-gradient(135deg, #1e3c72, #2a5298);
	color: white;
	animation: step-pulse 2s infinite;
}

.step.active .step-label {
	color: #1e3c72;
	font-weight: 600;
}

.step.completed .step-indicator .step-number {
	display: none;
}

.step.completed .step-connector-fill {
	animation: connector-progress 0.8s ease-out forwards;
}

.step.active .step-connector,
.step.completed .step-connector {
	background-color: #1e3c72;
}

.login-content {
	position: relative;
	overflow: hidden;
	padding: 20px;
}

.form-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #ebf2ff;
	color: #1e3c72;
	margin: 0 auto 16px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(30, 60, 114, 0.1);
	transition: all 0.25s ease;
}

.form-icon:hover {
	transform: scale(1.05);
	background-color: #dce8fd;
}

.form-icon .material-icons-round {
	font-size: 28px;
	transition: transform 0.3s ease;
}

.form-icon:hover .material-icons-round {
	transform: scale(1.1);
}

.form-title {
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	text-align: center;
	margin-bottom: 4px;
}

.login-header {
	background: linear-gradient(120deg, #2a5298, #1e3c72);
	position: relative;
	color: white;
	padding: 20px;
	overflow: hidden;
}

.verification-code {
	direction: ltr;
	text-align: center;
	letter-spacing: 2px;
	font-size: 1.2em;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 16px;
}

.verification-input:focus {
	outline: none;
	border-color: #1e3c72;
	box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.2);
}

.verification-input {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background-color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
	transition: all 0.25s ease;
}

.verification-input:focus {
	outline: none;
	border-color: #1e3c72;
	box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.error-input {
	border-color: #ef4444 !important;
	background-color: #fef2f2 !important;
}

.timer-text {
	text-align: center;
	margin: 12px 0;
	color: #6b7280;
	font-size: 13px;
}

.timer-value {
	font-weight: 600;
	color: #1e3c72;
}

.resend-button {
	background: none;
	border: none;
	color: #1e3c72;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 6px 12px;
	border-radius: 6px;
}

.resend-button:hover {
	background-color: rgba(30, 60, 114, 0.05);
}

.success-icon {
	font-size: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: #ecfdf5;
	color: #10b981;
	margin: 0 auto 20px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
}

.success-icon::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.3);
	animation: success-pulse 2s ease-out infinite;
	opacity: 0;
}

@keyframes success-pulse {
	0% {
		transform: scale(0.8);
		opacity: 0.8;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

.success-title {
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	text-align: center;
	margin-bottom: 4px;
}

.success-message {
	font-size: 14px;
	color: #6b7280;
	text-align: center;
	margin-bottom: 16px;
}

.animate-spin {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.animate__shakeX {
	animation-name: shakeX;
}

@keyframes shakeX {
	10%,
	90% {
		transform: translateX(-1px);
	}
	20%,
	80% {
		transform: translateX(2px);
	}
	30%,
	50%,
	70% {
		transform: translateX(-4px);
	}
	40%,
	60% {
		transform: translateX(4px);
	}
}

.loading-state {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 50;
	padding: 40px 0;
	flex-direction: column;
}

.animate_fadeIn {
	animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate__fadeOut {
	animation: fadeOut 0.3s ease-in;
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-20px);
	}
}

/* Base Button Styles */
.md-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	border-radius: 0.5rem;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	border: none;
	cursor: pointer;
}

.md-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.md-btn-primary {
	background: linear-gradient(135deg, #1e3c72, #2a5298);
	color: white;
}

.md-btn-primary:hover {
	background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.md-btn-secondary {
	background-color: #f0f2f5;
	color: #1e293b;
	border: 1px solid #e5e7eb;
}

.md-btn-secondary:hover {
	background-color: #e5e7eb;
	color: #0f172a;
}

.md-btn,
.md-btn-primary,
.md-btn-secondary {
	position: relative;
	z-index: 1;
}

.md-btn span,
.md-btn-primary span,
.md-btn-secondary span {
	pointer-events: none;
}

.md-btn.disabled,
.md-btn-primary.disabled,
.md-btn-secondary.disabled {
	opacity: 0.7;
	cursor: not-allowed;
	background-color: #e5e7eb;
	color: #6b7280;
	box-shadow: none;
}

.md-btn.disabled:hover,
.md-btn-primary.disabled:hover,
.md-btn-secondary.disabled:hover {
	transform: none;
	box-shadow: none;
}

.md-btn.disabled span,
.md-btn-primary.disabled span,
.md-btn-secondary.disabled span {
	color: #6b7280;
}

/* about me section */
.section-about {
	background-color: #ffffff;
	padding: 80px 0;
	border-bottom: 1px solid #f0f0f0;
}

.section-about h1 {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 1rem;
}

.section-about p {
	font-size: 1.1rem;
	color: #64748b;
	margin-bottom: 2rem;
	max-width: 700px;
}

.section-about span.highlight {
	color: #1e3c72;
	font-weight: 700;
}

/* contact section */
.section-contact {
	background-color: #f9fafb;
	padding: 70px 0;
}

/* استایل محدود کردن متن به یک خط */
.line-clamp-1 {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* toast message */
.toast-message {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	min-width: 280px;
	z-index: 9999;
}

.toast-message .material-icons-round {
	font-size: 20px;
}

/* cart */
.cart-modal {
	z-index: 9995;
}

.cart-overlay {
	z-index: 9996;
}

.cart-container {
	box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
	direction: rtl;
	z-index: 9997;
}

.cart-item {
	border-bottom: 1px solid #f5f5f5;
	transition: all 0.3s ease;
}

.cart-item-image img {
	object-fit: contain;
	padding: 5px;
}

.cart-quantity-input {
	appearance: textfield;
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cart-header {
	border-bottom: 1px solid #f1f1f1;
}

.cart-header h3 {
	margin-right: auto;
}

.cart-item-details {
	text-align: right;
}

.cart-item-actions {
	margin-left: auto;
}

.cart-empty {
	direction: rtl;
}

/* Show product with Filters */
.pagination-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	width: 100%;
	max-width: 768px;
	transform-origin: center top;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	animation: fadeInUp 0.5s ease forwards;
}

.pagination-container.animate {
	animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.pagination-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	background-color: #fff;
	padding: 0.75rem 1rem;
	border-radius: 50px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.pagination-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.5) 0%,
		rgba(255, 255, 255, 0) 100%
	);
	border-radius: 50px;
	z-index: -1;
}

.pagination-content:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.pagination-button {
	min-width: 42px;
	height: 42px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	color: #4a5568;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	border: none;
	outline: none;
	cursor: pointer;
}

.pagination-button:focus {
	outline: none;
}

.pagination-button:hover {
	background-color: #f5f7fa;
	color: #1a202c;
	transform: translateY(-2px);
}

.pagination-button:active {
	transform: translateY(0);
	background-color: #edf2f7;
}

.pagination-button.active {
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	color: white;
	font-weight: 600;
	box-shadow: 0 4px 10px rgba(42, 82, 152, 0.3);
}

.pagination-button.active::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.25) 0%,
		rgba(255, 255, 255, 0) 70%
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pagination-button.active:hover::before {
	opacity: 1;
}

.pagination-button::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background: rgba(255, 255, 255, 0.5);
	opacity: 0;
	border-radius: 100%;
	transform: scale(1, 1) translate(-50%, -50%);
	transform-origin: 50% 50%;
}

.pagination-button:focus:not(:active)::after {
	animation: ripple 1s ease-out;
}

.pagination-button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.pagination-nav {
	min-width: auto;
	padding: 0 1rem;
	border-radius: 30px;
	display: inline-flex;
	align-items: center;
	background-color: #f8fafc;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	gap: 0.5rem;
}

.pagination-nav:hover {
	background-color: #f1f5f9;
}

.pagination-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.25rem;
	font-size: 1.25rem;
	color: #64748b;
	font-weight: bold;
	letter-spacing: 1px;
}

.products-counter {
	font-size: 0.875rem;
	color: #4a5568;
	background-color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	font-weight: 500;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.products-counter::before {
	content: '\e8ef'; /* Material icon: shopping_basket */
	font-family: 'Material Icons Round';
	font-size: 1rem;
	color: #3b82f6;
}

.fade-products-out {
	opacity: 0.5;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.fade-products-in {
	opacity: 1;
	transition: opacity 0.3s ease;
}

.pagination-wrapper {
	width: 100%;
	margin-top: 3rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.product-filter-btn {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.product-filter-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-filter-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-filter-btn.filter-active {
	color: white;
	background: linear-gradient(135deg, #1e3c72, #2a5298);
	font-weight: 500;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.product-filter-btn .ripple-effect {
	background-color: rgba(255, 255, 255, 0.3);
}

.product-filter-btn.filter-active .ripple-effect {
	background-color: rgba(255, 255, 255, 0.5);
}

.product-size-selector {
	position: relative;
	transition: all 0.3s ease;
	z-index: var(--z-dropdown);
}

.size-dropdown-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.35rem 0.5rem;
	border-radius: 0.375rem;
	background-color: rgba(240, 240, 240, 0.6);
	border: 1px solid transparent;
	transition: all 0.2s ease;
	font-size: 0.85rem;
	user-select: none;
}

.size-dropdown-trigger:hover {
	background-color: rgba(230, 230, 230, 0.8);
	border-color: rgba(200, 200, 200, 0.5);
}

.size-dropdown-trigger.active {
	background-color: #f1f7ff;
	border-color: #cce0ff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.size-dropdown-content {
	position: absolute;
	top: calc(100% + 0.25rem);
	left: 0;
	right: 0;
	background-color: white;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transform: translateY(-5px);
	visibility: hidden;
	transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
	z-index: var(--z-dropdown);
	overflow: hidden;
	max-height: 0;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.size-dropdown-content.active {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	max-height: 200px;
	overflow-y: auto;
}

.size-option {
	padding: 0.5rem 0.75rem;
	transition: all 0.15s ease;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.size-option:last-child {
	border-bottom: none;
}

.size-option:hover {
	background-color: #f5f8ff;
}

.size-option.selected {
	background-color: #eef4ff;
	position: relative;
}

.size-option.selected::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background-color: #1e3c72;
}

.size-name {
	font-weight: 500;
	font-size: 0.85rem;
	color: #333;
}

.size-price {
	font-size: 0.8rem;
	color: #1e3c72;
	font-weight: 500;
}

.size-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.size-option-detail {
	cursor: pointer;
	transition: all 0.25s ease-in-out;
	position: relative;
}

.size-option-detail:hover .size-box {
	background-color: #f1f7ff !important;
	box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
	transform: translateY(-3px);
	border: 1px solid #dbeafe;
}

.size-option-detail.selected .size-box {
	background-color: #f1f7ff !important;
	border-color: #93c5fd !important;
	box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
	transform: translateY(-2px);
}

.size-box {
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
	font-weight: 500;
	font-size: 0.95rem;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 3rem;
	text-align: center;
	border: 1px solid transparent;
}

.size-option-card {
	cursor: pointer;
	transition: all 0.25s ease-in-out;
	position: relative;
}

.size-option-card:hover .size-box-mini {
	background-color: #f1f7ff !important;
	box-shadow: 0 3px 6px rgba(59, 130, 246, 0.12);
	transform: translateY(-2px);
	border: 1px solid #dbeafe;
}

.size-option-card.selected .size-box-mini {
	background-color: #f1f7ff !important;
	border-color: #93c5fd !important;
	box-shadow: 0 3px 8px rgba(59, 130, 246, 0.2);
	transform: translateY(-1px);
}

.size-box-mini {
	transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 2rem;
	border: 1px solid transparent;
}

.product-detail-price {
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-detail-price.updating {
	opacity: 0.5;
	transform: translateY(-5px);
}

.product-price {
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.from-text {
	font-weight: bold;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.product-loading.active {
	display: flex;
}

.spinner-container {
	width: 80px;
	height: 80px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: white;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* menu for mobile*/
.slide-up {
	animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

.slide-down {
	animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(100%);
	}
}

#mobileCategoriesMenu .rounded-t-xl,
#mobileSearchPanel .rounded-t-xl {
	border-top-left-radius: 28px;
	border-top-right-radius: 28px;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
}

#mobileCategoriesMenu a,
#mobileSearchPanel a {
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

#mobileCategoriesMenu a:active,
#mobileSearchPanel a:active {
	transform: scale(0.98);
	background-color: rgba(59, 130, 246, 0.1);
}

#mobileCategoriesMenu .absolute {
	box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -8px 10px -6px rgba(0, 0, 0, 0.1);
	will-change: transform;
}

#mobileCategoriesMenu .w-10 {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileCategoriesMenu a:active .w-10 {
	transform: scale(1.2);
	background-color: rgba(59, 130, 246, 0.25);
}

.lg\:hidden .flex.justify-around .w-12 {
	position: relative;
	overflow: hidden;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lg\:hidden .flex.justify-around .w-12:active {
	transform: scale(0.92);
}

.lg\:hidden .flex.justify-around .material-icons-round {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lg\:hidden .flex.justify-around .group:hover .material-icons-round {
	transform: scale(1.15);
}

/* ripple effect */
.ripple {
	position: relative;
	overflow: hidden;
}

.ripple-effect {
	position: absolute;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	transform: scale(0);
	animation: ripple-animation 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	pointer-events: none;
	z-index: 10;
	width: 120px;
	height: 120px;
	margin-top: -60px;
	margin-left: -60px;
}

@keyframes ripple-animation {
	0% {
		transform: scale(0);
		opacity: 0.8;
	}
	50% {
		opacity: 0.5;
	}
	100% {
		transform: scale(2);
		opacity: 0;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 40px, 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes fadeOutDown {
	from {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}

	to {
		opacity: 0;
		transform: translate3d(0, 40px, 0);
	}
}

.animate__animated {
	animation-duration: 0.3s;
	animation-fill-mode: both;
}

.animate__fadeInUp {
	animation-name: fadeInUp;
}

.animate__fadeOutDown {
	animation-name: fadeOutDown;
}

@keyframes search-loading {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Responsive styles */
@media (max-width: 768px) {
	.product-detail-image {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.login-container {
		width: 90%;
		max-width: none;
		border-radius: 16px;
	}

	.login-header {
		padding: 16px;
	}

	.verification-input {
		width: 40px;
		height: 48px;
		font-size: 18px;
	}

	.form-icon {
		width: 56px;
		height: 56px;
	}

	.form-title {
		font-size: 17px;
	}

	.login-content {
		padding: 24px 16px;
	}

	.size-dropdown-content.active {
		max-height: 150px;
	}

	.pagination-content {
		padding: 0.5rem;
		gap: 0.4rem;
	}

	.pagination-button {
		min-width: 38px;
		height: 38px;
		font-size: 0.875rem;
	}

	.pagination-nav {
		padding: 0 0.75rem;
	}

	.pagination-nav span:not(.material-icons-round) {
		display: none;
	}

	.step-indicator {
		width: 40px;
		height: 40px;
		font-size: 12px;
	}

	.step-label {
		font-size: 10px;
		margin-top: 6px;
	}

	.step-connector {
		top: 20px;
		right: calc(50% + 20px);
		width: calc(100% - 40px);
		height: 3px;
	}
}

/* Mobile header is now not sticky */
@media (max-width: 1023px) {
	header {
		position: relative;
		z-index: 40;
		display: none; /* Hide header completely on mobile */
	}

	/* Ensure the search container is more visible and accessible */
	.search-container {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
		position: relative;
		z-index: 30;
	}

	/* Make search input more touchable */
	#md-search-input {
		font-size: 1rem;
		padding-top: 1rem;
		padding-bottom: 1rem;
	}

	/* Add focus styles for better visibility */
	#md-search-input:focus {
		box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.3);
	}
}
