.pv-site {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}


.pv-site {
    --verde: #176b2c;
    --verde-2: #218739;
    --verde-claro: #e8f5e5;
    --verde-suave: #f3f8f1;
    --texto: #263326;
    --cinza: #718073;
    --borda: #dce7dc;
    --branco: #ffffff;

    color: var(--texto);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.pv-site * {
    box-sizing: border-box;
}

.pv-site a {
    text-decoration: none;
    color: inherit;
}

.pv-site button,
.pv-site input,
.pv-site select {
    font-family: inherit;
}


/* HEADER */

.pv-header {
    background:
        linear-gradient(135deg,
            #0f5723,
            #218739);
    color: white;
    padding: 20px 6% 80px;
}

.pv-header-top {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.pv-logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.pv-logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    border-radius: 14px;
    font-size: 26px;
}

.pv-logo strong {
    display: block;
    font-size: 21px;
}

.pv-logo small {
    display: block;
    color: #cce8d0;
    font-size: 11px;
}

.pv-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
}

.pv-nav a {
    color: #e9f6eb;
}

.pv-nav a:hover {
    color: white;
}

.pv-admin-button {
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .12);
    color: white;
    border-radius: 9px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: bold;
}

.pv-admin-button:hover {
    background: rgba(255, 255, 255, .22);
}


/* HERO */

.pv-hero {
    max-width: 1200px;
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: center;
}

.pv-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 12px;
    margin-bottom: 18px;
}

.pv-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    margin: 0 0 20px;
}

.pv-hero h1 span {
    color: #b8e9bf;
}

.pv-hero-content>p {
    max-width: 600px;
    color: #d7ebda;
    font-size: 17px;
}

.pv-hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.pv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9px;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.pv-button:hover {
    transform: translateY(-1px);
}

.pv-button-primary {
    background: #218739;
    color: white;
}

.pv-header .pv-button-primary {
    background: white;
    color: var(--verde);
}

.pv-button-light {
    background: #edf4ec;
    color: #315239;
}

.pv-button-danger {
    background: #d94b46;
    color: white;
}

.pv-full {
    width: 100%;
}

.pv-hero-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 25px;
    padding: 35px;
    text-align: center;
}

.pv-hero-card-icon {
    font-size: 75px;
    margin-bottom: 15px;
}

.pv-hero-card strong {
    display: block;
    font-size: 22px;
}

.pv-hero-card p {
    color: #cde7d1;
}


/* MAIN */

.pv-main {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.pv-benefits {
    margin-top: -35px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.pv-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px;
    border-right: 1px solid #edf0ed;
}

.pv-benefit:last-child {
    border-right: none;
}

.pv-benefit>span {
    font-size: 28px;
}

.pv-benefit strong {
    display: block;
    font-size: 14px;
}

.pv-benefit p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--cinza);
}


/* SEÇÕES */

.pv-section {
    padding: 85px 0 20px;
}

.pv-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.pv-section-heading h2,
.pv-about h2,
.pv-contact h2 {
    font-size: 34px;
    margin: 5px 0 0;
    line-height: 1.15;
}

.pv-section-heading>p {
    color: var(--cinza);
}

.pv-section-label {
    display: block;
    color: #2c8a43;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
}


/* CATEGORIAS */

.pv-categories {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
}

.pv-category {
    background: var(--verde-suave);
    border: 1px solid #e1ebdf;
    border-radius: 13px;
    padding: 16px 8px;
    cursor: pointer;
    color: var(--texto);
    transition: .2s;
}

.pv-category span {
    display: block;
    font-size: 27px;
    margin-bottom: 7px;
}

.pv-category strong {
    font-size: 11px;
}

.pv-category:hover,
.pv-category.active {
    background: var(--verde);
    color: white;
    border-color: var(--verde);
    transform: translateY(-2px);
}


/* BUSCA */

.pv-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--borda);
    padding: 9px 12px;
    border-radius: 10px;
    width: 280px;
}

.pv-search input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}


/* PRODUTOS */

.pv-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pv-product-card {
    background: white;
    border: 1px solid var(--borda);
    border-radius: 15px;
    overflow: hidden;
    transition: .2s;
}

.pv-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 75, 38, .1);
}

.pv-product-image {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--verde-suave);
    font-size: 55px;
}

.pv-product-body {
    padding: 17px;
}

.pv-product-category {
    font-size: 10px;
    text-transform: uppercase;
    color: #3b8c4c;
    font-weight: bold;
}

.pv-product-body h3 {
    font-size: 16px;
    margin: 6px 0 16px;
}

.pv-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pv-product-bottom strong {
    color: var(--verde);
    font-size: 19px;
}

.pv-product-bottom span {
    font-size: 10px;
    color: #68806d;
}

.pv-loading,
.pv-empty,
.pv-api-error {
    text-align: center;
    padding: 35px;
    color: var(--cinza);
}

.pv-empty span {
    font-size: 40px;
}


/* SOBRE */

.pv-about {
    margin-top: 80px;
    padding: 65px;
    border-radius: 25px;
    background: var(--verde-suave);
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.pv-about-image {
    min-height: 300px;
    border-radius: 22px;
    background:
        linear-gradient(135deg,
            #d5ecd3,
            #a9d6ae);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110px;
}

.pv-about-content p {
    color: var(--cinza);
    margin: 18px 0;
}

.pv-about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    color: #28743b;
    font-weight: bold;
    font-size: 13px;
}


/* CONTATO */

.pv-contact {
    margin: 80px 0;
    padding: 50px;
    border-radius: 22px;
    background: var(--verde);
    color: white;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.pv-contact .pv-section-label {
    color: #bde6c2;
}

.pv-contact h2 {
    margin-bottom: 15px;
}

.pv-contact>div>p {
    color: #d1e8d5;
}

.pv-contact-info {
    display: grid;
    gap: 14px;
}

.pv-contact-info>div {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 13px;
}

.pv-contact-info span {
    font-size: 23px;
}

.pv-contact-info p {
    margin: 0;
    font-size: 13px;
}


/* FOOTER */

.pv-footer {
    background: #12391c;
    color: white;
    padding: 45px 6% 20px;
}

.pv-footer-main {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.pv-footer p {
    color: #b8cdbb;
    font-size: 13px;
}

.pv-footer h3 {
    margin-top: 0;
}

.pv-footer-main>div:not(:first-child) a {
    display: block;
    color: #b8cdbb;
    font-size: 13px;
    margin: 8px 0;
}

.pv-footer-logo {
    margin-bottom: 15px;
}

.pv-footer-bottom {
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    color: #8fa995;
    font-size: 11px;
}


/* MODAL */

.pv-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 31, 13, .72);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 25px;
}

.pv-modal-box {
    max-width: 1100px;
    margin: 30px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.pv-admin-login {
    position: relative;
    max-width: 440px;
    margin: auto;
    padding: 55px 45px;
    text-align: center;
}

.pv-modal-close {
    position: absolute;
    right: 18px;
    top: 15px;
    border: none;
    background: #f0f4ef;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 23px;
    cursor: pointer;
}

.pv-admin-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--verde-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}

.pv-admin-login h2 {
    margin: 5px 0;
    font-size: 28px;
}

.pv-admin-login>p {
    color: var(--cinza);
    font-size: 13px;
    margin-bottom: 25px;
}

.pv-admin-login form {
    text-align: left;
}

.pv-admin-login label,
.pv-admin-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #435347;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.pv-admin-login input,
.pv-admin-form-grid input,
.pv-admin-form-grid select,
.pv-admin-filters input,
.pv-admin-filters select {
    border: 1px solid #d2ded2;
    border-radius: 8px;
    padding: 11px;
    outline: none;
    font-size: 14px;
}

.pv-admin-login input:focus,
.pv-admin-form-grid input:focus,
.pv-admin-form-grid select:focus {
    border-color: var(--verde-2);
}


/* ADMIN */

.pv-admin-panel {
    padding: 30px;
}

.pv-admin-header {
    background: var(--verde);
    color: white;
    border-radius: 15px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.pv-admin-header h2 {
    margin: 4px 0 0;
}

.pv-admin-header .pv-section-label {
    color: #bce5c1;
}

.pv-admin-header-buttons {
    display: flex;
    gap: 8px;
}

.pv-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.pv-admin-stats>div {
    background: var(--verde-suave);
    border: 1px solid var(--borda);
    border-radius: 12px;
    padding: 16px;
}

.pv-admin-stats span,
.pv-admin-stats strong {
    display: block;
}

.pv-admin-stats span {
    color: var(--cinza);
    font-size: 12px;
}

.pv-admin-stats strong {
    color: var(--verde);
    font-size: 25px;
}

.pv-admin-card {
    border: 1px solid var(--borda);
    border-radius: 14px;
    padding: 22px;
    margin-top: 15px;
}

.pv-admin-card-title,
.pv-admin-table-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pv-admin-card h3 {
    margin: 4px 0 0;
}

.pv-admin-form-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1fr 1fr;
    gap: 12px;
}

.pv-admin-form-grid label {
    margin-bottom: 0;
}

.pv-admin-form-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.pv-admin-filters {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.pv-table-container {
    overflow-x: auto;
}

.pv-admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.pv-admin-table th {
    background: #f2f6f1;
    color: #556457;
    padding: 11px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
}

.pv-admin-table td {
    padding: 12px 11px;
    border-top: 1px solid #e9eee9;
    font-size: 13px;
}

.pv-actions {
    display: flex;
    gap: 5px;
}

.pv-edit,
.pv-delete {
    border: none;
    border-radius: 7px;
    padding: 7px 9px;
    cursor: pointer;
}

.pv-edit {
    background: #e6f0ff;
}

.pv-delete {
    background: #ffebea;
}

.pv-message {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: bold;
}

.pv-message.erro {
    color: #c43732;
}

.pv-message.sucesso {
    color: #20803a;
}


/* RESPONSIVO */

/* =========================================================
   RESPONSIVO
   Mantém a mesma identidade visual em todos os tamanhos
   ========================================================= */

/* TABLETS E TELAS MENORES */
@media (max-width: 1000px) {

    .pv-header {
        padding-left: 4%;
        padding-right: 4%;
    }

    .pv-hero {
        grid-template-columns: 1.3fr 1fr;
        gap: 30px;
    }

    .pv-categories {
        grid-template-columns: repeat(5, 1fr);
    }

    .pv-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .pv-about {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        padding: 45px;
    }

    .pv-contact {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .pv-footer-main {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 30px;
    }

    .pv-admin-form-grid {
        grid-template-columns: 2fr 1.3fr 1fr 1fr;
    }
}


/* CELULAR */
@media (max-width: 700px) {

    .pv-header {
        padding: 15px 20px 60px;
    }

    /*
       O menu continua aparecendo.
       Apenas permite quebrar linha caso necessário.
    */
    .pv-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        font-size: 13px;
    }

    .pv-header-top {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pv-logo {
        flex-shrink: 0;
    }

    .pv-admin-button {
        flex-shrink: 0;
    }

    /*
       Hero continua com duas áreas,
       mas reduz o tamanho para caber melhor.
    */
    .pv-hero {
        grid-template-columns: 1.2fr 1fr;
        gap: 20px;
        margin-top: 45px;
    }

    .pv-hero h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .pv-hero-content>p {
        font-size: 14px;
    }

    .pv-hero-card {
        padding: 22px;
    }

    .pv-hero-card-icon {
        font-size: 55px;
    }

    .pv-hero-card strong {
        font-size: 17px;
    }

    .pv-hero-card p {
        font-size: 12px;
    }

    .pv-hero-buttons {
        flex-wrap: wrap;
    }

    /*
       Benefícios continuam lado a lado quando possível.
    */
    .pv-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .pv-benefit {
        border-right: 1px solid #edf0ed;
        border-bottom: 1px solid #edf0ed;
        padding: 17px;
    }

    .pv-benefit:nth-child(2n) {
        border-right: none;
    }

    /*
       Categorias continuam em várias colunas.
    */
    .pv-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    /*
       Produtos continuam em duas colunas.
    */
    .pv-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .pv-product-image {
        height: 110px;
        font-size: 45px;
    }

    .pv-product-body {
        padding: 14px;
    }

    /*
       Busca ocupa o espaço disponível.
    */
    .pv-section-heading {
        gap: 15px;
    }

    .pv-search {
        width: 100%;
        max-width: 280px;
    }

    /*
       Sobre continua com aparência de desktop,
       mas reduz o espaçamento.
    */
    .pv-about {
        grid-template-columns: 1fr 1fr;
        padding: 35px 25px;
        gap: 25px;
        margin-top: 60px;
    }

    .pv-about-image {
        min-height: 220px;
        font-size: 80px;
    }

    .pv-about-list {
        grid-template-columns: 1fr;
    }

    /*
       Contato continua dividido em duas áreas.
    */
    .pv-contact {
        grid-template-columns: 1fr 1fr;
        padding: 35px 25px;
        gap: 25px;
        margin: 60px 0;
    }

    /*
       Footer mantém três colunas sempre que houver espaço.
    */
    .pv-footer {
        padding-left: 4%;
        padding-right: 4%;
    }

    .pv-footer-main {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 20px;
    }

    /*
       Área administrativa.
    */
    .pv-admin-panel {
        padding: 20px;
    }

    .pv-admin-header {
        flex-wrap: wrap;
    }

    .pv-admin-form-grid {
        grid-template-columns: 2fr 1.3fr 1fr 1fr;
    }

    .pv-admin-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* CELULARES MUITO PEQUENOS */
@media (max-width: 480px) {

    .pv-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pv-header-top {
        gap: 15px;
    }

    .pv-logo strong {
        font-size: 18px;
    }

    .pv-logo small {
        font-size: 10px;
    }

    .pv-logo-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .pv-nav {
        gap: 7px 11px;
        font-size: 12px;
    }

    .pv-admin-button {
        padding: 8px 10px;
        font-size: 12px;
    }

    /*
       Aqui reduzimos o hero para uma coluna
       somente quando realmente não houver espaço.
    */
    .pv-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pv-hero-content>p {
        margin-left: auto;
        margin-right: auto;
    }

    .pv-hero-buttons {
        justify-content: center;
    }

    .pv-hero-card {
        max-width: 300px;
        width: 100%;
        margin: auto;
    }

    /*
       Categorias em duas colunas.
    */
    .pv-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    /*
       Produtos em duas colunas.
    */
    .pv-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pv-product-image {
        height: 95px;
        font-size: 38px;
    }

    .pv-product-body {
        padding: 11px;
    }

    .pv-product-body h3 {
        font-size: 14px;
    }

    .pv-product-bottom strong {
        font-size: 16px;
    }

    /*
       Benefícios em duas colunas.
    */
    .pv-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .pv-benefit {
        padding: 13px;
    }

    .pv-benefit>span {
        font-size: 22px;
    }

    .pv-benefit strong {
        font-size: 12px;
    }

    .pv-benefit p {
        font-size: 10px;
    }

    /*
       Sobre e contato passam para uma coluna
       apenas por falta real de espaço.
    */
    .pv-about,
    .pv-contact {
        grid-template-columns: 1fr;
    }

    .pv-about {
        padding: 25px 20px;
    }

    .pv-contact {
        padding: 25px 20px;
    }

    .pv-section-heading h2,
    .pv-about h2,
    .pv-contact h2 {
        font-size: 27px;
    }

    /*
       Footer em uma coluna somente em telas
       realmente pequenas.
    */
    .pv-footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pv-footer-bottom {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 20px;
    }

    /*
       Administração.
    */
    .pv-admin-panel {
        padding: 12px;
    }

    .pv-admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pv-admin-header-buttons {
        width: 100%;
    }

    .pv-admin-header-buttons .pv-button {
        flex: 1;
    }

    .pv-admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .pv-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .pv-admin-filters {
        grid-template-columns: 1fr;
    }

    .pv-admin-login {
        padding: 40px 22px;
    }

    .pv-modal {
        padding: 8px;
    }

    .pv-modal-box {
        margin: 10px auto;
    }

    .pv-table-container {
        margin-left: -5px;
        margin-right: -5px;
        width: calc(100% + 10px);
    }
}


/* ELEMENTOS OCULTOS */

.pv-hidden {
    display: none !important;
}


/* MODAL SEMPRE ACIMA DO SITE */

.pv-modal {
    z-index: 999999;
}


/* ERRO DO LOGIN */

.pv-login-error {
    display: none;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffebea;
    color: #c43732;
    border: 1px solid #f3c2bf;
    font-size: 13px;
    font-weight: bold;
}

.pv-login-error.show {
    display: block;
}


/* BOTÕES DESABILITADOS */

.pv-button:disabled,
.pv-admin-button:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}


/* TABELA ADMINISTRATIVA */

.pv-table-container {
    overflow-x: auto;
}