/* ==========================================================
   🏗️ KJM SUKSES Energy Core v1.3 – White Confidence Theme
   Theme: Putih Bersih + Oranye KJM + Toska Aksen
   Author: NovaAI x Isa Keny Setya
   ========================================================== */

/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #333;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: #ffffff;
  border-bottom: 2px solid rgba(255, 106, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-sub {
  color: #ff6a00;
}
.logo-main {
  color: #00b6b6;
}
.logo-loc {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #888;
  margin-top: -4px;
}

.cta-shopee {
  background: #ff6a00;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}
.cta-shopee:hover {
  background: #ff8126;
}

/* ========== HERO SLIDER (Single Mode) ========== */
.hero-slider {
  position: relative;
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
}

.slide.single {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

.slide.single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Hide Slider Dots */
.slider-dots {
  display: none !important;
}

/* ========== HERO TITLE ========== */
.hero-title {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 60px;
  padding: 0 15px;
}
.hero-title h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #222;
}
.hero-title p {
  margin-top: 10px;
  color: #555;
  font-size: 1rem;
}
.hero-cta {
  display: inline-block;
  background: #00b6b6;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 25px;
  margin-top: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 182, 182, 0.3);
}
.hero-cta:hover {
  background: #009c9c;
  box-shadow: 0 6px 20px rgba(0, 182, 182, 0.4);
}

/* ========== PRODUCT SECTION ========== */
.product-section {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 100px auto;
  text-align: center;
}

.product-section h2 {
  font-family: 'Orbitron', sans-serif;
  color: #00b6b6;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-content: center;
}

/* Product Card */
.product-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.price {
  font-weight: 700;
  color: #00b6b6;
  margin-bottom: 12px;
  font-size: 15px;
}

.buy-btn {
  display: inline-block;
  background: #ff6a00;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
}
.buy-btn:hover {
  background: #ff8126;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  z-index: 999;
}
.whatsapp-float:hover {
  background: #20c05a;
}

/* ========== FOOTER ========== */
footer {
  background: #f9f9f9;
  padding: 20px 0;
  text-align: center;
  color: #666;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .slide.single {
    height: 340px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .slide.single {
    height: 260px;
  }
  .product-card img {
    height: 130px;
  }
  .logo-main {
    font-size: 1.3rem;
  }
  .cta-shopee {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .slide.single {
    height: 200px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .product-card img {
    height: 110px;
  }
}

/* ==== MOBILE RESPONSIVE FIX (V1.2.6)==== */
/* Pastikan gambar produk selalu proporsional */
.product-card img {
  width: 100%;
  Height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* Penataan teks dan tombol agar seimbang di layar kecil */
.product-card {
  display: flex;
  flex-direction: column;
  align-item: center;
  text-align: center;
  margin-bottom: 25px;
  padding: 10px;
}

/* Tombol CTA proporsional */
.product-card button,
.cta-button {
  width: 85%;
  max-width: 320px;
  font-size: clamp(14px, 3vw, 16px);
  padding: 12px 0;
  border-radius: 10px;
  font-weight: 600;
}

/* Floating WhatsApp tidak menutupi elemen bawah */
body {
  padding-bottom: 90px; /* beri ruang ekstra agarproduk terakhir tidak tertutup */
}

/* Logo dan header diatur agar tidak terlalu besar */
header img {
  height: auto;
  max-height: 45px;
}

/* Responsif untuk layar kecil (under 400px) */
@media (max-width: 400px) {
  .product-card button {
    width: 90%;
    font-size: 14px;
  }
  header img {
    max-height: 40px;
  }
}
