/* stickymenu.css — scoped for sticky main nav */

.smm-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #3e3e3e;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.smm-logo {
  height: 40px;
  max-width: 100%;
}

.smm-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.smm-toggle span {
  background: white;
  height: 3px;
  margin: 4px;
  width: 25px;
}

.smm-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.smm-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.smm-links a:hover {
  color: #d9534f;
}

.smm-dropdown {
  position: relative;
}

.smm-submenu {
  display: none;
  position: absolute;
  background: #3e3e3e;
  top: 100%;
  left: 0;
  min-width: 220px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 1001;
}

.smm-submenu a {
  display: block;
  padding: 10px 15px;
  white-space: nowrap;
  border-bottom: 1px solid #444;
}

.smm-submenu a:hover {
  background: #444;
}

@media (max-width: 768px) {
  .smm-toggle {
    display: flex;
  }

  .smm-links {
    flex-direction: column;
    background: #3e3e3e;
    width: 100%;
    display: none;
    padding: 10px 0;
    max-height: 90vh;
    overflow-y: auto;
  }

  .smm-links.active {
    display: flex;
  }

  /* Simplify mobile layout - flatten structure */
  .smm-dropdown {
    display: contents;
  }

  .smm-dropdown > a.smm-toggle-sub {
    display: none;
  }

  .smm-submenu {
    display: contents;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .smm-submenu a {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #444;
    font-weight: normal;
  }

  .smm-submenu a:hover {
    background: #444;
  }

  .smm-links a {
    padding: 10px 20px;
    font-size: 16px;
    border-bottom: 1px solid #444;
    font-weight: normal;
  }
}

/* Desktop-only dropdown behavior */
@media (min-width: 769px) {
  .smm-dropdown:hover .smm-submenu {
    display: block;
  }

  .smm-submenu {
    right: auto;
    left: 0;
  }

  .smm-dropdown:last-child .smm-submenu {
    right: 0;
    left: auto;
  }
}
/* Footer */
footer {
  text-align: center;
  background-color: #3e3e3e;
  padding: 15px 0;
  margin-top: 20px;
}

.social-icons img {
  width: 30px;
  margin: 0 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d9534f;
}
.smm-mygear-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.smm-mygear-link img.smm-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.smm-sale {
  color: #ff4d4d;
  font-weight: bold;
}
@media (max-width: 480px) {
  .smm-mygear-link img.smm-avatar {
    display: none;
  }
}

/* Wrapper just below sticky nav */
.smm-searchbar-wrapper {
  width: 100%;
  background: #333;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: center;
  z-index: 999;
  box-sizing: border-box; /* ✅ This line fixes the overflow */
}

/* Search form layout */
.smm-searchbar-wrapper form.searchbox-form {
  display: flex;
  align-items: center;
  max-width: 600px;
  width: 100%;
  gap: 8px;
}

/* Input styling */
.searchbox-input {
  flex: 1;
  padding: 10px 12px 10px 36px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff url('/assets/images/magnifier.svg') no-repeat 10px center;
  background-size: 16px 16px;
}

/* Button styling */
.searchbox-button {
  padding: 10px 16px;
  font-size: 16px;
  background-color: #cccd12;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Mobile-friendly layout */
@media (max-width: 480px) {
  .smm-searchbar-wrapper form.searchbox-form {
    flex-direction: column;
    align-items: stretch;
  }

  .searchbox-button {
    width: 100%;
  }

  .searchbox-input {
    padding-left: 36px;
  }
}
.search-suggest-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-width: 100%; /* NEW: restrict to parent width */
  background: #fff;
  border: 1px solid #ccc;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0;
  margin: 4px 0 0 0;
  list-style: none;
  border-radius: 4px;
  box-sizing: border-box; /* ensures padding/borders don't break width */
}
.search-suggest-box li {
  padding: 8px 12px;
  cursor: pointer;
  color: #222; /* Make the text dark */
  background-color: #fff; /* Ensure white background */
}

.search-suggest-box li:hover {
  background-color: #eee; /* Light grey hover for contrast */
}