/* TikTok Mall runtime fixes */
.header-search {
  width: 440px;
  min-width: 440px;
}

.header-search .el-autocomplete,
.header-search .el-input,
.header-search .el-input__inner {
  width: 100%;
}

.header-search .el-input__inner {
  height: 42px;
  line-height: 42px;
  padding-left: 42px;
  padding-right: 104px;
  border: 1px solid #d8dde6;
  border-radius: 6px;
  box-shadow: none;
  font-size: 14px;
}

.header-search .el-input__inner::placeholder {
  color: #a8afbc;
}

.header-search .el-button {
  right: 4px;
  width: 92px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-weight: 600;
  line-height: 34px;
}

.header-search .el-button:hover,
.header-search .el-button:focus {
  background: #222;
  color: #fff;
}

.header-search .el-icon-search {
  left: 14px;
}

.search-popper,
.el-autocomplete-suggestion.search-popper {
  width: 440px !important;
  min-width: 440px;
}

@media (max-width: 1280px) {
  .header-search {
    width: 380px;
    min-width: 380px;
  }

  .search-popper,
  .el-autocomplete-suggestion.search-popper {
    width: 380px !important;
    min-width: 380px;
  }
}

@media (max-width: 900px) {
  .header-search {
    width: min(100%, 420px);
    min-width: 0;
  }

  .header-search .el-input__inner {
    padding-right: 88px;
  }

  .header-search .el-button {
    width: 78px;
  }

  .search-popper,
  .el-autocomplete-suggestion.search-popper {
    width: calc(100vw - 32px) !important;
    min-width: 0;
  }
}

/* Home hero: real backend-driven carousel, visually aligned with tikvqu.com. */
.home.view .main-banner.app-container {
  width: 100% !important;
  max-width: none !important;
  height: clamp(300px, 26.5vw, 520px) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #000;
  position: relative;
}

.home.view .main-banner.app-container > .el-row {
  display: none !important;
}

.home.view .tk-home-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.home.view .tk-home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.home.view .tk-home-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home.view .tk-home-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.home.view .tk-home-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home.view .tk-home-dot {
  width: 28px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.home.view .tk-home-dot.is-active {
  width: 34px;
  background: #fff;
}

.product .poster {
  background: #fff;
}

.product .poster img,
.product img {
  background: #fff;
}

@media (max-width: 900px) {
  .home.view .main-banner.app-container {
    height: clamp(210px, 44vw, 360px) !important;
  }

  .home.view .tk-home-dots {
    bottom: 16px;
    transform: translateX(-50%) scale(.8);
  }
}
