/* styles.css - extracted from Index.HTML */
:root{
  --brand:#0f1724; /* dark slate */
  --accent:#39c4d6; /* Drak */
  --muted:#0091f1;
  --primary:#0baf9c; /* soft pastel */
  --card-bg: #e81414;
  font-family: 'Poppins', 'Lato', system-ui, sans-serif;
}
html{scroll-behavior:smooth}

body{
  background: url('background.png') no-repeat center center fixed;
  background-size: cover;
  color:var(--brand);
}

/* Hero */
.hero{
  min-height:100vh;
  background-image: url('Latar Belakang 2.png');
  background-size:cover;
  background-position:center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero::after{
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.10);
  z-index: 1;
  pointer-events: none;
}

.hero .display-5{font-weight:700; position: relative; z-index: 2; color: #2d9d78; text-shadow: 0 4px 18px rgba(0,0,0,0.45);}
.hero .lead{color: #2d9d78; text-shadow: 0 3px 12px rgba(0,0,0,0.35);}

.btn-cta{
  background:var(--primary);
  color:var(--brand);
  border:0;
  font-weight:600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(243,166,131,0.4);
  color:var(--brand);
}

/* Cart badge */
.cart-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e23b3b;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
}

/* Flying image used for add-to-cart animation */
.flying-img{
  position: fixed;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  z-index: 9999;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), opacity 0.6s;
  pointer-events: none;
}

/* Button click pulse */
.btn-cta.pulse{
  animation: pulse 0.45s ease;
}
@keyframes pulse{
  0%{transform:scale(1)}
  50%{transform:scale(0.96)}
  100%{transform:scale(1)}
}

/* Mini cart dropdown */
.mini-cart{
  position: absolute;
  top: 40px;
  right: 0;
  width: 320px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  display: none;
  z-index: 1080;
}
.mini-cart.show{ display: block; }
.mini-cart .mini-item{ display:flex; gap:10px; align-items:center; margin-bottom:10px; }
.mini-cart .mini-item img{ width:48px; height:48px; object-fit:cover; border-radius:6px }
.mini-cart .mini-empty{ text-align:center; color:#667788 }

.hero .container {
  position: relative;
  z-index: 2;
}

/* Cards */
.product-card img{height:260px;object-fit:cover}

/* Footer */
footer{background:#0b0f14;color:#05428e;padding:1.25rem 0}

/* Small responsiveness tweaks */
@media (max-width:576px){
  .hero{padding:4rem 1rem; background-attachment: scroll}
  .hero .display-5{font-size:1.75rem}
}
