:root {
    --cor-primaria: #1d5039;
    --texto-escuro: #1d5039;
    --branco: #FFFFFF;
    --bege: #F8F6F3;
    --sombra: rgba(0, 0, 0, 0.1);
}

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

body {
    line-height: 1.6;
    color: var(--texto-escuro);
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    background: linear-gradient(to bottom, #cef4d8, #276347);
}

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

#tabelaProdutos {
    width: 80%;
    margin: 40px auto; 
    border-collapse: collapse;
    border: 2px solid #1f5c43;
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

#tabelaProdutos tr{
    border: 2px solid #fff;;
}

#adicionar {
    display: block;      /* faz o link se comportar como bloco */
    margin: 20px auto;  
    padding: 10px 20px; 
    color: rgb(8, 8, 8);        
    text-align: center;  
    text-decoration: none; 
}

#tabelaProdutos th {
    background-color: #1f5c43;
    color: #fff;
    padding: 12px;
    font-size: 30px;
    letter-spacing: 0.5px;
}

#tabelaProdutos td {
    background-color: #1f5c43;
    color: #fff;
    padding: 12px;
    font-size: 15px;
    letter-spacing: 0.5px;
}

#tabelaProdutos a{
    text-decoration: none;
    color: #fff;
}


.header {
    background-color: var(--bege);
    padding: 20px 0;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: var(--cor-primaria);
}

.logo-section .aroma-logo,
.aroma {
    width: 60px;
    height: 60px;
}

.nav {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--texto-escuro);
    font-weight: 500;
    font-size: 16px;
    transition: font-size 0.3s ease;
}

.nav-link:hover {
    font-size: 17px;
}

.cart-icon {
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    background-color: #e0e0e0;
}

main.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.left h1,
.hero-title {
    font-size: 48px;
    color: var(--texto-escuro);
    line-height: 1.2;
    margin-bottom: 20px;
}

.left p,
.hero-subtitle {
    font-size: 18px;
    color: var(--texto-escuro);
    margin-bottom: 30px;
    line-height: 1.5;
}

.left button,
.cta-button {
    background-color: var(--cor-primaria);
    color: var(--branco);
    border: 2px solid var(--cor-primaria);
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.left button:hover,
.cta-button:hover {
    background-color: #456f50;
}

.right {
    background-color: var(--bege);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--sombra);
    font-size: 18px;
}

.login-box h2 {
    font-size: 28px;
    color: var(--texto-escuro);
    margin-bottom: 10px;
    font-weight: 600;
}

.login-box p {
    font-size: 18px;
    color: var(--texto-escuro);
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    color: var(--texto-escuro);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    color: var(--texto-escuro);
    background-color: var(--branco);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.form-group input::placeholder {
    color: #e8f8ed;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.options label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--texto-escuro);
    cursor: pointer;
}

.options input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.options a {
    font-size: 14px;
    color: var(--texto-escuro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.options a:hover {
    color: var(--cor-primaria);
}

.login-btn {
    width: 100%;
    background-color: var(--cor-primaria);
    color: var(--branco);
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    background-color: #456f50;
}

.extra-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.extra-options a {
    font-size: 14px;
    color: var(--texto-escuro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.extra-options a:hover {
    color: var(--cor-primaria);
}
.footer {
    background-color: #f8f8f8;
    padding: 40px 20px;
    font-family: serif;
}

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

.footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Responsivo */
    gap: 20px;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1 1 200px; /* Cresce, encolhe, tamanho mínimo */
    min-width: 200px;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #1d5039;
}

.footer-section p {
    margin: 5px 0;
    color: #1d5039;
    font-size: 14px;
}

.footer .copyright {
    text-align: center;
    font-size: 14px;
    color: #1d5039;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.hero {
    background: linear-gradient(to bottom, #cef4d8, #276347);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-image {
    max-width: 500px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.hero-product {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 3 / 2;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-product {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-product {
        max-width: 100%;
        height: auto;
    }
}

.products {
    padding: 80px 0;
    background-color: var(--bege);
}

.products-title {
    text-align: center;
    font-size: 36px;
    color: var(--texto-escuro);
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--branco);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px var(--sombra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-name {
    font-size: 18px;
    color: var(--texto-escuro);
    margin-bottom: 10px;
    font-weight: 500;
}

.product-price {
    font-size: 16px;
    color: var(--cor-primaria);
    font-weight: bold;
}

.products-grid a{
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .hero-content,
    main.main-content,
    .products-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title,
    .left h1 {
        font-size: 36px;
    }

    .left p {
        font-size: 16px;
    }

    .left button {
        margin: 0 auto;
    }

    .right {
        padding: 30px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    .login-box p {
        font-size: 16px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .extra-options {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title,
    .left h1 {
        font-size: 28px;
    }

    .hero-product {
        width: 200px;
        left: 0;
        top: 0;
    }

    .login-box h2 {
        font-size: 22px;
    }

    .login-box p {
        font-size: 14px;
    }

    .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }

    main.main-content {
        padding: 40px 15px;
    }

    .left p {
        font-size: 14px;
    }

    .left button {
        padding: 12px 24px;
        font-size: 12px;
    }

    .right {
        padding: 20px;
    }
}