:root{
  --text:#0c2a1a;
  --muted:#3b6b52;

  --green:#0b6b3a;
  --green2:#084a28;

  --accent:#16a34a;
  --ring: rgba(22,163,74,.22);

  --card:#ffffff;
  --border: rgba(11,107,58,.14);
  --shadow: 0 18px 40px rgba(11,107,58,.12);

  --radius: 18px;
  --max: 1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(22,163,74,.10), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(11,107,58,.08), transparent 60%),
    #ffffff;
  color:var(--text);
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}

/* HEADER */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  background: linear-gradient(180deg, var(--green), var(--green2));
}
.nav{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

/* Brand */
.brand{display:flex; align-items:center; gap:10px}
.brandName{ color:#fff; font-weight:900; font-size:14px; letter-spacing:.2px; }
.brandSub{ color:rgba(255,255,255,.75); font-size:12px; font-weight:700; }

/* Logo */
.logoImg{
  width:44px; height:44px;
  border-radius:14px;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}
.logoImg img{width:100%; height:100%; object-fit:cover; display:block}
.logoFallback{display:none; font-weight:950; color:var(--green)}
.logoImg img[style*="display: none"] + .logoFallback{display:block}

/* Desktop links */
.links{
  display:flex;
  align-items:center;
  gap:14px;
  color:rgba(255,255,255,.9);
  font-weight:800;
}
.links a{padding:8px 12px; border-radius:14px}
.links a:hover{background: rgba(255,255,255,.14)}
.links a.active{background:#fff; color: var(--green)}

/* CTA */
.cta{display:flex; align-items:center; gap:10px}

/* Hamburger */
.hamb{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  display:none; /* muncul hanya mobile */
  flex-direction:column;
  justify-content:center;
  gap:6px;
  padding:10px;
  cursor:pointer;
}
.hamb span{
  height:2px;
  background:#fff;
  border-radius:99px;
  display:block;
}

/* Mobile Menu */
.mobileMenu{
  position:absolute;
  left:20px;
  right:20px;
  top:72px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow: 0 18px 40px rgba(11,107,58,.14);
  padding:12px;
  display:none;
  z-index:999;
}
.mobileMenu a{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  font-weight:850;
  color: var(--text);
}
.mobileMenu a:hover{ background: rgba(11,107,58,.06); }
.mobileMenu a.active{
  background: rgba(22,163,74,.10);
  border:1px solid rgba(22,163,74,.20);
  color: var(--green);
}
.mobileActions{
  margin-top:10px;
  display:grid;
  gap:10px;
}

/* BUTTON */
.btn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(11,107,58,.16);
  background: rgba(11,107,58,.06);
  color: var(--text);
  font-weight:850;
  cursor:pointer;
  transition:.15s ease;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  background:#fff;
  border:1px solid rgba(255,255,255,0);
  color: var(--green);
}
.btn.ghost{
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
}

/* HERO */
.hero{padding:28px 0 14px}
.heroActions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}

/* Banner image only */
.banner.bannerOnly{
  position: relative;
  height: 620px;
  border-radius: 26px;
  overflow: hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  background:#ffffff;
  display:grid;
  place-items:center;
}
#bannerImg{
  width: min(600px, 92%);
  height: 120%;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  will-change: transform;
  display:block;
  --baseY: -140px;
}

/* SECTION */
.section{padding:40px 0}
.secHead{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px; margin-bottom:16px;
}
.secHead h2{margin:0; font-size:28px; letter-spacing:-.4px}
.secHead p{margin:0; color:var(--muted); font-weight:650; max-width: 70ch}

.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:14px}

/* CARD */
.card{
  grid-column: span 4;
  border-radius: var(--radius);
  border:1px solid rgba(11,107,58,.12);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(11,107,58,.08);
  overflow:hidden;
}
.pad{padding:16px}
.card h3{margin:0; font-size:16px; font-weight:950}

.thumb{
  height:260px;
  background: rgba(11,107,58,.06);
  overflow:hidden;
  display:grid;
  place-items:center;
}
.thumb img{width:100%; height:100%; object-fit:cover; display:block}

.cardBody{padding:14px}
.titleRow{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.priceBadge{
  font-weight:950;
  background: rgba(22,163,74,.10);
  border:1px solid rgba(22,163,74,.20);
  color: var(--green);
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  white-space:nowrap;
}
.desc{margin:8px 0 12px; color:var(--muted); font-weight:650; font-size:13px}
.row{display:flex; gap:10px; flex-wrap:wrap}
.tag{
  font-size:12px; font-weight:900;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(11,107,58,.14);
  background: rgba(11,107,58,.06);
  color: var(--text);
}

/* OUTLET */
.outlet{
  grid-column: span 6;
  padding:16px;
  border-radius: var(--radius);
  border:1px solid rgba(11,107,58,.12);
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 24px rgba(11,107,58,.08);
}
.outlet h3{margin:0 0 6px; font-size:16px}
.outlet p{margin:0; color:var(--muted); font-weight:650}
.outlet .meta{margin-top:10px; display:flex; gap:10px; flex-wrap:wrap}
.mini{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(11,107,58,.12);
  background: rgba(11,107,58,.06);
  font-weight:900;
  font-size:12px;
}

/* Google Maps embed di bawah outlet */
.outletMap{
  margin-top:14px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(11,107,58,.15);
  background:#f7fbf9;
}

.outletMap iframe{
  width:100%;
  height:280px;
  border:0;
  display:block;
}

@media (max-width:560px){
  .outletMap iframe{
    height:220px;
  }
}

/* FOOTER */
.footer{
  padding:26px 0 34px;
  border-top:1px solid rgba(11,107,58,.12);
  background: rgba(255,255,255,.8);
}
.footer.simple{padding:18px 0}
.footerInner{display:flex; justify-content:space-between; gap:18px; align-items:flex-start}
.footTitle{font-weight:950}
.footText{margin:0; color:var(--muted); font-weight:650}
.footLinks{display:flex; gap:14px; flex-wrap:wrap}
.footLinks a{color:var(--muted); font-weight:800}
.footLinks a:hover{color:var(--text)}

/* MODAL */
.modalBg{
  position:fixed; inset:0;
  background: rgba(11,107,58,.25);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:2000;
}
.modal{
  width:min(900px, 100%);
  border-radius: 24px;
  border:1px solid rgba(11,107,58,.14);
  background:#fff;
  box-shadow: 0 24px 60px rgba(11,107,58,.18);
  overflow:hidden;
}
.modalHead{
  padding:14px 16px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(11,107,58,.12);
}
.close{background:transparent; border:none; color:var(--muted); cursor:pointer; font-weight:950}
.modalBody{padding:14px 16px}
.modalGrid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.field label{display:block; font-size:12px; color:var(--muted); font-weight:900; margin-bottom:6px}
.field input, .field textarea, .field select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(11,107,58,.18);
  background: #fff;
  color: var(--text);
  outline:none;
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: rgba(22,163,74,.45);
  box-shadow: 0 0 0 4px var(--ring);
}
textarea{min-height: 88px; resize: vertical}
.full{grid-column: 1 / -1}
.modalFoot{
  padding:14px 16px;
  border-top:1px solid rgba(11,107,58,.12);
  display:flex; gap:10px; justify-content:flex-end
}

/* RESPONSIVE */
@media (max-width: 980px){
  .links{display:none;}
  .hamb{display:flex;}
  .card{grid-column: span 6}
  .outlet{grid-column: span 12}
  .banner.bannerOnly{ height: 540px; }
  #bannerImg{ width:96%; height:100%; --baseY: -40px; }
}
@media (max-width: 560px){
  .card{grid-column: span 12}
  .modalGrid{grid-template-columns: 1fr}
  .footerInner{flex-direction:column}
  .banner.bannerOnly{ height: 460px; }
  #bannerImg{ width:96%; height:92%; --baseY: 0px; }
}

/* =========================
   FIX MODAL MOBILE (TIDAK GANGGU LUAR)
   ========================= */

/* modal container tetap di tengah dan tidak kepotong */
.modalBg{
  padding: 12px;
}

/* modal dibuat flex kolom agar body bisa scroll */
.modal{
  max-height: 92vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* header tetap terlihat */
.modalHead{
  position: sticky;
  top: 0;
  background:#fff;
  z-index: 2;
}

/* body yang scroll */
.modalBody{
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
}

/* footer tetap terlihat */
.modalFoot{
  position: sticky;
  bottom: 0;
  background:#fff;
  z-index: 2;
}

/* khusus mobile: grid modal jadi 1 kolom biar rapi */
@media (max-width: 560px){
  .modal{
    max-height: 94vh;
  }

  .modalGrid{
    grid-template-columns: 1fr;
  }

  /* tombol di footer modal saja (bukan tombol luar) */
  .modalFoot .btn{
    width: auto;
    flex: 1;                 /* 2 tombol bagi rata */
    justify-content:center;
  }
}

/* ===== Keranjang di hamburger ===== */
.menuCart{
  width: 100%;
  text-align:left;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(11,107,58,.14);
  background: rgba(11,107,58,.04);
  font-weight: 900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.cartBadge{
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(22,163,74,.14);
  border:1px solid rgba(22,163,74,.22);
  color: var(--green);
  font-size: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* ===== Isi keranjang ===== */
.cartItem{
  border:1px solid rgba(11,107,58,.12);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255,255,255,.96);
}

.cartItemTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.cartItemTitle{font-weight: 950;}
.cartItemMeta{color: var(--muted); font-weight: 700; font-size: 13px; margin-top:4px;}

.cartQtyRow{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:10px;
}
.cartQtyRow button{
  width:34px;
  height:34px;
  border-radius: 12px;
  border:1px solid rgba(11,107,58,.14);
  background: rgba(11,107,58,.06);
  cursor:pointer;
  font-weight: 950;
}
.cartQtyRow span{
  min-width: 40px;
  text-align:center;
  font-weight: 950;
}

.cartRemove{
  background: transparent;
  border: none;
  cursor:pointer;
  color: var(--muted);
  font-weight: 900;
}

.cartSummary{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(11,107,58,.12);
}
.cartRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-weight: 900;
}
/* =========================
   ICON BUTTON
   ========================= */
.btnIcon{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.icon{
  width:18px;
  height:18px;
  display:block;
}

/* Icon putih di tombol primary */
.btn.primary .icon{
  filter: brightness(0) invert(1);
}

/* Menu keranjang */
.menuCartLeft{
  display:flex;
  align-items:center;
  gap:8px;
}

/* =========================
   INVOICE STYLING (ENHANCED)
   ========================= */

.invoice{
  background:#fff;
  border-radius:22px;
  padding:18px;
  border:1px solid rgba(11,107,58,.15);
}

/* Header */
.invHead{
  background:linear-gradient(135deg,#0B6B3A,#169B5B);
  color:#fff;
  padding:16px;
  border-radius:16px;
}

.invHead img{
  background:#fff;
  border-radius:12px;
  padding:4px;
}

.invBrand{
  font-size:18px;
  font-weight:900;
}

.invMeta{
  font-size:13px;
  opacity:.95;
}

/* Table */
.invTable{
  width:100%;
  border-collapse:collapse;
  margin-top:16px;
}

.invTable thead th{
  background:#E9F6EF;
  color:#134E2A;
  font-size:13px;
  padding:10px;
  text-align:left;
  border-bottom:1px solid rgba(11,107,58,.15);
}

.invTable tbody td{
  padding:12px 10px;
  font-size:14px;
  vertical-align:top;
  border-bottom:1px dashed rgba(11,107,58,.12);
}

.invRight{
  text-align:right;
}

/* Total Box */
.invTotal{
  margin-top:16px;
}

.invTotalBox{
  background:#F1FBF6;
  border-radius:14px;
  padding:14px;
  border:1px solid rgba(11,107,58,.15);
}

.invRow{
  display:flex;
  justify-content:space-between;
  font-weight:800;
  color:#134E2A;
}

/* Action buttons inside invoice */
.invActions{
  display:flex;
  gap:10px;
}

.invActions .btn{
  border-radius:999px;
  padding:12px 18px;
  font-weight:900;
}

/* WhatsApp button */
.btn.wa{
  background:#22C55E;
  color:#fff;
  border:none;
}

.btn.wa:hover{
  background:#16A34A;
}

/* Bottom buttons */
.modalFoot{
  background:#F7FBF9;
  border-top:1px solid rgba(11,107,58,.15);
}

/* Save PDF */
#btnSavePdfInvoice{
  background:#E9F6EF;
  color:#134E2A;
  border:1px solid rgba(11,107,58,.25);
}

/* Mobile */
@media (max-width:560px){
  .invHead{
    flex-direction:column;
    gap:10px;
  }
}

/* Invoice harus di atas modal lain */
#invoiceBg{ z-index: 5000; }

/* Pastikan tombol bisa diklik */
#invoiceBg .modal,
#invoiceBg .modalHead,
#invoiceBg .modalBody,
#invoiceBg .modalFoot{
  pointer-events: auto;
}

#invoiceBg{ z-index: 9999; }
#invoiceBg .modal{ pointer-events:auto; }

#pinBg{ z-index: 10000; }

/* Tombol WhatsApp khusus di invoice (background putih) */
.invActions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn.wa{
  background:#eaf7ef;
  border:1px solid rgba(22,163,74,.25);
  color: var(--green);
  font-weight:900;
}

.btn.wa:hover{
  transform: translateY(-1px);
}

.btn.wa img{
  width:16px;
  height:16px;
  display:inline-block;
}

/* Pastikan link Maps benar-benar bisa diklik */
.outlet .meta a{
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

/* Pastikan container outlet tidak ada layer yang menutup */
.outlet, .outlet *{
  pointer-events: auto;
}

