/* Store Navigation Enhancements */

/* Desktop Navigation - Store name styling */
.navigation li.current > a {
  color: #76a713 !important;
  font-weight: 600 !important;
  position: relative;
}

.navigation li.current > a:before {
  opacity: 1 !important;
  width: 80% !important;
  background: #76a713 !important;
}

.navigation li.current > a:hover {
  color: #76a713 !important;
}

/* Mobile Navigation - Store name styling */
.mobile-header li.current > a {
  color: #76a713 !important;
  font-weight: 600 !important;
  background: rgba(118, 167, 19, 0.1) !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
}

.mobile-header li.current > a:hover {
  color: #76a713 !important;
  background: rgba(118, 167, 19, 0.15) !important;
}

/* Store name truncation for very long names */
.navigation li.current > a,
.mobile-header li.current > a {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Mobile responsive adjustments */
@media only screen and (max-width: 767px) {
  .navigation li.current > a,
  .mobile-header li.current > a {
    max-width: 150px;
  }
}

@media only screen and (max-width: 480px) {
  .navigation li.current > a,
  .mobile-header li.current > a {
    max-width: 120px;
  }
}

/* Store Dropdown Styling */
.navigation .dropdown {
  position: relative;
}

.store-dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.store-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  margin-top: 8px;
}

.store-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #e0e0e0;
}

.store-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
}

.dropdown-header {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  padding: 10px 16px !important;
  color: #333 !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease !important;
  gap: 10px !important;
}

.dropdown-item:hover {
  background-color: #f8f9fa !important;
  color: #76a713 !important;
}

.store-logo-small {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.store-name {
  font-weight: 500;
  font-size: 14px;
}

/* Mobile Store Dropdown Styling */
.mobile-store-dropdown {
  position: relative;
}

.mobile-store-toggle {
  background: none;
  border: none;
  color: #76a713 !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  background: rgba(118, 167, 19, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-store-toggle:hover {
  background: rgba(118, 167, 19, 0.15) !important;
}

.mobile-store-menu {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 8px 0;
  margin: 8px 0 0 0;
  list-style: none;
}

.mobile-dropdown-header {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-dropdown-item {
  display: flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  color: #333 !important;
  text-decoration: none !important;
  gap: 8px !important;
  transition: background-color 0.2s ease !important;
}

.mobile-dropdown-item:hover {
  background-color: #e9ecef !important;
  color: #76a713 !important;
}

.mobile-store-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}