:root {
    --primary: #2c5e43;
    --primary-light: #f4f7f5;
    --accent: #d4af37;
    --text: #333;
    --border: #e0e0e0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { 
    background-color: #fafafa;
    color: var(--text); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* Navigation Links */
.top-nav {
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
}

.top-nav button, .top-nav a {
    color: var(--primary);
    background: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.top-nav button:hover, .top-nav a:hover {
    background: var(--primary);
    color: white;
}

/* Full Width Hero Banner containing the map drawing */
.hero-banner-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: url('Pallisades.png');
    background-size: cover;
    background-position: center 30%; 
    background-repeat: no-repeat;
    min-height: 400px;
}

/* Blur overlay only active inside the banner for text separation */
.hero-blur-overlay {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.2); 
}

/* Clean text panel card resting smoothly over the map details */
.hero-text-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    max-width: 550px;
    width: 92%;
    border-top: 4px solid var(--primary);
}

.hero-text-card h1 { color: var(--primary); font-size: 2.4rem; font-weight: 800; margin-bottom: 0.15rem; }
.hero-text-card h3 { color: var(--accent); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; font-weight: 700; }
.hero-text-card p { font-size: 1rem; color: #444; line-height: 1.5; }

@media (max-width: 600px) {
    .top-nav { top: 0.5rem; right: 1rem; flex-wrap: wrap; justify-content: flex-end; }
    .hero-banner-full, .hero-blur-overlay { min-height: 320px; }
    .hero-text-card { padding: 1.25rem; margin-top: 2rem; }
    .hero-text-card h1 { font-size: 1.7rem; }
    .hero-text-card h3 { font-size: 0.95rem; }
    .hero-text-card p { font-size: 0.85rem; }
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

#category-jump-menu { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-jump-btn { display: inline-block; padding: 0.35rem 0.85rem; font-size: 0.85rem; background: var(--primary-light); color: var(--primary); border: 1px solid transparent; border-radius: 15px; text-decoration: none; font-weight: bold; transition: 0.2s; }
.category-jump-btn:hover { background: var(--primary); color: white; }

/* Grid Cards Configuration */
.group-section, .white-card, #checkout-form, #admin-content-area, .admin-sidebar { 
    background: #ffffff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1.5rem; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); padding: 1.5rem;
}
.group-section { padding: 0 !important; scroll-margin-top: 180px; }
#checkout-form { padding: 2rem; }
.market-layout-container { max-width: 1100px; margin: 3rem auto 6rem; }
h2 { color: var(--primary); margin-bottom: 1rem; border-bottom: 2px solid var(--primary-light); padding-bottom: 0.5rem; margin-top: 1rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }

/* Filter & Search */
.filter-controls { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
@media (max-width: 600px) { .filter-controls { flex-wrap: wrap; } #group-by-text { display: none !important; } }
.filter-controls button { background: white; border: 1px solid var(--primary); color: var(--primary); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.filter-controls button.active, .filter-controls button:hover { background: var(--primary); color: white; }

.search-wrapper { position: relative; width: 100%; margin-top: 0.5rem;}
.search-wrapper input { width: 100%; padding: 1.25rem 2rem; border: 2px solid var(--primary-light); border-radius: 35px; font-size: 1.2rem; outline: none; transition: 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.search-wrapper input:focus { border-color: var(--primary); box-shadow: 0 4px 15px rgba(44, 94, 67, 0.15); }
#clear-search { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: #ccc; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: white; font-weight: bold; display: none; }
#clear-search:hover { background: #999; }

/* Groups & Lists */
.group-title { background: var(--primary-light); color: var(--primary); padding: 0.75rem 1rem; font-weight: bold; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
.product-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
@media (max-width: 600px) { .product-list { grid-template-columns: 1fr; } }
.product-item { background: white; padding: 1rem; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; }
.product-info h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.product-info p { font-size: 0.85rem; color: #666; }
.product-price { font-weight: bold; color: var(--primary); margin-top: 0.25rem; }

/* Buttons & Quantities */
.inline-qty-controls { display: flex; align-items: center; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; height: 34px; }
.inline-qty-controls button { background: var(--primary); color: white; border: none; width: 30px; height: 100%; font-weight: bold; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.inline-qty-controls span { padding: 0 0.5rem; font-weight: bold; min-width: 30px; text-align: center; }
.btn-add { background: var(--primary); color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; font-weight: bold; min-width: 80px; height: 34px; }
.btn-add:hover { background: #1e3f2d; }

/* Cart Rows & Pricing */
.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 0.95rem; }
.cart-item-controls { display: flex; align-items: center; }
.cart-item-controls button { background: #eee; border: none; width: 28px; height: 28px; cursor: pointer; border-radius: 4px; font-weight: bold; font-size: 1rem; }
.cart-item-controls span { margin: 0 0.5rem; }
.empty-msg { text-align: center; color: #888; font-style: italic; padding: 1rem 0; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.95rem; }
.price-row.total { font-weight: bold; font-size: 1.2rem; color: var(--primary); margin-top: 0.5rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: bold; margin-bottom: 0.35rem; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.95rem; outline: none; background: #fff; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.btn-submit { background: var(--accent); color: #333; font-weight: bold; border: none; width: 100%; padding: 1rem; border-radius: 4px; font-size: 1.1rem; cursor: pointer; transition: 0.2s; }
.btn-submit:hover { background: #bfa030; color: white; }
