
:root{
  --accent:#2b8f6b;
  --muted:#fbfdfa;
  --card:#ffffff;
  --text:#1f2933;
  --accent-2:#f08c42;
}

*{box-sizing:border-box}

body{
  font-family:Poppins,Inter,system-ui,Arial,sans-serif;
  color:var(--text);
  margin:0;
  background:linear-gradient(180deg,#fff,var(--muted))
}

/* Fixed navigation at top */
.main-nav{
  position:fixed;top:0;left:0;right:0;
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 18px;background:#fff;border-bottom:1px solid #eee;
  gap:20px;z-index:200;height:60px
}

.nav-brand{font-weight:700;color:var(--accent);text-decoration:none;font-size:16px}

.nav-links{display:flex;gap:20px}

.nav-links a{text-decoration:none;color:var(--text);font-size:14px;font-weight:500;transition:color 0.2s}

.nav-links a:hover,.nav-links a.active{color:var(--accent)}

/* Sidebar - fixed on desktop, off-canvas on mobile */
.sidebar{
  position:fixed;left:0;top:60px;bottom:0;
  width:300px;padding:24px;border-right:1px solid #eee;
  display:flex;flex-direction:column;background:#fff;
  overflow-y:auto;z-index:100
}

.back-to-shop{
  display:block;margin-bottom:16px;padding:8px 12px;
  background:#eef6f3;color:var(--accent);text-decoration:none;
  border-radius:6px;font-size:14px;font-weight:600;text-align:center;
  border:1px solid #d0e6dd;transition:background 0.2s
}

.back-to-shop:hover{background:#d0e6dd}

.sidebar-header{display:none}

.logo{height:40px;width:40px}

.brand{margin:0;font-size:18px;color:var(--accent);font-weight:600}

.filter{margin:12px 0}

.filter{margin:12px 0}

.filter strong{display:block;margin-bottom:8px;font-weight:600}

.filter input[type=search],.filter input[type=number]{
  width:100%;padding:8px;border:1px solid #e6e6e6;
  border-radius:8px;font-family:Poppins,sans-serif
}

.filter label{display:flex;align-items:center;gap:6px;margin-bottom:6px;font-size:14px;cursor:pointer}

.filter input[type=checkbox],.filter input[type=radio]{
  cursor:pointer
}

fieldset.filter{border:none;padding:0;margin:12px 0}

fieldset.filter legend{display:block;margin-bottom:8px;font-weight:600;padding:0}

fieldset.filter > div label{display:flex;align-items:center;gap:6px;margin-bottom:6px;font-size:14px;cursor:pointer}

fieldset.filter > div label input{cursor:pointer}

#clearFilters{
  background:var(--accent);color:white;border:none;padding:10px;
  border-radius:8px;width:100%;cursor:pointer;
  font-family:Poppins,sans-serif;font-weight:600
}

.sidebar-footer{display:none}

/* Main content area - shifts right with sidebar, scrollable */
.main{
  margin-left:320px;margin-top:60px;padding:28px;
  overflow-y:auto;height:calc(100vh - 60px)
}

.topbar{
  display:flex;justify-content:space-between;align-items:center;gap:12px
}

.topbar h2{margin:0 0 4px;font-size:24px}

.topbar > div{display:flex;flex-direction:column}

.sort-select{
  padding:8px 12px;border:1px solid #e6e6e6;
  border-radius:8px;font-family:Poppins,sans-serif;cursor:pointer
}

.results-count{color:#666;font-size:14px}

/* Product grid - auto-fill based on width */
.products-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:18px;margin-top:18px
}

.card{
  background:var(--card);border-radius:12px;padding:16px;
  box-shadow:0 6px 18px rgba(20,40,30,0.03);cursor:pointer;
  border:1px solid #f5f5f5;display:flex;flex-direction:column;
  align-items:stretch;text-decoration:none;color:inherit
}

.card img.thumb{
  width:100%;height:120px;border-radius:8px;object-fit:contain;
  background:#fff;padding:8px;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.02);
  margin-bottom:8px
}

.card h3{margin:0 0 6px;font-size:16px}

.card p{margin:0 0 8px;color:#5b6b6b;flex:1;font-size:14px}

.card .meta{
  display:flex;flex-direction:row;justify-content:space-between;
  align-items:center;gap:8px
}

.card .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}

.tag{
  background:#eef6f3;color:#17593f;padding:6px 8px;
  border-radius:999px;font-size:12px;font-weight:600
}

.ad-card{border:1px dashed #cfeee0;background:linear-gradient(180deg,#fff,#fbfff9)}

.ad-card .card-body{display:flex;flex-direction:column;gap:8px}

.ad-label{
  display:inline-block;background:#fff7e6;color:#b65a00;
  padding:6px 8px;border-radius:8px;font-weight:700;border:1px solid #f1d7b0
}

.card .card-body h3{margin:0}

.price{font-weight:700;color:var(--accent-2)}

.availability.in{color:green;font-size:13px}

.availability.out{color:#c0392b;font-size:13px}

/* Product detail page */
.product-detail{max-width:900px;padding:12px}

.product-title{margin-top:0}

.product-page{width:100%}

.product-hero{display:flex;flex-direction:column;gap:12px}

.product-hero img.main-image{
  width:100%;max-width:420px;height:auto;border-radius:10px;object-fit:contain
}

.product-meta-grid{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start}

.similar-products{margin-top:18px}

.reviews, .comments{
  margin-top:18px;background:#fff;border-radius:10px;
  padding:12px;border:1px solid #f2f2f2
}

.review-item{border-bottom:1px solid #f5f5f5;padding:8px 0}

.comment-item{border-bottom:1px dashed #f5f5f5;padding:8px 0}

.form-section{
  margin-top:12px;padding:12px;background:#fbfdfa;
  border-radius:8px;border:1px solid #e6f3f0
}

.form-section input,.form-section textarea,.form-section select{
  width:100%;padding:8px;margin-bottom:8px;
  border:1px solid #ddd;border-radius:6px;font-family:Poppins,sans-serif
}

.form-section textarea{resize:vertical;min-height:80px}

.form-section button{
  background:#2b8f6b;color:#fff;border:none;padding:10px;
  border-radius:6px;cursor:pointer;width:100%;font-weight:600
}

/* Mobile adjustments */
@media (max-width:799px){
  .sidebar{display:none}
  .main{margin-left:0;margin-top:60px;padding:18px}
  .products-grid{grid-template-columns:repeat(3,1fr);gap:12px}
  .card{padding:12px}
  .card img.thumb{height:80px;margin-bottom:6px}
}


