

.badge {
  font-size: 0.65rem;
  line-height: 1;
  padding: 4px 6px;
}

.topbar {
  background: #f9f8f2;
  color: #6f675d;
  border-bottom: 1px solid #ede8dc;
}

.topbar .top-link {
  color: #6f675d;
  text-decoration: none;
}

.topbar .top-link:hover,
.topbar .top-link:focus {
  color: #d35400;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.search-bar input {
  border-radius: 999px;
  border: 1px solid #e7e2d9;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  right: 10px;
  width: 60px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f675d;
}

.search-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #ebe7de;
  z-index: 1050;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-suggest.show {
  display: block;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff7ef;
  color: #a04f10;
  border: 1px solid #ffd9b3;
  font-size: 0.9rem;
}

.header-icons .badge {
  position: absolute;
  top: -4px;
  right: -8px;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  color: #3a3a3a;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-btn i {
  font-size: 1.1rem;
}

.icon-btn:hover {
  background: #f2f2f2;
  color: #ff7004;
}

.profile-menu {
  width: 320px;
  padding: 0;
}

.profile-menu .dropdown-item {
  color: #333;
  padding-top: 12px;
  padding-bottom: 12px;
}

.profile-menu .dropdown-item:hover {
  background: #f5f5f5;
}

.profile-trigger {
  position: relative;
}

.profile-hover {
  display: none;
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 0;
  z-index: 1060;
  font-size: 0.85rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.profile-trigger:hover .profile-hover,
.profile-hover.show {
  display: block;
}

.profile-hover .btn-dark {
  background: #222;
  border-color: #2b2929;
}

.profile-hover .btn-dark:hover {
  background: #111;
  border-color: #111;
}

.profile-hover ul {
  padding: 8px 0;
}

.profile-hover .dropdown-item {
  padding-left: 16px;
  padding-right: 16px;
  color: #444;
}

.profile-hover .dropdown-item:hover {
  background: #f7f7f7;
}

.category-nav {
  z-index: 1025;
  min-height: 54px;
}

.category-nav.sticky-top {
  top: 76px;
}

.category-nav .nav-link {
  color: #444;
  padding: 16px 6px;
  font-weight: 600;
}

.category-nav .nav-link.active,
.category-nav .nav-link:hover {
  color: #f26b35;
  border-bottom: 2px solid #f26b35;
}

.navbar .dropdown-menu {
  min-width: 840px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.megamenu .dropdown-item {
  padding-left: 0;
  padding-right: 0;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  padding: 16px 20px;
  max-width: 440px;
}

.category-card img {
  object-fit: cover;
  height: 180px;
}

.promo-card {
  background: #1a1d29;
}

.promo-card-alt {
  background: #f3e9df;
}



a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.card img {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.mega-panel {
  width: min(1100px, 96vw);
}

.mega-banner img {
  object-fit: cover;
}

@media (max-width: 991px) {
  .navbar .dropdown-menu {
    min-width: auto;
  }

  .icon-btn {
    flex-direction: row;
    gap: 6px;
  }
}

.form-control:focus {
  box-shadow: none;
  border-color: none !important;
}

/* Mega Menu Banner Styles */
.mega-menu-banner {
  flex: 0 0 auto;
  width: 280px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #eee;
}

.mega-menu-banner a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.mega-menu-banner a:hover {
  transform: scale(1.02);
}

.mega-menu-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Mega Menu Layout Improvements */
.main-menu ul li .mega-menu {
  max-width: 1350px;
 
}

.main-menu ul li .mega-menu li.d-flex {
  gap: 10px;

}

.main-menu ul li .mega-menu li ul {
  flex: 0 0 auto;
  padding-top: 15px;
  border-right: 1px solid #c4c3c3;
  min-width: 175px;
   /*max-width: 200px; */
  margin-right: 0;
  padding-bottom: 20px;
}



/* Mobile Header Styles - Active at 1029px and below */




@media (max-width: 1029px) {
  /* Prevent horizontal scroll on mid-small widths */
  /* Hide desktop header */
  .d-desktop-header {
    display: none !important;
  }
  
  /* Hide topbar on mobile */
  .topbar {
    display: none !important;
  }
  
  /* Show mobile header */
  .mobile-header {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .mobile-header-top {
    padding: 10px 0;
    border-bottom: 1px solid #e7e2d9;
  }
  
  .mobile-header-top .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .mobile-header-top > .container-fluid > .d-flex {
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Ensure proper spacing and prevent overflow */
  .mobile-header-top .d-flex {
    width: 100%;
  }
  
  .mobile-menu-toggle {
    background: none;
    border: none;
    color: #333;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 40px;
  }
  
  .mobile-menu-toggle:focus {
    outline: none;
  }
  
  .mobile-menu-toggle i {
    font-size: 24px;
    line-height: 1;
  }
  
  .mobile-logo {
    text-decoration: none;
    flex: 1;
    text-align: center;
    position: relative;
  }
  
  .mobile-logo {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }
  
  .mobile-logo .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1a1d29;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  
  .mobile-header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  
  .mobile-icon-btn {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: none;
    padding: 0;
    cursor: pointer;
    position: relative;
  }
  
  .mobile-icon-btn i {
    font-size: 20px;
    line-height: 1;
  }
  
  .mobile-icon-btn:hover,
  .mobile-icon-btn:focus,
  .mobile-icon-btn:active {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    outline: none;
    border-color: transparent;
  }
  
  .mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
  }
  
  /* Mobile Profile Dropdown */
  .mobile-profile-trigger {
    position: relative;
  }
  
  .mobile-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    border: 1px solid #e7e2d9;
    overflow: hidden;
  }
  
  .mobile-profile-dropdown.show {
    display: block;
  }
  
  .mobile-profile-header {
    background: #fff;
  }
  
  .mobile-profile-header .btn-dark {
    background: #222;
    border-color: #222;
    color: #fff;
    /* padding: 10px; */
    font-size: 14px;
  }
  
  .mobile-profile-header .btn-dark:hover {
    background: #111;
    border-color: #111;
  }
  
  .mobile-profile-header .btn-dark a {
    color: #fff;
    text-decoration: none;
  }
  
  .mobile-profile-menu {
    padding: 8px 0;
  }
  
  .mobile-profile-item {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
  }
  
  .mobile-profile-item:last-child {
    border-bottom: none;
  }
  
  .mobile-profile-item:hover,
  .mobile-profile-item:focus {
    background-color: #f7f7f7;
    color: #333;
    text-decoration: none;
  }
  
  /* Responsive adjustments for smaller screens */
  @media (max-width: 480px) {
    .mobile-header-icons {
      gap: 8px;
    }
    
    .mobile-icon-btn {
      width: 36px;
      height: 36px;
      min-width: 36px;
    }
    
    .mobile-icon-btn i {
      font-size: 18px;
    }
    
    .mobile-logo .logo-text {
      font-size: 16px;
    }
    
    .mobile-profile-dropdown {
      width: 260px;
      right: -10px;
    }
  }
  
  @media (max-width: 360px) {
    .mobile-header-top .container-fluid {
      padding-left: 8px;
      padding-right: 8px;
    }
    
    .mobile-header-icons {
      gap: 6px;
    }
    
    .mobile-icon-btn {
      width: 32px;
      height: 32px;
      min-width: 32px;
    }
    
    .mobile-icon-btn i {
      font-size: 16px;
    }
    
    .mobile-menu-toggle {
      min-width: 36px;
      padding: 4px;
    }
    
    .mobile-menu-toggle i {
      font-size: 20px;
    }
    
    .mobile-logo {
      padding: 0 4px;
    }
    
    .mobile-logo .logo-text {
      font-size: 14px;
    }
    
    .mobile-profile-dropdown {
      width: 240px;
      right: -15px;
    }
  }
  
  .mobile-search-bar {
    padding: 10px 0;
    background: #fff;
  }
  
  .mobile-search-form {
    position: relative;
  }
  
  .mobile-search-form .form-control {
    border-radius: 20px;
    /* border: 1px solid #e7e2d9;
    background-color: #f9f8f2; */
    font-size: 14px;
    padding-right: 40px;
  }
  
  .mobile-search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6f675d;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1040;
    overflow-y: auto;
  }
  
  .mobile-menu-overlay.active {
    display: block;
  }
  
  .mobile-menu-container {
    padding: 0;
  }
  
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e7e2d9;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .mobile-menu-close {
    background: none;
    border: none;
    color: #333;
    padding: 4px 8px;
    font-size: 20px;
  }
  
  .mobile-menu-login {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
  }
  
  .mobile-menu-banner {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e7e2d9;
  }
  
  .mobile-menu-banner .bg-light {
    background-color: #f9f8f2 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .mobile-menu-banner .bg-light:active {
    background-color: #f0ede4 !important;
  }
  
  .mobile-menu-categories {
    padding: 16px;
    background: #fff;
    padding-bottom: 32px;
  }
  
  .mobile-category-card {
    display: flex;
    
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0;
    height: 100%;
  }
  
  .mobile-category-card:hover,
  .mobile-category-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-decoration: none;
  }
  
  .mobile-category-card .category-image {
    /* width: 100%; */
    height: 120px;
    padding:10px 0 10px 10px;
    overflow: hidden;
    /* background: #f9f8f2; */
  }
  
  .mobile-category-card .category-image img {
    /* width: 100%; */
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
  }
  
  .mobile-category-card .category-name {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #1a1d29;
    font-size: 16px;
    line-height: 1.3;
  }
  
  .mobile-menu-categories .row {
    margin: 0;
  }
  
  .mobile-menu-categories .col-6 {
    padding: 8px;
  }
  
  /* Mobile Menu Content Section */
  .mobile-menu-content {
    padding: 16px 12px;
    background: #fff;
    border-top: 1px solid #e7e2d9;
    margin-top: auto;
    box-sizing: border-box;
  }
  
  .mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .mobile-menu-links li {
    margin: 0;
    padding: 0;
    /* border-bottom: 1px solid #f5f5f5; */
  }
  
  .mobile-menu-links li:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-links li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .mobile-menu-links li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #000000;
    flex-shrink: 0;
  }
  

    
  .mobile-menu-links li a:hover ,
  .mobile-menu-links li a:focus{
    color: #d35400;
  }
  
  .mobile-menu-links li a:hover i,
  .mobile-menu-links li a:focus i {
    color: #d35400;
  }
  
 
  
  .mobile-menu-links li a:hover::before,
  .mobile-menu-links li a:focus::before {
    width: 3px;
  }
  
  /* Responsive adjustments for mobile menu content */
  @media (max-width: 480px) {
    .mobile-menu-content {
      padding: 16px 12px;
    }
    
    .mobile-menu-links li a {
      font-size: 14px;
      padding: 12px 0;
    }
    
    .mobile-menu-links li a i {
      font-size: 15px;
      width: 18px;
    }
  }
  
  @media (max-width: 360px) {
    .mobile-menu-content {
      padding: 14px 10px;
    }
    
    .mobile-menu-links li a {
      font-size: 13px;
      padding: 10px 0;
    }
    
    .mobile-menu-links li a i {
      font-size: 14px;
      width: 16px;
    }
  }
}

/* Hide main menu navigation on mobile */
@media (max-width: 1029px) {
  .sticky-nav.bg-black {
    display: none !important;
  }
}

/* Desktop styles - Show desktop header above 1029px */
@media (min-width: 1030px) {
  .mobile-header {
    display: none !important;
  }
  
  .mobile-menu-overlay {
    display: none !important;
  }
  
  .d-desktop-header {
    display: block !important;
  }
  
  .topbar {
    display: block !important;
  }
  
  .sticky-nav.bg-black {
    display: block !important;
  }
}
