:root {
    --primary: #6ba651;       
    --primary-hover: #5a8f42;
    --secondary: #2d5a27;    
    --bg-body: #f8fdf8;      
    --bg-card: #ffffff;
    --text-main: #2d5a27;
    --text-light: #668a66;
    --border: #e1ece1;
    --shadow: 0 10px 30px rgba(45, 90, 39, 0.08);
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.products-header {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    padding: 40px 5% 80px;
    color: white;
    text-align: center;
    position: relative;
    border-radius: 0 0 40px 40px;
    margin-bottom: -40px;
    box-shadow: 0 4px 20px rgba(45, 90, 39, 0.2);
    z-index: 1;
}

.btn-back {
    position: absolute;
    top: 30px; left: 5%;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    font-weight: 500;
    transition: 0.3s;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}
.btn-back:hover { background: rgba(255,255,255,0.2); color: white; transform: translateX(-3px); }

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 15px;
}

.header-brand > img {
    width: 300px;
    margin-bottom: -14px;
}

.products-header > p {
    font-size: 0.8em;
}
div.container {
    display: flex;
    flex-flow: column wrap;
    gap: 40px;
    margin: 0 auto 60px;
    padding: 0 5%;
    width: 100%;
    z-index: 2;
}

.checkbox-group label {
    display: flex; align-items: center;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}
.checkbox-group label:hover { color: var(--primary); }

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 18px; height: 18px;
    border: 2px solid #d1dcd1;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}
.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.checkbox-group input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Pro";
    color: white; font-size: 10px;
    position: absolute; top: 1px; left: 3px;
}

.price-slider { width: 100%; accent-color: var(--primary); height: 4px; background: #e0e0e0; border-radius: 5px; }


.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    align-content: start;
}
    
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(45, 90, 39, 0.12);
    border-color: #dbe6db;
}

.product-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: #ffd700;
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.5px;
}

.img-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, #fcfcfc, #f4f8f4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.4s;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.05));
}

.product-card:hover .img-container img { transform: scale(1.1); }

.card-details { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; }

.category { font-size: 0.7rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.product-title { font-size: 1rem; color: var(--secondary); font-weight: 600; margin-bottom: 8px; line-height: 1.4; }

.price-row { 
    margin-top: auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-top: 1px solid #f0f5f0;
    padding-top: 12px;
    margin-top: 12px;
}

.price { color: var(--secondary); font-size: 1.2rem; font-weight: 700; }
.price small { font-size: 0.8rem; color: #bbb; text-decoration: line-through; margin-right: 5px; font-weight: 400; }

.btn-add {
    background: var(--bg-body);
    color: var(--primary);
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
    border: 1px solid var(--border);
    cursor: pointer;
}
.btn-add:hover { background: var(--primary); color: white; border-color: var(--primary); }


@media (max-width: 900px) {    
    .products-header { padding: 30px 5% 60px; margin-bottom: -20px;}
    .header-brand > img { width: 200px; }
    .products-header p { font-size: 0.7em; }
    .btn-back span { display: none; } 
}