@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap");
* {
  font-family: "Manrope", sans-serif;
}
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  background-color: #f8f9fa;
  padding-bottom: 50px;
}
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.card-img-top {
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.sku-badge {
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  background-color: #212529;
}
#preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: none;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px dashed #ccc;
}
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.table {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}
.table thead {
  background-color: #212529;
}
h1,
h2,
h3 {
  font-weight: 800;
  color: #212529;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
  .table-responsive {
    border: 0;
    box-shadow: none;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px !important;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    text-align: right;
    min-height: 48px;
  }

  .table tbody td:first-child {
    background-color: #f8f9fa;
    font-weight: 600;
  }

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

  .table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    text-align: left;
    margin-right: 15px;
    color: #6c757d;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Style pour les cellules colspan (messages vides) */
  .table tbody td[colspan]::before {
    content: none;
  }

  .table tbody td[colspan] {
    justify-content: center;
    text-align: center;
    background-color: #f8f9fa;
    padding: 20px !important;
  }

  .table tbody td a {
    word-break: break-all;
    font-size: 0.9em;
  }

  .table tbody td .badge {
    font-size: 0.75em;
    padding: 4px 8px;
  }

  .table tbody td .btn-group {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
  }

  .table tbody td .btn-group form {
    margin: 0 !important;
  }

  .table tbody td .btn-group .btn {
    padding: 6px 12px;
    font-size: 1em;
    min-width: 40px;
  }
}
a:link {
  text-decoration: none;
}
.article-vendu .carousel-inner img {
  filter: grayscale(100%) opacity(0.6);
}
.article-vendu .card-body {
  opacity: 0.7;
}
.prix-barre {
  color: #6c757d !important;
}
.badge-vendu {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #dc3545;
  color: white;
  padding: 4px 16px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.article-en-attente .carousel-inner img {
  filter: grayscale(100%) opacity(0.6);
}
.article-en-attente .card-body {
  opacity: 0.7;
}
.badge-en-attente {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffc107;
  color: #000;
  padding: 4px 16px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
