/* =========================
   TOP BAR SLIDER
   ========================= */
.ah-topbar{
  background: #000000;
  color: #ffffff;
  position: relative;
  z-index: 60;
  overflow: hidden;
}

.ah-topbar__slider{
  position: relative;
  width: 100%;
  height: 38px;
  overflow: hidden;
}

.ah-topbar__slides{
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.ah-topbar__slide{
  min-width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.ah-topbar__icon{
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}

.ah-topbar__text{
  display: inline-block;
}

@media (max-width: 767px){
  .ah-topbar__slider,
  .ah-topbar__slide{
    height: 34px;
  }

  .ah-topbar__slide{
    font-size: 12px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce){
  .ah-topbar__slides{
    transition: none;
  }
}




/* =========================
   HEADER (Responsive + Hamburger + Shrink)
   ========================= */

/* Admin bar fix */
.admin-bar .site-header { top: 32px; }



@media (max-width: 782px){
  .admin-bar .site-header { top: 46px; }
}

/* Prevent sticky header jitter by keeping a stable header height (desktop only) */
@media (min-width: 901px){
  .site-header{
    height: 78px; /* 50 logo + 14+14 padding ke approx */
  }
  .site-header-inner{
    height: 100%;
    box-sizing: border-box;
  }
}

/* Extra smoothing on Chrome/Windows */
.site-header{
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}


.site-header{
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: box-shadow .2s ease, background .2s ease;
}

.site-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  transition: padding .2s ease;
}

/* Branding */
.site-branding{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ✅ Only logo sizing (Woo images affect nahi honge) */
.site-branding .custom-logo{
  height: 50px;
  width: auto;
  max-width: 100%;
  transition: height .2s ease;
}

/* Fallback title */
.site-title{
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation (Desktop) */
.main-navigation ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}

.main-navigation a{
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a{
  color: var(--primary-dark);
}

/* Header icons */
.header-actions{
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon{
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.header-icon-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* =========================
   HAMBURGER BUTTON
   ========================= */
.ah-nav-toggle{
  display: none; /* desktop hidden */
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.ah-nav-toggle__icon{
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-block;
}

.ah-nav-toggle__icon span{
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(0,0,0,.70);
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.ah-nav-toggle__icon span:nth-child(1){ top: 0; }
.ah-nav-toggle__icon span:nth-child(2){ top: 6px; }
.ah-nav-toggle__icon span:nth-child(3){ top: 12px; }

/* open => X */
.site-header.is-menu-open .ah-nav-toggle__icon span:nth-child(1){
  top: 6px;
  transform: rotate(45deg);
}
.site-header.is-menu-open .ah-nav-toggle__icon span:nth-child(2){
  opacity: 0;
}
.site-header.is-menu-open .ah-nav-toggle__icon span:nth-child(3){
  top: 6px;
  transform: rotate(-45deg);
}

/* =========================
   SHRINK ON SCROLL
   ========================= */
.site-header.is-scrolled{
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.site-header.is-scrolled .site-header-inner{
  padding: 8px 0;
}

.site-header.is-scrolled .site-branding .custom-logo{
  height: 38px;
}

/* =========================
   MOBILE MENU (<=900px)
   ========================= */
@media (max-width: 900px){

  .site-header-inner{
    flex-wrap: wrap;
    gap: 10px;
  }

  /* order: logo left, icons right, hamburger right (after icons) */
  .site-branding{ order: 1; }
  .header-actions{ order: 2; margin-left: auto; }
  .ah-nav-toggle{ order: 3; display: inline-flex; }

  /* nav becomes dropdown row */
  .main-navigation{
    order: 10;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,.06);
    margin-top: 6px;

    /* collapsed state */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
  }

  /* open state */
  .site-header.is-menu-open .main-navigation{
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
  }

  .main-navigation ul{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }

  .main-navigation li{
    width: 100%;
  }

  .main-navigation a{
    display: block;
    width: 100%;
    padding: 12px 6px;
    font-weight: 700;
    color: rgba(0,0,0,.78);
  }

  .main-navigation a:hover{
    color: var(--primary-dark);
  }
}
