/* Mega Menu Enhancement */
.nav-main-links > li {
  position: static;
}

.nav-main-links > li > .mega-menu {
  left: 0;
  transform: translateX(0);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-main-links > li:hover > .mega-menu {
  transform: translateX(0);
}

@media (min-width: 992px) {
  .nav-main-links > li > .mega-menu {
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 800px;
  }
  
  .nav-main-links > li:hover > .mega-menu {
    transform: translateX(-50%);
  }
}

/* Fix for container positioning */
.navbar-main .container {
  position: relative;
}

/* Search results styling */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

/* Breadcrumb styling */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.breadcrumb-item a {
  color: var(--red);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* Filter sidebar */
.filter-sidebar {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
}

.filter-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group h6 {
  margin-bottom: 12px;
}

.filter-group .form-check {
  margin-bottom: 8px;
}

.filter-group .form-check-label {
  font-size: 13px;
  color: var(--text);
}

/* Pagination */
.pagination .page-link {
  color: var(--red);
  border-radius: 8px;
  margin: 0 3px;
}

.pagination .page-item.active .page-link {
  background-color: var(--red);
  border-color: var(--red);
  color: white;
}

/* Product gallery */
.product-gallery-thumb {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.product-gallery-thumb.active {
  border-color: var(--red);
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 8px 15px;
  width: fit-content;
}

.quantity-selector button {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 10px;
  color: var(--red);
}

.quantity-selector span {
  font-size: 18px;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
}