/* =========================
        RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Quicksand', sans-serif;
}

body {
    background-color: #F0F0F0;
    color: #444;
    padding: 20px;
}

/* =========================
        TÍTULOS
========================= */
h1 {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #113E21;
    margin-bottom: 40px;
}

h2.bolo {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #113E21;
    margin-bottom: 30px;
}

/* =========================
        LAYOUT PRINCIPAL
========================= */
.menu-container {
    display: flex;
    gap: 20px;
}

/* =========================
        MENU LATERAL
========================= */
.menu-lateral {
    width: 220px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 20px;
    flex-shrink: 0;
}

.menu-lateral h3 {
    color: #113E21;
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 25px;
}

.menu-lateral ul {
    list-style: none;
}

.menu-lateral li {
    margin-bottom: 12px;
}

.menu-lateral a {
    text-decoration: none;
    color: #113E21;
    font-weight: 500;
    transition: color 0.3s;
}

.menu-lateral a:hover {
    color: #B38B59;
}

/* =========================
        PRODUTOS
========================= */
.produtos-container {
    flex: 1;
}

.central {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(17, 62, 33, 0.1);
}

.card-img-top {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.card-img-top:hover {
    transform: scale(1.02);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    color: #113E21;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card .preco {
    font-weight: 600;
    font-size: 1rem;
    color: #113E21;
    margin-bottom: 10px;
}

.add-cart {
    font-size: 28px;
    color: #113E21;
    cursor: pointer;
    align-self: flex-end;
    transition: transform 0.25s ease, background 0.25s ease;
}

.add-cart:hover {
    transform: scale(1.15);
    background-color: rgba(17, 62, 33, 0.05);
}

/* =========================
        CARRINHO
========================= */
.cart-sidebar {
    width: 300px;
    background: #fff;
    padding: 20px;
    border-left: 1px solid #ddd;
    flex-shrink: 0;
    display: none;
    flex-direction: column;
}

.cart-sidebar.active {
    display: flex;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: #113E21;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #113E21;
    transition: color 0.2s;
}

.close-cart:hover {
    color: #B38B59;
}

.cart-items .carrinho-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f7f7f7;
    transition: background 0.2s, transform 0.2s;
}

.cart-items .carrinho-item:hover {
    background-color: #f0f0f0;
    transform: translateX(3px);
}

.cart-items input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 4px;
}

.cart-items button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.cart-items button:hover {
    background: #c0392b;
}

.checkout-btn {
    width: 100%;
    padding: 12px 0;
    background: #8b4513;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #a0522d;
}

/* =========================
        FORMULÁRIO DO CARRINHO
========================= */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #113E21;
    box-shadow: 0 0 5px rgba(17,62,33,0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* =========================
        RESPONSIVO
========================= */
@media(max-width: 1200px) {
    .central {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 900px) {
    .menu-container {
        flex-direction: column;
    }

    .menu-lateral {
        width: 100%;
        height: auto;
        border-right: none;
        padding-top: 20px;
    }

    .central {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 0;
    }

    .cart-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
        margin-top: 20px;
    }
}

@media(max-width: 600px) {
    .central {
        grid-template-columns: 1fr;
    }

    .card-img-top {
        height: 180px;
        object-fit: cover;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2.bolo {
        font-size: 1.6rem;
    }
}
