/* ==========================================================================
   HEADER MOBILE & NAVIGATION (PULSAT GUADELOUPE OFFICIEL #E5007E)
   ========================================================================== */

.pulsat-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white, #FFFFFF);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
  z-index: var(--z-header, 990);
  padding-top: var(--safe-area-top, 0px);
}

/* Bandeau Supérieur Info Guadeloupe - FOND COULEUR PULSAT #E5007E */
.header-topbar {
  background-color: #E5007E !important;
  color: #FFFFFF !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-topbar-badge {
  background-color: #FFFFFF !important;
  color: #E5007E !important;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF !important;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.store-selector-btn:hover {
  opacity: 0.9;
}

/* Ligne Principale Header : Logo Agrandit à 270px */
.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  max-width: 270px;
}

.site-logo-img {
  width: 270px !important;
  max-width: 270px !important;
  height: auto !important;
  max-height: 60px !important;
  object-fit: contain;
  display: block;
}

@media (max-width: 767px) {
  .site-logo-link {
    max-width: 190px;
  }
  .site-logo-img {
    width: 190px !important;
    max-width: 190px !important;
    max-height: 48px !important;
  }
}

/* Barre de Recherche */
.header-search-wrapper {
  flex-grow: 1;
  max-width: 650px;
  position: relative;
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.header-search-input {
  width: 100%;
  height: var(--search-bar-height, 44px);
  background-color: var(--gray-100, #F1F5F9);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-full, 9999px);
  padding-left: 42px;
  padding-right: 40px;
  font-size: 0.88rem;
  color: var(--gray-900, #0F172A);
  transition: all var(--transition-fast, 0.2s ease);
}

.header-search-input:focus {
  background-color: #FFFFFF;
  border-color: #E5007E;
  box-shadow: 0 0 0 3px rgba(229, 0, 126, 0.15);
  outline: none;
}

.header-search-icon {
  position: absolute;
  left: 14px;
  color: var(--gray-500, #64748B);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-clear {
  position: absolute;
  right: 12px;
  color: var(--gray-400, #94A3B8);
  display: none;
  cursor: pointer;
  padding: 4px;
}

.header-search-clear.visible {
  display: flex;
}

/* Actions Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pulsat-navy, #0F172A);
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-full, 9999px);
  background-color: var(--gray-100, #F1F5F9);
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-action-btn:hover {
  background-color: #E5007E;
  color: #FFFFFF;
}

.header-action-btn:hover svg {
  stroke: #FFFFFF;
}

.header-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #E5007E;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full, 9999px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
}

/* ==========================================================================
   CATEGORY BUBBLE PILLS (PARFAITEMENT CENTRÉ SOUS LE LOGO SUR PC)
   ========================================================================== */

.category-bubbles-section {
  background-color: var(--color-white, #FFFFFF);
  border-bottom: 1px solid var(--gray-200, #E2E8F0);
  padding: 10px 0 8px;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
}

.category-bubbles-scroll {
  display: inline-flex !important;
  align-items: flex-start;
  justify-content: center !important;
  gap: 18px;
  padding: 4px 20px;
  max-width: 1280px;
  margin: 0 auto !important;
  width: auto;
}

.category-bubble-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  flex-shrink: 0;
  width: 76px;
  text-decoration: none !important;
}

.category-bubble-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full, 9999px);
  background-color: var(--gray-100, #F8FAFC);
  border: 1.5px solid var(--gray-200, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all var(--transition-fast, 0.2s ease);
}

.category-bubble-item:hover .category-bubble-icon,
.category-bubble-item.active .category-bubble-icon {
  border-color: #E5007E;
  background-color: #FDF2F8;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(229, 0, 126, 0.2);
}

.category-bubble-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-bubble-icon svg {
  width: 26px;
  height: 26px;
  color: var(--pulsat-navy, #0F172A);
  stroke: var(--pulsat-navy, #0F172A);
}

.category-bubble-item.promo .category-bubble-icon {
  border-color: #E5007E;
  background: linear-gradient(135deg, #FDF2F8, #FCE7F3);
}

.category-bubble-item.promo .category-bubble-icon svg {
  color: #E5007E;
  stroke: #E5007E;
}

.category-bubble-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pulsat-navy, #0F172A);
  line-height: 1.15;
  max-width: 76px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .category-bubbles-section {
    display: block !important;
  }
  .category-bubbles-scroll {
    display: flex !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    width: 100%;
  }
  .category-bubbles-scroll::-webkit-scrollbar {
    display: none;
  }
}
