/* ============================================================
   SUGANDHA DRAVYA — NAVBAR & HEADER SYSTEM
   ============================================================ */
:root {
  --brand-green:  #1a3d1a;
  --brand-gold:   #D4AF37;
  --brand-gold-d: #B8960C;
  --brand-cream:  #FFFDF7;
  --text-dark:    #1a1a1a;
  --text-muted:   #6B655E;
  --border:       #E8E0CE;
  --shadow-sm:    0 2px 12px rgba(26,61,26,.10);
  --shadow-md:    0 8px 28px rgba(26,61,26,.14);
}

*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Manrope',sans-serif;color:var(--text-dark);overflow-x:hidden;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}

/* ── TOP INFO BAR ── */
.abc{
  background: var(--brand-green);
  color: rgba(255,255,255,.88);
  position: relative;
  z-index: 2200;
}
.top-bar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
}
.top-center{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.social a{
  color: rgba(255,255,255,.75);
  font-size: 12px;
  margin: 0 4px;
  transition: color .2s;
}
.social a:hover{ color: var(--brand-gold); }

.top-right{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-right a{ color: rgba(255,255,255,.85); font-size: 12px; }
.top-right a:hover{ color: var(--brand-gold); }

/* User dropdown in top bar */
.user-profile{
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.88);
  cursor: pointer;
  position: relative;
}
.user-circle{
  width: 28px; height: 28px;
  background: var(--brand-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
}
.user-name{ font-size: 12px; font-weight: 600; }
.user-caret{ font-size: 10px; opacity: .7; }
.user-dropdown{ position: relative; cursor: pointer; }
.user-menu{
  position: absolute;
  right: 0; top: 130%;
  min-width: 148px;
  background: #fff;
  color: #333;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  display: none;
  z-index: 2300;
  border-top: 2px solid var(--brand-gold);
}
.user-menu a{
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  transition: background .15s;
}
.user-menu a:hover{ background: #f5f0e8; color: var(--brand-green); }
.user-dropdown.open .user-menu{ display: block; }

/* ── MAIN HEADER ── */
.header{
  background: var(--brand-cream);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  position: relative;
  z-index: 2000;
  box-shadow: var(--shadow-sm);
}
.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  align-items: center;
  gap: 20px;
}
.logo{ justify-self: start; line-height: 0; }
.logo a{ display: inline-flex; align-items: center; }
.logo img{
  height: 84px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(26,61,26,.12));
}
/* override inline class */
.desktop-header-logo-img{
  height: 84px !important;
  width: auto !important;
}

/* Search box */
.search-box{
  display: flex;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within{
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}
.search-category{
  position: relative;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px 0 0 999px;
  background: #faf7f0;
  min-width: 130px;
}
.search-category:hover{ background: #f5f0e4; }
.search-input{
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  outline: none;
  background: transparent;
  color: var(--text-dark);
}
.search-input::placeholder{ color: #b0a898; }
.search-button{
  width: 44px;
  border: none;
  background: var(--brand-green);
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  border-radius: 0 999px 999px 0;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-button:hover{ background: #2a5a2a; }

/* Category dropdown in search */
.search-category-dropdown{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 4px 0;
  max-height: 260px;
  overflow-y: auto;
  z-index: 2100;
  display: none;
}
.search-category-dropdown li{
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-dark);
  transition: background .15s;
}
.search-category-dropdown li:hover{ background: #f5f0e8; color: var(--brand-green); }
.search-category.open .search-category-dropdown{ display: block; }

/* Header icons */
.header-icons{
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}
.header-icons .icon-btn{
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-green);
  font-size: 20px;
  position: relative;
  transition: color .2s;
}
.header-icons .icon-btn:hover{ color: var(--brand-gold-d); }
.cart-total{
  font-size: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--brand-green);
}
.cart-count, .wishlist-count{
  position: absolute;
  top: -7px; right: -8px;
  background: var(--brand-gold);
  color: #fff;
  border-radius: 50%;
  width: 17px; height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border: 1.5px solid var(--brand-cream);
}

/* ── DESKTOP NAV ── */
.nav{
  background: var(--brand-green);
  position: relative;
  z-index: 999;
  overflow: visible;
}
.nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
}
.nav > .nav-inner > ul{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  overflow: visible;   /* never clip — dropdowns must escape the nav bar */
}
.nav li{
  position: relative;
  flex-shrink: 0;
}
.nav > .nav-inner > ul > li > a{
  display: block;
  padding: 13px 14px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  transition: color .2s, background .2s;
  position: relative;
}
.nav > .nav-inner > ul > li > a::after{
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav > .nav-inner > ul > li:hover > a,
.nav > .nav-inner > ul > li.active > a{
  color: #fff;
}
.nav > .nav-inner > ul > li:hover > a::after,
.nav > .nav-inner > ul > li.active > a::after{
  transform: scaleX(1);
}

/* Dropdown */
.nav li.has-dropdown{ position: relative; }
.dropdown-menu{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border-top: 2px solid var(--brand-gold);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-md);
  display: none !important;
  z-index: 9999;
  padding: 6px 0;
}
.nav li.has-dropdown:hover .dropdown-menu{
  display: block !important;
  animation: ddFade .18s ease;
}
@keyframes ddFade{
  from{ opacity:0; transform:translateY(6px); }
  to{   opacity:1; transform:translateY(0);   }
}
.dropdown-menu li{ padding: 0; display: block; width: 100%; }
.dropdown-menu li a{
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #333 !important;
  transition: background .15s, padding-left .15s;
  text-transform: none;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
}
.dropdown-menu li:last-child a{ border-bottom: none; }
.dropdown-menu li a:hover{
  background: #f5f0e8;
  color: var(--brand-green) !important;
  padding-left: 22px;
}

/* Multi-column dropdown */
.dropdown-menu.multi-column{
  column-count: 2;
  column-gap: 0;
  width: 380px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0;
}
.dropdown-menu.multi-column li{
  break-inside: avoid;
  page-break-inside: avoid;
}

.fa-angle-down{ font-size: 10px; margin-left: 3px; transition: transform .25s; }
.nav li.has-dropdown:hover .fa-angle-down{ transform: rotate(180deg); }

/* Mega menu (kept for compatibility) */
.mega-menu{
  position: absolute;
  left: 0;
  width: max-content;
  max-width: 90vw;
  top: 100%;
  background: #fff;
  border-top: 2px solid var(--brand-gold);
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: none;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}
.nav li.has-mega:hover .mega-menu{ display: block; }
.mega-menu-inner{ display: flex; flex-wrap: wrap; gap: 36px; }
.mega-column-title{
  font-size: 10px; text-transform: uppercase; font-weight: 700;
  letter-spacing: .12em; color: var(--text-muted);
  margin-bottom: 6px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.mega-list li{ padding: 3px 0; }
.mega-item-link{ font-size: 13px; color: #444; transition: color .15s, padding-left .15s; }
.mega-item-link:hover{ color: var(--brand-green); padding-left: 4px; }

/* ── PROMO MARQUEE ── */
.coupon-marquee-bar{
  background: var(--brand-green);
  color: #fff;
  overflow: hidden;
  padding: 7px 0;
  font-family: 'Montserrat', sans-serif;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.coupon-track{
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.coupon-track:hover{ animation-play-state: paused; }
@keyframes marquee{
  0%  { transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}
.coupon-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
}
.code-badge{
  background: var(--brand-gold);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

/* ── MOBILE HEADER ── */
.mobile-header{
  display: none;
  height: 72px;
  background: var(--brand-green);
  border-bottom: 2px solid var(--brand-gold);
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 3100;
}
.mobile-header-logo{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-header-logo img{
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
}
.mobile-menu-toggle{
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}
.mobile-header-login-btn{
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.mobile-header-user-dropdown{ position: relative; }
.mobile-header-user-btn{
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.mobile-header-user-circle{
  width: 32px; height: 32px;
  background: var(--brand-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}
.mobile-header-user-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border-top: 2px solid var(--brand-gold);
  padding: 6px 0;
  display: none;
  z-index: 200;
}
.mobile-header-user-menu a{
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #333;
}
.mobile-header-user-menu a:hover{ background: #f5f0e8; }
.mobile-header-user-dropdown.open .mobile-header-user-menu{ display: block; }

/* ── OFF-CANVAS MOBILE MENU ── */
.mobile-menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  z-index: 4000;
}
.mobile-menu-overlay.open{ display: block; }
.mobile-menu-panel{
  position: absolute;
  top: 0; left: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  z-index: 4001;
}
.mobile-menu-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--brand-green);
  color: #fff;
}
.mobile-menu-title{
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mobile-menu-close{
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.mobile-menu-search{
  display: flex;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  gap: 0;
}
.mobile-menu-search input{
  flex: 1;
  border: 1px solid #ddd;
  border-right: none;
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.mobile-menu-search button{
  width: 38px;
  border: 1px solid var(--brand-green);
  background: var(--brand-green);
  color: #fff;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.mobile-menu-list{
  flex: 1;
  overflow-y: auto;
}
.mobile-menu-list > li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-dark);
}
.mobile-menu-list > li.active{
  background: #f0f7f0;
  color: var(--brand-green);
  font-weight: 700;
}
.mobile-menu-list li a{ flex: 1; color: inherit; }
.mobile-menu-list .plus{
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1;
  transition: transform .25s;
}
.mobile-menu-list li.has-submenu{ display: block; padding: 0; }
.mobile-menu-list li.has-submenu .menu-item-wrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.mobile-menu-list li.has-submenu .menu-item-wrapper a{ flex: 1; color: var(--text-dark); }
.mobile-menu-list li.has-submenu.open .plus{ transform: rotate(45deg); }
.mobile-submenu{
  max-height: 0;
  overflow: hidden;
  background: #f9f9f6;
  transition: max-height .3s ease;
  list-style: none;
}
.mobile-menu-list li.has-submenu.open .mobile-submenu{ max-height: 600px; }
.mobile-submenu li{
  padding: 10px 16px 10px 32px !important;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  display: block;
}
.mobile-submenu li:last-child{ border-bottom: none; }
.mobile-submenu li a{ color: var(--text-muted); }

.mobile-menu-colors{ display: none; } /* remove the colored boxes */

/* ── MOBILE BOTTOM NAV ── */
.mobile-bottom-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 58px;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  display: none;
  align-items: center;
  justify-content: space-around;
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  z-index: 3000;
  box-shadow: 0 -2px 10px rgba(0,0,0,.07);
}
.mobile-bottom-nav a{
  flex: 1;
  text-align: center;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s;
}
.mobile-bottom-nav a i{ font-size: 20px; }
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active{ color: var(--brand-green); }

/* ── RESPONSIVE ── */
@media (max-width: 768px){
  .abc, .header, .nav{ display: none !important; }
  .mobile-header{ display: flex !important; }
  .mobile-bottom-nav{ display: flex; }
  body{ padding-bottom: 68px; }
  .coupon-marquee-bar{ display: none; }
}
@media (min-width: 769px){
  .mobile-header, .mobile-menu-overlay, .mobile-bottom-nav{ display: none !important; }
  .nav{ z-index: 999; }
}
@media (min-width: 769px) and (max-width: 1080px){
  .nav > .nav-inner > ul > li > a{
    padding: 12px 10px;
    font-size: 10.5px;
  }
  .header-inner{
    grid-template-columns: 180px 1fr 160px;
    gap: 14px;
  }
  .logo img, .desktop-header-logo-img{ height: 68px !important; }
}
