.main-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  /* User & Actions */
}
.main-header.is-active{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 80;
}
.main-header .ctnr {
  --container: 1260px
}

.main-header__list {
  gap: 15px;
}

.main-header__list .has-sub>a {
  position: relative;
  padding-right: 15px;
}

.main-header .icon-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.main-header .icon-arrow:after {
  content: "";
  width: 13px;
  height: 13px;
  mask-image: url(../images/icon-down-black.png);
  mask-size: 14px;
  mask-position: center;
  mask-repeat: no-repeat;
  background-color: #888;
  display: block;
}

.main-header__item {
  position: relative;
}

.main-header__link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.main-header__link::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bg-linear);
  opacity: .7;
  z-index: -1;
  transition: all 0.3s;
}

/* .main-header__link:hover::after {
  opacity: 1;
  width: 100%;
} */

.main-header__actions {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 20px;
}

.main-header__divider {
  width: 1px;
  height: 20px;
  background-color: #ccc;
}

.main-header__user-login {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  max-width: 118px;
}

.main-header__user-login .icon-user {
  line-height: 0;
}

.main-header__user-login .icon-user img,
.main-header__user-login .icon-user svg {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.main-header__user-login span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-header__btn {
  white-space: nowrap;
}

.main-header__btn--primary {
  background: var(--bg-linear);
  color: #fff;
  border: 1px solid transparent;
  padding: 6px 13px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;

  gap: 8px;
  transition: opacity 0.3s;
}

.main-header__btn--primary:hover {
  color: white;
}

.main-header__btn--primary[aria-label="Đăng tin"] {
  min-width: 120px;
}

.main-header__btn--primary .icon-edit {
  line-height: 0;
}

.main-header__btn--primary .icon-edit img,
.main-header__btn--primary .icon-edit svg {
  width: 22px;
  object-fit: contain;
}

@media (min-width: 1200px) and (max-width: 1400px) {
  .main-header .ctnr {
    max-width: 1280px;
  }
}

@media (min-width: 1200px) {
  .main-header__list {
    justify-content: right;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-header__list li:hover>ul {
    display: block;
  }

  .main-header__item>a {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .main-header__item>ul ul {
    left: 100%;
    top: 0;
  }

  .main-header__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    width: max-content;
    z-index: 999;
    border-radius: 4px;
    background: white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1215686275);
  }

  .main-header__item>.main-header__sub::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 10px;
    width: 15px;
    height: 10px;
    background: var(--bg-linear);
    opacity: .7;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1215686275);
    z-index: 999;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  }

  .main-header__sub li {}

  .main-header__sub-item:hover {
    background: #F2F2F2;
  }

  .main-header__sub-link {
    display: block;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-header__sub-item {
    padding: 4px 20px;
    position: relative;

  }

  .main-header__sub-item.has-sub>a .icon-arrow::after {
    transform: rotate(-90deg);
  }

  .main-header__btn--primary:hover {
    opacity: 0.9;
  }
  .main-header__link img{
    display: none;
  }
}

@media (max-width: 1200px) {
  .main-header__collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100%;
    background: white;
    z-index: 999;
    overflow-y: auto;
    padding: 10px;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s;
  }

  .main-header__collapse.is-open {
    opacity: 1;
    transform: translateX(0);
  }

  .main-header__collapse-close {
    position: absolute;
    right: 12px;
    top: 7px;
    padding: 0;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .main-header__collapse-logo img {
    max-width: 150px;
  }

  .main-header__list li.has-sub>a {
    padding-right: 30px;
  }

  .main-header__list li.has-sub>a .icon-arrow {
    width: 24px;
    height: 24px;
    cursor: pointer;
    top: 0;
    transform: translateY(0);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-header__list li.is-open>a {
    color: red;
  }

  .main-header__list li.is-open>a>.icon-arrow::after {
    transform: rotate(180deg);
  }

  .main-header__list a {
    display: block;
  }

  .main-header__item:not(:last-child) {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #efefef;
  }

  .main-header__sub {
    margin-left: 15px;
    display: none;
  }

  .main-header__sub li {
    list-style: disc;
  }

  .main-header__divider {
    display: none;
  }

  .main-header__btn.toggle {
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
  }

  .main-header__btn.toggle svg {
    width: 25px;
    height: 25px;
  }

  .main-header__btn.toggle svg path {
    stroke: #eab33c;
  }

  html.is-locked .main-header__overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  .main-header__list a.main-header__link{
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .main-header__link .icon{
    line-height: 0;
    width: 30px;
    height: 30px;
    display: inline-block;
  }
  .main-header__link img{
    width: 30px;
    height: 30px;
    object-fit: contain;
  }
}

@media (max-width: 640px) {

  .main-header__btn--primary .icon-edit img,
  .main-header__btn--primary .icon-edit svg {
    width: 16px;
  }

  .main-header__btn--primary[aria-label="Đăng tin"] {
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .main-header__actions {
    gap: 5px;
    font-size: 12px;
  }

  .main-header__btn--primary {
    padding: 4px 13px;
  }
}

/* Navigation List */
/* Icons (Placeholder styling) */
/*# sourceMappingURL=maps/header.css.map */