.product-wrapper .col-lg-6:last-child > div {
  background: linear-gradient(
    180deg,
    rgba(16, 18, 32, 0.48),
    rgba(10, 12, 24, 0.58)
  );
  border-radius: 18px;
  padding: 32px;
  border: 1px solid rgba(140, 160, 255, 0.12);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.product-wrapper h1 {
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  color: #ffffff;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status .indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.status .label {
  font-size: 13px;
  font-weight: 600;
}

.product-wrapper .fs-5 {
  font-size: 1.55rem !important;
  font-weight: 800;
  line-height: 1.1;
}


.product-wrapper .stock-indicator {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.product-wrapper .variant-selector {
  margin-bottom: 10px;
}

.product-wrapper .variant-selector label {
  font-size: 12px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.product-wrapper .variant-selector button,
.product-wrapper .variant-selector select {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.product-wrapper .variant-selector .btn {
  padding: 6px 14px;
  font-size: 13px;
}

.product-wrapper .live-stats svg {
  width: 18px;
  height: 18px;
  color: #cfc4ff;
}

.product-wrapper .live-stats p {
  margin: 0;
  font-size: 14px;
  color: #f2eeff;
}

.badges > div {
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.product-wrapper form .btn-primary:not(.btn-sm) {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  border: none;
  color: #fff;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
}

.product-wrapper form .btn-primary:not(.btn-sm):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.45);
}

.product-wrapper .btn-outline-primary,
.product-wrapper .btn-primary.btn-sm {
  background: rgba(6, 5, 12, 0.95);
  color: #ffffff;
  border: 1px solid rgba(199, 125, 255, 0.28);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  transition: all 0.2s ease;
}

.product-wrapper .btn-outline-primary:hover,
.product-wrapper .btn-primary.btn-sm:hover {
  background: rgba(10, 8, 18, 0.95);
  border-color: rgba(199, 125, 255, 0.45);
}

.product-tabs .btn {
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 600;
}

.product-tabs .editor {
  color: #f0ecff;
  line-height: 1.7;
}

.product-wrapper .product-images img {
  width: 82%;
  aspect-ratio: 4 / 5;   /* look vertical */
  object-fit: cover;
  border-radius: 18px;
}

@media (min-width: 992px) {
  .product-wrapper .product-images img {
    max-width: 85%;
  }
}



/* ---------- Card & Markdown ---------- */
.product-description-card {
  background: rgba(6,5,12,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.product-description-card .card-body {
  padding: 1.25rem;
  line-height: 1.7;
  color: #eae8ff;
  background: none;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Neutralise tout .btn / button / .badge indésirable dans le contenu Markdown */
.markdown-content .btn,
.markdown-content button,
.markdown-content .badge {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  cursor: inherit !important;
  font-weight: inherit !important;
  border-radius: 0 !important;
}

/* .features si tu utilises une liste spéciale */
.markdown-content ul.features,
.markdown-content .features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 1rem 0;
}
.markdown-content ul.features li {
  background: rgba(255,255,255,0.03);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #f3f1ff;
}

/* Headers / paragraphes Markdown lisibles */
.markdown-content h1, .markdown-content h2, .markdown-content h3 {
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.markdown-content p { color: #e9e7ff; margin-bottom: 1rem; }

/* ---------- Accordion toggle (plain look, not full .btn style) ---------- */
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .12s ease, transform .08s ease;
}

/* override heavier .btn rules if present */
.product-wrapper .accordion-toggle,
.product-tabs-wrapper .accordion-toggle {
  background: rgba(255,255,255,0.02) !important;
}

/* hover */
.accordion-toggle:hover { transform: translateY(-1px); }

/* plus/minus sign */
.accordion-toggle .toggle-sign {
  font-size: 1.15rem;
  line-height: 1;
}

/* ensure collapsible area looks separated */
.other-tabs .card { margin-bottom: 0; }



/* ===== PRODUCT MOBILE FIX ===== */
@media (max-width: 900px) {

  .product-wrapper {
    padding: 0 14px !important;
  }

  /* CARD */
  .product-wrapper .col-lg-6:last-child > div {
    padding: 20px !important;
    border-radius: 14px !important;
  }

  /* TITLE */
  .product-wrapper h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  /* PRICE */
  .product-wrapper .fs-5 {
    font-size: 1.35rem !important;
    text-align: center !important;
  }

  /* STATUS */
  .status {
    justify-content: center !important;
  }

  /* VARIANTS */
  .product-wrapper .variant-selector {
    width: 100% !important;
  }

  .product-wrapper .variant-selector button,
  .product-wrapper .variant-selector select {
    width: 100% !important;
  }

  /* BUTTON BUY */
  .product-wrapper form .btn-primary:not(.btn-sm) {
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
  }

  /* SMALL BUTTONS */
  .product-wrapper .btn-outline-primary,
  .product-wrapper .btn-primary.btn-sm {
    width: 100% !important;
    justify-content: center !important;
  }

  /* LIVE STATS */
  .product-wrapper .live-stats {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: center !important;
  }

  /* BADGES */
  .badges {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  /* IMAGE */
  .product-wrapper .product-images img {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 14px !important;
  }

  /* DESCRIPTION CARD */
  .product-description-card .card-body {
    padding: 1rem !important;
    font-size: 0.95rem !important;
  }

  /* MARKDOWN */
  .markdown-content {
    font-size: 0.95rem !important;
  }

  /* ACCORDION */
  .accordion-toggle {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }

}

@media (max-width: 900px) {

  /* WRAPPER → utilise mieux l'écran */
  .product-wrapper {
    padding: 0 14px !important;
  }

  /* CARD PRINCIPALE → full width clean */
  .product-wrapper .col-lg-6:last-child > div {
    width: 100% !important;
    padding: 18px !important;
    border-radius: 14px !important;
  }

  /* IMAGE → large mais propre */
  .product-wrapper .product-images {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
  }

  .product-wrapper .product-images img {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
  }

  /* TITRE → plus naturel */
  .product-wrapper h1 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    text-align: left !important;
  }

  /* PRIX */
  .product-wrapper .fs-5 {
    font-size: 1.45rem !important;
    margin-bottom: 8px !important;
    text-align: left !important;
  }

  /* STATUS */
  .status {
    justify-content: flex-start !important;
    margin-bottom: 10px !important;
  }

  /* BADGES → plus naturels */
  .badges {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .badges > div {
    font-size: 12px !important;
    padding: 5px 10px !important;
  }

  /* VARIANTS */
  .product-wrapper .variant-selector {
    text-align: left !important;
  }

  /* FORM */
  .product-wrapper form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 10px !important;
    width: 100% !important;
  }

  /* BOUTONS → full width */
  .product-wrapper form .btn-primary:not(.btn-sm),
  .product-wrapper .btn-outline-primary,
  .product-wrapper .btn-primary.btn-sm {
    width: 100% !important;
    padding: 13px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  /* DESCRIPTION */
  .product-description-card {
    margin-top: 16px !important;
    border-radius: 14px !important;
  }

  .product-description-card .card-body {
    padding: 14px !important;
    font-size: 0.95rem !important;
  }

  /* ACCORDION */
  .accordion-toggle {
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

}