/*
 * SawaGift homepage hero overlay — simple
 * Transparent header over hero. No desktop-column leaks on mobile.
 * Bottom toolbar (.wd-toolbar) is never styled.
 */

body.home {
  --sawa-glass: rgba(20, 16, 28, 0.34);
  --sawa-brd: rgba(255, 255, 255, 0.3);
  --sawa-hero-h: 575px;
  --sawa-hero-h-sm: 500px;
}

/* Header sits on hero */
body.home .whb-header {
  position: absolute !important;
  inset-inline: 0;
  top: 0;
  z-index: 80;
  width: 100%;
  height: auto !important;
  padding-top: 12px;
  padding-inline: 10px;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.home .whb-main-header,
body.home .whb-main-header .whb-row,
body.home .whb-general-header,
body.home .whb-header-bottom {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
}

body.home .whb-border-fullwidth:before,
body.home .whb-border-fullwidth:after {
  display: none !important;
}

body.home .whb-general-header,
body.home .whb-header-bottom {
  position: relative;
  z-index: 2;
}

body.home .whb-general-header .whb-col-center,
body.home .whb-general-header .whb-mobile-center {
  top: 50% !important;
}

body.home .whb-header-bottom .whb-col-center {
  display: none !important;
}

body.home .whb-header .whb-color-light,
body.home .whb-header .whb-color-light a,
body.home .whb-header .whb-color-light .nav-link-text {
  color: #fff !important;
}

body.home .whb-header .wd-tools-icon:before,
body.home .whb-header .wd-tools-icon:after {
  color: #fff !important;
}

/* Glass chips — header only */
body.home .whb-header .wd-header-my-account > a,
body.home .whb-header .wd-header-wishlist > a,
body.home .whb-header .wd-header-cart > a,
body.home .whb-header .wd-header-mobile-nav > a,
body.home .whb-header .wd-header-search > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: var(--sawa-glass) !important;
  border: 1px solid var(--sawa-brd) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

body.home .whb-header .wd-tools-text {
  display: none !important;
}

/* Language: flag chip inside frame */
body.home .whb-header .trp-shortcode-switcher__wrapper {
  display: inline-flex !important;
  max-width: 64px;
  margin: 0 !important;
  --bg: transparent !important;
  --bg-hover: transparent !important;
  --border: 0 !important;
  --border-color: transparent !important;
}

body.home .whb-header .trp-language-switcher.trp-shortcode-overlay,
body.home .whb-header .trp-language-switcher.trp-ls-dropdown {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  max-width: 64px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home .whb-header .trp-current-language-item__wrapper {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 40px;
  min-height: 40px;
  max-width: 44px;
  padding: 6px !important;
  border-radius: 999px !important;
  background: var(--sawa-glass) !important;
  border: 1px solid var(--sawa-brd) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

body.home .whb-header .trp-language-item-name,
body.home .whb-header .trp-ls-name,
body.home .whb-header .trp-language-name {
  display: none !important;
}

body.home .whb-header .trp-flag-image {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  object-fit: cover;
}

/* Direct toggle: no arrow, no dropdown list, no hover open UI */
body.home .whb-header .trp-shortcode-arrow,
body.home .whb-header .trp-switcher-dropdown-list,
body.home .whb-header .trp-language-switcher .trp-switcher-dropdown-list,
body.home .whb-header .trp-language-switcher.is-open .trp-switcher-dropdown-list {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.home .whb-header .trp-language-switcher.trp-shortcode-anchor {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.home .whb-header .trp-language-switcher.is-open .trp-current-language-item__wrapper {
  background: var(--sawa-glass) !important;
}

/* Currency chip (header only) */
body.home .whb-header .woocommerce-currency-switcher-form .select2-selection,
body.home .whb-header .woocommerce-currency-switcher {
  background: var(--sawa-glass) !important;
  border: 1px solid var(--sawa-brd) !important;
  border-radius: 999px !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.home .whb-header .select2-selection__rendered {
  color: #fff !important;
}

body.home .whb-header-bottom .wd-nav-main > li > a {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  font-weight: 600;
}

/* Search CLOSED — hide always-open mobile form everywhere */
body.home .wd-header-search-form-mobile {
  display: none !important;
}

/* Social — simple small icons at bottom of hero */
body.home .whb-header-bottom .whb-col-right {
  position: absolute !important;
  top: calc(var(--sawa-hero-h) - 78px) !important;
  inset-inline-start: 14px !important;
  inset-inline-end: auto !important;
  width: auto !important;
  margin: 0 !important;
  z-index: 7;
}

body.home .whb-header-bottom .wd-social-icons {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px;
  margin: 0 !important;
  background: transparent !important;
}

body.home .whb-header-bottom .wd-social-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home .whb-header-bottom .wd-social-icon .wd-icon:before {
  color: #fff !important;
  font-size: 14px !important;
}

body.home .whb-sticked .whb-header-bottom .whb-col-right,
body.home .whb-clone-header .whb-header-bottom .whb-col-right {
  display: none !important;
}

body.home .whb-sticked .whb-main-header,
body.home .whb-clone-header .whb-main-header {
  background: rgba(12, 10, 18, 0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Shop Now below header */
body.home #slider-83 {
  position: relative;
  z-index: 1;
}

body.home #slider-83 .wd-slide-container {
  --wd-align-items: flex-end !important;
  --wd-justify-content: center !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding-top: 110px !important;
  padding-bottom: 100px !important;
  box-sizing: border-box !important;
}

body.home #slider-83 .wd-button-wrapper {
  text-align: center !important;
  width: 100% !important;
  transform: none !important;
}

body.home #slider-83 .wd-button-wrapper .btn {
  transform: none !important;
  margin-inline: auto !important;
}

/* ========== DESKTOP ========== */
@media (min-width: 1025px) {
  body.home .whb-general-header .whb-col-left,
  body.home .whb-general-header .whb-col-right,
  body.home .whb-header-bottom .whb-col-left {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.home .whb-header-bottom .whb-col-left > .wd-header-mobile-nav {
    display: inline-flex !important; /* keep menu button visible on desktop */
  }

  body.home .whb-header-bottom .whb-col-left > .wd-header-mobile-nav .wd-tools-text {
    display: none !important;
  }

  body.home .whb-header-bottom .whb-col-right {
    display: flex !important;
  }
}

/* ========== MOBILE: native columns + search/lang icons only ========== */
@media (max-width: 1024px) {
  body.home {
    --sawa-hero-h: var(--sawa-hero-h-sm);
  }

  body.home .whb-header {
    padding-top: 10px;
    padding-inline: 8px;
  }

  /* Keep desktop columns hidden by default */
  body.home .whb-header .whb-visible-lg {
    display: none !important;
  }

  /* Mobile header row */
  body.home .whb-general-header .whb-mobile-left,
  body.home .whb-general-header .whb-mobile-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /*
   * Show ONLY language + search icons from desktop-left column.
   * Position beside account — does not reopen cart/wishlist duplicates.
   */
  body.home .whb-general-header .whb-col-left.whb-visible-lg {
    display: flex !important;
    position: absolute !important;
    inset-inline-end: 52px;
    inset-inline-start: auto !important;
    top: 8px;
    width: auto !important;
    z-index: 45;
    gap: 8px !important;
    align-items: center !important;
  }

  body.home .whb-general-header .whb-col-left.whb-visible-lg > *:not(.wd-header-text):not(.wd-header-search) {
    display: none !important;
  }

  body.home .whb-general-header .whb-col-left.whb-visible-lg .wd-header-text,
  body.home .whb-general-header .whb-col-left.whb-visible-lg .trp-shortcode-switcher__wrapper,
  body.home .whb-general-header .whb-col-left.whb-visible-lg .wd-header-search {
    display: inline-flex !important;
  }

  body.home .whb-general-header .whb-col-left.whb-visible-lg .wd-header-search > a {
    display: inline-flex !important;
  }

  body.home .whb-general-header .whb-col-left.whb-visible-lg .wd-header-search .wd-tools-text {
    display: none !important;
  }

  /* Social only from desktop-right-bottom, pinned to hero bottom */
  body.home .whb-header-bottom .whb-col-right.whb-visible-lg {
    display: flex !important;
    position: absolute !important;
    top: calc(var(--sawa-hero-h-sm) - 82px) !important;
    inset-inline-start: 12px !important;
    inset-inline-end: auto !important;
    width: auto !important;
    z-index: 7;
  }

  body.home .whb-header-bottom .whb-col-mobile {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  /* Header cart/wishlist stay hidden — bottom toolbar owns them */
  body.home .whb-header .wd-header-cart,
  body.home .whb-header .wd-header-wishlist {
    display: none !important;
  }

  body.home #slider-83 .wd-slide-container {
    padding-top: 96px !important;
    padding-bottom: 90px !important;
  }
}

@media (max-width: 768px) {
  body.home .whb-header-bottom .whb-col-right.whb-visible-lg {
    top: calc(500px - 76px) !important;
  }

  body.home .whb-header-bottom .wd-social-icon {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ========== NEVER touch bottom toolbar ========== */
body.home .wd-toolbar .wd-header-my-account > a,
body.home .wd-toolbar .wd-header-wishlist > a,
body.home .wd-toolbar .wd-header-cart > a,
body.home .wd-toolbar .wd-header-mobile-nav > a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: unset !important;
}

body.home .wd-toolbar .wd-tools-text,
body.home .wd-toolbar .wd-toolbar-label {
  display: block !important;
}

body.home .wd-toolbar .wd-tools-icon:before,
body.home .wd-toolbar .wd-tools-icon:after {
  color: inherit !important;
}
