/* فونت وزیر */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn.eot');
    src: url('../fonts/Vazirmatn.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn.woff2') format('woff2'),
         url('../fonts/Vazirmatn.woff') format('woff'),
         url('../fonts/Vazirmatn.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Bold.eot');
    src: url('../fonts/Vazirmatn-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.woff') format('woff'),
         url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Medium.eot');
    src: url('../fonts/Vazirmatn-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn-Medium.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Medium.woff') format('woff'),
         url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Light.eot');
    src: url('../fonts/Vazirmatn-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn-Light.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Light.woff') format('woff'),
         url('../fonts/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Thin.eot');
    src: url('../fonts/Vazirmatn-Thin.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazirmatn-Thin.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Thin.woff') format('woff'),
         url('../fonts/Vazirmatn-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

*{
	font-family: 'Vazir', sans-serif;
}

/* Modern Animated Header Styles */
:root {
    --header-gradient: linear-gradient(135deg, 
        #2C3E50 0%,    /* Primary color */
        #34495E 50%,    /* Darker shade */
        #2C3E50 100%    /* Back to primary */
    );
    --accent-glow: 0 0 15px rgba(39, 174, 96, 0.4);
    --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated Background Effect */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* New Top Bar */
.top-bar {
    background: var(--header-gradient);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    height: 45px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.top-bar:hover {
    background-size: 400% 400%;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info a:hover {
    color: white;
    background: rgba(39, 174, 96, 0.2);
    border-color: rgba(39, 174, 96, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

.contact-info i {
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.contact-info a:hover i {
    transform: scale(1.1);
}

.working-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn, .account-btn, .logout-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-btn:hover, .account-btn:hover, .logout-btn:hover {
    color: white;
    background: rgba(39, 174, 96, 0.2);
    border-color: rgba(39, 174, 96, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

/* Main Header */
.main-header {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    box-shadow: var(--nav-shadow);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 200%;
    gap: 30px;
}

/* Logo Animation */
.logo-section {
    flex-shrink: 0;
	overflow:hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
}

.logo:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 69, 19, 0.2);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.logo-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition-smooth);
}

.logo:hover .logo-icon img {
    transform: scale(1.05) rotate(5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2C3E50 0%, #8B4513 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.site-tagline {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 300;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-form {
    position: relative;
}

.search-wrapper {
    display: flex;
    border: 2px solid transparent;
    border-radius: 30px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 2px solid rgba(139, 69, 19, 0.1);
}

.search-wrapper:focus-within {
    border-color: rgba(39, 174, 96, 0.3);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.15);
    transform: translateY(-2px);
}

.search-category {
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 14px 20px;
    font-family: 'Vazir';
    font-size: 0.9rem;
    color: #2C3E50;
    border-left: 1px solid rgba(139, 69, 19, 0.1);
    min-width: 140px;
    cursor: pointer;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232C3E50' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

.search-category:focus {
    outline: none;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: 'Vazir';
    background: transparent;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #8B4513 0%, #9c4e19 100%);
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.search-btn:hover {
    background: linear-gradient(135deg, #27AE60 0%, #2ecc71 100%);
    transform: scale(1.05);
}

.search-btn::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%);
    transform-origin: 50% 50%;
}

.search-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-btn {
    position: relative;
    color: #2C3E50;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    background: white;
    color: #27AE60;
    transform: translateY(-3px);
    border-color: rgba(39, 174, 96, 0.2);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.15);
}

.action-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 0.7rem;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Cart Container */
.cart-container {
    position: relative;
}

.mini-cart {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 350px;
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: var(--transition-smooth);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.cart-container:hover .mini-cart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2C3E50;
    font-weight: 700;
}

/* Navigation Menu */
.main-nav {
    position: fixed;
    top: 135px;
    left: 0;
    right: 0;
    z-index: 1005;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(139, 69, 19, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.main-nav.scrolled {
    top: 115px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-item {
    position: relative;
    height: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2C3E50;
    text-decoration: none;
    padding: 0 25px;
    height: 100%;
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    border-radius: 10px 10px 0 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B4513 0%, #27AE60 100%);
    transition: var(--transition-smooth);
    border-radius: 3px 3px 0 0;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
    width: 100%;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: #27AE60;
    background: rgba(39, 174, 96, 0.05);
}

.nav-link i {
    transition: var(--transition-smooth);
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 900px;
    background: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) perspective(600px) rotateX(-10deg);
    transition: var(--transition-smooth);
    z-index: 999;
    overflow: hidden;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) perspective(600px) rotateX(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px;
}

.mega-menu-column h4 {
    margin-bottom: 20px;
    color: #2C3E50;
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(39, 174, 96, 0.2);
}

.mega-menu-column h4 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
}

.mega-menu-column h4 a:hover {
    color: #27AE60;
    padding-right: 10px;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 12px;
    position: relative;
}

.mega-menu-column ul li::before {
    content: '›';
    position: absolute;
    right: -15px;
    color: #27AE60;
    opacity: 0;
    transition: var(--transition-smooth);
}

.mega-menu-column ul li:hover::before {
    right: -20px;
    opacity: 1;
}

.mega-menu-column ul li a {
    color: #666;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
    border-bottom: 1px dashed transparent;
}

.mega-menu-column ul li a:hover {
    color: #27AE60;
    padding-right: 25px;
    border-bottom-color: rgba(39, 174, 96, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #8B4513 0%, #9c4e19 100%);
    border: none;
    cursor: pointer;
    padding: 12px;
    flex-direction: column;
    gap: 4px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #27AE60 0%, #2ecc71 100%);
    transform: scale(1.05);
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
        width: 700px;
    }
    
    .mega-menu-banner {
        display: none;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 60px;
    }
    
    .top-bar {
        display: none;
    }
    
    .main-header {
        position: fixed;
        top: 0;
        height: 80px;
    }
    
    .main-nav {
        top: 80px;
    }
    
    .header-content {
        gap: 20px;
    }
    
    .search-section {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .breadcrumb-section {
        margin-top: 80px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 70px;
    }
    
    .main-nav {
        top: 70px;
    }
    
    .logo-icon img {
        width: 50px;
        height: 50px;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .action-btn {
        width: 45px;
        height: 45px;
    }
    
    .header-actions {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .header-content {
        padding: 0 15px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .site-tagline {
        font-size: 0.8rem;
    }
    
    .action-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Breadcrumb Styles */
.breadcrumb-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;	
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.05"><path d="M0,0 L100,0 L100,100 Z" fill="%238B4513"/></svg>');
    background-size: cover;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: #8B4513;
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0.6;
}

.breadcrumb a {
    color: #8B4513;
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(139, 69, 19, 0.05);
    border: 1px solid transparent;
}

.breadcrumb a:hover {
    color: #27AE60;
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.2);
    transform: translateY(-2px);
}

.breadcrumb .current {
    color: #2C3E50;
    font-weight: 600;
    background: rgba(44, 62, 80, 0.05);
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

/* Scroll Effects */
.header-scroll-effect {
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.main-nav.scrolled {
    height: 50px;
    top: 115px;
}

.main-header.scrolled .logo {
    transform: scale(0.9);
}

.main-header.scrolled .action-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
}