/* Search Bar Styles */
.search-bar { 
  flex: 1; 
  max-width: 600px; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 12px 18px; 
  background: white; 
  border: 2px solid var(--black); 
  border-radius: 50px; 
  transition: border-color 0.2s; 
}
.search-bar:focus-within { border-color: var(--pink); }
.search-bar input { 
  flex: 1; 
  border: none; 
  outline: none; 
  font-size: 14px; 
  font-family: inherit; 
  background: transparent; 
}
.search-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

.mobile-search-bar-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--light-gray);
  border-radius: 24px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--gray);
  transition: border-color 0.2s, background 0.2s;
  text-align: right;
}
.mobile-search-bar-trigger:hover,
.mobile-search-bar-trigger:active {
  border-color: var(--pink);
  background: white;
}
.mobile-search-bar-trigger svg {
  flex-shrink: 0;
  color: var(--gray);
}
.mobile-search-bar-text {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-bar { position: relative; }
.desktop-search-results { 
  position: absolute; 
  top: calc(100% + 15px); 
  left: 0; 
  right: 0; 
  background: white; 
  border-radius: 4px; 
  box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
  z-index: 1000; 
  max-height: 500px; 
  overflow-y: auto; 
  display: none; 
  padding: 0;
}

.desktop-search-results.show { display: block; }

/* Custom Scrollbar from screenshot */
.desktop-search-results::-webkit-scrollbar {
  width: 10px;
}
.desktop-search-results::-webkit-scrollbar-track {
  background: #f9f9f9;
}
.desktop-search-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 0;
}

/* Shared Search Results Styling */
.search-section { margin-bottom: 0; }
.search-section-title { 
  padding: 12px 20px;
  background: #fdfdfd;
  font-size: 12px;
  color: var(--gray);
  border-bottom: 1px solid #eee;
  margin: 0;
}

.search-results-products { display: flex; flex-direction: column; }

.search-res-product { 
  display: flex; 
  align-items: center;
  padding: 12px 15px; 
  border-bottom: 1px solid #f2f2f2; 
  text-decoration: none; 
  color: inherit; 
  transition: background 0.2s; 
  gap: 15px;
}

.search-res-product:hover { background: #fcfcfc; }

.search-res-product .img { 
  width: 50px; 
  height: 50px; 
  flex-shrink: 0; 
}

.search-res-product .img img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

.search-res-product .info { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  text-align: right;
}

.search-res-product .cat {
  font-size: 10px;
  color: #999;
  font-weight: 600;
  margin-bottom: 1px;
}

.search-res-product .name { 
  font-size: 14px; 
  font-weight: 800; 
  margin: 0;
  line-height: 1.2; 
}

.search-res-product .price { 
  font-size: 14px; 
  color: var(--pink); 
  font-weight: 800; 
  margin-top: 2px;
}

.search-view-all { 
  display: block; 
  text-align: center; 
  padding: 16px; 
  background: white; 
  color: var(--pink); 
  text-decoration: none; 
  font-size: 13px; 
  font-weight: 800; 
  border-top: 1px solid #eee;
}

.search-view-all:hover {
  text-decoration: underline;
}

.search-no-results { text-align: center; padding: 40px 20px; }
