:root {
  --blue-main: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --white: #ffffff;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #f8fafc;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

/* --- NAVBAR --- */
nav {
  background: var(--white);
  padding: 15px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  background: var(--blue-main);
  color: white;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  animation: pulse-soft 3s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.logo-box:hover .logo-icon {
  transform: scale(1.1) rotate(10deg);
  background: var(--blue-dark);
  animation: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  margin-left: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-main);
  background: var(--blue-light);
}

/* --- HERO SECTION (TEKS & GAMBAR) --- */
.btn-primary {
  background-color: white !important;
  color: var(--blue-main) !important;
  padding: 12px 25px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent !important;
  color: white !important;
  padding: 12px 25px;
  border-radius: 8px;
  border: 2px solid white !important;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Efek saat tombol disentuh kursor */
.btn-primary:hover {
  background-color: #f1f5f9 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-3px);
}
.hero {
  background: var(--blue-main);
  color: white;
  padding: 60px 8%;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: #facc15;
}

.hero-text p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Kotak Utama Banner */
.hero-image.banner-container {
  flex: 1;
  position: relative;
  width: 100%;
  min-width: 300px; /* Supaya tidak kekecilan */
  aspect-ratio: 16 / 9; /* Menjaga proporsi gambar */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: #222;
}

/* Gambar di dalam Banner */
.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* KUNCINYA: Gambar memenuhi kotak tanpa gepeng */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

/* --- LAYOUT & GRID --- */
.container {
  max-width: 1200px;
  margin: 0 auto; /* Menengahkan container utama */
  padding: 60px 8%;
}
.grid {
  display: grid;
  /* Menggunakan auto-fit agar grid menyesuaikan jumlah konten di tengah */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center; /* Menengahkan seluruh baris grid */
  justify-items: center; /* Menengahkan isi di dalam tiap kotak grid */
}

/* --- SERVICE CARDS --- */
.service-card .card-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-card h3 {
  margin: 15px 0 10px;
  font-size: 18px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-gray);
}

/* --- PRODUCT CARD --- */
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 20px;
}

/* --- FILTERS --- */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  transition: 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--blue-main);
  color: white;
  border-color: var(--blue-main);
}

/* --- FOOTER --- */
.footer {
  background: #0f172a; /* Warna Navy Gelap */
  color: #94a3b8;
  padding: 60px 8% 30px;
  margin-top: 80px;
  border-top: 4px solid var(--blue-main); /* Garis pemanis di atas footer */
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

/* Garis bawah kecil di bawah judul footer */
.footer-section h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--blue-main);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 15px;
}

.footer-section ul li a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-block; /* Agar efek transform (geser) bisa bekerja */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Animasi lebih halus */
}

/* --- ANIMASI HOVER LINK CEPAT --- */
.footer-section ul li a:hover {
  color: white;
  transform: translateX(10px); /* Efek geser ke kanan 10px */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Menambahkan panah kecil saat di-hover (opsional tapi keren) */
.footer-section ul li a:hover::before {
  content: "➔ ";
  color: var(--blue-main);
  margin-right: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* --- BUTTON PESAN --- */
.btn-pesan {
  background: var(--blue-main);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.btn-pesan:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .container {
    padding: 30px 15px;
  }
  table {
    font-size: 13px;
  }

  table th,
  table td {
    padding: 8px;
    white-space: nowrap;
  }
  nav {
    flex-direction: column;
    gap: 15px;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    order: -1;
  } /* Gambar muncul di atas teks di HP */
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .footer-container {
    text-align: center;
  }
  .btn-pesan {
    width: 100%;
  }
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  .hero-image.banner-container {
    aspect-ratio: 4 / 3; /* Lebih kotak sedikit untuk layar HP */
  }
}
/* --- CSS KHUSUS HALAMAN LOGIN & DAFTAR --- */
.auth-page {
  background-color: #f1f5f9; /* Latar belakang abu-abu sangat muda agar kotak putih terlihat menonjol */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center; /* Menengahkan secara vertikal */
  justify-content: center; /* Menengahkan secara horizontal */
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px; /* Membatasi lebar kotak login agar tidak gepeng */
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: none; /* Menghilangkan border default card */
}
.auth-card:hover {
  transform: none !important; /* Memaksa kotak untuk diam */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important; /* Shadow tetap konsisten */
}

.auth-card .btn-pesan:hover {
  transform: none;
}
/* Memperbaiki tampilan input field di form */
.input-field {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0 15px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box; /* Sangat penting agar padding tidak merusak lebar */
  font-family: inherit;
  transition: 0.3s;
}

.input-field:focus {
  outline: none;
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Memastikan label rapi */
label {
  display: block;
  text-align: left;
}
/* Mematikan efek melayang pada form testimoni dan form admin */
#testi-form-box:hover,
.admin-form-section:hover,
.auth-card:hover {
  transform: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important; /* Gunakan shadow tipis bawaan card */
}

/* Mematikan efek scale pada tombol di dalam form agar tidak kaget saat diklik */
#testi-form-box .btn-pesan:hover,
.admin-form-section .btn-pesan:hover,
.auth-card .btn-pesan:hover {
  transform: none !important;
  background: var(--blue-dark); /* Hanya berubah warna saja */
}
/* Style untuk Zoom Gambar */
.modal-zoom {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.modal-content-zoom {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoomAnim 0.3s;
}

@keyframes zoomAnim {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.close-zoom {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#caption-zoom {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.2rem;
}
/* Label Sold Out */
.label-sold {
  background: #ef4444; /* Warna merah */
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Container Gambar Produk */
.card-img-container {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  position: relative;
  background: #f1f5f9;
}

/* Efek Gambar saat Sold Out */
.card-img-container[style*="grayscale"] img {
  filter: grayscale(1);
  opacity: 0.6;
}

/* Badge Kategori */
.category-badge {
  background: #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
