/* === Layout === */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.header {
  background: #f4f1ea;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-weight: bold;
  font-size: 18px;
  color: #826f5c;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo img {
  max-width: 240px;
  height: auto;
}

/* === Navigation === */
.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav-item {
  position: relative;
  padding: 10px;
  cursor: pointer;
  color: #333;
}

.has-submenu:hover .submenu {
  display: flex;
}

/* стрелка справа от текста */
.nav-item.has-submenu {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.nav-item .arrow {
  width: 15px;
  height: 15px;
  background-color: #333;
  mask-image: url("/assets/icons/chevron-down.svg");
  mask-size: cover;
  -webkit-mask-image: url("/assets/icons/chevron-down.svg");
  -webkit-mask-size: cover;
}

/* mobile arrow override */
.mobile-nav .nav-item .arrow {
  margin-left: auto;
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}

.mobile-nav .nav-item.open .arrow {
  transform: rotate(0deg);
}


.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 100;
}

.submenu a {
  padding: 10px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.submenu a:hover {
  background: #eee;
}

/* === Mobile Navigation === */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #f4f1ea;
  padding: 10px 20px;
  border-top: 1px solid #ccc;
  width: 100%;
}

.mobile-nav .nav-item {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
}

.mobile-nav .submenu {
  display: none;
  flex-direction: column;
  padding-left: 15px;
}

.mobile-nav .nav-item.open .submenu {
  display: flex;
}

/* === Icons === */
.icon img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.currency {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.currency img {
  width: 18px;
  height: 12px;
}

.auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn {
    display: flex;
    background: transparent;
    border: 1px solid #aaa;
    padding: 10px 15px;
    font-size: 14px;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    gap: 10px;
}

.login-btn img {
  width: 14px;
  margin-right: 5px;
  vertical-align: middle;
}

/* === Burger === */
.burger {
  display: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
}

/* === Responsive === */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .header-left {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .burger {
    display: block;
  }
}