:root{
  --bg:#ffffff;
  --bg-soft:#f6f7f8;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;

  /* cactus green vibe */
  --brand:#2f6f4e;       /* cactus green */
  --brand-2:#245a3f;     /* darker */
  --brand-soft:#e9f3ee;  /* pale green */
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

*{ box-sizing:border-box; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin:0;
  color:var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

a{ color:inherit; text-decoration:none; }
.container{ max-width:1100px; margin: 28px auto; padding: 0 16px; }

.topbar{
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.brand{
  display:flex; gap:12px; align-items:center;
}
.logo{
  width:40px; height:40px; border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, #3b8a61, var(--brand));
  box-shadow: 0 10px 20px rgba(47,111,78,.25);
}
.brand h1{ font-size: 18px; margin:0; letter-spacing:.2px; }
.small{ color: var(--muted); font-size: 14px; }
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.btn, button{
  border:1px solid transparent;
  background: var(--brand);
  color:#fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor:pointer;
}
.btn:hover, button:hover{ background: var(--brand-2); }

.btn-outline{
  background: #fff;
  color: var(--brand);
  border-color: var(--border);
}
.btn-outline:hover{
  background: var(--brand-soft);
  border-color: rgba(47,111,78,.25);
}

input, select{
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: #fff;
  font-size: 16px;
  outline:none;
}
input:focus, select:focus{
  border-color: rgba(47,111,78,.45);
  box-shadow: 0 0 0 4px rgba(47,111,78,.12);
}

.hero{
  margin-top: 18px;
  border:1px solid var(--border);
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero h2{ margin:0 0 6px; font-size: 22px; }
.hero p{ margin:0; color: var(--muted); }

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(2, 6, 23, .05);
}
.card:hover{
  border-color: rgba(47,111,78,.25);
  box-shadow: 0 12px 26px rgba(2, 6, 23, .08);
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 720px){
  .grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px){
  .grid{ grid-template-columns: 1fr 1fr 1fr; }
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: #fff;
  color: var(--muted);
}
.badge-green{
  border-color: rgba(47,111,78,.25);
  background: var(--brand-soft);
  color: var(--brand-2);
}

.price{
  margin-top: 10px;
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-2);
}

/* product card layout */
.pcard{
  display:flex;
  gap:12px;
}
.pimg{
  width:84px;
  height:84px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: #fff;
  overflow:hidden;
  flex: 0 0 auto;
}
.pimg img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.pmeta{
  flex: 1 1 auto;
  min-width: 0;
}
.ptitle{
  font-weight: 900;
  margin: 0;
  line-height: 1.25;
}
.pdesc{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Mega menu */
.menu-wrap { position: relative; display: inline-block; }

.mega{
  position:absolute;
  top: 120%;
  right: 0;
  display:grid;
  grid-template-columns: 240px 260px 320px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  z-index: 9999;
  min-height: 320px;
  overflow:hidden;
}
.mega.hidden{ display:none; }

.mega-col{
  padding: 10px;
  border-right:1px solid var(--border);
  max-height: 420px;
  overflow:auto;
}
.mega-col:last-child{ border-right:none; }

.mega-item{
  padding: 10px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
}
.mega-item:hover{ background: var(--brand-soft); }

.mega-link{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.mega-link:hover{ background: var(--brand-soft); }

/* single product page */
.product-wrap{
  display:grid;
  gap: 14px;
}
@media (min-width: 900px){
  .product-wrap{ grid-template-columns: 420px 1fr; align-items:start; }
}
.hero-img{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  border:1px solid var(--border);
  background:#fff;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hero-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.kv{ display:grid; gap:10px; }
.kv h2{ margin:0; font-size: 26px; }
.kv .line{ display:flex; gap:8px; flex-wrap:wrap; }
