/* ========================================
   STYLES POUR LA NOUVELLE SEARCH BAR HEADER
   Module ps_searchbar - Meilleur Poêle
   ======================================== */

/* ========================================
   SECTION HEADER PRINCIPALE AVEC SEARCH BAR
   ======================================== */

.mp-header-search-section {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.mp-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========================================
   CORRECTION POUR ÉVITER L'INTERFÉRENCE AVEC CUSTOM.CSS
   ======================================== */

/* Forcer la largeur complète sur mobile pour éviter l'interférence avec custom.css */
@media (max-width: 768px) {
  .mp-header-search-section .mp-container {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .mp-header-search-section-mobile .mp-container {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ========================================
   PREMIÈRE SECTION MOBILE : Logo + Menu + Icônes
   ======================================== */

.mp-header-top-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.mp-header-top-section .mp-header-logo {
  flex-shrink: 0;
}

.mp-header-top-section .mp-header-user-icons {
  flex-shrink: 0;
  gap: 12px;
  display: flex;
  align-items: center;
}

/* ========================================
   DEUXIÈME SECTION MOBILE : Barre de recherche pleine largeur
   ======================================== */

.mp-header-search-section-mobile {
  width: 100%;
  padding: 0 4px;
}

.mp-header-search-section-mobile .mp-header-search-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.mp-header-search-section-mobile .mp-search-form {
  width: 100%;
}

.mp-header-search-section-mobile .mp-search-input-wrapper {
  width: 100%;
}

.mp-header-search-section-mobile .mp-search-input {
  width: 100%;
  box-sizing: border-box;
}

/* ========================================
   VERSION DESKTOP : Layout horizontal original
   ======================================== */

.mp-header-search-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

/* ========================================
   LOGO HEADER
   ======================================== */

.mp-header-logo {
  flex-shrink: 0;
}

/* ========================================
   BOUTON HAMBURGER MOBILE
   ======================================== */

.mp-hamburger-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-width: 40px;
  min-height: 40px;
  gap: 8px;
}

.mp-hamburger-btn:hover {
  background-color: #f3f4f6;
}

.mp-hamburger-btn:active {
  background-color: #e5e7eb;
}

.mp-hamburger-icon {
  width: 20px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mp-hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #374151;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mp-hamburger-btn:hover .mp-hamburger-icon span {
  background-color: rgb(253, 72, 20);
}

.mp-hamburger-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mp-hamburger-btn:hover .mp-hamburger-text {
  color: rgb(253, 72, 20);
}

/* Animation du bouton hamburger quand le menu est ouvert */
.mp-hamburger-btn.active .mp-hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mp-hamburger-btn.active .mp-hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mp-hamburger-btn.active .mp-hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   CONTAINER SEARCH BAR
   ======================================== */

.mp-header-search-container {
  flex: 1;
  max-width: 768px; /* équivalent max-w-2xl */
  margin: 0 16px;
  position: relative; /* Pour positionner l'autocomplétion */
}

.mp-search-form {
  width: 100%;
}

.mp-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mp-search-input {
  width: 100%;
  padding: 12px 16px;
  padding-right: 48px; /* espace pour le bouton */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background-color: white;
  transition: all 0.2s ease;
  outline: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mp-search-input:focus {
  border-color: rgb(253, 72, 20);
  box-shadow: 0 0 0 2px rgba(253, 72, 20, 0.2);
}

.mp-search-input::placeholder {
  color: #9ca3af;
}

.mp-header-search-container .mp-search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(253, 72, 20);
  border: none;
  padding: 8px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-search-button:hover {
  background-color: rgb(224, 62, 0);
}

.mp-search-icon {
  width: 16px;
  height: 16px;
}

/* ========================================
   ICÔNES UTILISATEUR (MON COMPTE + PANIER)
   ======================================== */

.mp-header-user-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Styles pour les icônes de navigation (compte, panier) */
.mp-header-user-icons a {
  color: #374151;
  transition: color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mp-header-user-icons a:hover {
  color: rgb(253, 72, 20);
}

.mp-header-user-icons svg {
  width: 24px;
  height: 24px;
}

/* Badge du panier */
.mp-header-user-icons .cart-products-count,
.mp-header-user-icons .cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: rgb(253, 72, 20);
  color: white;
  font-size: 12px;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 768px) {
  /* Masquer la version desktop */
  .mp-desktop-only {
    display: none !important;
  }
  
  /* Afficher la version mobile */
  .mp-header-top-section {
    display: flex !important;
  }
  
  .mp-header-search-section-mobile {
    display: block;
  }
  
  /* Padding mobile pour le container */
  .mp-header-search-section .mp-container {
    padding: 0.5rem;
  }
  
  .mp-header-search-container {
    margin: 0;
    max-width: none;
  }
  
  .mp-search-input {
    padding: 14px 16px;
    padding-right: 50px;
    font-size: 16px; /* évite le zoom sur iOS */
    border-radius: 10px; /* Plus arrondi sur mobile */
  }
  
  .mp-header-user-icons {
    gap: 16px;
  }
  
  /* Optimiser l'espacement du header */
  .mp-header-search-section {
    padding: 12px 0;
  }
  
  /* Ajuster la taille du logo sur mobile */
  .mp-header-top-section .mp-header-logo img {
    max-height: 32px;
    width: auto;
  }
}

@media (min-width: 769px) {
  /* Masquer la version mobile */
  .mp-header-top-section,
  .mp-header-search-section-mobile {
    display: none !important;
  }
  
  /* Afficher la version desktop */
  .mp-desktop-only {
    display: flex !important;
  }
  
  .mp-header-user-icons .account-link {
    display: flex;
  }
}

/* ========================================
   STYLES POUR L'OVERLAY DE RECHERCHE MODERNE
   Module ps_searchbar - Meilleur Poêle
   ======================================== */

/* Reset et styles de base */
#header, #header .header-top {
  background-color: white;
}

/* Icône de recherche dans la navigation */
.mp-search-trigger.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #374151;
  transition: color 0.2s ease;
  text-decoration: none;
  border-radius: 8px;
}

.mp-search-trigger.nav-icon:hover {
  color: rgb(253, 72, 20);
  background-color: #f9fafb;
}

.mp-search-trigger.nav-icon svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   OVERLAY PLEINE PAGE
   ======================================== */

.mp-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  animation: mpFadeIn 0.3s ease-out;
}

.mp-search-overlay-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.mp-search-overlay-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: mpSlideDown 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

/* ========================================
   HEADER DE L'OVERLAY
   ======================================== */

.mp-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #fafafa;
}

.mp-search-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mp-search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-search-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.mp-search-close svg {
  width: 32px;
  height: 32px;
}

/* ========================================
   FORMULAIRE DE RECHERCHE PRINCIPAL
   ======================================== */

.mp-search-form-container {
  padding: 32px 24px 24px;
  background-color: white;
}

.mp-search-form {
  width: 100%;
}

.mp-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  overflow: hidden;
}

.mp-search-input-wrapper:focus-within {
  border-color: rgb(253, 72, 20);
  box-shadow: 0 0 0 3px rgba(253, 72, 20, 0.1);
}

.mp-search-input {
  flex: 1;
  border: none;
  background: none;
  padding: 0.75rem 0.75rem;
  font-size: 18px;
  color: #111827;
  outline: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
}

.mp-search-input::placeholder {
  color: #9ca3af;
}

.mp-search-input-wrapper .mp-search-button {
  background-color: rgb(253, 72, 20);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: initial;
  width: initial;
  font-size: 0.875rem;
  min-width: initial;
  font-weight: 400;
}

.mp-search-button:hover {
  background-color: rgb(224, 62, 0);
}

.mp-search-button svg {
  margin: 0;
}

/* ========================================
   SUGGESTIONS DE RECHERCHE
   ======================================== */

.mp-search-suggestions {
  padding: 0 24px 24px;
  background-color: white;
}

.mp-search-suggestions-header {
  margin-bottom: 16px;
}

.mp-search-suggestions-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  background: none !important;
  padding: 0 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mp-search-suggestions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.mp-search-suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 14px;
}

.mp-search-suggestion-item:hover {
  background-color: #f3f4f6;
  border-color: rgb(253, 72, 20);
  color: rgb(253, 72, 20);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mp-suggestion-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ========================================
   ZONE DE CHARGEMENT
   ======================================== */

.mp-search-loading {
  padding: 40px 24px;
  text-align: center;
  background-color: white;
}

.mp-loading-spinner {
  display: inline-block;
  margin-bottom: 16px;
}

.mp-spinner {
  width: 32px;
  height: 32px;
  color: rgb(253, 72, 20);
  animation: mpSpin 1s linear infinite;
}

.mp-search-loading p {
  margin: 0;
  color: #6b7280;
  font-style: italic;
}

@keyframes mpSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   RÉSULTATS DE RECHERCHE
   ======================================== */

.mp-search-results {
  background-color: white;
  border-top: 1px solid #e5e7eb;
}

.mp-search-results-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mp-search-results-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  background: none !important;
  padding: 0 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mp-search-results-count {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.mp-search-results-list {
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
}

/* ========================================
   ÉLÉMENTS PRODUIT
   ======================================== */

.mp-search-product-item {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.mp-search-product-item:hover {
  background-color: #f3f4f6;
  border-color: rgb(253, 72, 20);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.mp-product-image-container {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin-right: 16px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-product-image-placeholder {
  width: 40px;
  height: 40px;
  color: #9ca3af;
}

.mp-product-image-placeholder svg {
  width: 100%;
  height: 100%;
}

.mp-product-info {
  flex: 1;
  min-width: 0;
}

.mp-product-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: none !important;
  padding: 0 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mp-product-price {
  font-size: 18px;
  font-weight: 700;
  color: rgb(253, 72, 20);
  margin: 0 0 6px 0;
}

.mp-product-availability {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px 0;
}

.mp-product-available {
  color: #16a34a;
}

.mp-product-unavailable {
  color: #dc2626;
}

.mp-product-reference {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  font-style: italic;
}

/* ========================================
   FOOTER DES RÉSULTATS
   ======================================== */

.mp-search-results-footer {
  padding: 16px 24px 24px;
  text-align: center;
}

.mp-see-all-results {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: rgb(253, 72, 20);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mp-see-all-results:hover {
  background-color: rgb(224, 62, 0);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 72, 20, 0.3);
}

.mp-see-all-results svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   AUCUN RÉSULTAT
   ======================================== */

.mp-search-no-results {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.mp-no-results-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #9ca3af;
}

.mp-search-no-results p {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
}

.mp-search-suggestions-text {
  font-size: 14px !important;
  color: #9ca3af !important;
  font-weight: normal !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes mpFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mpSlideDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 768px) {
  .mp-search-overlay-content {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .mp-search-header {
    padding: 20px;
  }

  .mp-search-title {
    font-size: 20px;
  }

  .mp-search-form-container {
    padding: 24px 20px 20px;
  }

  .mp-search-input {
    font-size: 13px;
    padding: 14px 16px;
  }

  .mp-search-button {
    padding: 14px 16px;
  }

  .mp-search-suggestions {
    padding: 0 20px 20px;
  }

  .mp-search-suggestions-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mp-search-suggestion-item {
    padding: 12px 14px;
    font-size: 14px;
  }

  .mp-search-results {
    padding: 0;
  }
  
  .mp-search-results-header {
    padding: 20px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .mp-search-results-list {
    padding: 0 20px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mp-search-results-footer {
    padding: 16px 20px 20px;
  }

  .mp-search-loading {
    padding: 40px 20px;
  }

  .mp-search-product-item {
    padding: 12px;
  }

  .mp-product-image-container {
    width: 70px;
    height: 70px;
    margin-right: 12px;
  }

  .mp-product-name {
    font-size: 15px;
  }

  .mp-product-price {
    font-size: 16px;
  }
}

/* ========================================
   STYLES LEGACY (compatibilité)
   ======================================== */

/* Masquer l'ancien widget de recherche s'il existe encore */
#search_widget {
  display: none !important;
}

/* Styles pour l'autocomplétion jQuery UI (si utilisée) */
.ui-autocomplete.searchbar-autocomplete {
  width: 100%;
  min-height: 100%;
  border: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ui-autocomplete.searchbar-autocomplete li a, 
.ui-autocomplete.searchbar-autocomplete li a.ui-state-focus {
  padding: 12px 16px;
  overflow: auto;
  border: none;
  background: none;
  margin: auto;
  border-radius: 0;
  color: #374151;
}

.ui-autocomplete.searchbar-autocomplete li a:hover {
  background-color: #f9fafb;
  cursor: pointer;
  color: rgb(253, 72, 20);
}

.ui-autocomplete.searchbar-autocomplete li a .autocomplete-thumbnail {
  float: left;
  width: 50px;
  height: auto;
  margin-right: 12px;
  border-radius: 4px;
}

/* ========================================
   STYLES POUR L'AUTOCOMPLÉTION INLINE DU HEADER
   ======================================== */

.mp-header-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
}

/* Zone de chargement inline */
.mp-autocomplete-loading {
  padding: 20px;
  text-align: center;
  color: #6b7280;
}

.mp-autocomplete-loading .mp-loading-spinner {
  display: inline-block;
  margin-bottom: 8px;
}

.mp-autocomplete-loading .mp-spinner {
  width: 20px;
  height: 20px;
  color: rgb(253, 72, 20);
  animation: mpSpin 1s linear infinite;
}

.mp-autocomplete-loading p {
  margin: 0;
  font-size: 14px;
}

/* Suggestions populaires inline */
.mp-autocomplete-suggestions {
  padding: 16px;
}

.mp-autocomplete-suggestions-header {
  margin-bottom: 12px;
}

.mp-autocomplete-suggestions-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mp-autocomplete-suggestions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.mp-autocomplete-suggestion-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 13px;
}

.mp-autocomplete-suggestion-item:hover {
  background-color: #f3f4f6;
  border-color: rgb(253, 72, 20);
  color: rgb(253, 72, 20);
  text-decoration: none;
}

.mp-autocomplete-suggestion-item .mp-suggestion-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Résultats de recherche inline */
.mp-autocomplete-results {
  border-top: 1px solid #e5e7eb;
  padding: 16px;
  background-color: #fafafa;
}

.mp-autocomplete-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-autocomplete-product-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.mp-autocomplete-product-item:hover {
  background-color: #f9fafb;
  border-color: rgb(253, 72, 20);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.mp-autocomplete-product-image-container {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin-right: 12px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-autocomplete-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-autocomplete-product-image-placeholder {
  width: 30px;
  height: 30px;
  color: #9ca3af;
}

.mp-autocomplete-product-image-placeholder svg {
  width: 100%;
  height: 100%;
}

.mp-autocomplete-product-info {
  flex: 1;
  min-width: 0;
}

.mp-autocomplete-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mp-autocomplete-product-price {
  font-size: 16px;
  font-weight: 700;
  color: rgb(253, 72, 20);
  margin: 0 0 4px 0;
}

.mp-autocomplete-product-availability {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 2px 0;
}

.mp-autocomplete-product-available {
  color: #16a34a;
}

.mp-autocomplete-product-unavailable {
  color: #dc2626;
}

.mp-autocomplete-product-reference {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  font-style: italic;
}

/* Aucun résultat inline */
.mp-autocomplete-no-results {
  text-align: center;
  padding: 20px;
  color: #6b7280;
}

.mp-autocomplete-no-results-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  color: #9ca3af;
}

.mp-autocomplete-no-results p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive pour l'autocomplétion inline */
@media (max-width: 768px) {
  .mp-header-autocomplete {
    max-height: 300px;
  }
  
  .mp-autocomplete-suggestions-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .mp-autocomplete-suggestion-item {
    padding: 10px;
    font-size: 12px;
  }
  
  .mp-autocomplete-product-image-container {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }
  
  .mp-autocomplete-product-name {
    font-size: 13px;
  }
  
  .mp-autocomplete-product-price {
    font-size: 14px;
  }
}
