/* ==========================================================================
   SENMAKETE - BOUTIQUE REDESIGN STYLESHEET
   ========================================================================== */

:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
  --accent-teal: #0d9488;
  --accent-teal-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --success-color: #10b981;
  --error-color: #ef4444;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-light: #f1f5f9;
  --border-color: #e2e8f0;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 2px 0 rgba(15, 23, 42, 0.03);
  --shadow-premium-hover: 0 20px 40px -15px rgba(37, 99, 235, 0.12), 0 8px 16px -8px rgba(139, 92, 246, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.06);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   1. PREMIUM PAGE HERO & WAVE
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background-color: #070a13;
  color: #ffffff;
  padding: 5rem 0 7rem;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.page-hero-eyebrow {
  display: inline-block;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-hero h1 a {
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-fast);
}

.page-hero h1 a:hover {
  opacity: 0.85;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto;
}

.page-hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  color: var(--bg-light);
  transform: rotate(180deg);
  z-index: 2;
}

.page-hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   2. BOUTIQUE LAYOUT & CATEGORIES SIDEBAR
   -------------------------------------------------------------------------- */
.boutique-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.boutique-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Glassmorphism Sidebar */
.boutique-sidebar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-glass);
  position: sticky;
  top: 100px;
}

.boutique-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.categorie-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.categorie-link {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.categorie-link:hover {
  background: rgba(37, 99, 235, 0.04);
  color: var(--primary-color);
  transform: translateX(4px);
}

.categorie-link.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* --------------------------------------------------------------------------
   3. PRODUCTS GRID & PREMIUM PRODUCT CARD
   -------------------------------------------------------------------------- */
.boutique-content {
  width: 100%;
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

/* Premium Card Layout */
.produit-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.produit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium-hover);
  border-color: rgba(37, 99, 235, 0.12);
}

.produit-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.produit-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f8fafc;
}

.produit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.produit-card:hover .produit-image {
  transform: scale(1.06);
}

/* Glow image placeholder */
.produit-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background-color: #f1f5f9;
}

/* Out of stock badge */
.badge-rupture {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(239, 68, 68, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
  z-index: 2;
}

/* Card Body */
.produit-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.produit-categorie {
  font-size: 0.68rem;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}

.produit-nom {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.produit-card:hover .produit-nom {
  color: var(--primary-color);
}

.produit-prix {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: auto;
}

/* Button action container */
.produit-actions {
  padding: 0 20px 20px;
}

.btn-redesign-cart {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
  transition: var(--transition-smooth);
}

.btn-redesign-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.25);
}

.btn-redesign-disabled {
  width: 100%;
  padding: 12px 20px;
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  cursor: not-allowed;
  text-align: center;
}

/* Empty fallback */
.boutique-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
}

.boutique-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.boutique-empty p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   4. PRODUCT DETAIL PAGE
   -------------------------------------------------------------------------- */
.produit-detail-section {
  padding: 3rem 0 6rem;
  background-color: var(--bg-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.breadcrumb span {
  color: #cbd5e1;
}

.produit-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Detail Image Container */
.produit-detail-image {
  position: sticky;
  top: 100px;
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
}

.detail-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.detail-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background-color: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

/* Detail info content */
.produit-detail-info {
  display: flex;
  flex-direction: column;
}

.detail-categorie {
  font-size: 0.75rem;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-nom {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.detail-prix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.detail-description {
  margin-bottom: 28px;
  padding: 24px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.detail-description h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-description p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Stock Badges with glowing circles */
.detail-stock {
  margin-bottom: 28px;
}

.stock-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

.stock-indicator-badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stock-indicator-badge.stock-ok {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.stock-indicator-badge.stock-ok::before {
  background-color: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

.stock-indicator-badge.stock-rupture {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.stock-indicator-badge.stock-rupture::before {
  background-color: var(--error-color);
  box-shadow: 0 0 8px var(--error-color);
}

/* Detail Form */
.detail-form {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-premium);
}

.detail-qty {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-qty label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.qty-input {
  width: 90px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition-fast);
}

.qty-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   5. PANIER / SHOPPING CART
   -------------------------------------------------------------------------- */
.panier-section {
  padding: 4rem 0 6rem;
  background-color: var(--bg-light);
}

.panier-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
}

/* Table Card Wrapper */
.panier-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.panier-table {
  width: 100%;
  border-collapse: collapse;
}

.panier-table th {
  background: #f8fafc;
  padding: 16px 24px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.panier-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

/* Cart Product Detail Cell */
.panier-produit-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panier-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.panier-produit-details {
  display: flex;
  flex-direction: column;
}

.panier-produit-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.panier-produit-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Small quantity inputs */
.qty-input-small {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition-fast);
}

.qty-input-small:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Remove button */
.btn-remove {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--error-color);
  transform: rotate(90deg);
}

/* Recap card */
.panier-summary-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-glass);
  position: sticky;
  top: 100px;
}

.panier-summary-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

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

.summary-row span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

.text-green {
  color: var(--success-color) !important;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* Empty basket */
.panier-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
  grid-column: 1 / -1;
}

.panier-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.panier-empty p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   6. COMMAANDE / FINALIZATION & FORMS
   -------------------------------------------------------------------------- */
.commande-section {
  padding: 4rem 0 6rem;
  background-color: var(--bg-light);
}

.commande-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

.commande-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-premium);
}

.commande-form-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

/* Form Styling */
.commande-form .form-group {
  margin-bottom: 20px;
}

.commande-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.commande-form .form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.commande-form .form-group input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.commande-form .form-group ul {
  margin-top: 4px;
  color: var(--error-color);
  font-size: 0.78rem;
  list-style: none;
}

/* Recap Side block */
.commande-recap {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-glass);
  position: sticky;
  top: 100px;
}

.commande-recap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.recap-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.recap-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recap-produit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recap-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.recap-produit strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recap-produit small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.recap-prix {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.recap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   7. CONFIRMATION PAGE
   -------------------------------------------------------------------------- */
.confirmation-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.confirmation-card {
  max-width: 580px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow-premium);
}

.confirmation-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: inline-flex;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  align-items: center;
  justify-content: center;
  color: var(--success-color);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.confirmation-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.confirmation-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.confirmation-details {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.facture-num {
  font-family: var(--font-mono);
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-etat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge-en_attente {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.confirmation-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE UTILITIES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .boutique-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .boutique-sidebar {
    position: static;
    padding: 20px;
  }
  
  .categorie-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .produit-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .produit-detail-image {
    position: static;
  }
  
  .panier-layout {
    grid-template-columns: 1fr;
  }
  
  .panier-summary-card {
    position: static;
  }
  
  .commande-layout {
    grid-template-columns: 1fr;
  }
  
  .commande-recap {
    position: static;
  }
}

@media (max-width: 768px) {
  .panier-table th:nth-child(2),
  .panier-table th:nth-child(4),
  .panier-table td:nth-child(2),
  .panier-table td:nth-child(4) {
    display: none; /* Hide unit price and sub-totals on mobile tables for clean layout */
  }
}

/* --------------------------------------------------------------------------
   9. BOUTIQUE CARD GRID (index page)
   -------------------------------------------------------------------------- */
.boutique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.boutique-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #ffffff;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.boutique-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium-hover);
  border-color: rgba(37, 99, 235, 0.12);
}

.boutique-image-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #f8fafc;
}

.boutique-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.boutique-card:hover .boutique-image-card img {
  transform: scale(1.07);
}

.boutique-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.boutique-badge-float {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  z-index: 3;
}

.badge-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.badge-text {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-top: 2px;
}

/* Overlay hover link */
.boutique-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 19, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 56px;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.boutique-card:hover .boutique-overlay {
  opacity: 1;
}

.btn-overlay {
  display: inline-block;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transform: translateY(8px);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.boutique-card:hover .btn-overlay {
  transform: translateY(0);
}

.boutique-info {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}

.boutique-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.boutique-category {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   10. SIDEBAR BACK LINK
   -------------------------------------------------------------------------- */
.sidebar-back {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.sidebar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.sidebar-back-link:hover {
  color: var(--primary-color);
  transform: translateX(-3px);
}

/* --------------------------------------------------------------------------
   11. BACK LINK (shared)
   -------------------------------------------------------------------------- */
.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  margin-top: 16px;
}

.btn-back-link:hover {
  color: var(--primary-color);
  transform: translateX(-3px);
}

/* --------------------------------------------------------------------------
   12. COMMANDE STEP INDICATOR
   -------------------------------------------------------------------------- */
.commande-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--border-light);
  color: var(--text-muted);
  border: 2px solid var(--border-color);
  transition: var(--transition-fast);
}

.step.active .step-num {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.step.done .step-num {
  background: var(--success-color);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.step-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

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

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

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  min-width: 40px;
  max-width: 80px;
  margin-bottom: 22px;
  transition: var(--transition-fast);
}

.step-line.done {
  background: var(--success-color);
}

/* --------------------------------------------------------------------------
   13. COMMANDE RECAP EXTRAS
   -------------------------------------------------------------------------- */
.recap-separator {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.recap-livraison {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--success-color);
  font-weight: 600;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   14. CONFIRMATION ANIMATED ICON
   -------------------------------------------------------------------------- */
.confirmation-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success-color);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: confirmPulse 2s ease-out infinite;
}

@keyframes confirmPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70%  { box-shadow: 0 0 0 18px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --------------------------------------------------------------------------
   15. PANIER ACTIONS BAR
   -------------------------------------------------------------------------- */
.panier-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   16. FONT MONO FALLBACK
   -------------------------------------------------------------------------- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

