:root{
  --primary:#0B5D3B;
  --primary-dark:#084C30;
  --primary-light:#E6F3EC;
  --accent:#E53935;
  --accent-dark:#C62828;
  --accent-light:#FDEAEA;
  --success:#0B5D3B;
  --success-light:#E6F3EC;
  --ink:#111827;
  --muted:#5B6472;
  --line:#E7EAE8;
  --bg:#F3F6F4;
}

*{box-sizing:border-box}

/* Plain, cheap-to-paint background — no fixed attachment, no blur */
body{
  font-family:'Poppins',sans-serif;color:var(--ink);
  background:var(--bg);
}

.text-muted-2{color:var(--muted)}
.text-primary-b{color:var(--primary)!important}
.text-accent-b{color:var(--accent)!important}
.bg-primary-b{background:var(--primary)!important}

/* ===== Buttons ===== */
.btn-primary-b{background:var(--accent);border:none;color:#fff;font-weight:600;border-radius:12px;padding:11px 22px;transition:.15s}
.btn-primary-b:hover{background:var(--accent-dark);color:#fff}
.btn-accent-b{background:var(--accent);border:none;color:#fff;font-weight:600;border-radius:12px;padding:11px 22px;transition:.15s}
.btn-accent-b:hover{background:var(--accent-dark);color:#fff}
.btn-outline-b{background:#fff;border:1px solid var(--line);color:var(--ink);font-weight:600;border-radius:12px;padding:11px 22px}
.btn-outline-b:hover{border-color:var(--primary);color:var(--primary)}
.btn-sm{padding:8px 16px;font-size:13px}
.btn-icon{width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);color:var(--ink);text-decoration:none}
.btn-icon:hover{border-color:var(--primary);color:var(--primary)}

/* ===== Cards — solid, fast to render ===== */
.card-b{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 3px rgba(16,24,40,.06);transition:box-shadow .15s}
.card-b:hover{box-shadow:0 4px 12px rgba(16,24,40,.08)}

.pcard{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(16,24,40,.06);transition:box-shadow .15s;height:100%}
.pcard:hover{box-shadow:0 4px 12px rgba(16,24,40,.08)}
.pcard .pimg{position:relative;aspect-ratio:4/3;background:#EEF2EF;overflow:hidden}
.pcard .pimg img{width:100%;height:100%;object-fit:cover}
.pcard .body{padding:12px 14px 14px}
.pcard .price{font-size:18px;font-weight:700;color:var(--primary)}
.pcard .title{font-size:14px;color:var(--ink);font-weight:500;line-height:1.4;height:40px;overflow:hidden}
.pcard .meta{font-size:12px;color:var(--muted)}

.badge-b{font-weight:600;font-size:11.5px;padding:6px 10px;border-radius:20px}
.badge-featured{background:var(--accent-light);color:var(--accent-dark)}

.cat-card{background:#fff;border:1px solid var(--line);border-radius:14px;text-align:center;padding:16px 6px;text-decoration:none;color:var(--ink);display:block;transition:.15s;overflow-wrap:break-word;word-break:break-word}
.cat-card:hover{border-color:var(--primary);color:var(--primary)}
.cat-card i{font-size:20px}
.cat-card .small{font-size:11.5px;line-height:1.3}

.filter-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}
.filter-card h6{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:12px;font-weight:700}

.form-control, .form-select{border-radius:10px;border-color:var(--line);background:#fff}
.form-control:focus, .form-select:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}

/* ===== Header — green-to-red gradient (Bangladesh flag inspired) ===== */
header.site-header{
  background:linear-gradient(100deg, var(--primary) 0%, #146B45 55%, var(--accent) 130%);
  border-bottom:none;
  position:sticky;top:0;z-index:1000;
  box-shadow:0 2px 10px rgba(11,93,59,.15);
}
header.site-header .btn-outline-b{
  background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);color:#fff;
}
header.site-header .btn-outline-b:hover{background:rgba(255,255,255,.24);border-color:#fff;color:#fff}
header.site-header .btn-icon{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);color:#fff}
header.site-header .btn-icon:hover{background:rgba(255,255,255,.24);color:#fff}
header.site-header .profile-btn{background:#fff;border:none;color:var(--primary)}
header.site-header .dropdown-toggle::after{filter:brightness(0) invert(1)}
header.site-header .hero-search-glass{background:#fff}

/* ===== Hero ===== */
.hero-glass{
  position:relative;overflow:hidden;
  background:var(--primary);
  border-radius:0 0 20px 20px;
}

/* ===== Search bar — slim pill, solid (no blur) ===== */
.hero-search-glass{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  padding:2px;
  max-width:280px;
  height:38px;
}
.hero-search-glass input{background:transparent;border:none;box-shadow:none!important;padding:4px;font-size:12.5px;height:34px;text-overflow:ellipsis}
.hero-search-glass input:focus{background:transparent}
.hero-search-glass .btn-primary-b{padding:5px 12px;font-size:12px;height:34px;border-radius:8px!important}
.hero-search-glass .input-group-text{padding:4px 6px;background:transparent}
.hero-search-glass i{font-size:13px}

/* ===== Bottom nav — solid, no blur ===== */
.bottom-nav{
  position:fixed;bottom:0;left:0;right:0;z-index:1000;
  background:#fff;
  border-top:1px solid var(--line);
  display:none;justify-content:space-around;align-items:center;padding:8px 0;
  box-shadow:0 -2px 8px rgba(0,0,0,.05);
}
.bottom-nav a{color:var(--muted);text-decoration:none;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:2px}
.bottom-nav a.active, .bottom-nav a:hover{color:var(--primary)}
.bottom-nav .post-btn{background:var(--accent);color:#fff;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:-20px;box-shadow:0 3px 10px rgba(229,57,53,.35)}
@media (max-width: 767px){
  .bottom-nav{display:flex}
  body{padding-bottom:64px}
}

/* ===== Dashboard / Admin shared layout ===== */
.dash-layout{display:grid;grid-template-columns:230px 1fr;padding-bottom:12px}
@media (max-width: 767px){ .dash-layout{display:block;padding-bottom:24px} }
.stat-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 1px 3px rgba(16,24,40,.06)}
.stat-card .icon-box{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px}
.status-pill{font-size:11.5px;font-weight:600;padding:5px 10px;border-radius:20px}
.status-active{background:var(--success-light);color:var(--primary)}
.status-pending{background:#FFF3E0;color:#B96400}
.status-sold{background:#EEF0F4;color:var(--muted)}
.status-rejected{background:var(--accent-light);color:#D92D20}
.status-draft{background:#EEF0F4;color:var(--muted)}
.status-expired{background:#EEF0F4;color:var(--muted)}

.dash-side{background:#fff;border-right:1px solid var(--line);min-height:100%}
.dash-side .nav-link{color:var(--muted);font-weight:500;font-size:14.5px;padding:11px 14px;border-radius:12px}
.dash-side .nav-link.active{background:var(--primary-light);color:var(--primary);font-weight:600}
.dash-side .nav-link:hover:not(.active){background:var(--bg)}

/* ===== Header profile dropdown ===== */
.profile-btn{
  width:38px;height:38px;border-radius:12px;overflow:hidden;
  background:#fff;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  color:var(--primary);font-weight:700;
}
.profile-btn img{width:100%;height:100%;object-fit:cover}

/* Light touch of "glass" kept only on small, low-count elements where it's cheap */
.glass-strong{background:rgba(255,255,255,.96);border:1px solid var(--line)}
