/* ============================================================
   FIBOSEARCH – STYLE CUSTOM LOCATION EN FÊTE v4
   ============================================================ */

/* ── Container dropdown ── */
.dgwt-wcas-suggestions-wrapp {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  margin-top: 6px !important;
  background: #ffffff !important;
}

/* ── Headlines (CATÉGORIES / PRODUITS) ── */
.dgwt-wcas-suggestion-headline {
  background: #f7fafc !important;
  border-bottom: 2px solid #3AA6B9 !important;
  padding: 8px 16px !important;
  pointer-events: none !important;
}

.dgwt-wcas-suggestion-headline .dgwt-wcas-st {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: #3AA6B9 !important;
}

/* ── Chaque suggestion ── */
.dgwt-wcas-suggestion {
  padding: 12px 16px !important;
  border-bottom: 1px solid #dce3eb !important;
  transition: background 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
}

.dgwt-wcas-suggestion:last-child {
  border-bottom: none !important;
}

/* ── Hover / sélection ── */
.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
  background: #f0fafb !important;
  border-left: 3px solid #3AA6B9 !important;
  padding-left: 13px !important;
}

/* ── Catégorie suggestion ── */
.dgwt-wcas-suggestion-cat .dgwt-wcas-st,
.dgwt-wcas-suggestion-tax .dgwt-wcas-st {
  font-size: 14px !important;
  color: #2D3748 !important;
  font-weight: 500 !important;
}

.dgwt-wcas-suggestion-cat .dgwt-wcas-st strong,
.dgwt-wcas-suggestion-tax .dgwt-wcas-st strong {
  color: #3AA6B9 !important;
  font-weight: 700 !important;
}

/* ── Image produit – grande, bien visible ── */
.dgwt-wcas-suggestion-product .dgwt-wcas-si {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid #dce3eb !important;
  background: #ffffff !important;
  margin-right: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.dgwt-wcas-suggestion-product .dgwt-wcas-si img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  mix-blend-mode: multiply !important;
}

/* ── Contenu produit ── */
.dgwt-wcas-content-wrapp {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ── Titre produit ── */
.dgwt-wcas-st-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #2D3748 !important;
  line-height: 1.3 !important;
  display: block !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

/* Highlight du terme recherché */
.dgwt-wcas-suggestion .dgwt-wcas-st strong {
  color: #3AA6B9 !important;
  font-weight: 700 !important;
}

/* ── Prix ── */
.dgwt-wcas-sp {
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  margin-top: 4px !important;
  flex-wrap: wrap !important;
}

.dgwt-wcas-sp .woocommerce-Price-amount {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #E8734A !important;
  white-space: nowrap !important;
}

.dgwt-wcas-sp .woocommerce-price-suffix {
  font-size: 10px !important;
  color: #a0aec0 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

/* Séparateur prix TVAC | HTVA */
.dgwt-wcas-sp .lef-fibo-sep {
  color: #cbd5e0 !important;
  font-size: 11px !important;
  margin: 0 2px !important;
}

/* Prix range (€ 0,30 – € 4,50) */
.dgwt-wcas-sp .woocommerce-Price-amount + span {
  color: #a0aec0 !important;
  font-size: 12px !important;
}

/* ── Lien "Voir tous les produits" ── */
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more {
  background: linear-gradient(135deg, #f7fafc, #edf2f7) !important;
  text-align: center !important;
  padding: 12px 16px !important;
  border-top: 1px solid #dce3eb !important;
  border-bottom: none !important;
  justify-content: center !important;
}

.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more .dgwt-wcas-st {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #3AA6B9 !important;
}

.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more:hover {
  border-left: none !important;
  padding-left: 16px !important;
}

.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more:hover .dgwt-wcas-st {
  color: #2d8a9b !important;
}

/* ── No results ── */
.dgwt-wcas-suggestion-nores {
  padding: 20px 16px !important;
  text-align: center !important;
  color: #718096 !important;
  font-size: 14px !important;
}

/* ── Scrollbar custom ── */
.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar {
  width: 5px;
}

.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 10px;
}

.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-thumb:hover {
  background: #3AA6B9;
}

/* ── Mobile overlay ── */
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestions-wrapp {
  border-radius: 0 !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-top: 2px solid #3AA6B9 !important;
}

/* ── Largeur minimum dropdown desktop ── */
@media (min-width: 1025px) {
  .dgwt-wcas-suggestions-wrapp {
    min-width: 400px !important;
  }
}

/* ── Double prix TVAC | HTVA (injecté par JS) ── */
.dgwt-wcas-sp .lef-fibo-price-dual {
  display: flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  flex-wrap: wrap !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.dgwt-wcas-sp .lef-fibo-price-dual .lef-fibo-tvac {
  font-weight: 700 !important;
  color: #E8734A !important;
  white-space: nowrap !important;
}

.dgwt-wcas-sp .lef-fibo-price-dual .lef-fibo-sep {
  color: #cbd5e0 !important;
  margin: 0 1px !important;
}

.dgwt-wcas-sp .lef-fibo-price-dual .lef-fibo-htva {
  font-weight: 600 !important;
  color: #718096 !important;
  white-space: nowrap !important;
  font-size: 11px !important;
}

/* ============================================================
   BARRE DE RECHERCHE – Focus / Hover
   Trait fin et élégant, supprimer les traits parasites
   ============================================================ */

/* Supprimer TOUT outline natif partout */
.dgwt-wcas-search-wrapp *:focus,
.dgwt-wcas-search-wrapp *:active,
.dgwt-wcas-search-wrapp *:focus-visible,
.dgwt-wcas-search-wrapp:focus-within,
.dgwt-wcas-search-wrapp:focus,
.dgwt-wcas-search-wrapp:active,
div.dgwt-wcas-search-wrapp:focus-within,
.ast-search-box .dgwt-wcas-search-wrapp:focus-within,
.site-header .dgwt-wcas-search-wrapp:focus-within,
.ast-header-search .dgwt-wcas-search-wrapp:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* Input – supprimer tout focus natif */
.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input:focus,
.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input:active,
.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input:focus-visible,
.dgwt-wcas-search-wrapp input[type="search"]:focus,
.dgwt-wcas-search-wrapp input[type="search"]:active,
.dgwt-wcas-search-wrapp input[type="search"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Style Pirx – le wrapper form : pas de border */
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
  transition: border-color 0.2s ease !important;
}

/* Focus wrapper : rien */
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

/* Hover wrapper : rien */
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp:hover {
  border-color: inherit !important;
}

/* ── Input de saisie – trait visible ── */
.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input,
.dgwt-wcas-search-wrapp input[type="search"].dgwt-wcas-search-input {
  border: 1.5px solid #cbd5e0 !important;
  border-radius: 20px !important;
  transition: border-color 0.2s ease !important;
}

/* Input hover */
.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input:hover,
.dgwt-wcas-search-wrapp input[type="search"].dgwt-wcas-search-input:hover {
  border-color: #718096 !important;
}

/* Input focus */
.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input:focus,
.dgwt-wcas-search-wrapp input[type="search"].dgwt-wcas-search-input:focus {
  border-color: #3AA6B9 !important;
  outline: none !important;
  box-shadow: none !important;
}