/* =====================================================================
   Specified CSS for Product Details Page (product-details.blade.php)
===================================================================== */

/* Wrapper Gambar Utama */
.product-image-wrapper {
  max-width: 100%;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-wrapper img {
  max-height: 400px;
  object-fit: contain;
}

/* Thumbnail Gambar */
.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.thumb:hover {
  border-color: #FF6600;
}

.thumb.active {
  border-color: #FF6600;
}

/* Thumbnail YouTube */
.youtube-thumb {
  font-size: 1.5rem;
}

/* Modal Galeri */
#galleryModal .modal-dialog {
  max-width: 800px;
  width: 90%;
}

#galleryModal .modal-content {
  background-color: rgba(0, 0, 0, 0.85);
}

#galleryModal .modal-body {
  min-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#galleryContent img,
#galleryContent iframe {
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
}

/* Indikator Galeri */
#galleryModal #galleryIndicator {
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 10px;
}

/* Tombol Close Putih */
.btn-close-white {
  filter: invert(1);
}

/* Styling Opsi Warna */
.color-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    margin: 3px 3px;
    width: auto;/* biar teks panjang nggak terlalu padat */
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: normal;   /* teks boleh turun ke bawah */
    line-height: 1.2;
    border-radius: 9999px; /* pill shape */
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    word-break: break-word; /* pecah kata kalau kepanjangan */
}

.color-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.6);
}

.color-option.active {
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Thumbnail/Gallery Wrapper */
.gallery-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 8px;
}

.gallery-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

.gallery-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gallery-scroll-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
}

.gallery-scroll-inner .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    flex: 0 0 auto;
}


/* ===========================
   END OF DETAIL PRODUCT
=========================== */
