
.site-header {
  width: 100%;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 16px -6px rgb(0 0 0 / 10%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}


.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo .logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-logo .logo-img[src$="logo.png"]:not([width]) {
  min-width: 100px;
}


.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}


.header-nav .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav .nav-menu li {
  position: relative;
}

.header-nav .nav-menu li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
  text-transform: capitalize;
}

.header-nav .nav-menu li a:hover,
.header-nav .nav-menu li.current-menu-item > a,
.header-nav .nav-menu li.current-menu-ancestor > a {
  color: var(--primary-color, #0175e9);
}

.header-nav .nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color, #0175e9);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.header-nav .nav-menu li a:hover::after,
.header-nav .nav-menu li.current-menu-item > a::after {
  width: 100%;
}


.header-cart {
  position: relative;
}

.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #f0f4f8;
  border-radius: 50%;
  text-decoration: none;
  color: #444;
  font-size: 15px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.cart-btn:hover {
  background-color: var(--primary-color, #0175e9);
  color: #ffffff;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background-color: var(--primary-color, #0175e9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #ffffff;
  pointer-events: none;
}


.header-lang {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.lang-toggle:hover {
  background-color: #f0f4f8;
}

.flag-icon {
  width: 22px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.lang-arrow {
  font-size: 10px;
  color: #666;
  transition: transform 0.25s ease;
}

.lang-toggle[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 6px;
  margin: 0;
  min-width: 148px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 200;
}

.lang-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.lang-option:hover {
  background-color: #f4f7fb;
  color: var(--primary-color, #0175e9);
}

.lang-option.lang-active {
  color: var(--primary-color, #0175e9);
}


.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-login {
  color: #333333;
  background-color: transparent;
  border: 1.5px solid #d0d6df;
}

.btn-login:hover {
  border-color: var(--primary-color, #0175e9);
  color: var(--primary-color, #0175e9);
  background-color: #f0f7ff;
}

.btn-register {
  color: #ffffff;
  background-color: var(--primary-color, #0175e9);
  border: 1.5px solid var(--primary-color, #0175e9);
}

.btn-register:hover {
  background-color: #0068d0;
  border-color: #0068d0;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 123, 243, 0.3);
  transform: translateY(-1px);
}


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.hamburger:hover {
  background-color: #f0f4f8;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #444;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    width 0.2s ease;
  transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


.mobile-header-actions {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .mobile-header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #444;
    text-decoration: none;
    font-size: 18px;
    width: 36px;
    height: 36px;
    background-color: #f0f4f8;
    border-radius: 50%;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .mobile-header-cart:hover {
    background-color: var(--primary-color, #0175e9);
    color: #ffffff;
  }

  .mobile-header-cart .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
  }
}


@media (max-width: 1024px) {
  .header-logo .logo-img {
    height: 40px;
    width: 150px;
    display: block;
    object-fit: contain;
  }

  .hamburger {
    display: flex;
  }

  .header-right {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e8ecf0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
    z-index: 999;
  }

  .header-right.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header-nav .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .header-nav .nav-menu li a {
    display: block;
    padding: 10px 4px;
    font-size: 15px;
    border-bottom: 1px solid #f0f4f8;
  }

  .header-auth {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    font-size: 14px;
  }

  .header-cart,
  .header-lang {
    display: none;
  }

  .mobile-header-actions .hamburger {
    display: flex;
  }

  .mobile-cart-row {
    display: none !important;
  }
}


.mobile-cart-row,
.mobile-lang-row {
  display: none;
}


@media (max-width: 1024px) {
  .mobile-cart-row {
    display: block;
    border-top: 1px solid #f0f4f8;
    padding-top: 4px;
    margin-top: 4px;
  }

  .mobile-cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text-color, #333);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f0f4f8;
    transition: color 0.2s ease;
  }

  .mobile-cart-link:hover {
    color: var(--primary-color, #0175e9);
  }

  .mobile-cart-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
  }

  .cart-badge--inline {
    position: static;
    border: none;
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
  }

  .mobile-lang-row {
    display: block;
    border-top: 1px solid #f0f4f8;
    padding-top: 4px;
    margin-top: 4px;
  }

  .mobile-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 4px;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f4f8;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color, #333);
    text-align: left;
  }

  .mobile-lang-label {
    flex: 1;
  }

  .mobile-lang-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.25s ease;
  }

  .mobile-lang-toggle[aria-expanded="true"] .mobile-lang-arrow {
    transform: rotate(180deg);
  }

  .mobile-lang-dropdown {
    list-style: none;
    margin: 0;
    padding: 4px 0 4px 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .mobile-lang-dropdown.is-open {
    max-height: 200px;
  }

  .mobile-lang-dropdown .lang-option {
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 14px;
  }
}



.vp-user-dropdown {
  position: relative;
  align-items: center;
}

.vp-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid #e4e8ee;
  border-radius: 8px;
  padding: 5px 10px 5px 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.vp-user-trigger:hover,
.vp-user-dropdown.is-open .vp-user-trigger {
  border-color: var(--primary-color, #0175e9);
  background-color: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(1, 117, 233, 0.08);
}

.vp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0175e9 0%, #4f9cf9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vp-avatar--lg {
  width: 40px;
  height: 40px;
}

.vp-avatar-letter {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.vp-avatar--lg .vp-avatar-letter {
  font-size: 16px;
}

.vp-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #222;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-user-arrow {
  font-size: 10px;
  color: #888;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.vp-user-dropdown.is-open .vp-user-arrow {
  transform: rotate(180deg);
}

.vp-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  min-width: 210px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 300;
}

.vp-user-dropdown.is-open .vp-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vp-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 7px;
  border: none;
  background: none;
  text-decoration: none;
  color: #333;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.vp-menu-item:hover {
  background-color: #f4f7fb;
  color: var(--primary-color, #0175e9);
}

.vp-menu-item i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  color: #999;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.vp-menu-item:hover i {
  color: var(--primary-color, #0175e9);
}

.vp-menu-item--danger {
  color: #dc2626;
}

.vp-menu-item--danger:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}

.vp-menu-item--danger i {
  color: #dc2626;
}

.vp-menu-item--danger:hover i {
  color: #b91c1c;
}

.vp-menu-divider {
  height: 1px;
  background-color: #f0f4f8;
  margin: 4px 2px;
}


@media (min-width: 1025px) {
  .mobile-user-row,
  .mobile-user-menu {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .vp-user-dropdown {
    display: none !important;
  }
}


@media (max-width: 1024px) {
  .mobile-user-row {
    align-items: center;
    gap: 12px;
    padding: 14px 4px 12px;
    border-bottom: 1px solid #f0f4f8;
    margin-bottom: 2px;
  }

  .mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .mobile-user-details strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-user-details small {
    display: block;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-user-menu {
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 4px;
    margin-bottom: 4px;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 4px;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f4f8;
    text-decoration: none;
    color: var(--text-color, #333);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
  }

  .mobile-nav-link:last-child {
    border-bottom: none;
  }

  .mobile-nav-link:hover {
    color: var(--primary-color, #0175e9);
  }

  .mobile-nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
  }

  .mobile-nav-link--danger {
    color: #dc2626;
  }

  .mobile-nav-link--danger:hover {
    color: #b91c1c;
  }

  #authButtons {
    border-top: 1px solid #f0f4f8;
    padding-top: 8px;
    margin-top: 4px;
  }
}


@media (max-width: 480px) {
  .vp-user-name {
    max-width: 80px;
  }
}
