/*
 * style.css — Gaya kustom untuk halaman depan (landing page).
 * Catatan: sebagian besar tampilan memakai Tailwind (lihat index.html),
 * file ini hanya untuk gaya tambahan yang tidak bisa dibuat Tailwind.
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: #3c2415;
  background-color: #f4ebd8;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.83-2.69 2.688A19.962 19.962 0 0 0 41.1 0h13.527zM60 5.373l-5.373 5.372A19.962 19.962 0 0 0 60 24.272V5.373zM51.984 0h-8.086c.94 1.704 1.624 3.564 2.012 5.53l6.074-6.074v.544zm-14.84 0H22.856A19.972 19.972 0 0 0 0 22.856V37.14c7.63 0 14.288 4.298 17.728 10.536l-8.056 8.056c-.958-3.08-1.5-6.386-1.5-9.84v-7.144C20.665 38.75 30 29.414 30 17.886c0-4.04-1.077-7.828-2.956-11.084l8.056-8.056A19.94 19.94 0 0 1 42.114 10.5 19.94 19.94 0 0 1 54.627 0h-17.48zM0 45.144V60h14.856c-.94-1.704-1.624-3.564-2.012-5.53L1.137 60H0v-.544L5.47 54.98c-2.316-2.584-4.076-5.6-5.47-8.943v-.893zM60 45.144v7.144c-12.495 0-22.856 10.36-22.856 22.856H22.856A19.972 19.972 0 0 0 45.714 52.86l8.056 8.056c.958-3.08 1.5-6.386 1.5-9.84v-5.932z' fill='%23d97706' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}

@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
}
.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

.view {
  display: none;
}
.view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: #fcd34d;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #f59e0b;
  transition: width 0.3s;
  border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}
.mobile-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}
.mobile-link:hover,
.mobile-link.active {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.product-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(249, 228, 194, 0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 8px 20px rgba(245, 158, 11, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.03);
}

.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background: #1a0d06;
}
.product-card .img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 13, 6, 0.3) 0%,
    transparent 60%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.product-card:hover .img-wrap::after {
  background: linear-gradient(
    to top,
    rgba(26, 13, 6, 0.15) 0%,
    transparent 70%
  );
}
.product-card .img-wrap img {
  transition:
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.4s ease;
  filter: contrast(1.05) brightness(0.99) saturate(1.1);
}
.product-card:hover .img-wrap img {
  transform: scale(1.08);
  filter: contrast(1.08) brightness(1.02) saturate(1.15);
}

.products-grid {
  perspective: 1200px;
}

.btn-order {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.01em;
}
.btn-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.btn-order:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  background: #1da851;
}
.btn-market {
  background: #ee4d2d;
  color: #fff;
}
.btn-market:hover {
  background: #d43f21;
}

.product-card .flavor-select {
  background: #fdfbf7;
  border: 1px solid rgba(180, 140, 100, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.product-card .flavor-select:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: #fffbeb;
}
.product-card .flavor-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.feature-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(249, 228, 194, 0.8);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
}
.sidebar-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #fff;
}
.sidebar-btn.active {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-weight: 600;
}

.stat-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(249, 228, 194, 0.8);
  transition: all 0.2s;
}
.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.35s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}
.toast.show {
  transform: translateX(0);
}
.toast.success {
  background: #10b981;
}
.toast.error {
  background: #ef4444;
}

#waFloat {
  animation: waPulse 2s ease-in-out infinite;
}

@media (max-width: 1023px) {
  .sidebar-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}

::selection {
  background: rgba(245, 158, 11, 0.2);
}
