/* Wartakita Affiliate Banner PRO Styles V2.0 */

.wk-affiliate-banner {
  height: 600px; /* Tinggi default. Perlu disesuaikan per layout. */
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 12px; /* Lebih modern */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden; /* Pastikan tidak ada yang meluap */
}

/* Layout Landscape */
.wk-affiliate-banner.wk-affiliate-banner-landscape {
  height: 350px; 
}

/* Layout Square */
.wk-affiliate-banner.wk-affiliate-banner-square {
  height: auto;
  padding-bottom: 100%; /* Pendekatan aspek rasio persegi */
}
.wk-affiliate-banner-square .wk-carousel, 
.wk-affiliate-banner-square .wk-carousel-dots {
  position: absolute; /* Tetap posisikan di dalam persegi */
}

.wk-carousel {
  position: absolute;
  bottom: 20px;
  width: 90%;
  left: 5%; /* Pusatkan carousel */
}

.wk-product {
  background: #fff;
  border-radius: 10px;
  padding: 15px; /* Lebih banyak padding */
  text-align: center;
  display: none; /* Sembunyikan semua slide di JS secara default */
  opacity: 0; /* Mulai dengan transparan untuk transisi */
  transition: opacity 0.5s ease-in-out; /* Transisi CSS yang mulus */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 100%; /* Pastikan item produk memenuhi carousel */
}

.wk-product.active {
  display: block; /* Tampilkan slide aktif */
  opacity: 1; /* Tampilkan secara penuh */
}

.wk-product a {
  text-decoration: none;
  color: inherit; /* Gunakan warna default untuk teks */
  display: block; /* Agar seluruh area item bisa diklik */
}

.wk-product img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Lebih rapi */
  margin-bottom: 10px;
}

.wk-product h4 {
  margin: 5px 0;
  font-size: 1.1em;
  line-height: 1.3;
}

.wk-price {
  color: red;
  font-weight: bold;
  margin: 8px 0; /* Lebih banyak margin */
}

.wk-product button {
  background: #ff4d4d;
  border: none;
  color: #fff;
  padding: 10px 20px; /* Lebih banyak padding */
  border-radius: 6px; /* Lebih modern */
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s; /* Transisi efek hover */
}

.wk-product button:hover {
  background: #e60000; /* Warna hover yang lebih gelap */
}

/* Indikator Dot */
.wk-carousel-dots {
  position: absolute;
  bottom: 5px; /* Posisikan dot di bagian bawah banner */
  width: 100%;
  text-align: center;
}

.wk-dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(187, 187, 187, 0.5); /* Gunakan RGBA agar background terlihat sedikit */
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.wk-dot.active, .wk-dot:hover {
  background-color: rgba(113, 113, 113, 0.8);
}