/* Base Variables & Reset */
:root {
    --primary-green: #0a2f1d;
    --accent-gold: #c5a880;
    --price-green: #2d6a4f;
    --bg-light: #f4f6f4;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', 'Hind Siliguri', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); padding-bottom: 70px; }

/* Desktop Nav (From Homepage) */
.desktop-nav { background-color: var(--primary-green); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo-zone { display: flex; align-items: center; gap: 10px; }
.logo-text h1 { color: var(--accent-gold); font-size: 22px; font-weight: 700; line-height: 1; }
.logo-text span { color: var(--white); font-size: 14px; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions a { color: var(--white); font-size: 18px; text-decoration: none; transition: 0.3s; }
.nav-actions a:hover { color: var(--accent-gold); transform: scale(1.1); }
.nav-actions .sell-btn { background-color: var(--price-green); font-size: 14px; padding: 6px 12px; border-radius: 6px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, 0.2); }

/* Page Header */
.page-header { background: linear-gradient(180deg, var(--primary-green) 0%, #0d3d26 100%); padding: 30px 5%; text-align: center; color: var(--white); }
.page-header h2 { font-size: 28px; color: var(--accent-gold); margin-bottom: 5px; }
.page-header p { font-size: 15px; font-weight: 300; opacity: 0.9; }

/* Market Layout */
.market-layout { display: flex; gap: 30px; max-width: 1200px; margin: 30px auto; padding: 0 5%; }

/* Filter Sidebar */
.filter-sidebar { width: 280px; flex-shrink: 0; background: var(--white); border-radius: 12px; padding: 25px 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); height: fit-content; position: sticky; top: 90px; }
.filter-header-mobile { display: none; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.filter-group { margin-bottom: 25px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h3 { font-size: 16px; margin-bottom: 15px; color: var(--primary-green); display: flex; align-items: center; gap: 8px; }
.filter-group h3 i { color: var(--accent-gold); }

/* Custom Checkbox */
.custom-checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; font-size: 14px; color: var(--text-dark); position: relative; user-select: none; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { height: 18px; width: 18px; background-color: #eee; border-radius: 4px; display: flex; justify-content: center; align-items: center; }
.custom-checkbox:hover input ~ .checkmark { background-color: #ccc; }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--price-green); }
.checkmark:after { content: "\f00c"; font-family: "FontAwesome"; color: white; font-size: 12px; display: none; }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }

/* Filter Inputs */
.filter-select { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; outline: none; font-size: 14px; cursor: pointer; }
.price-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.price-inputs input { width: 100%; padding: 8px; border: 1px solid var(--border-color); border-radius: 6px; outline: none; font-size: 13px; }
.apply-filter-btn { width: 100%; background: var(--price-green); color: var(--white); border: none; padding: 10px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: 0.3s; }
.apply-filter-btn:hover { background: var(--primary-green); }

/* Market Content & Sort Bar */
.market-content { flex-grow: 1; }
.sort-bar { display: flex; justify-content: space-between; align-items: center; background: var(--white); padding: 15px 20px; border-radius: 12px; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.sort-bar p { font-size: 14px; color: var(--text-muted); }
.sort-bar strong { color: var(--primary-green); }
.sort-options { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort-options select { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 6px; outline: none; cursor: pointer; }

/* Product Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 30px; }
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.04); display: flex; flex-direction: column; position: relative; transition: 0.3s; border: 1px solid transparent; }
.product-card:hover { transform: translateY(-5px); border-color: var(--accent-gold); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 180px; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.verification-tag { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.95); padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--primary-green); box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 4px; }
.verification-tag i { color: #2e7d32; }

.product-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.product-price { color: var(--price-green); font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.product-price span { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.product-title { font-size: 15px; font-weight: 600; color: var(--text-dark); line-height: 1.4; margin-bottom: 12px; }
.product-location { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; display: flex; align-items: center; gap: 6px; }
.product-status-tag { align-self: flex-start; background: #e8f5e9; color: var(--price-green); padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; margin-top: auto; }

/* Buttons */
.load-more-btn { display: block; width: 200px; margin: 0 auto; padding: 12px; background: transparent; border: 2px solid var(--price-green); color: var(--price-green); border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; text-align: center; }
.load-more-btn:hover { background: var(--price-green); color: var(--white); }
.mobile-filter-btn { display: none; width: 100%; background: var(--white); border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; font-weight: 600; margin-bottom: 15px; color: var(--text-dark); cursor: pointer; }

/* Mobile Bottom Nav */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); box-shadow: 0 -2px 10px rgba(0,0,0,0.1); justify-content: space-around; padding: 10px 0; z-index: 1000; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #888; font-size: 11px; font-weight: 500; cursor: pointer; }
.bottom-nav-item i { font-size: 20px; margin-bottom: 3px; }
.bottom-nav-item.active { color: var(--accent-gold); }

/* Responsive Settings */
@media (max-width: 900px) {
    .market-layout { flex-direction: column; }
    .mobile-filter-btn { display: block; }
    .sort-bar { flex-direction: column; gap: 15px; align-items: flex-start; }
    
    /* Off-canvas Filter Sidebar for Mobile */
    .filter-sidebar { position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; z-index: 2000; border-radius: 0; transition: 0.4s ease-in-out; overflow-y: auto; box-shadow: 5px 0 15px rgba(0,0,0,0.1); }
    .filter-sidebar.active { left: 0; }
    .filter-header-mobile { display: flex; }
    .close-filter { font-size: 20px; cursor: pointer; color: var(--text-muted); }
    
    .desktop-nav { display: none; }
    .mobile-bottom-nav { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-image { height: 140px; }
    .product-title { font-size: 13px; }
    .product-price { font-size: 15px; }
}
/* BUY BUTTON */
.buy-btn{
    width:100%;
    margin-top:12px;
    padding:10px;
    border:none;
    border-radius:8px;
    background:#2d6a4f;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

/* ORDER MODAL */
.order-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    z-index:9999;
}

.order-content{
    width:90%;
    max-width:500px;
    background:#fff;
    margin:40px auto;
    padding:20px;
    border-radius:12px;
}

.order-content h2{
    margin-bottom:15px;
}

.order-content input,
.order-content textarea{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border:1px solid #ddd;
    border-radius:8px;
}

.order-content button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#2d6a4f;
    color:white;
    cursor:pointer;
}

.close-order{
    float:right;
    font-size:28px;
    cursor:pointer;
}
.logo-zone .nav-logo:hover {
    transform: scale(1.05); 
}


@media (max-width: 768px) {
    .logo-zone .nav-logo {
        height: 80px !important; 
    }
}