/* style.css */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    text-decoration: none;
    color: #5cb85c;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #5cb85c;
}

.carrinho {
    font-weight: bold;
}

#hero {
    background-color: #f9f9f9;
    padding: 80px 0;
}

#hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    max-width: 50%;
}

.hero-content h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

.hero-image {
    max-width: 40%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.button {
    display: inline-block;
    background-color: #5cb85c;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #4cae4c;
}

.secao-destaque {
    padding: 60px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.secao-destaque h2 {
    font-size: 2em;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.produto {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.produto img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
}

.produto h3 {
    font-size: 1.2em;
    margin: 15px;
    color: #333;
    text-align: center;
}

.produto .preco {
    font-size: 1.1em;
    color: #5cb85c;
    font-weight: bold;
    margin: 0 15px 15px;
    text-align: center;
}

.produto button.adicionar-carrinho {
    background-color: #4cae4c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.produto button.adicionar-carrinho:hover {
    background-color: #4cae4c;
}

#sobre .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sobre-content {
    max-width: 55%;
}

.sobre-imagem {
    max-width: 40%;
}

.sobre-imagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.sobre-texto p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

#contato {
    padding: 60px 0;
    background-color: #f9f9f9;
}

#contato h2 {
    font-size: 2em;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

#contato p {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

#form-contato {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

footer a {
    color: #5cb85c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Estilos do Modal do Carrinho */
#carrinho-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 8px;
    position: relative;
}

.fechar-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.fechar-modal:hover,
.fechar-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#itens-carrinho {
    margin-bottom: 20px;
}

.item-carrinho {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
