

/* ===========================
   PRODUCT DETAILS PAGE
   =========================== */

/* ---- Variables de thème ---- */
:root {
  --product-bg: #f8f9fa;
  --product-text: #212529;
  --product-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
  --badge-blue: #0d6efd;
  --badge-dark: #212529;
  --badge-info: #0dcaf0;
  --badge-secondary: #6c757d;
  --soft-blue: #eaf3ff;
  --soft-gray: #f9f9f9;
}

/* ---- Container global ---- */
.containerProductDetails {
  background: var(--product-bg);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--product-shadow);
}

/* ---- Images principales ---- */
.responsive-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--product-shadow);
}

/* Petits écrans */
@media (max-width: 576px) {
  .responsive-image {
    height: 160px;
  }
}

/* ---- Titres ---- */
.card-title {
  color: var(--product-text);
  font-weight: 700;
  line-height: 1.3;
}

.card h5 {
  font-weight: 600;
}

/* ---- Badges ---- */
.badge {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.badge.bg-primary { background-color: var(--badge-blue) !important; }
.badge.bg-dark { background-color: var(--badge-dark) !important; }
.badge.bg-info { background-color: var(--badge-info) !important; }
.badge.bg-secondary { background-color: var(--badge-secondary) !important; }

.bg-soft-blue {
  background-color: var(--soft-blue) !important;
  color: #03446a !important;
}

.bg-soft-gray {
  background-color: #fff4f4 !important;
  color: #333 !important;
}

/* ---- Boutons icônes (favori, like, partage) ---- */
.icon-circle-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  font-size: 1.25rem;
  transition: color 0.2s, transform 0.2s;
}

.icon-circle-btn:hover {
  transform: scale(1.1);
}

.icon-circle-btn i {
  pointer-events: none;
}

/* Favori */
.btn-fav {
  color: #dc3545;
}
.btn-fav:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Like */
.btn-like {
  color: #198754;
}
.btn-like:hover {
  background-color: rgba(25, 135, 84, 0.1);
}

/* ---- Bloc commentaires ---- */
.comment-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--product-shadow);
}

.comment-item + .comment-item {
  margin-top: 1rem;
}

/* Image de profil */
.comment-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---- Sidebar ---- */
.sidebar .card {
  border: none;
  box-shadow: var(--product-shadow);
  border-radius: 10px;
}

.sidebar .card-header {
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px 10px 0 0 !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .containerProductDetails {
    padding: 1rem;
  }
  .card-title {
    font-size: 1.3rem;
  }
  .sidebar {
    margin-top: 1.5rem;
  }
}
/* ===========================
   END PRODUCT DETAILS PAGE
   =========================== */