@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,600;1,600&display=swap');

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
  font-family: "Montserrat", serif;
}

.header {
  background: linear-gradient(to right, #00093c, #2d0b00);
  color: #fff;
  font-weight: 600;
  font-style: normal;
}

.header .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 2000px;
  margin: auto;
  padding: 0;
}

.header .left-section,
.header .right-section ul {
  display: flex;
  align-items: center;
}

.header .header-logo {
  padding: auto 0;
}

.header .header-logo img {
  height: 30px !important;     /* Force the image height */
  width: auto !important;
  display: block;
}

.header .header-logo {
  display: flex !important;
  align-items: center !important;
  padding: 10px 20px !important;
}

.header .left-section>ul>li {
  display: inline-block;
  margin-right: 25px;
}

.header .left-section>ul>li>a,
.header .right-section>ul>li>a {
  text-decoration: none;
  color: #7b7b7b;
  font-size: 21px;
  font-weight: 400;
  padding: 20px 0;
  margin-right: 10px;
  border-radius: 5px;
  display: inline-block;
  transition: all 0.3s ease;
}

.header ul li a:hover {
  color: #fff;
}

.header .right-section li {
  list-style-type: none;
}

.header .right-section .login {
  text-decoration: none;
  color: #333;
  background-color: #c4c4c4;
  font-size: 18px;
  font-weight: bold;
  padding: 8px;
  border-radius: 3px;
  margin: 0;
  transition: all ease 0.3s;
}

.header .login:hover {
  color: #5a96ce;
  background-color: #fff;
}

/* Desktop Search */
.search-item {
    list-style: none;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.search-icon-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.search-icon-link i {
    color: #ffffff; /* Explicitly white */
    font-size: 22px; /* Adjusted for visibility */
    cursor: pointer;
}

.search-icon-link:hover {
    transform: scale(1.1);
}

.results-dropdown {
  position: absolute;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-top: none;
  width: 200px;
  background-color: white;
  z-index: 1000;
  display: none;
  border-radius: 0 0 4px 4px;
}

.results-dropdown div {
  padding: 8px;
  color: #555;
  background-color: #eee;
  cursor: pointer;
}

.results-dropdown div:hover {
  background-color: #fff;
}

/* Mega Menu */
.mega-box {
  position: absolute;
  left: 0;
  width: 100%;
  background-color: #162536;
  padding: 25px 40px;
  top: 45px;
  z-index: -999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.1s ease;
}

.mega-box .mega-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 20px;
  width: 100%;
}

.mega-box .mega-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.mega-box .mega-column {
  width: auto;
  min-width: 180px;
  margin-right: 40px;
}

.mega-box .mega-column ul {
  padding-left: 0;
  list-style-type: none;
}

.mega-box .mega-column ul li {
  margin: 10px 0;
}

.mega-box .mega-column ul li a {
  color: #ddddddbd;
  padding: 0 10px;
  font-size: 15px;
  display: block;
  text-decoration: none;
}

.mega-box .mega-column ul li a:hover {
  color: #fff;
}

.header .left-section ul > li:hover > .mega-box {
  top: 65px;
  opacity: 1;
  z-index: 9999;
  visibility: visible;
}

.mega-box,
.mega-content,
.mega-row,
.mega-column {
  overflow: visible !important;
}

.mega-item {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #162536;
  min-width: 240px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
}

.sub-menu li a {
  color: #ddddddbd;
}

.sub-menu li a:hover {
  color: #fff;
}


.mega-item:hover > .sub-menu {
  display: block;
}

.arrow {
  float: right;
  color: #ddd;
}


/* Sidebar Menu */
.sidebar-menu {
  display: none;
  font-family: "Montserrat", serif;
  width: 90%;
  height: 100vh;
  background: #162536;
  color: #fff;
  overflow-y: auto;
  position: fixed;
  top: 0;
  right: 0;
  padding: 0 20px 20px;
  z-index: 999;
}

/* Find this section in navbar.css and change :active to .active */
.sidebar-menu.active {
    display: block !important; /* Forces visibility when JS adds the class */
    visibility: visible;
}

.sidebar-menu ul {
  margin-top: 45px;
  list-style-type: none;
  padding: 0;
}

.sidebar-menu ul li {
  margin-bottom: 15px;
  position: relative;
}

.sidebar-menu ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  display: block;
  padding: 10px;
  border-radius: 5px;
  background-color: transparent;
}

.sidebar-menu ul li a:hover {
  background: #575757;
}

/* Mobile Sidebar Mega Box */

/* Ensure links inside the mega box are visible and stacked */
.sidebar-mega-box a {
    display: block !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    background: transparent !important; /* Reset the hover background from parent */
    border-bottom: 1px solid #555;
}

.sidebar-mega-box {
  display: none;
  flex-direction: column;
  background: #444;
  padding: 5px 0 10px;
  border-radius: 0 0 5px 5px;
  position: relative;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-left: 4px solid white;
  margin-left: 10px;
  width: calc(100% - 10px);
}

.sidebar-mega-box.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 20px !important;
}

.sidebar-mega-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-mega-row {
  margin: 5px 0 10px;
}

.sidebar-mega-row ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar-mega-row ul li {
  margin-bottom: 5px;
}

.sidebar-mega-row ul li a {
  color: #ddd;
  font-size: 13px;
  padding: 5px 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar-mega-row ul li a:hover {
  color: #fff;
}

/* For mobile view */
@media (max-width: 768px) {
  .header-row {
    flex-direction: row;
    align-items: flex-start;
    max-width: 100%;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-left: 8px;
    padding: 10px 0 10px 10px;
    float: right;
  }

  .hamburger span {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: all 0.3s;
  }

  .header .header-logo img {
    height: 15px;
  }

  .header .right-section {
    display: flex;
  }

  .header .right-section li .login {
    padding: 5px;
    font-size: 12px;
  }

  .header .left-section>ul,
  .searchBar {
    display: none;
  }

/* Mobile Sidebar Search */
.sidebar-search-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1); /* Subtle background for mobile button */
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff !important;
    margin-bottom: 20px;
}

.sidebar-search-link i {
    font-size: 18px;
    color: #ffffff;
}
 
  /* Style for the dropdown */
  .results-dropdown {
    position: absolute;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    width: 100%;
    background-color: white;
    z-index: 1000;
    display: none;
    border-radius: 0 0 4px 4px;
  }

  .results-dropdown div {
    padding: 8px;
    color: #555;
    background-color: #eee;
    cursor: pointer;
  }

  .results-dropdown div:hover {
    background-color: #fff;
  }

  /* Sidebar Menu for mobile */
  .sidebar-menu {
    display: none;
    width: 90%;
    height: 100vh;
    background: #162536;
    color: #fff;
    overflow-y: auto;
    position: fixed;
    top: 0;
    right: 0;
    padding: 0 20px 20px;
    z-index: 999;
  }

  .sidebar-menu ul {
    margin-top: 45px;
    list-style-type: none;
    padding: 0;
  }

  .sidebar-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    background-color: transparent;
  }

  .fi-rr-angle-small-down::before {
    /* product icon */
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .sidebar-menu ul li a:hover {
    background: #575757;
  }

  .sidebar-mega-box {
    display: none;
    flex-direction: column;
    background: #444;
    padding: 5px 0 10px;
    border-radius: 0 0 5px 5px;
    position: relative;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-left: 4px solid white;
  }

  .sidebar-mega-box.active {
    display: block;
  }

  .sidebar-mega-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sidebar-mega-row {
    margin: 5px 0 10px;
  }

  .sidebar-mega-row ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }

  .sidebar-mega-row ul li {
    margin-bottom: 5px;
  }

  .sidebar-mega-row ul li a {
    color: #ddd;
    font-size: 13px;
    padding: 5px 10px;
    text-decoration: none;
    transition: color 0.3s;
  }

  .sidebar-mega-row ul li a:hover {
    color: #fff;
  }
}



/* This forces the box to show whenever the 'active' class is added */
#steamMega.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #2c3e50 !important; /* Temporary bright color to see it */
}

/* Ensure the sub-links aren't hidden */
#steamMega.active a {
    display: block !important;
    color: white !important;
    padding: 12px !important;
}
/* ===============================
   DROPDOWN LINKS TEXT COLOR
   Desktop & Mobile
================================ */
.category-item .product-list li a,
.sidebar-mega-row ul li a {
    color: #ff0000;  /* 👈 change this to any color you want */
}

/* Optional: change hover color if needed */
.category-item .product-list li a:hover,
.sidebar-mega-row ul li a:hover {
    color: #ffffff; /* white on hover */
}
/* ===============================
   DROPDOWN LINKS TEXT COLOR FIX
   Desktop & Mobile
================================ */
.category-item .product-list li a,
.sidebar-mega-row ul li a {
    color: #5DADE2 !important;  /* 👈 red text */
}

/* Hover effect */
.category-item .product-list li a:hover,
.sidebar-mega-row ul li a:hover {
    color: #ffffff !important;  /* white on hover */
}
