/* ============================================
   DETAIL PRODUIT - BASE CSS
   Fichier de base pour les styles communs des vues produit
   ============================================ */

/* ============================================
   VARIABLES CSS - Design System Unifié
   ============================================ */
:root {
  /* Couleurs primaires */
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --primary-light: #e6f2ff;
  
  /* Couleurs secondaires */
  --secondary-color: #6c757d;
  --secondary-dark: #5a6268;
  --secondary-light: #f8f9fa;
  
  /* Couleurs d'accent */
  --accent-color: #ffc107;
  --accent-dark: #e0a800;
  --accent-light: #fff3cd;
  
  /* Dégradés */
  --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  --gradient-accent: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  
  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 20px rgba(0, 0, 0, 0.2);
  
  /* Rayons de bordure */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Espacements */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  
  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-popover: 400;
  --z-tooltip: 500;
  --z-toast: 600;
}

/* ============================================
   STYLES DE BASE
   ============================================ */

.detail-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  margin: var(--space-4);
  box-shadow: var(--shadow-sm);
  min-height: 100vh;
}

/* Galerie d'images */
.galerie-produit-container {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.galerie-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.galerie-track {
  display: flex;
  transition: transform var(--transition-base);
  height: 100%;
}

.galerie-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.galerie-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Miniatures */
.galerie-thumbnails {
  display: flex;
  overflow-x: auto;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  scrollbar-width: none;
}

.galerie-thumbnail {
  min-width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.galerie-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.galerie-thumbnail.active {
  border-color: var(--accent-color);
}

/* Boutons */
.btn {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.btn-accent {
  background: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

/* Responsive Design */
@media (min-width: 768px) {
  .detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-8);
  }

  .galerie-produit-container {
    aspect-ratio: 16/10;
    max-height: 600px;
  }

  .galerie-thumbnails {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-3);
  }
}