.search-box {
  position: relative;
  width: 240px;
}

.search-wrapper {
  position: relative;
  display: inline-block;
  width: 240px
}


/* ===== FORM ===== */
.search-form {
  position: relative;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #769bc2, #ffffff);
}

/* ===== INPUT ===== */
#search-input {
  width: 100%;
  height: 38px;
  padding: 0 45px 0 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: #fff;
}

/* ===== BUTTON ===== */
.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  width: 28px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
  background: linear-gradient(135deg, #0056b3 0%, #007BFF 100%);
}

.search-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.search-btn svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

/* ===== DROPDOWN ===== */
/* #search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  max-width: 92vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 99999;
} */
#search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 360px;
  /* largeur min plus grande que la barre */
  max-width: 92vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 99999;
}



/* ===== ITEM ===== */
.search-item {
  display: grid;
  grid-template-columns: 70px 1fr 100px;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: #111;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.search-item:hover {
  background: #f1f5f9;
}

/* TYPE (Produit / Catégorie) */
.search-type {
  font-weight: 600;
  color: #1e40af;
  font-size: 0.7rem;
  /* plus petit */
  text-transform: uppercase;
}

/* NAME */
.search-name {
  font-size: 0.95rem;
  /* plus grand */
  font-weight: 700;
}

/* IMAGES */
.search-images img {
  height: 36px;
  margin-left: 4px;
  object-fit: contain;
}


.search-see-more {
  display: block;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #1e40af;
  background: #f8fafc;
}

.search-see-more:hover {
  background: #e0e7ff;
}

/* @media (max-width: 600px) {
  #search-suggestions {
    width: 94vw;
    max-width: 94vw;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px;
  }
} */

@media (max-width: 768px) {
  #search-suggestions {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 90px;
    /* sous le header */
    width: 94vw;
    min-width: unset;
    max-width: 94vw;
  }
}