/* ── FL Sticky Add to Cart ── */
.fl-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  border-top: 2px solid #e5e7eb;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  will-change: transform;
}
.fl-sticky-bar.fl-sticky-visible {
  transform: translateY(0);
}

.fl-sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Colonnes */
.fl-sticky-col {
  display: flex;
  align-items: center;
}
.fl-sticky-col-img {
  flex: 0 0 auto;
}
.fl-sticky-col-info {
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}
.fl-sticky-col-variants {
  flex: 0 0 auto;
}
.fl-sticky-col-qty {
  flex: 0 0 auto;
}
.fl-sticky-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
  display: block;
}
.fl-sticky-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.fl-sticky-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #394873;
}

/* Zone variants dans sa colonne */
#fl-sticky-variants {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Select déclinaisons */
.fl-sticky-select {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  font-size: 0.85rem;
  color: #374151;
  background: #fff;
  cursor: pointer;
  max-width: 170px;
  outline: none;
}
.fl-sticky-select:focus { border-color: #394873; }

/* Zone smart qty */
.fl-sticky-smart-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Stepper inline (caché par défaut) */
.fl-sticky-stepper {
  display: flex;
  align-items: stretch;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  height: 42px;
  overflow: hidden;
  margin-right: 0.5rem;
}
.fl-sticky-stepper .fl-sticky-qty-btn {
  width: 36px;
  height: 100%;
  background: #e5e7eb;
  border: none;
  font-size: 1.15rem;
  color: #374151;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.15s;
}
.fl-sticky-stepper .fl-sticky-qty-btn:hover { background: #d1d5db; }
.fl-sticky-count {
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  background: #e5e7eb;
}

/* Bouton panier */
.fl-sticky-atc-btn {
  width: 42px;
  height: 42px;
  background: #394873;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.fl-sticky-atc-btn:hover:not(:disabled) { background: #2f3c60; }
.fl-sticky-atc-btn:disabled,
.fl-sticky-atc-btn.fl-sticky-atc-disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ── Toast ── */
.fl-sticky-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9100;
}
.fl-sticky-toast.fl-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .fl-sticky-inner {
    flex-wrap: nowrap;
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
    min-height: 90px; /* Bandeau plus haut */
    align-items: center;
  }

  /* Colonne 1: Image */
  .fl-sticky-col-img .fl-sticky-img {
    width: 60px;
    height: 60px;
  }

  /* Colonne 2: Titre + Prix */
  .fl-sticky-col-info {
    flex: 0 0 auto;
    max-width: 25%;
    min-width: 160px;
    gap: 0.15rem;
  }
  .fl-sticky-title {
    font-size: 0.8rem;
    width: 27ch;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fl-sticky-price {
    font-size: 0.9rem;
  }

  /* Colonne 3: Déclinaisons - empilées verticalement */
  .fl-sticky-col-variants {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
    margin-left: 14px;
  }
  #fl-sticky-variants {
    gap: 0.35rem;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .fl-sticky-select {
    max-width: none;
    width: 100%;
    min-width: 80px;
    font-size: 0.75rem;
    padding: 0 0.5rem;
    height: 32px;
  }

  /* Colonne 4: Bouton/Stepper */
  .fl-sticky-col-qty {
    flex: 0 0 auto;
    align-self: center;
  }
  .fl-sticky-atc-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .fl-sticky-stepper {
    height: 44px;
    margin-right: 0;
  }
  .fl-sticky-stepper .fl-sticky-qty-btn {
    width: 38px;
    height: 44px;
    font-size: 1.1rem;
  }
  .fl-sticky-count {
    min-width: 34px;
    font-size: 0.9rem;
  }
}

/* ── Très petit mobile ── */
@media (max-width: 380px) {
  .fl-sticky-inner {
    gap: 0.3rem;
    padding: 0.4rem 0.4rem;
  }
  .fl-sticky-col-img .fl-sticky-img {
    width: 40px;
    height: 40px;
  }
  .fl-sticky-title {
    font-size: 0.7rem;
  }
  .fl-sticky-price {
    font-size: 0.8rem;
  }
  .fl-sticky-select {
    max-width: 75px;
    min-width: 60px;
    font-size: 0.65rem;
    padding: 0 0.25rem;
    height: 36px;
  }
  .fl-sticky-stepper {
    height: 36px;
  }
  .fl-sticky-stepper .fl-sticky-qty-btn {
    width: 30px;
    height: 36px;
    font-size: 0.9rem;
  }
  .fl-sticky-count {
    min-width: 26px;
    font-size: 0.8rem;
  }
  .fl-sticky-atc-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}
