/* ============================================
   STICKY CHECKOUT - 2 BOUTONS EMPILÉS
   ============================================ */

.sticky-checkout {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #fff !important;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1) !important;
  z-index: 999 !important;
}

.sticky-checkout-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important; /* RÉDUIT: 4px → 2px */
}

/* Total */
.sticky-checkout-total {
  font-size: 14px;
  color: #666;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}

.sticky-checkout-total .amount {
  font-size: 18px;
  font-weight: 700;
  color: #12262F;
}

/* Bouton Ajouter un rideau - PLUS LISIBLE, même largeur */
.btn-add-curtain {
  width: 100% !important;
  max-width: 100% !important;
  height: 48px;
  margin: 0 !important;
  background: transparent !important;
  color: #374151 !important; /* CHANGÉ: #666 → #374151 (plus lisible) */
  border: 1px solid #9ca3af !important; /* CHANGÉ: #d1d5db → #9ca3af (plus visible) */
  border-radius: 10px;
  font-size: 14px !important;
  font-weight: 600 !important; /* CHANGÉ: 500 → 600 (plus lisible) */
  cursor: pointer;
  transition: all 0.2s ease;
  display: none;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.btn-add-curtain:hover {
  background: #f9fafb !important;
  border-color: #6b7280 !important;
  color: #1f2937 !important;
  transform: translateY(-1px);
}

.btn-add-curtain:active {
  transform: scale(0.98);
  background: #f3f4f6 !important;
}

/* Bouton Commander - même width/padding pour alignement */
.sticky-checkout-btn {
  width: 100% !important;
  max-width: 100% !important;
  height: 52px;
  margin: 0 !important;
  background: #12262F !important;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.sticky-checkout-btn:hover {
  background: #1a3a4a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sticky-checkout-btn:active {
  transform: scale(0.98);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .sticky-checkout-inner {
    padding: 12px;
    gap: 2px !important;
  }
  
  .btn-add-curtain {
    height: 44px;
    font-size: 13px !important;
  }
  
  .sticky-checkout-btn {
    height: 48px;
    font-size: 15px;
  }
}

/* Safe area (iOS) */
@supports (padding: env(safe-area-inset-bottom)) {
  .sticky-checkout-inner {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
