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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}


/* Navbar */

.eco-navbar {
    background-color: #2d6a4f;
}

.eco-navbar .navbar-brand {
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
}

.eco-navbar .navbar-brand span {
    color: #b7e4c7;
}

.eco-navbar .nav-link {
    color: #fff;
}

.eco-navbar .nav-link:hover {
    color: #b7e4c7;
}

.cart-btn {
    background-color: #52b788;
    border-radius: 6px;
    padding: 6px 14px !important;
}


/* Carousel */

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

.carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 60%);
}

.carousel-caption {
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}


/* Cards */

.card img {
    height: 200px;
    object-fit: cover;
}

.card {
    border-radius: 8px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: bold;
}


/* Footer */

.eco-footer {
    background-color: #1b4332;
    color: #fff;
    padding: 40px 0 20px;
}

.eco-footer h5 {
    color: #b7e4c7;
    margin-bottom: 12px;
}

.eco-footer a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.eco-footer a:hover {
    color: #fff;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.footer-brand span {
    color: #b7e4c7;
}

.eco-footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

.copyright {
    color: #aaa;
    font-size: 0.85rem;
}

.social-icons a {
    display: inline;
    color: #b7e4c7;
    margin-right: 12px;
    font-size: 1.1rem;
}

.social-icons a:hover {
    color: #fff;
}

/* filtros e categorias */

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-check-input:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

#grid-produtos {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Media Query */

@media (min-width: 640px) {
    #grid-produtos {
        grid-template-rows: repeat(4, 1fr);
        grid-template-columns: 1fr 1fr 1fr;
    }

    #grid{
        display: grid;
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 3fr;
    }
}

/* sidebar */

/* Sidebar do Carrinho */
.carrinho-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1040;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.carrinho-overlay.aberto { opacity: 1; visibility: visible; }

.carrinho-sidebar {
    position: fixed; top: 0; right: 0;
    width: 380px; max-width: 90vw; height: 100vh;
    background: #fff; z-index: 1050;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.carrinho-sidebar.aberto { transform: translateX(0); }

.carrinho-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg,#1b5e20,#2e7d32);
    color: #fff;
}
.carrinho-header h5 { margin: 0; font-weight: 700; }

.btn-fechar-carrinho {
    background: none; border: none; color: #fff;
    font-size: 1.6rem; cursor: pointer;
}

.carrinho-lista {
    list-style: none; padding: 0; margin: 0;
    flex: 1; overflow-y: auto;
}
.carrinho-vazio { text-align: center; color: #999; padding: 3rem 1rem; }

.carrinho-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 1.25rem; border-bottom: 1px solid #f0f0f0;
}
.carrinho-item-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.carrinho-item-info strong { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carrinho-item-preco { font-size: 0.82rem; color: #2e7d32; font-weight: 600; }

.carrinho-item-controles { display: flex; align-items: center; gap: 0.35rem; }
.btn-qtd {
    width: 26px; height: 26px; border: 1px solid #ddd; border-radius: 4px;
    background: #f8f8f8; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.btn-qtd:hover { background: #e8e8e8; }
.carrinho-item-qtd { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.btn-remover { background: none; border: none; color: #c62828; cursor: pointer; margin-left: 0.25rem; }

.carrinho-footer { padding: 1rem 1.25rem; border-top: 2px solid #e0e0e0; background: #fafafa; }
.carrinho-total { display: flex; justify-content: space-between; font-size: 1.05rem; }
.carrinho-total strong { color: #1b5e20; font-size: 1.15rem; }