*{margin:0;padding:0;box-sizing:border-box;font-family:Poppins}
body{background:#fafafa;color:#333;padding-top:70px}
.container{width:90%;max-width:1200px;margin:auto}

/* NAVBAR */
.navbar{background:#2e7d32;padding:15px 0;position:fixed;top:0;width:100%;z-index:1000}
.nav-flex{display:flex;justify-content:space-between;align-items:center}
.logo{color:#fff;font-size:22px;font-weight:700}
.logo span{color:#ffd54f}
nav a{color:#fff;margin-right:15px;text-decoration:none}
.cart-icon{background:#ffd54f;border:none;padding:6px 14px;border-radius:20px}

/* HERO */
.hero{height:86vh;background:url('../assets/hero6.png') center/cover no-repeat}

/* PRODUK */
.produk{padding:70px 0}
.section-title{text-align:center;font-size:32px;margin-bottom:40px}

.produk-wrapper{position:relative}
.produk-slider{display:flex;gap:30px;overflow-x:auto;scroll-behavior:smooth}
.produk-slider::-webkit-scrollbar{display:none}

.produk-card{
  flex: 0 0 auto;
  width:260px;
  background:#fff;
  padding:20px;
  border-radius:18px;
  text-align:center;
  box-shadow:0 10px 25px rgba(0,0,0,.12);

  display: flex;              /* ⬅️ WAJIB */
  flex-direction: column;     /* ⬅️ WAJIB */
}
.produk-img{height:180px;overflow:hidden;border-radius:14px;margin-bottom:15px}
.produk-img img{width:100%;height:100%;object-fit:cover}
.harga{display:block;margin:10px 0;font-weight:700;color:#2e7d32}
.produk-card button{background:#ffd54f;border:none;padding:10px 25px;border-radius:25px;font-weight:600}
.produk-card{
  display:flex;
  flex-direction:column;
}
.produk-footer{
  margin-top:auto;   /* ⬅️ INI YANG BENAR */
  text-align:center;
}

.produk-desc{
  min-height:70px;   /* sesuaikan */
}
/* ================= DESKRIPSI PRODUK (POINT) ================= */
.produk-desc{
  margin:8px 0 12px;
  padding-left:18px;      /* jarak bullet */
  font-size:14px;
  color:#555;
  line-height:1.6;
  min-height:52px;        /* ⬅️ biar card sejajar */
}

.produk-desc li{
  margin-bottom:4px;
}

.produk-desc{
  list-style: none;
  padding-left:0;
}

.produk-desc li::before{
  content: "✔";
  color:#2e7d32;
  margin-right:6px;
  font-weight:bold;
}

/* TOMBOL PRODUK < > */
.produk-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  color:#2e7d32;
  font-size:42px;
  font-weight:700;
  cursor:pointer;
}
.produk-btn.left{left:-20px}
.produk-btn.right{right:-20px}

/* GALERI */
.galeri{padding:80px 0}
.galeri-subtitle{margin:40px 0 15px;font-size:20px;font-weight:600;color:#2e7d32}
.galeri-wrapper{position:relative}
.galeri-slider{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex-wrap: nowrap;  /* ⬅️ INI KUNCI KEDUA */
}
.galeri-item{
  flex: 0 0 auto;      /* ⬅️ INI KUNCI UTAMA */
  width: 420px;
  height: 360px;
  border-radius: 15px;
  overflow: hidden;
  background: #000;
}
.galeri-item img{
  width:100%;
  height:100%;
  object-fit: cover;   /* ⬅️ KUNCI UTAMA */
  display:block;
}

.galeri-item.video{
  width: 500px;
  height: 380px;
}

.galeri-item.video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* TOMBOL GALERI < > */
.galeri-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  color:#2e7d32;
  font-size:36px;
  font-weight:700;
  cursor:pointer;
}
.galeri-btn.left{left:-20px}
.galeri-btn.right{right:-20px}

/* LOKASI */
.lokasi{padding:80px 0}
.lokasi-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}
iframe{width:100%;height:300px;border-radius:15px;border:none}

/* TENTANG */
.tentang{background:#f1f8f4;padding:70px 0;text-align:center}

/* CART */
.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:none}
.cart{position:fixed;top:0;right:-320px;width:300px;height:100vh;background:#fff;transition:.4s}
.cart.active{right:0}
.cart-header{padding:15px;display:flex;justify-content:space-between}
.cart-body{padding:15px}
.cart-item{display:flex;justify-content:space-between;margin-bottom:10px}
.cart-footer{padding:15px}
.checkout{width:100%;background:#25d366;color:#fff;border:none;padding:12px;border-radius:30px}

/* FOOTER */
footer{background:#2e7d32;color:#fff;text-align:center;padding:15px}
/* ================= PESAN EFFECT ================= */
.btn-pesan{
  transition:transform .15s, box-shadow .15s;
}
.btn-pesan:active{
  transform:scale(.95);
  box-shadow:0 4px 10px rgba(0,0,0,.2);
}

/* ================= QTY CONTROL BARU ================= */
.qty-control{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-top:12px;
}

.qty-btn{
  width:34px;
  height:34px;
  border:2px solid #2e7d32;
  background:#fff;
  color:#2e7d32;
  font-size:20px;
  font-weight:700;
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  border-radius:6px;
}

.qty-btn:active{
  background:#2e7d32;
  color:#fff;
}

.qty-control span{
  min-width:20px;
  text-align:center;
  font-weight:600;
}

/* ================= CART ITEM ================= */
.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.cart-item small{
  color:#666;
}
.cart-cancel{
  background:none;
  border:none;
  color:red;
  font-weight:bold;
  cursor:pointer;
}

/* ================= CLOSE BUTTON ================= */
.cart-close{
  color:red;
  font-size:20px;
}

/* ================= DESKTOP SCALE TO MOBILE ================= */
@media (max-width: 768px){

  body{
    width: 1200px;          /* ukuran desktop */
    transform: scale(0.33); /* SESUAIKAN SKALA */
    transform-origin: top left;
    overflow-x: hidden;
  }

}

body{
  display: flex;
  flex-direction: column;
}

footer{
  margin-top: auto;
}

/* ================= MODAL PESAN PRODUK ================= */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  display:none;
  z-index:2000;
}

.modal-produk{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:320px;
  background:#fff;
  border-radius:18px;
  padding:20px;
  display:none;
  z-index:2001;
}

.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.modal-header button{
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
}

.modal-produk img{
  width:100%;
  border-radius:12px;
  margin:15px 0;
}

.modal-harga{
  text-align:center;
  font-weight:700;
  color:#2e7d32;
}

.modal-action{
  display:flex;
  gap:10px;
  margin-top:15px;
}

.btn-keranjang{
  flex:1;
  background:#eee;
  border:none;
  padding:10px;
  border-radius:25px;
}

.btn-checkout{
  flex:1;
  background:#25d366;
  color:#fff;
  border:none;
  padding:10px;
  border-radius:25px;
}

/* ================= FLOATING CART ================= */
.floating-cart{
  position:fixed;
  bottom:20px;
  right:20px;
  width:56px;
  height:56px;
  background:#2e7d32;
  color:#fff;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:24px;
  cursor:pointer;
  z-index:3000;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.floating-cart span{
  position:absolute;
  top:-4px;
  right:-4px;
  background:#ffd54f;
  color:#333;
  font-size:12px;
  font-weight:700;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* ================= TOAST NOTIFICATION ================= */
.toast{
  position:fixed;
  bottom:90px;
  right:20px;
  background:#2e7d32;
  color:#fff;
  padding:12px 18px;
  border-radius:30px;
  font-size:14px;
  font-weight:600;
  opacity:0;
  transform:translateY(20px);
  transition:.3s ease;
  z-index:4000;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}

