:root {
  --th-header-height: 128px;
}

.th-header {
  --th-bg: rgba(86, 58, 31, 0.85);
  --th-bg-solid: #6b4626;
  --th-bg-soft: #8b6749;
  --th-surface: rgba(255, 255, 255, 0.06);
  --th-border: rgba(255, 255, 255, 0.08);
  --th-text: #eeddcc;
  --th-text-muted: #c5c5c5;
  --th-accent: #8b6749;
  --th-accent-strong: #c89a6d;
  --th-shell-width: 1440px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  color: var(--th-text);
}

.th-header a,
.th-header button {
  color: inherit;
  position: relative;
}

.th-header--single-product {
  --th-bg: var(--th-bg-solid);
}

.th-header__shell {
  max-width: var(--th-shell-width);
  margin: 0 auto;
  background: var(--th-bg);
  border-radius: 0 0 32px 32px;
  backdrop-filter: blur(4px);
  opacity: 0.8;
  transition:
    background-color 0.25s ease,
    opacity 0.25s ease;
}

.th-header.is-scrolled .th-header__shell {
  background: var(--th-bg-solid);
  opacity: 1;
}
body.single-product header .th-header__shell,
body.woocommerce-cart header .th-header__shell,
body.woocommerce-checkout header .th-header__shell,
body.tinvwl-theme-style header .th-header__shell {
  opacity: 1;
}

.th-header__bar {
  padding: 0;
}

.th-header__pay-later {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  line-height: normal;
  color: var(--th-text-muted);
}

.th-header__pay-later-link {
  text-decoration: underline;
}

.th-header__main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px 15px;
}

.th-header__mobile {
  display: none;
}

.th-header__mobile-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.th-header__mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-header__column {
  min-width: 0;
}

.th-header__column--left,
.th-header__column--right {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: 20px;
}

.th-header__column--center {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.th-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.th-header__icon-svg {
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.th-header__icon-svg svg {
  width: 100%;
  height: 100%;
}

.th-header__nav {
  min-width: 0;
}

.th-header__column--center .custom-logo-link,
.th-mobile-panel__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.th-header__column--center .custom-logo,
.th-mobile-panel__brand .custom-logo {
  width: auto;
  max-width: 100%;
}
.th-header__action-row--bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.th-header__action-row--top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 40px;
}

.th-header__actions {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
}

.th-header__utility-icons,
.th-header__contact-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.th-header__contact-list {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.th-header__utility-icons--mobile {
  display: none;
}

.th-header__search {
  position: relative;
  align-items: center;
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    width 0.2s ease,
    opacity 0.2s ease;
}

.th-header__search[hidden],
.th-header__search-results[hidden] {
  display: none;
}

.th-header__action-row--top.is-search-open .th-header__search {
  flex-basis: 280px;
  width: 280px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
}

.th-header__action-row--top.is-search-open .th-header__search-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.th-header__search-input {
  width: 100%;
  height: 40px;
  border: 0;
  border-bottom: 1px solid rgba(238, 221, 204, 0.42);
  background: transparent;
  color: var(--th-text);
  padding: 0 40px 0 4px;
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.th-header__search-input::placeholder {
  color: rgba(238, 221, 204, 0.62);
}

.th-header__search-input::-webkit-search-cancel-button,
.th-header__search-input::-webkit-search-decoration,
.th-header__search-input::-webkit-search-results-button,
.th-header__search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.th-header__search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 24px;
  background: #f6eee6;
  border: 1px solid rgba(107, 70, 38, 0.14);
  box-shadow: 0 18px 40px rgba(59, 35, 16, 0.14);
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: #8b6749 transparent;
}

.th-header__search-results::-webkit-scrollbar {
  width: 8px;
}

.th-header__search-results::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.th-header__search-results::-webkit-scrollbar-thumb {
  background: rgba(139, 103, 73, 0.9);
  border-radius: 999px;
  border: 2px solid #f6eee6;
}

.th-header__search-results::-webkit-scrollbar-thumb:hover {
  background: #6b4626;
}

.th-header__search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.th-header__search-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.th-header__search-link:hover,
.th-header__search-link:focus-visible {
  background: rgba(139, 103, 73, 0.08);
  outline: none;
}

.th-header__search-media {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #efe4d8;
}

.th-header__search-media--placeholder {
  background: linear-gradient(
    135deg,
    rgba(139, 103, 73, 0.18),
    rgba(139, 103, 73, 0.06)
  );
}

.th-header__search-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-header__search-content {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.th-header__search-title {
  color: #5c3d24;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 500;
}

.th-header__search-meta,
.th-header__search-empty {
  color: #8a6a4f;
  font-size: 14px;
  line-height: 1.3;
}

.th-header__search-empty {
  padding: 16px 14px;
}

.th-header__search-loading {
  padding: 16px 14px;
  color: #8a6a4f;
  font-size: 14px;
}

.th-header__search-icon--close {
  display: none;
}

.th-header__utility-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--th-accent);
  color: #faf4ef;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
}

.th-header__utility-button--has-count {
  position: relative;
}

.th-header__utility-badge--cart {
  top: -2px;
  right: -8px;
}

.th-header__action-row--top.is-search-open .th-header__search-icon--search {
  display: none;
}

.th-header__action-row--top.is-search-open .th-header__search-icon--close {
  display: inline-flex;
}

.th-header__utility-button,
.th-header__contact-button,
.th-mobile-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--th-text);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.th-header__contact-button {
  background: var(--th-bg-soft);
}

.th-header__utility-button:hover,
.th-header__contact-button:hover,
.th-header__cta:hover,
.th-header__secondary-cta:hover,
.th-mobile-panel__close:hover {
  transform: translateY(-1px);
}

.th-header__cta,
.th-header__secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600!important;
  line-height: 1;
}

.th-header__cta {
  background: var(--th-accent);
  color: #faf4ef;
}
.th-header__cta:hover {
  box-shadow: 4px 4px 15px 0 rgba(0, 0, 0, 0.1);
}

.th-header__secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--th-text);
  background: transparent;
}

.th-nav-desktop__list,
.th-nav-mobile__list,
.th-nav-mobile__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.th-nav-desktop__list {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.th-nav-desktop__item {
  position: relative;
}

.th-nav-desktop__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eeddcc !important;
  text-decoration: none;
  font-size: 15px!important;
  line-height: 1.2;
  transition: color 0.2s ease;
  font-weight: 400!important;
}

.th-nav-desktop__link:hover,
.th-nav-desktop__item:hover > .th-nav-desktop__link {
  color: var(--th-text);
}

.th-nav-desktop__chevron {
  display: inline-flex;
  width: 14px;
  height: 14px;
}

.th-nav-desktop__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(106, 71, 40, 0.98);
  border: 1px solid var(--th-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.th-nav-desktop__item:hover .th-nav-desktop__dropdown,
.th-nav-desktop__item:focus-within .th-nav-desktop__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.th-nav-desktop__submenu {
  display: grid;
  gap: 12px;
  list-style: none;
  padding-left: 0;
}

.th-nav-desktop__submenu-item {
  position: relative;
}

.th-nav-desktop__submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 400!important;
  line-height: 1.3;
}

.th-nav-desktop__submenu-link:hover {
  color: var(--th-text);
}

.th-nav-desktop__submenu-panel {
  position: absolute;
  top: -16px;
  left: calc(100% + 12px);
  min-width: 240px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(106, 71, 40, 0.98);
  border: 1px solid var(--th-border);
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.th-nav-desktop__submenu-item:hover > .th-nav-desktop__submenu-panel,
.th-nav-desktop__submenu-item:focus-within > .th-nav-desktop__submenu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.th-mobile-panel {
  display: none;
}

.admin-bar .th-header {
  top: 32px;
}

body.th-menu-open {
  overflow: hidden;
}

.all-treatments-page__hero-switcher[data-ready="false"] {
  visibility: hidden;
}

body.th-page-has-hero .vb-hero:first-child,
body.th-page-has-hero .at-hero:first-child,
body.th-page-has-hero .all-treatments-page__hero-switcher:first-child {
  margin-top: calc(-1 * var(--th-header-height));
}

body.th-page-has-hero .vb-hero.th-header-hero,
body.th-page-has-hero .hh-home-hero.th-header-hero {
  margin-top: calc(-1 * var(--th-header-height));
}

body.th-page-has-hero .vb-hero:first-child {
  padding-top: calc(var(--th-header-height) + 32px);
}

body.th-page-has-hero .all-treatments-page__hero-switcher:first-child .vb-hero {
  padding-top: calc(var(--th-header-height) + 32px);
}

body.th-page-has-hero .vb-hero.th-header-hero {
  padding-top: calc(var(--th-header-height) + 32px);
}

body.th-page-has-hero .at-hero:first-child .at-hero__inner {
  padding-top: calc(210px + var(--th-header-height));
}

body.th-page-has-hero
  .all-treatments-page__hero-switcher:first-child
  .at-hero
  .at-hero__inner {
  padding-top: calc(210px + var(--th-header-height));
}

body.th-page-has-hero .at-hero.th-header-hero .at-hero__inner {
  padding-top: calc(210px + var(--th-header-height));
}

body:not(.th-page-has-hero) main {
  padding-top: 40px;
}

@media (max-width: 1200px) and (min-width: 1025px) {
  :root {
    --th-header-height: 118px;
  }

  .th-header__main {
    gap: 18px;
    padding: 10px 16px 15px;
  }

  .th-header__column--left,
  .th-header__column--right {
    gap: 14px;
  }

  .th-header__column--center .custom-logo-link {
    max-width: 170px;
  }

  .th-header__column--center .custom-logo {
    max-height: 86px;
  }

  .th-header__pay-later {
    gap: 8px;
    font-size: 14px;
  }

  .th-nav-desktop__list {
    gap: 12px;
  }

  .th-nav-desktop__link {
    font-size: 14px;
  }

  .th-header__actions {
    gap: 10px;
  }

  .th-header__action-row--top {
    gap: 10px;
  }

  .th-header__utility-icons,
  .th-header__contact-list {
    gap: 6px;
  }

  .th-header__utility-button,
  .th-header__contact-button {
    width: 36px;
    height: 36px;
  }

  .th-header__icon-svg {
    width: 18px;
    height: 18px;
  }

  .th-header__utility-badge {
    top: -3px;
    right: -5px;
  }

  .th-header__utility-badge--cart {
    right: -7px;
  }

  .th-header__cta,
  .th-header__secondary-cta {
    padding: 9px 16px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .th-header {
    padding: 0;
  }

  .th-header__shell {
    border-radius: 0 0 24px 24px;
  }

  .th-header__main--desktop {
    display: none;
  }

  .th-header__mobile {
    display: block;
  }

  .th-header__bar {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 15px 0px 15px;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      max-height 0.2s ease,
      padding 0.2s ease;
  }

  .th-header__pay-later {
    justify-content: center;
    width: 100%;
    font-size: 13px;
    gap: 8px;
    align-items: center;
    line-height: 1.2;
  }

  .th-header__pay-later-logo {
    flex: 0 0 auto;
    width: 39px;
    height: 22px;
  }

  .th-header__mobile-main {
    min-height: 0;
    padding: 0 16px 18px;
    gap: 12px;
    align-items: center;
  }

  .th-header__burger {
    display: inline-flex;
    justify-self: start;
  }

  .th-header__nav--desktop,
  .th-header__contact-list--desktop,
  .th-header__cta--desktop,
  .th-header__utility-icons--desktop,
  .th-header__search {
    display: none;
  }

  .th-header__utility-icons--mobile {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    justify-self: end;
  }

  .th-header__mobile-brand .custom-logo-link {
    justify-self: center;
    align-self: center;
  }

  .th-mobile-panel {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(26, 15, 8, 0.18);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .th-mobile-panel.is-open,
  .th-mobile-panel.is-closing {
    visibility: visible;
    pointer-events: auto;
  }

  .th-mobile-panel.is-open {
    opacity: 1;
  }

  .th-mobile-panel__dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #6b4626;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .th-mobile-panel.is-open .th-mobile-panel__dialog {
    transform: translateX(0);
  }

  .th-mobile-panel.is-closing .th-mobile-panel__dialog {
    transform: translateX(-100%);
  }

  .th-mobile-panel__header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 16px 14px 10px;
    min-height: 72px;
  }

  .th-mobile-panel__brand {
    display: flex;
    justify-content: center;
  }

  .th-mobile-panel__utility {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }

  .th-mobile-panel__utility .th-header__utility-icons {
    gap: 4px;
  }

  .th-mobile-panel__body {
    display: grid;
    gap: 24px;
    padding: 0 14px 28px;
  }

  .th-nav-mobile__list {
    display: grid;
    gap: 6px;
  }

  .th-nav-mobile__list > .th-nav-mobile__item {
    padding: 15px 15px 15px;
  }

  .th-nav-mobile__list > .th-nav-mobile__item.has-children,
  .th-nav-mobile__submenu > .th-nav-mobile__item.has-children {
    border-radius: 16px;
  }

  .th-nav-mobile__submenu > .th-nav-mobile__item {
    padding: 10px 0 0;
  }

  .th-nav-mobile__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 24px;
  }
  .th-nav-mobile__submenu-wrap {
    padding: 15px 0px 0px 0px;
  }

  .th-nav-mobile__link,
  .th-nav-mobile__submenu-link {
    display: block;
    color: var(--th-text);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: 0;
    flex: 1;
  }

  .th-nav-mobile__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .th-nav-mobile__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  .th-nav-mobile__toggle-icon--minus {
    display: none;
    transform: translateY(-1px);
  }

  .th-nav-mobile__item.is-open .th-nav-mobile__toggle-icon--plus {
    display: none;
  }

  .th-nav-mobile__item.is-open .th-nav-mobile__toggle-icon--minus {
    display: inline-flex;
  }

  .th-nav-mobile__submenu {
    display: grid;
    gap: 10px;
    padding: 0px 0 0px 20px;
    border-radius: 0;
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .th-nav-mobile__submenu .th-nav-mobile__link,
  .th-nav-mobile__submenu .th-nav-mobile__submenu-link {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
  }

  .th-nav-mobile__submenu .th-nav-mobile__toggle {
    color: rgba(255, 255, 255, 0.78);
  }

  .th-nav-mobile__submenu
    .th-nav-mobile__item.is-open
    > .th-nav-mobile__row
    .th-nav-mobile__toggle {
    color: var(--th-text);
  }

  .th-mobile-panel__cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
  }

  .th-header__cta--mobile,
  .th-header__secondary-cta {
    min-width: 156px;
    padding: 10px 22px;
    font-size: 15px;
  }

  .th-header__contact-list--mobile {
    justify-content: flex-start;
    gap: 10px;
  }

  .th-header.is-menu-open .th-header__bar {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }

  .th-header.is-menu-open .th-header__mobile-main {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.th-page-has-hero .vb-hero:first-child,
  body.th-page-has-hero .at-hero:first-child,
  body.th-page-has-hero .all-treatments-page__hero-switcher:first-child {
    margin-top: calc(-1 * var(--th-header-height));
  }

  body.th-page-has-hero .vb-hero.th-header-hero,
  body.th-page-has-hero .hh-home-hero.th-header-hero {
    margin-top: calc(-1 * var(--th-header-height));
  }

  body.th-page-has-hero .vb-hero:first-child {
    padding-top: calc(var(--th-header-height) + 20px);
  }

  body.th-page-has-hero
    .all-treatments-page__hero-switcher:first-child
    .vb-hero {
    padding-top: calc(var(--th-header-height) + 20px);
  }

  body.th-page-has-hero .vb-hero.th-header-hero {
    padding-top: calc(var(--th-header-height) + 20px);
  }

  body.th-page-has-hero .at-hero:first-child .at-hero__inner {
    padding-top: calc(180px + var(--th-header-height));
  }

  body.th-page-has-hero
    .all-treatments-page__hero-switcher:first-child
    .at-hero
    .at-hero__inner {
    padding-top: calc(180px + var(--th-header-height));
  }

  body.th-page-has-hero .at-hero.th-header-hero .at-hero__inner {
    padding-top: calc(180px + var(--th-header-height));
  }

  body:not(.th-page-has-hero) main {
    padding-top: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --th-header-height: 98px;
  }

  .th-header__bar {
    padding: 11px 0px 20px;
  }

  .th-header__pay-later {
    font-size: 12px;
    gap: 6px;
    text-align: center;
    flex-wrap: wrap;
  }

  .th-header__pay-later-badge {
    min-height: 18px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .th-header__mobile-main {
    padding: 0 14px 16px;
    gap: 10px 8px;
  }

  .th-header__mobile-brand .custom-logo-link,
  .th-mobile-panel__brand .custom-logo-link {
    max-width: 116px;
  }

  .th-header__mobile-brand .custom-logo,
  .th-mobile-panel__brand .custom-logo {
    width: auto;
    max-width: 116px;
    max-height: 46px;
  }

  .th-header__actions {
    gap: 8px;
  }

  .th-header__utility-icons--mobile {
    gap: 0;
  }

  .th-header__utility-button,
  .th-mobile-panel__close,
  .th-header__contact-button {
    width: 36px;
    height: 36px;
  }

  .th-nav-mobile__link {
    font-size: 16px;
  }

  .th-nav-mobile__submenu-link {
    font-size: 14px;
  }

  .th-header__cta--mobile,
  .th-header__secondary-cta {
    width: auto;
    max-width: none;
  }
}
