/* 货币下拉框样式 */
.global-currency-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  height: 100%;
}

.global-currency-dropdown .global-currency-btn {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: var(--config-currency-label-fontSize, 14px);
  color: var(--config-currency-color, #333);
}

.global-currency-dropdown .global-currency-btn .global-currency-arrowIcon {
  width: var(--config-currency-arrowIcon-width, 24px);
  height: var(--config-currency-arrowIcon-height, 24px);
  color: var(--config-currency-color, #333);
  transition: transform 0.2s ease;
}

.global-currency-dropdown .global-currency-btn .global-currency-btn-text {
  line-height: 1;
}

.global-currency-dropdown.open .global-currency-btn .global-currency-arrowIcon {
  transform: rotate(180deg);
}

.global-currency-dropdown .global-currency-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5556;
  min-width: 80px;
  margin-top: 4px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  list-style: none;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-direction: column;
  text-align: left;
}

.global-currency-dropdown .global-currency-dropdown-menu .global-currency-dropdown-menu-item {
  display: block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
  font-size: var(--config-currency-label-fontSize, 14px);
  line-height: 1.4;
  white-space: nowrap;
}

.global-currency-dropdown .global-currency-dropdown-menu .global-currency-dropdown-menu-item.active {
  color: #fff;
  background: var(--theme-color);
}

.global-currency-dropdown .global-currency-dropdown-menu .global-currency-dropdown-menu-item:hover {
  color: #fff;
  background: var(--theme-color);
}

/* 语言下拉框样式 */
.global-language-switcher {
  position: relative;
  display: inline-block;
  height: 100%;
}

.global-language-switcher .global-language-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--config-lang-label-fontSize, 14px);
  font-weight: 500;
  color: var(--config-lang-color, #333);
  transition: all 0.25s ease;
  height: 100%;
}

.global-language-switcher .global-language-icon {
  width: var(--config-lang-icon-width, 15px);
  height: var(--config-lang-icon-height, 15px);
}

.global-language-switcher .global-language-btn .global-language-arrowIcon {
  width: var(--config-lang-arrowIcon-width, 24px);
  height: var(--config-lang-arrowIcon-height, 24px);
}

.global-language-switcher.active .global-language-btn .global-language-arrowIcon {
  transform: rotate(180deg);
}

.global-language-switcher .global-language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s ease;
  z-index: 5556;
  overflow: hidden;
}

.global-language-switcher.active .global-language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.global-language-switcher .global-language-dropdown .global-language-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: var(--config-lang-label-fontSize, 14px);
  color: #555;
  transition: background 0.2s;
}

.global-language-switcher .global-language-dropdown .global-language-dropdown-item:hover {
  background: var(--theme-color);
  color: #fff;
}

.global-language-switcher .global-language-dropdown .global-language-dropdown-item.active {
  background: var(--theme-color);
  color: #fff;
}

/* 用户下拉框样式 */
.public-select-heard-box .select-userInfo-list {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  z-index: 9999;
  /*max-height: 450px;*/
  background-color: #fff;
  width: 245px;
  top: calc(100%);
  right: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  border: 1px solid #D7E2ED;
  border-top: 2px solid var(--theme-color);
  padding: 10px 16px 10px 16px;
  border-radius: 6px;
  color: #000;
  transition: ease-in-out 0.3s;
}

.select-userInfo-list .sign-btn {
  background-color: var(--theme-color);
  border-radius: 25px;
  color: #fff;
  padding: 8px 30px 8px 30px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
  cursor: pointer;
}

.select-userInfo-list .text {
  /* text-align: center; */
  font-size: 12px;
  width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  /* margin-top: 10px; */
}

.select-userInfo-list .text-tips {
  text-align: center;
  font-size: 12px;
  margin-top: 10px;
}

.select-userInfo-list .signIn-info {
  font-size: 12px;
  color: #888888;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
  white-space: pre-wrap;
}

.select-userInfo-list .signIn-info .blue-text {
  color: #0d79de;
  text-decoration: underline;
  cursor: pointer;
}

.select-userInfo-list .list-info {
  color: #555555;
  font-size: 14px;
  margin-top: 10px;
}

.select-userInfo-list .list-info div {
  cursor: pointer;
  padding: 5px 5px 5px 0px;

}

.select-userInfo-list .list-info div a:hover {
  font-weight: 600 !important;
}

.select-userInfo-list .list-info div i {
  font-size: 14px;
  margin-right: 5px;
}

.select-userInfo-list .icon-div span {
  padding: 10px 21px 10px 21px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  cursor: pointer;
}

.select-userInfo-list .icon-div span .img-card {
  width: 20px;
  height: 20px;
  overflow: hidden;
}

.select-userInfo-list .user-info-peronsen {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  padding-bottom: 15px;
  padding-top: 10px;
  border-bottom: 1px dashed #ccc;
}

.select-userInfo-list .user-info-peronsen .title {
  width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;

}

.select-userInfo-list .user-info-peronsen .img-box {
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 50%;
  background-color: #fae268;
  overflow: hidden;
  object-fit: cover;
  display: block;
}

.select-userInfo-list .login-out {
  padding-top: 15px;
  padding-bottom: 15px;
  border-top: 1px dashed #ccc;
  margin-top: 10px;
}

#globalUserBox img {
  width: var(--theme-userImg-width, 26px);
  height: var(--theme-userImg-width, 26px);
  border-radius: var(--theme-userImg-borderRadius, 50%);
}

#globalUserBox #globalUserName {
  color: var(--theme-userName, #333);
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 26px;
}

.userinfo .icon-profile-picture {
  font-size: var(--theme-userImg-width, 26px);
}

.userinfo .SigninDiv {
  color: var(--theme-userName, #333);
}

.userinfo #logout_btn,
.userinfo .sign-box {
  width: 100%;
}

/* 收藏下拉框样式 */
.public-select-heard-box .select-favorite-list {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  z-index: 9999;
  background-color: #fff;
  width: 345px;
  top: calc(100% + 0px);
  right: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  border: 1px solid #D7E2ED;
  border-top: 2px solid var(--theme-color);
  /* padding: 10px 6px 10px 16px; */
  border-radius: 6px;
  color: #000;
  transition: ease-in-out 0.3s;
  text-align: left;
}

.select-favorite-list .favorite-title {
  font-size: 16px;
  font-weight: 600;
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

.select-favorite-list .favorite-list {
  padding: 15px 15px 0 15px;
}

.select-favorite-list .favorite-no-data {
  padding: 15px;
}

.select-favorite-list .favorite-list .img-box {
  width: 55px;
  height: 55px;
  border: 1px solid #ccc;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: #fff;
  overflow: hidden;
}

.select-favorite-list .name {
  font-weight: 600;
  width: 243px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 10px;
}

.select-favorite-list .name a {
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.select-favorite-list .name:hover {
  text-decoration: underline;
}

.select-favorite-list .name span {
  font-size: 13px;
  color: #555555;
}

.select-favorite-list .favorite-list-item {
  margin-bottom: 15px;
}
.select-favorite-list .favorite-list-item .cart_add_btn_qj {
  display: var(--cart-display,none) !important;
}
.select-favorite-list .model-name {
  width: 160px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* 购物车下拉框样式 */
.public-select-heard-box .select-cart-list {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  z-index: 9999;
  background-color: #fff;
  width: 345px;
  top: calc(100% + 0px);
  right: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  border: 1px solid #D7E2ED;
  border-top: 2px solid var(--theme-color);
  border-radius: 6px;
  color: #000;
  transition: ease-in-out 0.3s;
  text-align: left;
}

.select-cart-list .cart-title {
  font-size: 16px;
  font-weight: 600;
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

.select-cart-list .cart-list {
  padding: 15px 15px 0 15px;
}

.select-cart-list .cart-no-data {
  padding: 15px;
}

.select-cart-list .cart-list .img-box {
  width: 55px;
  height: 55px;
  border: 1px solid #ccc;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: #fff;
  overflow: hidden;
}

.select-cart-list .name {
  font-weight: 600;
  width: 243px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 10px;
}

.select-cart-list .name a {
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.select-cart-list .name:hover {
  text-decoration: underline;
}

.select-cart-list .name span {
  font-size: 13px;
  color: #555555;
}

.select-cart-list .cart-list-item {
  margin-bottom: 15px;
}

.select-cart-list .model-name {
  width: 160px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.select-cart-list .cart-btn-go {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  box-shadow: 0 -4px 6px -2px rgba(0, 0, 0, 0.1);
  padding: 5px 20px 5px 20px;
}

.select-cart-list .btn {
  width: 100%;
  background-color: var(--theme-color);
  border-radius: 25px;
  color: #fff;
}


/* 分类下拉样式 */
.global-category-box {
  position: relative;
}
.global-category-list-box {
  align-items: flex-start;
  position: absolute;
  top: var(--theme-category-top,100%);
  left: 0px;
  z-index: 999;
  transform: scaleY(0);
  display: none;
}
.global-category-list {
  max-height: calc(100vh - var(--theme-header-height,200px) - 50px);
  overflow: auto;
  background: #fff;
  box-shadow: 0px 0px 10px 0px #00000012;
  padding: 15px 0;
  border-radius: 0px 0px 5px 5px;
  transform-origin: top center;
  width: 300px;
  transition: all 500ms ease;
}
.global-category-list .global-category-jump {
  cursor: pointer;
}
/* 一级分类 */
.global-category-box:hover .global-category-list-box {
  transform: scaleY(1);
}

/* 二级、三级、四级…… */
.global-category-box .global-category-list-box .global-category-list:not(.global-category-list-level1) {
  display: none;
  transform: none;
}

.global-category-list .global-category-item {
  position: relative;
  display: block;
}
.global-category-list .global-category-item:hover{
  --global-category-hover-color:#fff;
  background-color: var(--theme-color);
  border-radius: 8px;
}
.global-category-list .global-category-item:hover a {
  color: #fff !important;
}

.global-category-list .global-category-item>a {
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 1;
  color: var(--title-color);
  padding: 15px 20px 15px 10px;
  border-radius: 50px;
  z-index: 1;
  transition: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.global-category-list .has-dropdown:before {
  font-size: 18px;
  position: absolute;
  content: "\e600";
  font-family: "iconfont" !important;
  top: 15px;
  right: 10px;
  font-weight: 400;
  color: var(--global-category-hover-color,#333);
}