a {
  text-decoration: none;
}

.container-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.black-top {
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 0px;
}

.black-top h2 {
  color: white;
  font-size: 25px;
  font-weight: 800;
}

.black-top span {
  width: 62px;
  height: 62px;
  margin-bottom: 6px;
}

.header-main-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.header-main {
  background-color: var(--header-bg);
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: center;
  border-radius: 20px;
  padding: 0px 10px;
}

.header-logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
}

.header-main div {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header-main div div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-main div div svg {
  width: 45px;
  height: 45px;
}

.header-main div h4 {
  font-size: 15px;
  font-weight: 600;
}

.header-main> :first-child h2 {
  font-size: 25px;
  font-weight: 800;
}

.logo {
  margin-top: 10px;
}

.header-main-md>div:first-child {
  display: flex;
  align-items: center;
}

/* Style for chevron */
.header-chevron {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #242424;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.first-menu-item:hover .header-chevron svg {
  color: #FFC107;
  transform: rotate(180deg);
  transition: transform 0.3s;
}

.chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}

.header-left-icon {
  display: inline-flex;
  width: 35px;
  height: 35px;
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-left-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}

.icon-download {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.download-hover-box {
  display: none !important;
  position: absolute;
  top: 50px;
  left: -20px;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 100;
  background-color: var(--hover-bg) !important;
  cursor: default;
}

.download-option {
  width: 100%;
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
  background-color: var(--header-bg);
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
}

#download-option-bazaar:hover {
  background-color: #8ec032;
  transform: translateY(-2px);
}

#download-option-myket:hover {
  background-color: #419fb6;
  transform: translateY(-2px);
}

.hover-help {
  position: absolute;
  background-color: transparent;
  top: -15px;
  height: 15px;
  width: 100%;
}

#icon-download:hover .download-hover-box,
.download-hover-box:hover {
  display: flex !important;
  flex-direction: column;
}


.download-hover-box span {
  color: var(--text-menu) !important
}

.download-hover-box img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.download-hover-box button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background-color: var(--header-bg) !important;
  color: var(--text-color) !important;
  margin: 5px 0;
}

#icon-download:hover+.download-hover-box,
.download-hover-box:hover {
  display: flex !important;
  flex-direction: column;
}

.icon-download svg {
  width: 35px;
  height: 35px;
}

.header-main button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background-color: #FFC107;
  color: #fff;
  padding: 10px 13px;
  display: flex
}

.login-register-btn {
  background-color: #FFC107;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-register-btn:hover {
  background-color: #ffd65b;
  transform: translateY(-2px);
}

.menu-item:hover {
  color: #FFC107;
}

.menu-item {
  color: var(--text-color);
  cursor: pointer;
}

.first-menu-item {
  position: relative;
  height: 79px;
}

.hover-box {
  background-color: var(--hover-bg);
  display: none !important;
  position: absolute;
  top: 70px;
  right: -30px;
  padding: 15px;
  box-shadow: 0 5px 20px 0 var(--hover-box-shadow);
  z-index: 100;
  border-radius: 20px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
  cursor: initial;
}


.first-menu-item:hover .hover-box {
  display: grid !important;
}

/* Style for cards */
.hover-card {
  width: 268px;
  padding: 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hover-card:hover {
  background-color: var(--hover-card-hover);
}

.hover-card h3 {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
}

.hover-card p {
  color: var(--hover-card-text);
  font-size: 12px;
  font-weight: 600;
  text-align: justify;
}

.hover-card div {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hover-card div div {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-start;
}

.hover-card div div svg {
  color: var(--text-color);
  width: 21px;
  height: 21px;
}

.hover-chevron {
  width: 14px;
  height: 14px;
  display: flex;
  /* Ensures it correctly wraps the SVG */
  align-items: center;
  justify-content: center;
}

.hover-chevron svg {
  color: var(--text-color);
  width: 100%;
  height: 100%;
  transform: rotate(90deg);
}

.hover-chevron-new-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.new-tag {
  background-color: #F00500;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
}

.header-main-md {
  display: flex;
}

.header-main-sm {
  display: none !important;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  /* نصف صفحه */
  height: 100vh;
  background-color: var(--hover-card-hover);
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  /* منو را بیرون ببرید */
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
  padding: 10px 0px;
}


@media screen and (max-width: 1000px) {
  .black-top {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 5px 0px;
  }

  .black-top h2 {
    font-size: 12px;
    font-weight: 800;
  }

  .black-top img {
    width: 30px;
  }


  /* --------- */
  .header-main-md {
    display: none !important;
  }

  .header-main-sm {
    display: flex !important;
  }

  .header-main button {
    display: none;
  }

  .logo-sm {
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-sm img {
    width: 100%;
    height: 100%;
  }

  .header-main-sm-logo h2 {
    font-size: 17.48px;
    font-weight: 800;
    display: flex;
  }

  .header-left-icon {
    display: flex;
    width: 18px;
    height: 18px;
  }

  .header-main-sm span {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 60vw;
    max-width: 350px;
    height: 100vh;
    background: var(--menu);
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }

  /* زمانی که منو باز است */
  .sidebar-menu.active {
    transform: translateX(0);
  }

  /* استایل دکمه بستن منو */
  .close-menu {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .close-menu svg {
    width: 19px !important;
    height: 19px !important;
    object-fit: cover;
    color: var(--text-color);
  }

  .sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
  }

  .xx {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .menu-toggle {
    margin-top: 20px !important;
    width: 100%;
    display: flex;
    flex-direction: row !important;
    border-radius: 10px;
  }

  .menu-toggle h4 {
    display: flex;
    align-self: self-start;
    color: var(--text-menu);
    padding: 10px 0;
  }

  .submenu a {
    background: var(--menu-item);
    color: var(--text-color);
    width: 100%;
    text-align: start;
    padding: 8px 12px;
    border-radius: 10px;
    margin-right: 0px !important;
    margin-top: 0 !important;
  }

  .submenu {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    width: 100%;
  }

  .submenu.active {
    max-height: 500px;
    width: 100%;
  }

  .header-mobile-menu-chevron {
    display: flex !important;
    width: 15px;
    height: 15px;
    line-height: 0;
    transition: transform 0.3s ease-in-out;
  }

  .header-mobile-menu-chevron.chevron-rotate {
    transform: rotate(180deg);
    color: #FFC107;
  }

  .header-mobile-menu-chevron svg {
    width: 15px !important;
    height: 15px !important;
  }

  .text-menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }

  .text-menu p {
    display: flex;
  }

  #login {
    display: flex;
    text-align: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
    background-color: #FFC107;
    color: #ffffff;
    border-radius: 10px;
    font-size: 14px;
  }

  .sidebar-link {
    color: var(--text-color);
    text-align: start;
    width: 100%;
    padding: 10px 0;
  }


  .download-hover-box {
    top: 20px;
    left: -10px;
    height: auto;
    padding: 12px;
  }

  .download-hover-box img {
    width: 150px;
    height: 150px;
    object-fit: cover;
  }

  .download-hover-box button {
    display: flex;
    font-size: 12px;
    margin: 3px 0;
  }

  .header-main div h4 {
    font-size: 20px;
  }

}

@media screen and (max-width: 768px) {

  .header-main-container {
    padding: 0 0;
  }

  .header-main {
    border-radius: 0;
  }

  .container-header {
    gap: 0;
  }

}

@media screen and (max-width: 480px) {

  .header-main {
    gap: 32px;
  }

  .header-brand {
    font-size: 14px !important;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .header-left {
    gap: 12px !important;
  }

}