:root {
    --ink: #202938;
    --muted: #667085;
    --line: #e5e7eb;
    --paper: #f7f8fa;
    --white: #fff;
    --accent: #246b55;
    --accent-dark: #19513f;
    --soft: #eaf4ef;
    --danger: #b42318;
    --shadow: 0 8px 28px rgba(16, 24, 40, .07)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

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

button {
    cursor: pointer
}

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

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line)
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 750;
    font-size: 1.03rem
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    color: white;
    padding: 10px 16px;
    font-weight: 650;
    transition: .15s
}

.button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark)
}

.button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.button-outline {
    background: white;
    color: var(--accent)
}

.button-outline:hover {
    background: var(--soft);
    color: var(--accent-dark)
}

.button-muted {
    background: #eef0f3;
    border-color: #eef0f3;
    color: var(--ink)
}

.button-muted:hover {
    background: #e1e4e9;
    border-color: #e1e4e9
}

.button-danger {
    background: #fff1f0;
    border-color: #fecdca;
    color: var(--danger)
}

.button-danger:hover {
    background: #fee4e2;
    border-color: #fecdca
}

.button-small {
    padding: 8px 11px;
    font-size: .88rem
}

.hero {
    margin: 34px 0 26px;
    padding: 36px;
    border-radius: 20px;
    background: linear-gradient(120deg, #e7f2ec, #f6f4e9);
}

.hero h1 {
    margin: 4px 0 10px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.04em
}

.hero p {
    margin: 0;
    color: #4c5d55
}

.eyebrow {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--accent);
    margin: 0 0 8px
}

.toolbar {
    display: flex;
    gap: 12px;
    margin: 20px 0
}

.toolbar input,
.toolbar select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: white
}

.search-label {
    flex: 1
}

.toolbar label:last-child {
    width: min(260px, 42%)
}

.status-message {
    color: var(--muted);
    min-height: 25px
}

.error-text {
    color: var(--danger) !important
}

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

.product-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column
}

.product-card > img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center;
    background: #f8f8f8;
}

.image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 260px;
    background: #f8f8f8;
    color: var(--muted);
}

.product-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.category-pill,
.featured-pill {
    display: inline-flex;
    align-self: flex-start;
    border-radius: 999px;
    padding: 3px 9px;
    margin: 0 5px 7px 0;
    font-size: .73rem;
    font-weight: 700;
    background: var(--soft);
    color: var(--accent)
}

.featured-pill {
    background: #fff3d6;
    color: #8a5b00
}

.product-content h2 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 3px 0 8px
}

.product-description {
    color: var(--muted);
    font-size: .94rem;
    margin: 0 0 20px;
    white-space: pre-line
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto
}

.product-bottom strong {
    font-size: 1.2rem;
    white-space: nowrap
}

.site-footer {
    background: white;
    border-top: 1px solid var(--line);
    padding: 18px 0;
    color: var(--muted);
    font-size: .9rem
}

.site-footer p {
    margin: 0
}

.admin-main {
    padding: 34px 0 54px
}

.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow)
}

.panel h2 {
    margin: 0 0 18px;
    font-size: 1.25rem
}

.panel h1 {
    margin: 0 0 8px
}

.narrow {
    max-width: 480px;
    margin: 30px auto
}

.form-stack {
    display: grid;
    gap: 15px
}

.form-stack label,
.inline-form label {
    display: grid;
    gap: 6px;
    font-size: .92rem;
    font-weight: 650
}

.form-stack input:not([type=checkbox]),
.form-stack select,
.form-stack textarea,
.inline-form input {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    padding: 10px 12px;
    background: white;
    min-width: 0
}

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus,
.inline-form input:focus {
    outline: 3px solid #d5e9df;
    border-color: var(--accent)
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 9px !important;
    font-weight: 500 !important
}

.checkbox-label input {
    width: 17px;
    height: 17px
}

.hint {
    color: var(--muted);
    font-size: .83rem;
    margin: -7px 0 0
}

.form-message {
    min-height: 24px;
    color: var(--accent);
    overflow-wrap: anywhere
}

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

.admin-heading h1 {
    margin: 0
}

.admin-columns {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 20px;
    align-items: start
}

.inline-form {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-bottom: 18px
}

.grow {
    flex: 1
}

.manage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px
}

.manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line)
}

.manage-item:last-child {
    border-bottom: 0
}

.manage-meta {
    display: block;
    color: var(--muted);
    font-size: .85rem
}

.product-manage-item {
    align-items: center
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 26px 0
}

[hidden] {
    display: none !important
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media(max-width:850px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .admin-columns {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .container {
        width: min(100% - 24px, 1120px)
    }

    .header-inner {
        min-height: 66px
    }

    .brand {
        font-size: .9rem
    }

    .brand-mark {
        width: 34px;
        height: 34px
    }

    .header-inner>.button {
        font-size: .8rem;
        padding: 8px 10px
    }

    .hero {
        padding: 25px 20px;
        margin-top: 22px
    }

    .toolbar {
        flex-direction: column
    }

    .toolbar label:last-child {
        width: 100%
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .product-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr)
    }

    .product-card > img {
    width: 100%;
    height: 190px;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    background: #f8f8f8;
    }

    .image-placeholder {
    display: grid;
    place-items: center;
    height: 190px;
    min-height: 0;
    }

    .product-content {
        padding: 13px
    }

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

    .product-bottom .button {
        width: 100%
    }

    .panel {
        padding: 18px
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .admin-heading {
        align-items: flex-start
    }

    .manage-item {
        align-items: flex-start;
        flex-direction: column
    }

    .product-manage-item .button-row {
        width: 100%
    }

    .inline-form {
        align-items: stretch;
        flex-direction: column
    }

    .inline-form .button {
        width: 100%
    }
}


/* ==========================================
   SITE PUBLICO - VISUAL DA REFERENCIA
========================================== */

:root {
    --accent: #506e50;
    --accent-dark: #3d593f;
    --soft: #e9eee4;
    --paper: #faf9f4;
}

/* CABECALHO */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #eeeeea;
}

.header-inner {
    min-height: 76px;
}

.brand {
    gap: 12px;
    color: #354b37;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #506e50;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #62675f;
    font-size: .92rem;
    transition: color .2s;
}

.main-nav a:hover {
    color: var(--accent);
}

.admin-access {
    border-radius: 30px;
    font-weight: 500;
}

/* INICIO */

.hero {
    min-height: 430px;
    margin: 0;
    padding: 70px 20px;
    border-radius: 0;
    background: linear-gradient(115deg, #f5f5ed, #f1efe2);
    display: grid;
    place-items: center;
    text-align: center;
}

.hero-inner {
    max-width: 850px;
}

.hero .eyebrow {
    letter-spacing: .18em;
    font-size: .75rem;
    margin-bottom: 12px;
}

.hero h1 {
    color: #202a20;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.15;
    letter-spacing: -.045em;
    margin: 0 0 15px;
}

.hero-description {
    color: #77796f !important;
    font-size: 1.05rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 27px;
    padding: 12px 25px;
    border-radius: 30px;
    background: #506e50;
    color: white;
    font-weight: 700;
    transition: .2s;
}

.hero-button:hover {
    background: #3d593f;
    transform: translateY(-2px);
}

/* CATALOGO */

.catalog-section {
    padding: 60px 0 75px;
    background: #faf9f4;
}

.catalog-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 28px;
}

.catalog-heading .eyebrow {
    margin-bottom: 5px;
}

.catalog-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -.035em;
}

.catalog-search {
    width: min(360px, 100%);
}

.catalog-search input,
.category-filter-area select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e5e5df;
    border-radius: 30px;
    padding: 10px 18px;
    background: white;
    outline: none;
}

.catalog-search input:focus,
.category-filter-area select:focus {
    border-color: #82957a;
    box-shadow: 0 0 0 3px #e8eee4;
}

.category-filter-area {
    width: min(260px, 100%);
    margin: 0 0 20px auto;
}

.category-filter-area select {
    border-radius: 10px;
}

.status-message {
    font-size: .9rem;
    color: #77796f;
}

/* CARTOES DOS PRODUTOS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 22px 0 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border: 1px solid #e9e8e1;
    border-radius: 17px;
    box-shadow: 0 4px 15px rgba(40,50,35,.045);
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(40,50,35,.10);
}

.product-image {
    height: 250px;
    padding: 0;
    background: #f0efe9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .3s;
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #888b81;
    background: #f0efe9;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
}

.category-pill,
.featured-pill {
    margin: 0;
    padding: 4px 9px;
    font-size: .7rem;
    border-radius: 20px;
}

.product-content h2 {
    margin: 3px 0 6px;
    color: #252b25;
    font-size: 1.05rem;
    line-height: 1.35;
}

.product-description {
    color: #85877f;
    font-size: .85rem;
    line-height: 1.5;
    margin: 0 0 15px;
}

.product-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
}

.product-bottom strong {
    color: #202a20;
    font-size: 1.25rem;
    font-weight: 800;
}

.product-button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: #e9eee4;
    color: #354b37;
    font-size: .84rem;
    font-weight: 750;
    text-align: center;
}

.product-button:hover {
    background: #dce6d7;
    color: #263d29;
}

/* CONTATO */

.contact-section {
    padding: 48px 0;
    background: #506e50;
    color: white;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.contact-text {
    max-width: 700px;
}

.contact-section .eyebrow {
    color: #e3eadc;
    margin-bottom: 8px;
}

.contact-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    margin: 0 0 12px;
}

.contact-section p:not(.eyebrow) {
    color: #e7ede3;
    margin: 0;
}

.contact-button {
    flex: 0 0 auto;
    padding: 15px 25px;
    border-radius: 35px;
    background: white;
    color: #354b37;
    font-weight: 750;
    transition: .2s;
}

.contact-button:hover {
    background: #edf1e8;
    transform: translateY(-2px);
}

/* RODAPE */

.site-footer {
    padding: 32px 0 22px;
    background: #202b22;
    color: #f5f5ed;
    border: 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding-bottom: 28px;
}

.footer-brand strong {
    font-size: .95rem;
    letter-spacing: .1em;
}

.footer-brand p {
    margin-top: 8px;
    color: #c3cabe;
    font-size: .85rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: #e0e5dc;
    font-size: .85rem;
}

.footer-nav a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 18px;
}

.footer-bottom p {
    margin: 0;
    color: #c3cabe;
    font-size: .82rem;
}

/* WHATSAPP FLUTUANTE */

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #20c969;
    color: white;
    box-shadow: 0 5px 18px rgba(0,0,0,.2);
    transition: transform .2s, box-shadow .2s;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 7px 22px rgba(0,0,0,.25);
}

.floating-whatsapp svg {
    width: 34px;
    height: 34px;
}

/* RESPONSIVIDADE */

@media(max-width: 850px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav {
        gap: 15px;
    }
}

@media(max-width: 560px) {
    .header-inner {
        min-height: 66px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .brand {
        font-size: .85rem;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 8px 0 2px;
        border-top: 1px solid #f0f0eb;
    }

    .main-nav a {
        font-size: .85rem;
    }

    .admin-access {
        font-size: .73rem;
        padding: 7px 10px;
    }

    .hero {
        min-height: 350px;
        padding: 55px 18px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-description {
        font-size: .9rem;
    }

    .catalog-section {
        padding: 40px 0 50px;
    }

    .catalog-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 17px;
    }

    .catalog-search,
    .category-filter-area {
        width: 100%;
    }

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

    .product-image {
        height: 155px;
    }

    .product-content {
        padding: 11px;
    }

    .product-content h2 {
        font-size: .9rem;
    }

    .product-description {
        font-size: .76rem;
    }

    .product-bottom strong {
        font-size: 1.05rem;
    }

    .product-button {
        font-size: .7rem;
        padding: 8px 5px;
    }

    .contact-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
    }

    .contact-button {
        align-self: flex-start;
    }

    .footer-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-nav {
        gap: 15px;
    }

    .floating-whatsapp {
        width: 54px;
        height: 54px;
        right: 16px;
        bottom: 16px;
    }
}

@media(max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }
}

.product-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.share-product-button {
  cursor: pointer;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}

.share-product-button:hover {
  background: var(--soft);
}