/* HaoVA Style — custom styles */

/* Banner Slider */
.hstyle-slider {
  position: relative;
  overflow: hidden;
}

.hstyle-slide {
  position: absolute !important;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.hstyle-slide--no-transition {
  transition: none !important;
}

.hstyle-slide--active {
  position: relative !important;
  opacity: 1;
  pointer-events: auto;
}

/* Dots */
.hstyle-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hstyle-dot {
  width: 12px;
  height: 12px;
  border-radius: 6px;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
  margin: 0;
  min-height: 0;
}

.hstyle-dot--active {
  background: var(--primary-color);
  width: 32px;
  border: 2px solid var(--primary-color);
}

/* Marquee */
.hstyle-marquee {
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
}

.hstyle-marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: var(--hstyle-marquee-gap, 2rem);
  animation: hstyle-marquee var(--hstyle-marquee-duration, 12s) linear infinite;
}

.hstyle-marquee--reverse .hstyle-marquee__track {
  animation-direction: reverse;
}

.hstyle-marquee--pause:hover .hstyle-marquee__track {
  animation-play-state: paused;
}

@keyframes hstyle-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Menu */

/* Mobile menu — vertical accordion */
.hstyle-menu--mobile > .hstyle-menu__list {
  flex-direction: column !important;
  width: 100%;
}

.hstyle-menu--mobile .hstyle-menu__item {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hstyle-menu--mobile .hstyle-menu__item:last-child {
  border-bottom: none;
}

.hstyle-menu--mobile .hstyle-menu__link {
  padding: 0;
}

.hstyle-menu--mobile .hstyle-menu__link:hover {
  color: black;
}

.hstyle-menu--mobile .hstyle-menu__cat-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0px;
}

.hstyle-menu--mobile .hstyle-menu__link {
  display: flex;
  align-items: center;
  /* padding: 4px 8px; */
}

.hstyle-menu--mobile .hstyle-menu__link > a,
.hstyle-menu--mobile a.hstyle-menu__link {
  flex: 1;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
  padding: 8px 16px;
}

.hstyle-menu--mobile .hstyle-menu__link--split > a:hover {
  color: black;
}

.hstyle-menu--mobile .hstyle-menu__link--split > .hstyle-menu__cat-toggle {
  width: auto;
  flex-shrink: 0;
  padding: 8px 4px;
  margin-right: 8px;
}

.hstyle-menu--mobile .hstyle-menu__cat-children {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.hstyle-menu__arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.hstyle-menu ul {
  list-style: none;
  padding: 0;
}

.hstyle-menu a {
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hstyle-menu .hstyle-menu__item {
  position: relative;
}

.hstyle-menu > .hstyle-menu__list {
  display: flex;
}

.hstyle-menu > .hstyle-menu__list > .hstyle-menu__item > .hstyle-menu__list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 4px 0;
  z-index: 9999;
}

.hstyle-menu > .hstyle-menu__list .hstyle-menu__cat-children {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.hstyle-menu > .hstyle-menu__list .hstyle-menu__link--split {
  display: flex;
  align-items: center;
  /* padding: 4px 8px; */
}

.hstyle-menu
  > .hstyle-menu__list
  > .hstyle-menu__item
  > .hstyle-menu__list
  .hstyle-menu__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
}

.hstyle-menu
  > .hstyle-menu__list
  > .hstyle-menu__item
  > .hstyle-menu__list
  > .hstyle-menu__item {
  position: static;
  margin: 0;
}

.hstyle-menu__link--split > button.hstyle-menu__cat-toggle {
  width: auto;
  flex-shrink: 0;
  padding: 8px 4px;
  margin-right: 8px;
  min-height: 0px;
  line-height: 0;
}

.hstyle-menu
  > .hstyle-menu__list
  > .hstyle-menu__item
  > .hstyle-menu__list
  > .hstyle-menu__item
  .hstyle-menu__link--split
  > a {
  flex: 1;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
  padding: 8px 16px;
}

.hstyle-menu
  > .hstyle-menu__list
  > .hstyle-menu__item
  > .hstyle-menu__list
  > .hstyle-menu__item
  a {
  flex: 1;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
  padding: 8px 16px;
}

.hstyle-menu
  > .hstyle-menu__list
  > .hstyle-menu__item
  > .hstyle-menu__list
  > .hstyle-menu__item
  a:hover {
  text-decoration: underline;
}

/* Product Search */
.hstyle-product-search {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary-color);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  padding: 0 0 0 12px;
}

.hstyle-product-search__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary-color);
}

.hstyle-product-search__input {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 10px 12px !important;
  font-size: 14px;
  min-width: 0;
}

.hstyle-product-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border: none;
  border-radius: 999px;
  margin: 3px;
  margin-bottom: 3px !important;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  color: #fafafa;
  font-size: 0.825rem;
}

.hstyle-product-search__btn:hover {
  opacity: 0.85;
}

.hstyle-product-search__btn svg {
  width: 16px;
  height: 16px;
  color: #fafafa;
}

/* Contact Buttons */
.hstyle-contact-btns {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 99999;
}

.hstyle-contact-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  flex-shrink: 0;
}

.hstyle-contact-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  color: #fff;
}

.hstyle-contact-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hstyle-contact-btns {
    bottom: 32px;
    right: 32px;
    gap: 12px;
  }

  .hstyle-contact-btn {
    width: 56px;
    height: 56px;
  }

  .hstyle-contact-btn svg {
    width: 36px;
    height: 36px;
  }
}

.hstyle-contact-btn__number {
  display: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hstyle-contact-btn--phone {
  background: #25a244;
  animation: hstyle-contact-pulse 2s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hstyle-contact-btn--phone {
    width: auto;
    border-radius: 999px;
    padding: 0 14px 0 18px;
    gap: 10px;
  }

  .hstyle-contact-btn--phone .hstyle-contact-btn__number {
    display: block;
  }
}

.hstyle-contact-btn--zalo {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.hstyle-contact-btn--zalo:hover {
  box-shadow: none;
}

.hstyle-contact-btn--zalo svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .hstyle-contact-btn--zalo svg {
    width: 56px;
    height: 56px;
  }
}

.hstyle-contact-btn--messenger {
  background: linear-gradient(135deg, #00c6ff 0%, #0068ff 100%);
}

@keyframes hstyle-contact-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(37, 162, 68, 0.45);
  }
  50% {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.25),
      0 0 0 10px rgba(37, 162, 68, 0);
  }
}
