@page {
  size: 180mm 260mm;
  margin: 0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #e9e9e9;
  color: #123b22;
  font-family: "Noto Sans Bengali", "Noto Sans", Arial, sans-serif;
}

body { min-height: 100vh; }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #123b22;
  color: white;
  box-shadow: 0 3px 14px rgba(0,0,0,.18);
}

.toolbar-sub { opacity: .75; margin-left: 10px; font-size: 12px; }

.toolbar-actions { display: flex; gap: 8px; }
.toolbar button, .apply {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}
.toolbar button { background: #d6a63a; color: #163b22; }

.workspace {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 28px;
}

.pouch {
  width: 180mm;
  height: 260mm;
  position: relative;
  overflow: hidden;
  background: #f7f0dc;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.top-seal, .bottom-seal {
  position: absolute;
  left: 0;
  width: 100%;
  height: 14mm;
  background: #0c3b20;
  z-index: 2;
}
.top-seal {
  top: 0;
  border-bottom: 1.2mm solid #d8aa42;
}
.bottom-seal {
  bottom: 0;
  border-top: 1.2mm solid #d8aa42;
}

.front-inner {
  position: absolute;
  inset: 14mm 5mm 14mm;
  border: .45mm solid #c9952e;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.95), rgba(249,240,216,.95) 62%, #efe0b8);
}

.brand {
  position: absolute;
  top: 7mm;
  left: 25mm;
  width: 120mm;
  text-align: center;
  z-index: 10;
}
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25mm;
  line-height: .82;
  font-weight: 700;
  color: #123b22;
  letter-spacing: -.8mm;
}
.brand-sub {
  margin-top: 3mm;
  font-size: 4mm;
  font-weight: 800;
  letter-spacing: 1.2mm;
  color: #123b22;
}
.brand-leaves {
  position: absolute;
  right: 30mm;
  top: -3mm;
  color: #6a9d22;
  font-size: 10mm;
  transform: rotate(-12deg);
}
.tagline {
  position: absolute;
  top: 34mm;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 4.2mm;
  color: #74451d;
  font-weight: 700;
}

.natural-badge {
  position: absolute;
  right: 7mm;
  top: 7mm;
  width: 26mm;
  height: 29mm;
  border: .8mm solid #d2a33b;
  border-radius: 2mm 2mm 9mm 9mm;
  text-align: center;
  padding-top: 3mm;
  background: #f8f1dc;
  color: #163e24;
  font-size: 3.6mm;
  font-weight: 800;
}
.natural-badge b { font-size: 6mm; }
.natural-badge small { display:block; margin-top:2mm; font-size:2.7mm; }

.product-title {
  position: absolute;
  top: 43mm;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.product-title .bn {
  font-size: 19mm;
  line-height: 1;
  font-weight: 900;
  color: #7c1f1c;
  text-shadow: .35mm .35mm 0 #d6aa44;
}
.product-title .en {
  margin-top: 2mm;
  font-size: 6mm;
  letter-spacing: 1mm;
  font-weight: 900;
  color: #123b22;
}

.quality-ribbon {
  position: absolute;
  top: 70mm;
  left: 42mm;
  width: 96mm;
  text-align: center;
  padding: 3mm 0;
  border-radius: 3mm;
  background: #145027;
  color: #f5d26b;
  border-top: .6mm solid #e1b44b;
  border-bottom: .6mm solid #e1b44b;
  font-family: Georgia, serif;
  font-size: 6mm;
  font-weight: 700;
}
.uses {
  position: absolute;
  top: 81mm;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 3.8mm;
  font-weight: 700;
}

.farm-art {
  position: absolute;
  left: 0;
  top: 88mm;
  width: 100%;
  height: 60mm;
  overflow: hidden;
  background: linear-gradient(#eaf2e3, #dce9c8);
}
.sun {
  position: absolute;
  width: 15mm; height: 15mm;
  border-radius: 50%;
  background: #e8c25c;
  top: 7mm; left: 22mm;
}
.cloud {
  position: absolute;
  width: 27mm; height: 8mm;
  background: rgba(255,255,255,.9);
  border-radius: 10mm;
}
.c1 { top: 9mm; left: 75mm; }
.c2 { top: 18mm; right: 14mm; }
.hill {
  position: absolute;
  bottom: 17mm;
  width: 100mm;
  height: 28mm;
  border-radius: 50% 50% 0 0;
  background: #a7bd79;
}
.h1 { left: -20mm; }
.h2 { right: -25mm; background:#8ca96a; }
.field {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 27mm;
  transform: skewY(-3deg);
  background: repeating-linear-gradient(100deg, #6f9b48 0 2mm, #7fa755 2mm 4mm);
}
.f2 { bottom: -7mm; opacity:.8; background: repeating-linear-gradient(100deg,#587d3c 0 1.5mm,#789b4c 1.5mm 3mm); }
.house {
  position: absolute;
  left: 80mm;
  bottom: 15mm;
  width: 25mm;
  height: 15mm;
  background: #e5c990;
  border: .5mm solid #76562f;
}
.house:before {
  content:"";
  position:absolute;
  left:-4mm; top:-10mm;
  border-left: 16.5mm solid transparent;
  border-right: 16.5mm solid transparent;
  border-bottom: 11mm solid #8c4e2f;
}
.house span {
  position:absolute;
  left:10mm; bottom:0; width:5mm; height:9mm;
  background:#6b452b;
}

.dal-bowl {
  position: absolute;
  z-index: 8;
  left: 39mm;
  top: 126mm;
  width: 102mm;
  height: 54mm;
}
.bowl-rim {
  position:absolute;
  left:0; top:8mm;
  width:100mm; height:28mm;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #eaa04d 0 52%, #b86729 53% 68%, #6e3d20 69% 100%);
  border: .8mm solid #63371d;
}
.lentils {
  position:absolute;
  left:7mm; top:12mm;
  width:86mm; height:18mm;
  border-radius:50%;
  background:
    radial-gradient(circle at 10% 30%, #eaa95d 0 1.1mm, transparent 1.2mm),
    radial-gradient(circle at 25% 65%, #d97d30 0 1mm, transparent 1.1mm),
    radial-gradient(circle at 42% 38%, #efb267 0 1.1mm, transparent 1.2mm),
    radial-gradient(circle at 60% 65%, #d67a2d 0 1mm, transparent 1.1mm),
    radial-gradient(circle at 78% 35%, #efa95b 0 1mm, transparent 1.1mm),
    #d98938;
  background-size: 9mm 7mm;
  box-shadow: inset 0 -3mm 5mm rgba(89,43,12,.28);
}
.spoon {
  position:absolute; width:30mm; height:8mm;
  left:-12mm; top:27mm; transform:rotate(-22deg);
  border-radius:50%;
  background:#b87335;
}
.spoon span {
  position:absolute; right:-32mm; top:2mm;
  width:34mm; height:4mm; background:#b87335;
  border-radius:2mm;
}

.quality-seal {
  position:absolute;
  z-index:11;
  right:9mm; top:132mm;
  width:32mm; height:32mm;
  border-radius:50%;
  background:#7b2020;
  border:.8mm solid #e0b447;
  color:#f8e7b2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:3.6mm;
  font-weight:900;
}
.quality-seal small { font-size:2.5mm; }

.feature-strip {
  position:absolute;
  left:0; right:0; bottom:13mm;
  height:31mm;
  background:#0d4524;
  border-top:1mm solid #d7a33a;
  color:#f6edce;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-items:center;
  text-align:center;
}
.feature-strip div { border-right:.25mm solid rgba(255,255,255,.35); }
.feature-strip div:last-child { border-right:0; }
.feature-strip b { display:block; font-size:6mm; color:#d9ae4b; }
.feature-strip span { font-size:2.8mm; font-weight:700; }

.weight-badge {
  position:absolute;
  right:7mm; bottom:18mm;
  width:28mm; height:28mm;
  background:#f4df9f;
  border:.7mm solid #d29b32;
  border-radius:50%;
  text-align:center;
  z-index:20;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:#163c22;
}
.weight-badge small { font-size:2.7mm; }
.weight-badge strong { font-size:6mm; line-height:1.05; }
.weight-badge em { font-style:normal; font-size:2.4mm; }

.bottom-copy {
  position:absolute; bottom:3mm; width:100%;
  text-align:center; color:#f2d47b; font-size:3mm; font-weight:700;
}

/* BACK */
.back-inner {
  position:absolute;
  inset:14mm 5mm 14mm;
  border: .45mm solid #c9952e;
  background:#f8f1df;
  overflow:hidden;
}
.back-header {
  height:26mm;
  padding:4mm 7mm 2mm;
  border-bottom:.7mm solid #d5a33a;
  background:#f3e8c9;
}
.mini-brand {
  font-family:Georgia,serif;
  font-size:9mm;
  font-weight:700;
  color:#123b22;
}
.mini-brand span {
  display:inline-block;
  font-family:Arial,sans-serif;
  font-size:3mm;
  letter-spacing:.8mm;
  margin-left:3mm;
}
.back-product {
  font-size:6mm;
  color:#7b201d;
  font-weight:900;
}
.back-product small { font-size:3mm; color:#174327; margin-left:2mm; }

.back-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4mm;
  padding:4mm;
}
.panel {
  border:.35mm solid #c99a3c;
  border-radius:2.5mm;
  margin-bottom:3mm;
  overflow:hidden;
  background:#fffaf0;
}
.panel h3 {
  margin:0;
  padding:2mm 3mm;
  background:#0e4525;
  color:#f3df9d;
  font-size:4mm;
}
.panel p, .panel ul { margin:2.5mm 3mm; font-size:2.9mm; line-height:1.55; }
.promise { list-style:none; padding:0; }
.promise li { margin-bottom:1.5mm; }
.promise li:before { content:"✓"; color:#1c642e; font-weight:900; margin-right:2mm; }

.steps { display:grid; grid-template-columns:repeat(3,1fr); padding:3mm; gap:2mm; }
.steps div { text-align:center; font-size:2.5mm; }
.steps b {
  display:flex; margin:auto auto 1.5mm; width:8mm; height:8mm;
  border-radius:50%; align-items:center; justify-content:center;
  background:#d7a640; color:#123b22; font-size:4mm;
}

.nutrition table { width:100%; border-collapse:collapse; font-size:2.6mm; }
.nutrition td { border:.2mm solid #d5c29b; padding:1.2mm 2mm; }
.nutrition td:last-child { text-align:right; font-weight:700; }
.note { display:block; padding:2mm 3mm; font-size:2.2mm; color:#6b614c; }

.product-info { padding-bottom:2mm; }
.info-row {
  display:flex; justify-content:space-between; gap:3mm;
  padding:1.8mm 3mm;
  border-bottom:.2mm solid #dfd0ae;
  font-size:2.7mm;
}
.info-row:last-child { border:0; }
.info-row span { color:#645c4d; }
.info-row b { text-align:right; color:#183e25; }

.cert-row {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:2mm; margin-bottom:3mm;
}
.cert {
  border:.35mm solid #c99a3c;
  border-radius:2mm;
  background:#fffaf0;
  text-align:center;
  padding:2mm 1mm;
}
.cert strong { display:block; font-size:4.5mm; color:#123b22; }
.cert span { font-size:2.4mm; }

.maker strong { display:block; padding:2.5mm 3mm 0; font-size:3.3mm; }
.maker p { margin-top:1mm; }

.customer .contact-line {
  margin:2mm 3mm 3mm;
  padding:2mm;
  background:#edf2df;
  border-radius:1.5mm;
  font-size:2.6mm;
  font-weight:700;
  text-align:center;
}

.eco {
  display:flex; justify-content:space-between; gap:2mm;
  background:#0e4525; color:#f2dc91;
  padding:2.5mm 3mm; font-size:2.5mm; font-weight:700;
}
.legal {
  position:absolute;
  left:5mm; right:5mm; bottom:2mm;
  font-size:1.9mm; color:#6b614c;
  text-align:center;
}

.settings {
  max-width:900px;
  margin:0 auto 30px;
  padding:18px;
  background:white;
  border-radius:12px;
  box-shadow:0 5px 25px rgba(0,0,0,.08);
}
.settings h3 { margin-top:0; color:#123b22; }
.form-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.form-grid label { font-size:12px; font-weight:700; color:#456; }
.form-grid input {
  display:block; width:100%; margin-top:5px;
  padding:9px; border:1px solid #ccc; border-radius:7px;
}
.apply { margin-top:12px; background:#123b22; color:#fff; }

@media (max-width: 900px) {
  .workspace { padding:10px; }
  .form-grid { grid-template-columns:repeat(2,1fr); }
  .toolbar { position:static; }
}

@media print {
  html, body {
    background:white;
    width:180mm;
    margin:0;
    padding:0;
  }
  .no-print, .settings { display:none !important; }
  .workspace { display:block; padding:0; margin:0; }
  .pouch {
    box-shadow:none;
    page-break-after:always;
    break-after:page;
  }
  .pouch:last-child {
    page-break-after:auto;
    break-after:auto;
  }
}
