:root {
  /* Brand */
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --accent: #22c55e;

  /* Surfaces & text */
  --ink: #e5e7eb;
  --muted: #94a3b8;
  --muted2: #64748b;
  --bg: #0b1020;
  --card: #0f172a;

  /* Layout tokens */
  --radius: 18px;
  --container-padding: 20px;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.4);
  --ring: rgba(14, 165, 233, 0.35);
  --transition: 200ms ease;
}
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg) 35%,
    #0a1b30 100%
  );
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 var(--container-padding);
}

/* Accessibility helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 8, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  height: 65px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.logo {
  /* Responsive logo size: will shrink on narrow viewports but not grow beyond 48px */
  width: clamp(36px, 8vw, 48px);
  height: clamp(36px, 8vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-title {
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.3px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
nav a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color var(--transition), transform var(--transition);
}
nav a:hover,
nav a.active {
  color: #fff;
}

/* Tombol (Button) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.5);
}
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.btn.secondary:hover {
  background: rgba(213, 207, 207, 0.05);
  transform: none;
  box-shadow: none;
}
.btn:focus-visible {
  outline: 3px solid var(--ring);
}

/* Layout & Section */
.section {
  padding: 64px 0;
}
/* .hero {
  position: relative;
  overflow: hidden; */
/* background-image: linear-gradient(rgba(2, 8, 23, 0.7), rgba(2, 8, 23, 0.7)),
    url("/assets/img/produk.png"); */
/* animation: slideBackground 15s infinite;
  background-size: cover;
  background-position: center;
  color: #f1f5f9; */

/* Hapus @keyframes slideBackground yang lama */
.hero {
  position: relative; /* Wajib agar pseudo-element bisa diposisikan */
  overflow: hidden;
  color: #f1f5f9;
  background-color: #020817; /*Warna dasar jika gambar belum termuat */
  background-size: cover;
  background-position: center;

  /* GAMBAR PERTAMA KITA JADIKAN LATAR BELAKANG UTAMA DARI .hero */
  background-image: linear-gradient(rgba(2, 8, 23, 0.7), rgba(2, 8, 23, 0.7)),
    url("/assets/img/produk.png");
}

/* LAPISAN KEDUA UNTUK GAMBAR KEDUA */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(2, 8, 23, 0.7), rgba(2, 8, 23, 0.7)),
    url("/assets/img/produk1.png");

  /* Awalnya transparan (tidak terlihat) */
  opacity: 0;

  /* Terapkan animasi fade */
  animation: fade-in-out 15s infinite;

  /* Atur delay agar muncul setelah gambar pertama */
  animation-delay: 5s;
}

/* LAPISAN KETIGA UNTUK GAMBAR KETIGA */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(2, 8, 23, 0.7), rgba(2, 8, 23, 0.7)),
    url("/assets/img/produk2.png");

  /* Awalnya transparan (tidak terlihat) */
  opacity: 0;

  /* Terapkan animasi fade yang sama */
  animation: fade-in-out 15s infinite;

  /* Atur delay agar muncul setelah gambar kedua */
  animation-delay: 10s;
}

/* KEYFRAME UNTUK EFEK FADE IN & FADE OUT */
@keyframes fade-in-out {
  0% {
    opacity: 0;
  } /* Mulai dari transparan */
  17% {
    opacity: 1;
  } /* Muncul penuh (fade in selesai) */
  33% {
    opacity: 1;
  } /* Tetap terlihat */
  50% {
    opacity: 0;
  } /* Menghilang (fade out selesai) */
  100% {
    opacity: 0;
  } /* Tetap menghilang */
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0; /* remove visible seam between columns; spacing handled per-column */
  align-items: center;
  padding: 56px 0 16px 0;
  position: relative; /* Wajib ada agar z-index berfungsi */
  z-index: 1; /* Mengangkat konten ke lapisan paling depan */
}

/* Spesifik: biarkan kartu transparan di hero menempel ke tepi container
   dengan mengimbangi padding .container sehingga gambar tidak meninggalkan garis */
/* Specific hero transparent card adjustments */

/* Beri jarak di sisi kanan kolom teks untuk menggantikan gap grid yang dihapus */
/* hero reveal spacing left as-is */

/* Jika viewport kecil, kembalikan perilaku normal agar tidak overflow */
@media (max-width: 1024px) {
  .hero .reveal {
    padding-right: 0;
  }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
}
.hero .lede {
  color: #cbd5e1;
  max-width: 60ch;
  font-size: 1.1rem;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.badge {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(2, 8, 23, 0.5);
  font-size: 0.9rem;
}
.glass {
  position: absolute;
  inset: 10% auto auto 55%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(14, 165, 233, 0.18),
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin: 0 0 10px;
  text-align: center;
}
.section-sub {
  color: var(--muted);
  margin: 0 auto 32px auto;
  max-width: 65ch;
  text-align: center;
}
.card {
  background: linear-gradient(180deg, var(--card), #0a1326);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
/* .card-transparan and .gambar-goyang removed */

/* Alias modern/lebih descriptif */
/* alias removed */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.5);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.space-between {
  justify-content: space-between;
}
.flex-1 {
  flex: 1;
}
.mt-10 {
  margin-top: 10px;
}
.mt-12 {
  margin-top: 12px;
}

/* UI Elements */
.field {
  display: grid;
  gap: 8px;
}
label {
  font-weight: 700;
  color: var(--muted);
}
input,
select,
textarea {
  background: #0a1326;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--ring);
  border-color: var(--brand);
}
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}
.result {
  background: #071024;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 18px;
}
.rincian,
.checklist {
  margin-left: 18px;
  padding: 0;
  line-height: 1.8;
  list-style-type: "✓ ";
}
.hint {
  color: var(--muted);
  font-size: 0.9rem;
}
.toolbar {
  margin: 10px 0 18px;
}

@media (max-width: 640px) {
  .toolbar.row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .toolbar .search,
  .toolbar select {
    width: 100%;
  }
}
.search {
  flex: 1;
  min-width: 220px;
}
.price {
  font-weight: 900;
  font-size: 1.5rem;
  margin: 12px 0;
}
.chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  color: var(--muted);
  margin-top: 48px;
}

@media (max-width: 640px) {
  footer .row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

/* Responsive */
.menu-toggle {
  display: none;
  z-index: 100;
}
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero .lede {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }
  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
  .badges {
    justify-content: center;
  }
  .calc {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .calc .row {
    gap: 16px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
  }
  .featured-section {
    padding: 72px 0;
  }
  .featured-section::before {
    width: min(620px, 90%);
    height: 320px;
  }
  .card-content {
    padding: 24px;
  }
  #galeri .gallery-wrapper {
    padding: 8px 36px;
    height: clamp(220px, 34vw, 340px);
  }
  #galeri .scroll-btn {
    width: 40px;
    height: 40px;
  }
  .map-container iframe {
    height: 380px;
  }
}
@media (max-width: 768px) {
  /* Hide large header CTAs on mobile but keep the menu toggle and WhatsApp visible */
  .topbar-inner .btn:not(.menu-toggle):not(#ctaWaTop) {
    display: none;
  } /* hide large CTAs on mobile */
  nav ul {
    display: none;
    position: absolute;
    top: 75px;
    right: 20px;
    width: 250px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }
  nav ul.is-open {
    display: flex;
  }

  /* Mobile hamburger styles */
  .hamburger {
    display: inline-block;
    width: 20px;
    height: 16px;
    position: relative;
  }
  .hamburger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    display: block;
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .hamburger span:nth-child(1) {
    top: 0;
  }
  .hamburger span:nth-child(2) {
    top: 7px;
  }
  .hamburger span:nth-child(3) {
    bottom: 0;
  }

  /* Animate to X when open */
  .menu-toggle.open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Fullscreen overlay variant for the mobile nav */
  nav ul.mobile-overlay {
    left: 0;
    right: 0;
    top: 64px;
    width: 100%;
    height: calc(100vh - 64px);
    border-radius: 0;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 60;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--card) 95%, black 0%),
      var(--card)
    );
  }

  /* Larger, touch-friendly nav links on mobile */
  nav ul.mobile-overlay a {
    font-size: 1.05rem;
    padding: 14px 12px;
    border-radius: 8px;
  }

  /* Slightly reduce global container padding on small screens */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Reduce hero padding & center content on small screens */
  .hero-inner {
    padding: 36px 0 12px 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
  nav ul li {
    width: 100%;
  }
  nav ul a {
    display: block;
    padding: 0.75rem;
    border-radius: 12px;
  }
  nav ul a:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  /* ensure specificity so this isn't overridden by .topbar-inner .btn */
  .topbar-inner .menu-toggle {
    display: inline-flex;
  }

  /* Make the topbar container relative so we can absolutely position the hamburger */
  .topbar-inner {
    position: relative;
    padding-right: 72px; /* Space for hamburger menu */
  }

  /* Move hamburger to top-right corner on mobile (outside normal flow) */
  .topbar-inner .menu-toggle {
    position: absolute;
    right: 12px;
    top: 10px;
    transform: none;
    z-index: 120;
  }

  /* Add spacing between visible header buttons on mobile */
  .topbar-inner .btn {
    margin-right: 8px;
  }
}

/* Disable large decorative glass blur on small screens to avoid visual/layout issues */
@media (max-width: 768px) {
  .glass {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }
  .topbar-inner {
    gap: 12px;
    padding-right: 56px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero .lede {
    font-size: 0.95rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .badges {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .badge {
    text-align: center;
  }
  .calc .row,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar .search {
    min-width: auto;
  }
  .calc .row .btn,
  .calc .row a.btn {
    width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }
  .card-content {
    padding: 20px;
  }
  #galeri .gallery-wrapper {
    padding: 8px 24px;
    height: clamp(200px, 48vw, 300px);
  }
  #galeri .scroll-btn {
    width: 36px;
    height: 36px;
  }
  #galeri .scroll-btn.left {
    left: 12px;
  }
  #galeri .scroll-btn.right {
    right: 12px;
  }
  .map-container iframe {
    height: 320px;
  }
  footer .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}

/* Effects */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* Improve focus and reduce motion for users who prefer it */
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--ring);
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.accent {
  color: var(--brand);
}
/* Style khusus untuk tombol WhatsApp di header */
.topbar .btn#ctaWaTop {
  background: linear-gradient(135deg, #22c55e, #16a34a); /* Gradien hijau */
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45); /* Bayangan hijau */
}
.topbar .btn#ctaWaTop:hover {
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.5); /* Bayangan hijau saat hover */
}
.map-container {
  padding: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: clamp(280px, 45vh, 420px);
  border-radius: var(--radius);
  border: none;
}
/* ==== GALERI (SLIDER) — ukuran konsisten & no-crop ==== */
#galeri .gallery-wrapper {
  position: relative;
  overflow: hidden;
  padding: 8px 44px; /*ruanguntuktombol*/
  height: clamp(220px, 28vw, 360px);
  /* border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08); */
}

@media (max-width: 640px) {
  #galeri .gallery-wrapper {
    padding: 8px 24px;
    height: clamp(200px, 50vw, 280px);
  }
  #galeri .scroll-btn {
    width: 36px;
    height: 36px;
  }
  #galeri .scroll-btn svg {
    width: 18px;
    height: 18px;
  }
}

#galeri .slider-track {
  display: flex;
  height: 100%;
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Setiap kartu mengikuti tinggi wrapper */
#galeri .card {
  flex: 0 0 auto;
  height: 100%;
  padding: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex; /* supaya img bisa center */
  align-items: center;
  justify-content: center;
}

/* Gambar tidak dipotong: muat di dalam kartu */
#galeri .card img {
  height: 100%; /*kunci tinggi */
  width: auto; /* biar proporsi terjaga */
  max-width: 100%; /* jangan melebihi lebar kartu */
  object-fit: cover; /* no-crop */
  background: transparent; /* letterbox rapi */
  border-radius: var(--radius);
}
/* opsional: sembunyikan scrollbar */
#galeri .slider-track {
  scrollbar-width: none;
}
#galeri .slider-track::-webkit-scrollbar {
  display: none;
}

/* tombol kiri/kanan (posisi) */
#galeri .scroll-btn.left {
  left: 16px;
}
#galeri .scroll-btn.right {
  right: 16px;
}

/* ==== Base style tombol galeri (wajib agar terlihat) ==== */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, opacity 0.3s;
}
.scroll-btn:hover {
  background-color: var(--card);
}
.scroll-btn[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}
.scroll-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
/* Biar kartu di katalog selalu tampak, walau animasi reveal gagal */
/* #catalogGrid .reveal {
  opacity: 1 !important;
  transform: none !important;
} */
/* ===== PRODUK UNGGULAN & KATALOG ===== */

/* Featured Section */
.featured-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0a1b30 100%);
  position: relative;
}

.featured-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 80vw, 800px);
  height: 400px;
  background: radial-gradient(
    closest-side,
    rgba(14, 165, 233, 0.08),
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.featured-section .container {
  position: relative;
  z-index: 1;
}

.section-subtitle {
  color: var(--muted);
  text-align: center;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
  max-width: 60ch;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 50px;
}

/* Product Card */
.product-card {
  background: linear-gradient(180deg, var(--card), #0a1326);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(2, 8, 23, 0.6);
  border-color: rgba(14, 165, 233, 0.2);
}

/* Card Image */
.card-image {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: #0a1326;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .card-image img {
  transform: scale(1.08);
}

/* Featured Badge */
.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent), #16a34a);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  z-index: 2;
}

/* Card Content */
.card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--ink);
  line-height: 1.3;
}

.product-desc {
  color: var(--muted);
  margin: 0 0 20px 0;
  line-height: 1.6;
  flex: 1;
  font-size: 0.95rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.card-actions button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.btn-outline {
  background: transparent;
  color: #25d366;
  border: 2px solid #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-outline:hover {
  background: #25d366;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* Catalog Page Specific */
.catalog-header {
  text-align: center;
  margin-bottom: 60px;
}

.catalog-filters {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.filter-row {
  display: flex;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
  width: 100%;
}

/* Error & Empty States */
.error-message,
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  margin: 40px 0;
}

.error-message p,
.no-products p {
  font-size: 1.1rem;
  margin: 0;
}

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
  color: var(--muted);
}

.loading::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid rgba(14, 165, 233, 0.2);
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 12px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Text Center Utility */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 32px;
}

/* Button Variants */
.btn-outline.view-all {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.btn-outline.view-all:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

/* Product Tags */
.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.product-tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .featured-section {
    padding: 60px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .card-image {
    height: 240px;
  }

  .card-content {
    padding: 24px;
  }

  .product-name {
    font-size: 1.2rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .filter-row {
    flex-direction: column;
    gap: 16px;
  }

  .filter-group {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .card-content {
    padding: 20px;
  }

  .featured-badge {
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 0.75rem;
  }
}

/* Hover Effects untuk Touch Devices */
@media (hover: none) {
  .product-card:hover {
    transform: none;
  }

  .product-card:hover .card-image img {
    transform: none;
  }

  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
  }
}

/* Focus States untuk Accessibility */
.product-card:focus-within {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.card-actions button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Animation untuk Reveal Effect */
.product-card.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-card.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation untuk Multiple Cards */
.product-card.reveal:nth-child(1) {
  transition-delay: 0.1s;
}
.product-card.reveal:nth-child(2) {
  transition-delay: 0.2s;
}
.product-card.reveal:nth-child(3) {
  transition-delay: 0.3s;
}
.product-card.reveal:nth-child(4) {
  transition-delay: 0.4s;
}
.product-card.reveal:nth-child(5) {
  transition-delay: 0.5s;
}
.product-card.reveal:nth-child(6) {
  transition-delay: 0.6s;
}
#finishing,
label[for="finishing"],
.field:has(#finishing) {
  display: none !important;
}
#kalkulator select#variant {
  margin-left: 8px;
}
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}
/* ============ THEME ============ */
/* Default: dark */
:root,
[data-theme="dark"] {
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --ink: #e5e7eb;
  --muted: #94a3b8;
  --muted2: #64748b;
  --bg: #0b1020;
  --card: #0f172a;
  --ring: rgba(14, 165, 233, 0.35);
  --hairline: rgba(255, 255, 255, 0.08);
  --app-bg: linear-gradient(180deg, #0b1020 0%, #0b1020 35%, #0a1b30 100%);
  --btn-fg: #fff;
  --topbar-bg: rgba(2, 8, 23, 0.7);
}

/* Light */
[data-theme="light"] {
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --ink: #0b1020;
  --muted: #475569;
  --muted2: #64748b;
  --bg: #f7fafc;
  --card: #ffffff;
  --ring: rgba(14, 165, 233, 0.35);
  --hairline: rgba(2, 8, 23, 0.1);
  --app-bg: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  --btn-fg: #0b1020;
  --topbar-bg: rgba(255, 255, 255, 0.7);
}

/* Terapkan background aplikasi berdasarkan variabel */
body {
  background: var(--app-bg) !important;
  color: var(--ink) !important;
}

/* Komponen penting menyesuaikan tema */
.topbar {
  background: var(--topbar-bg) !important;
  border-bottom: 1px solid var(--hairline) !important;
}
.card {
  background: linear-gradient(
    180deg,
    var(--card),
    color-mix(in oklab, var(--card), #0a1326 30%)
  );
  border: 1px solid var(--hairline) !important;
}
.chip {
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--card), #fff 6%);
}
.btn.secondary {
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.price {
  color: var(--ink);
}

/* Di mobile: tetap tampilkan tombol toggle tema */
@media (max-width: 768px) {
  .topbar-inner .btn#themeToggle {
    display: inline-flex !important;
  }

  /* Make WhatsApp button icon-only on small screens */
  .topbar .btn#ctaWaTop {
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .topbar .btn#ctaWaTop .wa-text {
    display: none;
  }
  /* Ensure the SVG icon fits well inside the round button */
  .topbar .btn#ctaWaTop svg {
    width: 18px;
    height: 18px;
    display: block;
  }
}

/* Transisi halus */
html {
  color-scheme: light dark;
}
body,
.card,
.topbar,
.btn,
.chip {
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}
/* ====== Light mode: pastikan teks terbaca ====== */
[data-theme="light"] body {
  color: var(--ink) !important;
}

/* Header & nav */
[data-theme="light"] .brand,
[data-theme="light"] .brand-title {
  color: var(--ink) !important;
}
[data-theme="light"] nav a {
  color: var(--muted2) !important;
}
[data-theme="light"] nav a:hover,
[data-theme="light"] nav a.active {
  color: var(--ink) !important;
}

/* Card & teks di dalamnya */
[data-theme="light"] .card,
[data-theme="light"] .card h3,
[data-theme="light"] .section-title,
[data-theme="light"] .price {
  color: var(--ink) !important;
}

[data-theme="light"] .hint,
[data-theme="light"] .muted {
  color: var(--muted) !important;
}

[data-theme="light"] .chip {
  color: var(--muted2) !important;
  border-color: var(--hairline) !important;
  background: color-mix(in oklab, #fff 90%, #000 0%);
}

/* Button */
[data-theme="light"] .btn {
  color: var(--ink) !important;
} /* default */
[data-theme="light"] .btn.primary {
  color: #fff !important;
} /* teks tetap putih di gradient biru */
[data-theme="light"] .btn.secondary {
  color: #cbd5e1 !important;
}

/* Ikon SVG yang pakai currentColor */
[data-theme="light"] .scroll-btn svg,
[data-theme="light"] .logo svg {
  fill: currentColor;
  color: var(--ink);
}

/* Footer */
[data-theme="light"] footer {
  color: var(--muted) !important;
}
/* ========= Light mode: Form & Result ========= */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .select {
  background: #ffffff !important;
  color: #0b1020 !important; /* teks gelap agar terbaca */
  border: 1px solid rgba(2, 8, 23, 0.12) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #64748b; /* var(--muted2) */
  opacity: 1;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  background: #ffffff;
  color: #0b1020;
  outline: 3px solid var(--ring);
  border-color: var(--brand);
}

/* Panel hasil / ringkasan (kontak & kalkulator) */
[data-theme="light"] .result {
  background: #f8fafc !important;
  border: 1px dashed rgba(2, 8, 23, 0.18) !important;
  color: #0b1020 !important;
}

/* Label & teks bantu */
[data-theme="light"] label {
  color: var(--muted2) !important;
}
[data-theme="light"] .hint {
  color: var(--muted) !important;
}

/* Autofill Chrome agar tidak menguning gelap */
[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] textarea:-webkit-autofill,
[data-theme="light"] select:-webkit-autofill {
  -webkit-text-fill-color: #0b1020 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}
/* Light mode: gelapkan teks lede */
[data-theme="light"] .hero .lede,
[data-theme="light"] .lede {
  color: #cbd5e1 !important; /* slate-700, lebih gelap dari var(--muted2) */
}
/* Light mode: topbar putih semu biru + blur halus */
[data-theme="light"] {
  --topbar-bg: linear-gradient(
    180deg,
    rgba(237, 246, 255, 0.86) 0%,
    rgba(232, 244, 255, 0.74) 100%
  ); /* putih kebiruan */
  --topbar-border: rgba(2, 8, 23, 0.1);
}

[data-theme="light"] .topbar {
  background: var(--topbar-bg) !important;
  border-bottom: 1px solid var(--topbar-border) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* (opsional) menu dropdown di mobile ikut semu biru */
@media (max-width: 768px) {
  [data-theme="light"] nav ul {
    background: linear-gradient(
      180deg,
      rgba(237, 246, 255, 0.95) 0%,
      rgba(232, 244, 255, 0.88) 100%
    ) !important;
    border: 1px solid var(--topbar-border) !important;
  }
}
