*{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{
  min-height: 85vh;
  background: url('../assets/hero6.png') center/contain no-repeat;
  background-color:#f7f7f7;
}

/* 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{
  width:100%;
  aspect-ratio: 1 / 1;          /* kotak rapi seperti Shopee */
  background:#f7f7f7;           /* aman kalau ada ruang kosong */
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:15px;
}

.produk-img img{
  width:100%;
  height:100%;
  object-fit:contain;           /* ⬅️ KUNCI UTAMA */
}

.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:35%;
  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);
}

@media (max-width:768px){
  .produk-img{
    aspect-ratio: 4 / 5;   /* mirip Shopee mobile */
  }
}

/* ================= MODAL LAYOUT BARU ================= */
.modal-produk{
  width:90%;
  max-width:720px;
}

.modal-body{
  display:flex;
  gap:20px;
  align-items:center;
}

/* GAMBAR PRODUK BESAR */
.modal-image{
  flex:0.7;
  display:flex;
  justify-content:center;
  align-items:center;
}

.modal-image img{
  width:100%;
  max-width:420px;
  aspect-ratio:1/1;
  object-fit:contain;
}

/* INFO + KERANJANG */
.modal-info{
  flex:1;
}

.modal-harga{
  font-size:18px;
  margin-bottom:10px;
}

.qty-control{
  margin:15px 0;
}

.modal-action{
  display:flex;
  gap:10px;
}

.modal-action button{
  flex:1;
}

@media (max-width:600px){
  .modal-body{
    flex-direction:column;
    text-align:center;
  }

  .modal-image img{
    max-width:220px;
  }
}

@media (max-width:768px){

  .produk-slider{
    gap:16px;
    padding:0 10px;
  }

  .produk-card{
    width:85vw;              /* ⬅️ BESAR DI MOBILE */
    max-width:340px;
    padding:22px;
  }

}

@media (max-width:768px){

  .produk-card h3{
    font-size:18px;
    margin-top:8px;
  }

  .harga{
    font-size:20px;
  }

  .btn-pesan{
    font-size:16px;
    padding:12px 28px;
  }

}

@media (max-width:600px){

  /* MODAL LEBIH LEBAR */
  .modal-produk{
    width:100%;
    padding:24px;
  }

  /* GAMBAR PRODUK LEBIH BESAR */
  .modal-image img{
    max-width:380px;      /* ⬅️ BESAR DI MOBILE */
  }

  /* JUDUL PRODUK */
  #modalNama{
    font-size:25px;
    font-weight:705;
    margin-bottom:8px;
  }

  /* HARGA */
  .modal-harga{
    font-size:20px;
    margin-top:10px;
  }

  /* QTY CONTROL */
  .qty-control button{
    width:50px;
    height:50px;
    font-size:30px;
  }

  #modalQty{
    font-size:30px;
  }

  /* TOMBOL */
  .modal-action button{
    padding:16px 0;
    font-size:16px;
    font-weight:600;
    border-radius:30px;
  }
}

@media (max-width:600px){

  /* ================= CART FULL & BESAR ================= */
  .cart{
    width:100%;              /* ⬅️ dari 300px → FULL */
    max-width:100%;
    right:-100%;
  }

  .cart.active{
    right:0;
  }

  /* HEADER */
  .cart-header h3{
    font-size:22px;          /* ⬅️ 3x lebih jelas */
  }

  .cart-close{
    font-size:26px;
  }

  /* ISI ITEM */
  .cart-item strong{
    font-size:18px;
  }

  .cart-item small{
    font-size:16px;
  }

  .cart-cancel{
    font-size:16px;
  }

  /* TOTAL */
  .cart-footer p{
    font-size:20px;
    font-weight:700;
  }

  /* TOMBOL CHECKOUT */
  .checkout{
    padding:18px;
    font-size:18px;          /* ⬅️ tombol BESAR */
    border-radius:40px;
  }
}

@media (max-width:600px){

  /* TURUNKAN CART DARI NAVBAR */
  .cart{
    top:70px;                     /* ⬅️ SESUAI tinggi navbar */
    height:calc(100vh - 70px);    /* ⬅️ sisa layar */
  }

  .cart-overlay{
    top:70px;
  }
}

/* ================= CARA PEMBELIAN FLOW ================= */
.cara-beli{
  padding:70px 0;
  background:#f7fdf9;
}

.cara-flow{
  display:grid;
  grid-template-columns: repeat(2, auto); /* ⬅️ 2 instruksi per baris */
  justify-content:center;
  gap:40px 30px;
  margin-top:40px;
}

.cara-step{
  width:260px;
  background:#fff;
  padding:26px 20px;
  border-radius:18px;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.cara-step img{
  width:120px;       /* ⬅️ BESAR */
  height:120px;
  object-fit:contain;
  margin-bottom:14px;
}

.cara-step p{
  font-size:14px;
  font-weight:600;
  color:#333;
}

.cara-arrow{
  font-size:32px;
  font-weight:700;
  color:#2e7d32;
}

@media (max-width:768px){
  .cara-flow{
    grid-template-columns:1fr; /* ⬅️ 1 per baris di mobile */
  }

  .cara-step{
    width:100%;
  }

  .cara-step img{
    width:100px;
    height:100px;
  }
}

/* ================= CARA PEMBELIAN - MOBILE ONLY ================= */
@media (max-width:768px){

  /* JADI KE BAWAH */
  .cara-flow{
    grid-template-columns: 1fr;   /* ⬅️ SATU PER SATU */
    gap:30px;
  }

  /* CARD FULL */
  .cara-step{
    width:100%;
    padding:28px 20px;
  }

  /* GAMBAR DIBESARKAN */
  .cara-step img{
    width:160px;     /* ⬅️ BESAR BANGET DI MOBILE */
    height:160px;
    margin-bottom:16px;
  }

  /* TEKS */
  .cara-step p{
    font-size:18px;
    font-weight:600;
  }

  /* PANAH DISAMARKAN */
  .cara-arrow{
    display:none;
  }
}

/* ================= CARA PEMBELIAN - MOBILE FINAL ================= */
@media (max-width:768px){

  /* LAYOUT KE BAWAH */
  .cara-flow{
    grid-template-columns: 1fr;
    gap:18px;
  }

  /* CARD STEP */
  .cara-step{
    width:100%;
    padding:30px 20px;
  }

  /* GAMBAR LEBIH BESAR LAGI */
  .cara-step img{
    width:620px;        /* ⬅️ BESAR BANGET */
    height:620px;
    margin-bottom:18px;
  }

  /* TEKS */
  .cara-step p{
    font-size:18px;
    font-weight:600;
  }

  /* PANAH KE BAWAH */
  .cara-arrow{
    display:flex;
    justify-content:center;
    font-size:36px;     /* ⬅️ PANAH BESAR */
    font-weight:700;
    transform:rotate(90deg); /* → jadi ↓ */
    color:#2e7d32;
  }
}

/* ================= TATA CARA PEMBELIAN (GAMBAR PANJANG) ================= */
.cara-beli-image{
  padding:60px 0;
  background:#f7fdf9; /* halus, bisa dihapus kalau mau putih */
}

.cara-beli-img{
  width:100%;          /* ⬅️ FULL LEBAR */
  max-width:1200px;    /* ⬅️ BATAS AMAN LAPTOP */
  display:block;
  margin:0 auto;       /* ⬅️ TENGAH */
  border-radius:16px;  /* opsional */
}
