/* Custom styles for Medivoire - Matériel Médical Ivoire */

:root {
  --med-orange: #E56020;
  --med-orange-dark: #C94E14;
  --med-orange-light: #FFF4ED;
  --med-cyan: #00A4BD;
  --med-cyan-dark: #00879C;
  --med-cyan-light: #E6F8FA;
  --med-slate: #0F172A;
  --med-gray: #64748B;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* Couleurs personnalisées Medivoire */
.text-med-orange { color: var(--med-orange); }
.bg-med-orange { background-color: var(--med-orange); }
.hover\:bg-med-orange-dark:hover { background-color: var(--med-orange-dark); }
.border-med-orange { border-color: var(--med-orange); }

.text-med-cyan { color: var(--med-cyan); }
.bg-med-cyan { background-color: var(--med-cyan); }
.hover\:bg-med-cyan-dark:hover { background-color: var(--med-cyan-dark); }
.border-med-cyan { border-color: var(--med-cyan); }

.bg-med-orange-light { background-color: var(--med-orange-light); }
.bg-med-cyan-light { background-color: var(--med-cyan-light); }

/* Glassmorphism & Ombres Haut de Gamme */
.med-shadow {
  box-shadow: 0 10px 25px -5px rgba(0, 164, 189, 0.08), 0 8px 10px -6px rgba(229, 96, 32, 0.05);
}

.med-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.med-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(0, 164, 189, 0.15);
}

/* Effets de boutons commerciaux */
.btn-press {
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.btn-press:active {
  transform: scale(0.97);
}

/* Animations Fluides & Subtiles */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.animate-pulse-subtle {
  animation: pulse-subtle 2.5s infinite ease-in-out;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.animate-float {
  animation: float-gentle 4s ease-in-out infinite;
}

@keyframes toast-slide {
  from { transform: translateY(100%) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.toast-enter {
  animation: toast-slide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Badges Commerciaux Raffinés & Compacts */
.badge-stock-green {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: fit-content;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(5, 150, 105, 0.92);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.badge-ce-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  max-width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.badge-promo-orange {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #e56020 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(229, 96, 32, 0.3);
}

.badge-installment-indigo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  max-width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.92);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

/* Zoom Image Produit Fluide */
.product-img-box {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}
.product-img-box img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-img-box:hover img {
  transform: scale(1.06);
}

/* Barre d'Action Achat Flottante Mobile */
.sticky-mobile-buybar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* Widget Flottant WhatsApp / Téléphone */
.floating-advisor-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-advisor-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print styles for order receipt */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
  }
}
