@font-face {
  font-family: 'aseina-style-ii';
  src: url('/wp-content/uploads/useanyfont/7440Aseina-Style-II.woff2') format('woff2'),
       url('/wp-content/uploads/useanyfont/7440Aseina-Style-II.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

#haydar-header-root,
#haydar-header-root.e-con,
.elementor-element.elementor-element-c50978e#haydar-header-root {
  min-height: 0 !important;
  height: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

header.xpro-theme-builder-header {
  min-height: 0 !important;
  height: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: visible;
}

/* Safety net: whatever Elementor renders inside the theme header (including any
   stale-cached content from Elementor's own internal caching quirks) is hidden
   immediately, so only our own JS-built header (.haydar-hdr2 / mobile overlay)
   is ever visible, even before the script runs or if Elementor's cache misbehaves. */
header.xpro-theme-builder-header > *:not(.haydar-hdr2):not(.haydar-hdr2-mobile-overlay) {
  display: none !important;
}

.haydar-hdr2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  height: 92px;
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: height 0.32s ease, background-color 0.32s ease, backdrop-filter 0.32s ease, transform 0.32s ease, box-shadow 0.32s ease;
  transform: translateY(0);
  color: #F5EFDF;
}

.haydar-hdr2.is-hidden {
  transform: translateY(-100%);
}

/* Non-front pages: always show a solid brand-cream header, never transparent,
   so there is no visible gap/seam with whatever background the page itself
   happens to have at the very top (fixes the "white strip" issue). */
.haydar-hdr2.is-static-page {
  background-color: rgba(245,239,223,0.97);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 2px 14px rgba(16,14,12,0.06);
}

.haydar-hdr2.is-scrolled {
  height: 74px;
  box-shadow: 0 2px 20px rgba(16,14,12,0.08);
}

/* Adaptive theme: dark background behind header -> light content (default) */
.haydar-hdr2[data-theme="dark-bg"] {
  color: #F5EFDF;
}
.haydar-hdr2[data-theme="dark-bg"].is-scrolled {
  background-color: rgba(16,14,12,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* Adaptive theme: light/cream background behind header -> dark content */
.haydar-hdr2[data-theme="light-bg"] {
  color: #100E0C;
}
.haydar-hdr2[data-theme="light-bg"].is-scrolled {
  background-color: rgba(245,239,223,0.90);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.haydar-hdr2-inner {
  position: relative;
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.haydar-hdr2-zone {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1 1 0;
  min-width: 0;
}

.haydar-hdr2-zone.right {
  justify-content: flex-end;
}

.haydar-hdr2-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.haydar-hdr2-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: currentColor;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
}

.haydar-hdr2-nav a:hover {
  opacity: 1;
  color: #CBA968;
}

.haydar-hdr2-nav a.is-current {
  color: #CBA968;
  opacity: 1;
}

.haydar-hdr2-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: #CBA968;
}

.haydar-hdr2-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.haydar-hdr2-logo a {
  font-family: 'aseina-style-ii', 'Cinzel', serif;
  font-weight: 100;
  font-size: 30px;
  letter-spacing: 2px;
  color: currentColor;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

.haydar-hdr2-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

#haydar-lang-switcher {
  display: flex;
  align-items: center;
}

#haydar-lang-switcher .gtranslate_wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

#haydar-lang-switcher a.glink {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: currentColor;
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

#haydar-lang-switcher a.glink:hover {
  opacity: 1;
  color: #CBA968;
}

#haydar-lang-switcher a.glink.gt-current-lang {
  opacity: 1;
  color: #CBA968;
}

@media (max-width: 860px) {
  #haydar-lang-switcher {
    display: none;
  }
}

.haydar-hdr2-icons a {
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.haydar-hdr2-icons a:hover { opacity: 1; }

.haydar-hdr2-icons svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.haydar-hdr2-burger,
.haydar-hdr2-mobile-cart,
.haydar-hdr2-mobile-like {
  display: none;
}

/* Mobile overlay must be hidden/off-canvas at ALL viewport widths by default,
   not only inside the mobile media query, otherwise it renders as raw
   unstyled in-flow content on desktop. */
.haydar-hdr2-mobile-overlay {
  position: fixed;
  inset: 0;
  background: #100E0C;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.haydar-hdr2-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.haydar-hdr2-mobile-overlay a {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #F5EFDF;
  text-decoration: none;
}
.haydar-hdr2-mobile-overlay a.is-current { color: #CBA968; }
.haydar-hdr2-mobile-close {
  position: absolute;
  top: 26px;
  right: 26px;
  background: none;
  border: none;
  color: #F5EFDF;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

#haydar-lang-switcher-mobile {
  margin-top: 10px;
}
#haydar-lang-switcher-mobile .gtranslate_wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}
#haydar-lang-switcher-mobile a.glink {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #F5EFDF;
  opacity: 0.55;
  text-decoration: none;
}
#haydar-lang-switcher-mobile a.glink.gt-current-lang {
  opacity: 1;
  color: #CBA968;
}

/* ============ TABLET ============ */
@media (max-width: 1024px) and (min-width: 861px) {
  .haydar-hdr2-zone { gap: 20px; }
  .haydar-hdr2-nav a { font-size: 11px; letter-spacing: 1.5px; }
  .haydar-hdr2-inner { width: 94%; }
}

/* ============ MOBILE ============ */
@media (max-width: 860px) {
  .haydar-hdr2 { height: 74px; }
  .haydar-hdr2.is-scrolled { height: 64px; }
  .haydar-hdr2-inner { width: 90%; }
  .haydar-hdr2-zone.left .haydar-hdr2-nav,
  .haydar-hdr2-zone.right .haydar-hdr2-nav,
  .haydar-hdr2-zone.right .haydar-hdr2-icons a:not(.haydar-hdr2-cart) {
    display: none;
  }
  .haydar-hdr2-zone.left { flex: 0 0 auto; justify-content: flex-start; }
  .haydar-hdr2-zone.right { flex: 0 0 auto; justify-content: flex-end; }
  .haydar-hdr2-logo a { font-size: 22px; }

  .haydar-hdr2-zone.left {
    gap: 16px;
  }
  .haydar-hdr2-burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .haydar-hdr2-burger span {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
  }
  .haydar-hdr2-mobile-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    text-decoration: none;
  }
  .haydar-hdr2-mobile-like svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
  }

}

/* Wishlist trigger + badge */
.haydar-hdr2-icons a.haydar-hdr2-wishlist,
.haydar-hdr2-mobile-like {
  position: relative;
}
.haydar-hdr2-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 50%;
  background: #CBA968;
  color: #17130F;
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  display: none;
}
.haydar-hdr2-badge.is-visible { display: block; }
