@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap");
@font-face {
  font-family: "Vazir";
  font-weight: normal;
  src: url("../fonts/Vazir.398b39dd0060.ttf") format("truetype");
}
@font-face {
  font-family: "Vazir";
  font-weight: bold;
  src: url("../fonts/Vazir-Bold.8cea4a726814.ttf") format("truetype");
}
body {
  margin: 0 !important;
}

.body-light {
  background-color: #e5e5e5;
  color: black;
}

.body-dark {
  background-color: #03181d;
  color: white;
}

.container {
  padding: 1rem 2rem;
}

.header {
  background: #03181d;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, color 0.3s;
  font-family: "Vazir", serif;
  font-size: 26px;
  margin: 0;
  display: flex;
  justify-content: start;
  flex-wrap: nowrap;
}
@media screen and (max-width: 1640px) {
  .header {
    font-size: 20px;
  }
}
@media screen and (max-width: 1200px) {
  .header {
    position: fixed;
    top: 0;
    right: -2000px;
    height: auto;
    flex-direction: column;
    z-index: 3;
    gap: 2rem;
    border-radius: 5px;
    transition: right 0.5s ease-in-out;
    font-size: 2rem;
    overflow-y: auto;
    max-height: 80vh;
  }
}
.header[data-theme=dark] {
  background: #e5e5e5;
  color: black !important;
}
.header[data-theme=dark] .nav-item, .header[data-theme=dark] .logo, .header[data-theme=dark] .nav-actions {
  color: black;
}
.header[data-theme=dark] #close-ham {
  color: black;
}
.header[data-theme=dark] #close-ham:hover {
  color: red;
}
.header[data-theme=dark] .dropdown-content a {
  color: black;
}
.header[data-theme=dark] .dropdown-content a:hover {
  color: #FF6B35;
}
.header[data-theme=dark] .category-title {
  color: black;
}
.header[data-theme=dark] .category-title:hover {
  color: #FF6B35;
}
.header[data-theme=dark] .subcategories a {
  color: black;
}
.header[data-theme=dark] .subcategories a:hover {
  color: #FF6B35;
}
.header .nav-container:nth-child(2) {
  width: auto;
}
.header .nav-container:nth-child(4) {
  direction: ltr;
}
@media screen and (max-width: 1200px) {
  .header .nav-container:nth-child(4) {
    width: auto;
    direction: rtl;
  }
}
.header .nav-container:nth-child(3) {
  width: calc(100% - 250px);
}
@media screen and (max-width: 1200px) {
  .header .nav-container:nth-child(3) {
    width: auto;
  }
}

.nav-container {
  display: flex;
  justify-content: start;
  align-items: center;
  margin: 0 1.5rem;
}

.logo {
  font-size: 40px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}
@media screen and (max-width: 1580px) {
  .logo {
    font-size: 30px;
  }
}
@media screen and (max-width: 1200px) {
  .logo {
    font-size: 2.5rem;
  }
}

.nav-links {
  display: flex;
  gap: 4rem;
}
@media screen and (max-width: 1440px) {
  .nav-links {
    gap: 2rem;
    justify-content: space-between;
    width: 100%;
  }
}
@media screen and (max-width: 1280px) {
  .nav-links {
    gap: 1.5rem;
  }
}
@media screen and (max-width: 1200px) {
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
}
.nav-links .nav-item {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  text-align: center;
}
.nav-links .nav-item:hover, .nav-links .nav-item:active, .nav-links .nav-item:focus {
  color: #FF6B35;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  padding: 0.5rem;
  color: white;
}
.theme-toggle:hover {
  color: #FF6B35;
}
@media screen and (max-width: 1310px) {
  .theme-toggle {
    font-size: 20px;
  }
}
@media screen and (max-width: 1200px) {
  .theme-toggle {
    font-size: 2rem;
  }
}

.nav-actions {
  display: flex;
  justify-content: start;
  font-size: 26px;
  color: white;
}

#lang {
  display: block;
}

.lang_a {
  text-decoration: none;
}

/* استایل دکمه همبرگر مدرن */
.hamburger-menu-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background-color: rgba(229, 229, 229, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: transform 0.3s, background-color 0.3s;
  display: none;
}
@media screen and (max-width: 1200px) {
  .hamburger-menu-container {
    display: flex;
  }
}
.hamburger-menu-container:hover {
  transform: scale(1.05);
  background-color: rgba(229, 229, 229, 0.8);
}
.hamburger-menu-container:active {
  transform: scale(0.95);
}

.hamburger-menu {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger-line:nth-child(1) {
  width: 100%;
}
.hamburger-line:nth-child(2) {
  width: 100%;
}
.hamburger-line:nth-child(3) {
  width: 100%;
}

.hamburger-menu-container:hover .hamburger-line:nth-child(1) {
  transform: translateY(1px);
}
.hamburger-menu-container:hover .hamburger-line:nth-child(2) {
  width: 50%;
}
.hamburger-menu-container:hover .hamburger-line:nth-child(3) {
  transform: translateY(-1px);
}

#close-ham {
  display: none;
}
#close-ham:hover, #close-ham:active, #close-ham:focus {
  color: red;
}
@media screen and (max-width: 1200px) {
  #close-ham {
    display: block;
    color: white;
    z-index: 4;
    cursor: pointer;
    top: 0;
    right: 0;
    font-size: 3rem;
  }
}

.text-black-imp {
  color: black !important;
}

.text-white-imp {
  color: white !important;
}

.nav-item, .dropbtn {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: center;
}
@media screen and (max-width: 1200px) {
  .dropdown {
    display: inline-block;
  }
}

.dropdown-content {
  display: none; /* مخفی بودن پیش‌فرض */
  position: absolute;
  background-color: #444;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 5;
  top: 40px;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
}
@media screen and (max-width: 1200px) {
  .dropdown-content {
    position: initial;
    background-color: transparent;
  }
}

/* نمایش منوی اصلی با هاور */
.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
}

.dropdown-content a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}
.dropdown-content a:hover, .dropdown-content a:active, .dropdown-content a:focus {
  color: #FF6B35;
}

.parent-category {
  position: relative;
  padding: 10px 15px;
  cursor: pointer;
}
@media screen and (max-width: 1200px) {
  .parent-category {
    padding: 5px;
  }
}

.category-title {
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}
.category-title:hover {
  color: #FF6B35;
}
.category-title:hover .arrow {
  transform: rotate(90deg);
}

.subcategories {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 6;
  transition: opacity 0.4s ease;
  padding: 0.5rem;
  top: 0;
}
[dir=rtl] .subcategories {
  right: 100%;
}
[dir=ltr] .subcategories {
  left: 100%;
}
@media screen and (max-width: 1200px) {
  .subcategories {
    position: static;
    margin-right: 1rem;
    box-shadow: none;
  }
}

.parent-category:hover .subcategories {
  display: block;
}

.subcategories a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}
.subcategories a:hover, .subcategories a:active, .subcategories a:focus {
  color: #FF6B35;
}

#button-theme {
  display: none;
}

/*# sourceMappingURL=header.css.a75c9f2e7c53.map */
