.details-header {
 position: fixed; 
  top: 0;
  left: 0; 
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border-bottom: 1px solid #ddd;
  z-index: 999;
}

#details-back-button {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.details-wrapper {
  display: flex;
  flex-direction: column;
}

.details-right-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


.details-media-carousel {
  position: relative;
  width: 100vw;   
  margin-left: -1rem; 
  margin-right: -1rem;
    /* background: #000; */

}

.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;  
  /* background: #000; */
}

.main-image-container video,
.main-image-container img {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 350px;
  object-fit: contain;  
}
.main-image-container video{
   height: 500px;

}


.carousel-controls {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.carousel-controls button {
  background: #f5f5f5;
  border: none;
  font-size: 1.8rem;
  padding: 0.2em 0.5em;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


.image-thumbnails {
  margin-top: 150px;
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
}
 .image-thumbnails video {
  margin-top: 150px;
 }

.image-thumbnails .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s;
}

.image-thumbnails .thumb.active {
  border-color: #007bff;
}

.details-info-box {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.details-info-box h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.details-extra {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 10px;
}

.details-extra h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

.details-extra ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-extra li {
  margin-bottom: 0.4rem;
}

/* Audio */
/* .audio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
} */

.seller-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.seller-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f0f0f0;
}
.placeholder-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
}

/* Texte & alignement */
.seller-meta p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
  font-size: 0.95rem;
}
.seller-meta svg {
  stroke: #555;
}

/* Badges */
.badge {
  background-color: #eee;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 0.75rem;
  color: #333;
}


.seller-meta-block {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}


.seller-meta-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem; 
  font-size: 0.95rem;
  line-height: 1.5;
}

.seller-meta-line svg {
  stroke: #555;
  flex-shrink: 0;
  vertical-align: middle;
}
.verified-label {
  background: #e9f5ff;
  color: #2563eb;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.not-verified-label {
  background: #fef2f2;
  color: #ef4444;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}
.seller-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.seller-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.whatsapp-btn {
  margin-top: 1rem; 
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #e6fef3;
  color: #10b981;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}
.whatsapp-btn svg {
  stroke: #10b981;
}
.similar-section {
  margin-top: 2rem;
  cursor: pointer;
}

.similar-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.similar-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.similar-card {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 0.5rem;
}

.similar-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

.similar-card h4 {
  font-size: 0.95rem;
  margin: 0.5rem 0 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}
/* Annonces similaire*/

/*SHARE Annonce*/
.share-icons svg {
  width: 35px;
  height: 35px;
}
.share-icons {
  display: flex;
  gap: 0.75rem; /* ou 12px */
  align-items: center;
}

/*SHARE Annonce*/
@media (max-width: 767px) {
     .details-header{
    position: fixed;
  }
  .details-right-side {
    width: 100%;
    max-width: 600px;
    margin: 0 auto; 
    align-items: center;
  }
  .seller-meta-line {
    flex-direction: row;
    align-items: flex-start;
    line-height: 1.6;
  }

   .details-info-box,
  .details-extra {
    width: 100%;
    max-width: 100%;
  }

  .whatsapp-btn {
    width: 90%;
    text-align: center;
    font-size: 1.1rem;
    padding: 10px 12px;
  }

}
@media (min-width: 768px) {
  .details-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .details-media-carousel {
     flex: 0 0 35%;
     margin-right: 2rem;
  }

  .details-right-side {
    flex: 1;
     max-width: 42%;
  }

  .details-info-box {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.details-extra {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}


}
