/* Tambahkan ini di CSS khusus desktop */
@media (min-width: 768px) {
  .product-container {
    margin-top: 100px; /* atau sesuaikan seperti 60px */
  }
}

body.custom-body {
  background-color: #e5e7eb;
  font-family: 'Segoe UI', sans-serif;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

/* Kontainer Utama */
.product-container {
  max-width: 1300px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: row;
  margin-bottom: 1rem;
}

/* Gambar utama kiri */
.product-image {
  width: 50%;
  border-right: 1px solid #ccc;
}
.product-image img {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detail produk kanan */
.detail-produk {
  width: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid #ccc;
}

/* Judul, harga, deskripsi */
.judul-produk {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  border-bottom: 1px solid #aaa;
  padding-bottom: 0.5rem;
}
.harga-produk {
  color: #15803d;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid #aaa;
  padding-bottom: 0.5rem;
}
.deskripsi-produk {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  border-bottom: 1px solid #aaa;
  padding-bottom: 0.5rem;
}

/* Warna Produk */
.warna-produk {
  margin-bottom: 1rem;
  border-bottom: 1px solid #aaa;
  padding-bottom: 1rem;
}
.warna-produk h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.color-row {
  display: flex;
  gap: 12px;
}
.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.3s ease;
}
.color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.color-option.selected {
  border-color: #f97316;
  transform: scale(1.1);
}
.color-putih { background: white; border: 1px solid #ccc; }
.color-hitam { background: black; }
.color-merah { background: #dc2626; }

/* Thumbnail varian */
.gambar-varian {
  margin-bottom: 1rem;
  border-bottom: 1px solid #aaa;
  padding-bottom: 1rem;
}
.gambar-varian h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.thumb-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s ease;
}
.thumb-image:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.thumb-image.selected-thumb {
  border-color: #f97316;
  transform: scale(1.05);
}

/* Tombol Love */
.love-btn-container {
  align-self: flex-end;
  margin-top: 1rem;
}

.love-btn-container button {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.love-btn-container img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.love-btn-container button:hover img {
  transform: scale(1.1);
}


/* Responsive */
/* Responsive */
@media (max-width: 768px) {
  /* Hilangkan padding body agar konten bisa rapat ke tepi layar */
  body.custom-body {
    padding: 0;
  }

  .product-container {
    flex-direction: column;
    border-radius: 0; /* Hilangkan lengkungan di mobile */
    box-shadow: none; /* Opsional: terlihat lebih bersih di layar hp */
    margin-bottom: 0;
  }

  .product-image,
  .detail-produk {
    width: 100%;
    border: none; /* Hilangkan garis pembatas desktop */
  }

  /* Gambar rapat kiri kanan tanpa lengkungan */
  .product-image img {
    border-radius: 0;
    width: 100%;
    height: auto;
    display: block;
  }

  /* Beri sedikit jarak aman untuk teks agar tetap nyaman dibaca, tidak terlalu nempel tepi */
  .detail-produk {
    padding: 1rem 1.5rem; 
  }
}

