:root {
    --verde: #30452c;
    --verde-claro: #68775b;
    --verde-suave: #e5eadf;
    --creme: #f8f3e8;
    --creme-escuro: #eee5d4;
    --marrom: #80684d;
    --texto: #34352f;
    --texto-suave: #62645b;
    --branco: #fffdf8;
    --linha: rgba(48, 69, 44, 0.14);
    --sombra: 0 18px 45px rgba(48, 69, 44, 0.12);
    --sans: Arial, Helvetica, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--creme);
    color: var(--texto);
    font-family: var(--serif);
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.topo {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(248, 243, 232, 0.96);
    border-bottom: 1px solid var(--linha);
    backdrop-filter: blur(12px);
}

.barra {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.marca {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--verde);
    text-decoration: none;
}

.marca img {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(48, 69, 44, 0.12);
    border-radius: 50%;
    object-fit: cover;
}

.marca strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    line-height: 1;
}

.marca span span {
    display: block;
    margin-top: 5px;
    font-family: var(--sans);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--sans);
    font-size: 0.92rem;
}

.menu a {
    color: var(--verde);
    text-decoration: none;
}

.menu a:hover {
    color: var(--marrom);
}

.pill {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--linha);
    border-radius: 999px;
    background: var(--branco);
    color: var(--verde);
    font-family: var(--sans);
    font-weight: 700;
    text-decoration: none;
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    padding: 58px 0 42px;
    border-bottom: 1px solid var(--linha);
}

.hero-grid,
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: center;
    gap: 56px;
}

.selo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--marrom);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.selo::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--marrom);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 740px;
    margin-bottom: 24px;
    color: var(--verde);
    font-size: clamp(3rem, 8vw, 6.9rem);
    line-height: 0.92;
}

h1 span {
    color: var(--marrom);
}

.hero p,
.lead {
    max-width: 610px;
    color: var(--verde-claro);
    font-size: clamp(1.08rem, 2.4vw, 1.34rem);
}

.botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.botao {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 21px;
    border: 1px solid var(--verde);
    border-radius: 999px;
    background: var(--verde);
    color: white;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.botao:hover {
    background: var(--marrom);
    border-color: var(--marrom);
}

.botao:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.botao:disabled:hover {
    background: var(--verde);
    border-color: var(--verde);
}

.botao.secundario {
    background: transparent;
    color: var(--verde);
}

.botao.secundario:hover {
    background: var(--verde);
    color: white;
}

.hero-card,
.media-card {
    min-height: 510px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(48, 69, 44, 0.08), rgba(128, 104, 77, 0.12)), var(--verde-suave);
    box-shadow: var(--sombra);
}

.logo-hero {
    width: min(380px, 74%);
    border-radius: 50%;
    box-shadow: 0 28px 65px rgba(48, 69, 44, 0.18);
}

section {
    padding: 86px 0;
}

.cabecalho-secao {
    max-width: 710px;
    margin: 0 auto 42px;
    text-align: center;
}

.cabecalho-secao h2 {
    margin-bottom: 12px;
    color: var(--verde);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.cabecalho-secao p {
    margin-bottom: 0;
    color: var(--texto-suave);
    font-family: var(--sans);
}

.produtos {
    background: var(--branco);
}

.grade-produtos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.produto,
.painel,
.resumo {
    overflow: hidden;
    border: 1px solid var(--linha);
    border-radius: 8px;
    background: var(--creme);
}

.produto-media {
    aspect-ratio: 1 / 0.78;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(48, 69, 44, 0.12), rgba(128, 104, 77, 0.08)), var(--creme-escuro);
}

.produto-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-media .sem-foto {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(48, 69, 44, 0.16);
    border-radius: 50%;
    color: var(--verde);
    font-size: 2.4rem;
    background: rgba(255, 253, 248, 0.52);
}

.produto-conteudo {
    padding: 22px;
}

.produto h3 {
    margin-bottom: 9px;
    color: var(--verde);
    font-size: 1.32rem;
    line-height: 1.18;
}

.produto p,
.muted {
    color: var(--texto-suave);
    font-family: var(--sans);
    font-size: 0.92rem;
}

.linha-produto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.preco {
    color: var(--marrom);
    font-family: var(--sans);
    font-size: 1.13rem;
    font-weight: 800;
}

.diferenciais {
    background: var(--verde);
    color: white;
}

.diferenciais .cabecalho-secao h2 {
    color: white;
}

.diferenciais .cabecalho-secao p {
    color: #dce4d8;
}

.beneficios {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.beneficio {
    padding: 26px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

.beneficio h3 {
    margin-bottom: 9px;
}

.beneficio p {
    margin-bottom: 0;
    color: #dce4d8;
    font-family: var(--sans);
    font-size: 0.92rem;
}

footer {
    padding: 54px 0 26px;
    background: #263523;
    color: #d9dfd5;
}

.rodape-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
}

footer h3 {
    margin-bottom: 13px;
    color: white;
}

footer p,
footer a,
footer li {
    color: #cbd3c7;
    font-family: var(--sans);
    font-size: 0.92rem;
    text-decoration: none;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.copyright {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #aab4a6;
    font-family: var(--sans);
    font-size: 0.78rem;
    text-align: center;
}

.page {
    padding: 54px 0 86px;
}

.page h1 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.grid-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.painel,
.resumo {
    padding: 24px;
    background: var(--branco);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.campo {
    display: grid;
    gap: 7px;
    font-family: var(--sans);
}

.campo.full {
    grid-column: 1 / -1;
}

.campo label {
    color: var(--verde);
    font-weight: 700;
}

.campo input,
.campo textarea,
.campo select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--linha);
    border-radius: 8px;
    padding: 11px 12px;
    background: var(--creme);
    color: var(--texto);
}

.campo textarea {
    min-height: 110px;
    resize: vertical;
}

.linha-carrinho {
    display: grid;
    grid-template-columns: 1fr 92px 110px 48px;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--linha);
    font-family: var(--sans);
}

.linha-carrinho input {
    width: 72px;
    min-height: 40px;
    border: 1px solid var(--linha);
    border-radius: 8px;
    padding: 8px;
}

.total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    color: var(--verde);
    font-family: var(--sans);
    font-size: 1.25rem;
    font-weight: 800;
}

.admin-body {
    background: #f4efe4;
    font-family: var(--sans);
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-side {
    padding: 26px;
    background: var(--verde);
    color: white;
}

.admin-side a {
    display: block;
    padding: 11px 0;
    color: #e5eadf;
    text-decoration: none;
}

.admin-link {
    display: block;
    width: 100%;
    padding: 11px 0;
    border: 0;
    background: transparent;
    color: #e5eadf;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.admin-main {
    padding: 30px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card-admin,
.table-wrap {
    border: 1px solid var(--linha);
    border-radius: 8px;
    background: var(--branco);
    padding: 20px;
}

.card-admin strong {
    display: block;
    color: var(--verde);
    font-size: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--linha);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--verde);
}

.thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--creme-escuro);
}

.alerta {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(128, 104, 77, 0.24);
    border-radius: 8px;
    background: #fff8e8;
    color: var(--marrom);
}

.label-sheet {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--linha);
    border-radius: 8px;
    background: white;
}

.label-sheet-small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.label-sheet-medium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.label-sheet-large {
    grid-template-columns: 1fr;
}

.soap-label {
    min-height: 148px;
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px dashed rgba(48, 69, 44, 0.38);
    border-radius: 8px;
    background: var(--creme);
    color: var(--texto);
    font-family: var(--sans);
}

.soap-label::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(128, 104, 77, 0.18);
    border-radius: 6px;
    pointer-events: none;
}

.label-logo {
    width: 42px;
    height: 42px;
    margin: 0 auto 6px;
    border-radius: 50%;
    object-fit: cover;
}

.label-brand {
    color: var(--verde);
    font-family: var(--serif);
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
}

.label-subtitle {
    margin-bottom: 8px;
    color: var(--marrom);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

.soap-label h2 {
    margin-bottom: 5px;
    color: var(--verde);
    font-family: var(--serif);
    font-size: 1.28rem;
    line-height: 1.05;
    text-align: center;
}

.soap-label p {
    margin-bottom: 5px;
    color: var(--texto-suave);
    font-size: 0.72rem;
    line-height: 1.25;
}

.label-weight {
    color: var(--marrom) !important;
    font-weight: 700;
    text-align: center;
}

.label-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 7px;
    color: var(--texto);
    font-size: 0.7rem;
    font-weight: 700;
}

.label-price {
    margin-top: 8px;
    color: var(--marrom);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 920px) {
    .hero-grid,
    .split,
    .grid-checkout,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .menu a {
        display: none;
    }

    .grade-produtos,
    .beneficios,
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rodape-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-side {
        position: static;
    }
}

@media print {
    @page {
        size: A4;
        margin: 8mm;
    }

    body {
        background: white;
    }

    .admin-side,
    .admin-top,
    .no-print {
        display: none !important;
    }

    .admin-shell {
        display: block;
        min-height: auto;
    }

    .admin-main {
        padding: 0;
    }

    .label-sheet {
        gap: 4mm;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: white;
        break-inside: avoid;
    }

    .label-sheet-small {
        grid-template-columns: repeat(3, 1fr);
    }

    .label-sheet-medium {
        grid-template-columns: repeat(2, 1fr);
    }

    .soap-label {
        min-height: 45mm;
        border: 0.3mm dashed rgba(48, 69, 44, 0.45);
        background: #fffdf8;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .hero,
    section {
        padding: 58px 0;
    }

    h1 {
        font-size: 3.45rem;
    }

    .grade-produtos,
    .beneficios,
    .rodape-grid,
    .form-grid,
    .cards {
        grid-template-columns: 1fr;
    }

    .linha-carrinho {
        grid-template-columns: 1fr;
    }

    .botoes,
    .botao {
        width: 100%;
    }
}
