:root {
  --primary: #004aad;
  --yellow: #FFD700;
  --gradient: linear-gradient(90deg, #1e3a8a, #004aad);
  --hover-bg: #eef5ff;
}

/* ------------------------
   TOP PROMO BAR
-------------------------*/
.top-promo-bar {
  width: 100%;
  background: var(--yellow);
  padding: 8px 0;
  font-weight: bold;
  color: #1e3a8a;
  white-space: nowrap;
  overflow: hidden;
}

.promo-text {
  display: inline-block;
  animation: scrollPromo 55s linear infinite;
}

.top-promo-bar:hover .promo-text {
  animation-play-state: paused;
}

@keyframes scrollPromo {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ------------------------
   NAVBAR
-------------------------*/
.navbar-custom {
  background: var(--gradient);
  padding: 12px 0 !important;
}

.nav-link.active {
  color: var(--yellow) !important;
  font-weight: 700;
}

/* ------------------------
   SEARCH BAR
-------------------------*/
.search-container {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search-box {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ccc;
}

.search-box input {
  border: none;
  padding: 7px 10px;
  width: 100%;
  outline: none;
}

.search-box button {
  background: var(--yellow);
  border: none;
  padding: 0 12px;
}

#searchSuggestions {
  position: absolute;
  background: white;
  width: 100%;
  display: none;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  border-radius: 6px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 2000;
}

#searchSuggestions a {
  padding: 10px;
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: #222;
  border-bottom: 1px solid #eee;
  transition: 0.25s;
}

#searchSuggestions a:hover {
  background: var(--hover-bg);
  color: var(--primary);
  font-weight: 600;
}

/* ------------------------
   USER MENU + ICONS
-------------------------*/
.user-dropdown {
  position: relative;
  cursor: pointer;
}

.user-icon {
  width: 42px;
  height: 42px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
  border: 2px solid #fff;
}

.user-menu {
  position: absolute;
  right: 0;
  top: 52px;
  background: white;
  min-width: 240px;
  border-radius: 12px;
  display: none;
  overflow: hidden;
  z-index: 2000;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  animation: fade 0.25s ease-out;
}

.user-menu.show {
  display: block;
}

.user-menu a {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: 0.25s;
}

.user-menu a:hover {
  background: var(--hover-bg);
  transform: translateX(5px);
  color: var(--primary);
}

@keyframes fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------
   CART ICON
-------------------------*/
.icon-btn {
  background: var(--yellow);
  padding: 7px 12px;
  border-radius: 10px;
  position: relative;
  border: 2px solid var(--primary);
  transition: 0.25s;
}

.icon-btn:hover {
  transform: scale(1.05);
}

.cart-badge {
  background: black;
  color: white;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 11px;
  position: absolute;
  top: -5px;
  right: -6px;
}
/* =============================
   HERO SLIDER
============================= */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Caption */
.slide-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 200;
  max-width: 70%;
}

/* Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background .3s;
}

.nav-arrow:hover {
  background: rgba(0,0,0,0.8);
}

.nav-arrow.left { left: 15px; }
.nav-arrow.right { right: 15px; }

/* Dots */
.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  display: inline-block;
  margin: 0 6px;
  cursor: pointer;
  border: none;
}

.dot.active {
  background: #fff;
}

/* Mobile */
@media(max-width:768px){
  .slide img {
    height: 100vh;
  }

  .slide-caption {
    font-size: 16px;
    bottom: 20px;
    left: 15px;
    max-width: 85%;
  }
}
/* FIX Z-INDEX & CLICK ISSUES */
.search-container {
  position: relative;
  z-index: 3000;
}

#searchSuggestions {
  z-index: 9999;
}

/* =========================
   MOBILE HEADER FIXES
========================= */
@media (max-width: 768px) {

  /* PROMO BAR */
  .top-promo-bar {
    font-size: 13px;
    padding: 6px 0;
  }

  /* NAVBAR SPACING */
  .navbar-custom {
    padding: 8px 0 !important;
  }
/* Style ONLY when menu is OPEN */
.navbar-collapse.show {
  background: var(--gradient);
  padding: 12px;
  border-radius: 12px;
  margin-top: 10px;
}

  /* NAV LINKS STACK */
  .navbar-nav {
    gap: 6px;
  }

  .navbar-nav .nav-link {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
  }

  /* SEARCH FULL WIDTH */
  .search-container {
    max-width: 100%;
    width: 100%;
    margin: 10px 0;
  }

  .search-box input {
    font-size: 14px;
    padding: 10px;
  }

  /* USER + CART ALIGNMENT */
  .d-flex.align-items-center.gap-3 {
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
  }


  .icon-btn {
    padding: 8px 12px;
  }

  /* USER MENU */
  .user-menu {
    right: 0;
    left: auto;
    min-width: 220px;
  }

  /* SEARCH SUGGESTIONS FIX */
  #searchSuggestions {
    max-height: 220px;
    font-size: 14px;
  }
}
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 991px) {

  .navbar-collapse {
    transition: height .35s ease;
  }

  .navbar-nav {
    padding-top: 8px;
  }

}
/* =========================
   MOBILE FLOATING CART (FIXED)
========================= */
.mobile-cart-btn {
  position: fixed;
  bottom: 90px; /* ⬅ moved ABOVE WhatsApp */
  right: 18px;
  background: var(--yellow);
  color: #000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  border: 2px solid var(--primary);
}

/* Cart badge */
.mobile-cart-btn .cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: black;
  color: white;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 50%;
}

/* Hide on desktop */
@media (min-width: 992px) {
  .mobile-cart-btn {
    display: none;
  }
}

.mobile-cart-btn {
  bottom: 25px;
  left: 10%;
  transform: translateX(-50%);
}
