@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- variables thèmes --- */
:root {
  /* Mode Clair par défaut */
  --bg-primary: hsl(220, 20%, 97%);
  --bg-secondary: hsl(0, 0%, 100%);
  --bg-tertiary: hsl(220, 15%, 92%);
  --text-primary: hsl(224, 15%, 15%);
  --text-secondary: hsl(220, 10%, 45%);
  
  /* Thème Violet Royal - Les bonnes affaires */
  --accent: hsl(265, 70%, 50%);
  --accent-hover: hsl(265, 70%, 42%);
  --accent-light: hsla(265, 70%, 50%, 0.1);
  --success: hsl(150, 80%, 40%);
  --warning: hsl(35, 90%, 50%);
  
  --border: hsl(220, 15%, 90%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --blur-val: 12px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: hsl(224, 25%, 10%);
  --bg-secondary: hsl(224, 20%, 14%);
  --bg-tertiary: hsl(224, 20%, 20%);
  --text-primary: hsl(220, 20%, 96%);
  --text-secondary: hsl(220, 10%, 70%);
  
  --accent: hsl(265, 75%, 62%);
  --accent-hover: hsl(265, 75%, 70%);
  --accent-light: hsla(265, 75%, 62%, 0.15);
  
  --border: hsl(224, 20%, 22%);
  --glass-bg: rgba(20, 24, 33, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* --- Styles Globaux --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header Premium --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-val));
  -webkit-backdrop-filter: blur(var(--blur-val));
  border-bottom: 1px solid var(--glass-border);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), hsl(300, 85%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
}

.search-container {
  flex: 1;
  max-width: 480px;
  margin: 0 40px;
  position: relative;
  transition: opacity var(--transition-normal);
}

.search-input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-secondary);
}

.cart-badge.bounce {
  animation: badgeBounce 0.4s ease;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* --- Hero Section --- */
.hero {
  padding: 60px 0 40px;
}

.hero-banner {
  background: linear-gradient(135deg, hsla(265, 70%, 50%, 0.08), hsla(300, 85%, 55%, 0.08));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-content {
  max-width: 550px;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(111, 66, 193, 0.4);
}

.hero-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.6);
}

.hero-graphics {
  position: relative;
  z-index: 1;
  width: 400px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle {
  position: absolute;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), hsl(300, 85%, 55%));
  filter: blur(80px);
  opacity: 0.15;
  width: 250px;
  height: 250px;
}

.hero-images-preview {
  display: flex;
  gap: 16px;
  transform: rotate(-10deg);
}

.hero-img-card {
  width: 130px;
  height: 180px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.hero-img-card:nth-child(2) {
  animation-delay: 1.5s;
  transform: translateY(20px);
}

.hero-img-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-img-card .card-dot {
  height: 8px;
  width: 50%;
  background-color: var(--border);
  border-radius: var(--radius-full);
}

.hero-img-card .card-dot-short {
  height: 8px;
  width: 30%;
  background-color: var(--border);
  border-radius: var(--radius-full);
  margin-top: 4px;
}

@keyframes floatCard {
  0% { transform: translateY(0px) rotate(-10deg); }
  100% { transform: translateY(-15px) rotate(-10deg); }
}

/* --- Catalog Section --- */
.catalog-section {
  padding: 40px 0 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: 28px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

/* Filters & Sorting */
.filters-container {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 18px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.active {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(111, 66, 193, 0.25);
}

.sort-select {
  padding: 8px 36px 8px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Grid layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Product Card */
.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
}

.card-img-container {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: var(--bg-tertiary);
  overflow: hidden;
  cursor: pointer;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .card-img-container img {
  transform: scale(1.08);
}

.card-badge-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.card-details-btn-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 1;
}

.product-card:hover .card-details-btn-overlay {
  opacity: 1;
}

.card-view-btn {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transform: translateY(10px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.product-card:hover .card-view-btn {
  transform: translateY(0);
}

.card-view-btn:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-rating-container {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.card-rating-star {
  color: var(--warning);
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.card-rating-val {
  font-size: 12px;
  font-weight: 600;
}

.card-rating-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.card-title:hover {
  color: var(--accent);
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-price-original {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--text-secondary);
  opacity: 0.75;
  margin-bottom: 2px;
}

.card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-add-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.card-add-btn:hover {
  background-color: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.card-add-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.no-results-icon {
  width: 60px;
  height: 60px;
  color: var(--text-secondary);
  margin: 0 auto 16px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-secondary);
}

/* --- Cart Drawer (Tiroir) --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
}

.cart-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.close-drawer-btn:hover {
  background-color: var(--bg-tertiary);
  transform: rotate(90deg);
}

.close-drawer-btn svg {
  width: 18px;
  height: 18px;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background-color: var(--bg-primary);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--border);
}

.qty-btn svg {
  width: 12px;
  height: 12px;
}

.qty-val {
  font-size: 13px;
  font-weight: 600;
  width: 30px;
  text-align: center;
}

.cart-item-delete {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.cart-item-delete:hover {
  color: hsl(0, 80%, 55%);
  background-color: hsla(0, 80%, 55%, 0.1);
}

.cart-item-delete svg {
  width: 16px;
  height: 16px;
}

.empty-cart-state {
  text-align: center;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: auto;
}

.empty-cart-icon {
  width: 60px;
  height: 60px;
  color: var(--text-secondary);
  opacity: 0.4;
}

.empty-cart-state p {
  color: var(--text-secondary);
  font-size: 14px;
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-primary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
  transition: all var(--transition-fast);
}

.checkout-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(111, 66, 193, 0.4);
}

.checkout-btn svg {
  width: 18px;
  height: 18px;
}

.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Modales --- */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: 90%;
  max-width: 760px;
  max-height: 90vh;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  background: transparent;
  pointer-events: none;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  pointer-events: auto;
}

.modal-close-btn:hover {
  background-color: var(--bg-tertiary);
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 16px;
  height: 16px;
}

.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px 32px 32px;
  margin-top: 20px;
}

@media (max-width: 680px) {
  .modal-product-layout {
    grid-template-columns: 1fr;
    padding: 30px 20px 20px;
  }
}

.modal-product-gallery {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border);
}

.modal-product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-product-info {
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.modal-rating-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-rating-stars {
  display: flex;
  color: var(--warning);
}

.modal-rating-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.modal-rating-val {
  font-weight: 600;
  font-size: 14px;
}

.modal-rating-count {
  color: var(--text-secondary);
  font-size: 14px;
}

.modal-price-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-price-original {
  font-size: 16px;
  text-decoration: line-through;
  color: var(--text-secondary);
  opacity: 0.75;
}

.modal-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-specifications {
  margin-bottom: 24px;
}

.modal-specifications-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.modal-specifications-list {
  list-style: none;
}

.modal-specifications-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.modal-specifications-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.modal-action-row {
  display: flex;
  gap: 16px;
  margin-top: auto;
  align-items: center;
}

.modal-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background-color: var(--bg-primary);
}

.modal-qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.modal-qty-val {
  width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.modal-add-btn {
  flex: 1;
  padding: 12px 24px;
  background-color: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3);
  transition: all var(--transition-fast);
}

.modal-add-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(111, 66, 193, 0.4);
}

.modal-add-btn svg {
  width: 18px;
  height: 18px;
}

/* --- Checkout Modal --- */
.checkout-modal-content {
  padding: 40px 32px 32px;
}

.checkout-title {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 400px;
  margin: 0 auto 36px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--border);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
  transition: color var(--transition-normal);
}

.step.active .step-circle {
  border-color: var(--accent);
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.step.active .step-label {
  color: var(--accent);
}

.step.completed .step-circle {
  border-color: var(--success);
  background-color: var(--success);
  color: #fff;
}

.step.completed .step-label {
  color: var(--success);
}

.checkout-step-panel {
  display: none;
}

.checkout-step-panel.active {
  display: block;
  animation: fadeIn var(--transition-normal) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.back-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.back-btn:hover {
  background-color: var(--bg-tertiary);
}

.next-btn {
  padding: 10px 24px;
  background-color: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 10px rgba(111, 66, 193, 0.2);
}

.next-btn:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(111, 66, 193, 0.3);
}

.order-success-panel {
  text-align: center;
  padding: 20px 0;
}

.success-icon-container {
  width: 72px;
  height: 72px;
  background-color: hsla(150, 80%, 40%, 0.1);
  color: var(--success);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon-container svg {
  width: 36px;
  height: 36px;
}

.success-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 320px;
  margin: 0 auto 24px;
}

.order-number {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  font-size: 14px;
}

/* --- Administration Panel --- */
.admin-section {
  animation: fadeIn var(--transition-normal) forwards;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-icon.sales {
  background-color: hsla(265, 70%, 50%, 0.1);
  color: var(--accent);
}

.stat-icon.orders {
  background-color: hsl(200, 85%, 95%);
  color: hsl(200, 85%, 50%);
}

[data-theme="dark"] .stat-icon.orders {
  background-color: hsla(200, 85%, 50%, 0.15);
}

.stat-icon.products {
  background-color: hsl(300, 85%, 95%);
  color: hsl(300, 85%, 55%);
}

[data-theme="dark"] .stat-icon.products {
  background-color: hsla(300, 85%, 55%, 0.15);
}

.stat-icon.conversion {
  background-color: hsla(150, 80%, 40%, 0.1);
  color: var(--success);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
  font-family: 'Outfit', sans-serif;
}

.dashboard-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 32px;
}

.dashboard-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.dashboard-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-table th, 
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  background-color: var(--bg-primary);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background-color: var(--bg-primary);
}

.admin-table-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.admin-action-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  margin-right: 6px;
}

.admin-action-btn.edit {
  color: var(--accent);
  background-color: var(--accent-light);
  border-color: transparent;
}

.admin-action-btn.edit:hover {
  background-color: var(--accent);
  color: #fff;
}

.admin-action-btn.delete {
  color: hsl(0, 80%, 55%);
  background-color: hsla(0, 80%, 55%, 0.08);
  border-color: transparent;
}

.admin-action-btn.delete:hover {
  background-color: hsl(0, 80%, 55%);
  color: #fff;
}

.order-product-tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 11px;
  margin-right: 6px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.order-badge-success {
  background-color: hsla(150, 80%, 40%, 0.1);
  color: var(--success);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  display: inline-block;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer p {
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.footer-link {
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent);
}

/* --- Media Queries pour la Responsivité Mobile --- */
@media (max-width: 768px) {
  /* Global */
  .container {
    padding: 0 16px;
  }
  
  /* Header */
  .header-container {
    height: 70px;
  }
  
  .brand-logo {
    font-size: 18px;
  }
  
  .search-container {
    display: none; /* Masquer la barre de recherche sur mobile pour libérer de l'espace */
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .action-btn {
    width: 38px;
    height: 38px;
  }
  
  .action-btn svg {
    width: 18px;
    height: 18px;
  }
  
  /* Hero Banner */
  .hero {
    padding: 20px 0;
  }
  
  .hero-banner {
    flex-direction: column;
    padding: 32px 20px;
    text-align: center;
    gap: 24px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .hero-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  
  .hero-graphics {
    display: none; /* Cacher les éléments graphiques sur mobile */
  }
  
  /* Section Header & Filtres */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .filters-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-right: -16px;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-chip {
    padding: 6px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }
  
  /* Grille de Produits */
  .products-grid {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
    gap: 20px;
  }
  
  /* Tiroir Panier */
  .cart-drawer {
    max-width: 100%;
    right: -100%;
  }
  
  /* Modale Détail Produit */
  .modal-product-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 16px;
    gap: 20px;
  }
  
  .modal-product-gallery {
    height: 200px;
  }
  
  .modal-title {
    font-size: 20px;
  }
  
  .modal-price {
    font-size: 22px;
  }
  
  .modal-action-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .modal-qty-selector {
    justify-content: space-between;
    width: 100%;
  }
  
  .modal-add-btn {
    width: 100%;
  }
  
  /* Checkout Modal */
  .checkout-modal-content {
    padding: 24px 16px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stepper {
    margin-bottom: 24px;
  }
  
  .step-label {
    font-size: 10px;
  }
  
  .checkout-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  
  .checkout-actions button {
    width: 100%;
    text-align: center;
  }
  
  /* Admin View */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

/* --- Sales Notifications --- */
.sales-notif-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sales-notif-card {
  width: 320px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
  transform: translateX(-40px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

[data-theme="dark"] .sales-notif-card {
  background: rgba(30, 27, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.sales-notif-card.show {
  transform: translateX(0);
  opacity: 1;
}

.sales-notif-card.hide {
  transform: translateY(20px);
  opacity: 0;
}

.sales-notif-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.sales-notif-content {
  flex-grow: 1;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-primary);
}

.sales-notif-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.sales-notif-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.sales-notif-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sales-notif-icon svg {
  width: 14px;
  height: 14px;
}

/* Responsivité Mobile pour les Notifs */
@media (max-width: 768px) {
  .sales-notif-container {
    bottom: 90px; /* Évite de masquer le bouton panier mobile */
    left: 16px;
    right: 16px;
    width: auto;
  }
  
  .sales-notif-card {
    width: 100%;
    transform: translateY(40px); /* Glisse depuis le bas sur mobile */
  }
  
  .sales-notif-card.show {
    transform: translateY(0);
  }
  
  .sales-notif-card.hide {
    transform: translateY(20px);
    opacity: 0;
  }
}

