/* ==========================================================================
   PORTAL AARCA
   PRODUCTS.CSS
   Versão 2.0
   ========================================================================== */


/* ==========================================================================
   1. PÁGINA DE PRODUTOS
   ========================================================================== */

.products-page {
    width: 100%;
    background: #ffffff;
}

.products-section {
    padding: 20px 0 70px;
}

.products-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ==========================================================================
   2. HERO DA PÁGINA DE PRODUTOS
   ========================================================================== */

.products-page .hero-page {
    padding: 55px 0 35px;
    text-align: center;
    background: #ffffff;
}

.products-page .hero-page .container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.products-page .section-badge {
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 12px;

    background: #e8f5e9;
    color: #2e7d32;

    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;
}

.products-page .hero-page h1 {
    margin: 0 0 12px;

    color: #1f3b2b;

    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
}

.products-page .hero-page p {
    max-width: 720px;

    margin: 0 auto;

    color: #666666;

    font-size: 17px;
    line-height: 1.7;
}


/* ==========================================================================
   3. TOOLBAR PREMIUM
   ========================================================================== */

.produtos-toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 0 0 18px;

    padding: 0;

    flex-wrap: wrap;
}

.toolbar-left {
    flex: 1 1 400px;
}

.toolbar-right {
    flex: 0 0 auto;
}


/* ==========================================================================
   4. CAMPO DE PESQUISA
   ========================================================================== */

#produtoSearch {
    width: 100%;

    padding: 15px 20px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 14px;

    color: #333333;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#produtoSearch::placeholder {
    color: #999999;
}

#produtoSearch:focus {
    border-color: #2e7d32;

    box-shadow:
        0 0 0 4px rgba(46, 125, 50, 0.08);
}


/* ==========================================================================
   5. ORDENAÇÃO
   ========================================================================== */

.toolbar-right select {
    min-width: 210px;

    padding: 15px 42px 15px 18px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 14px;

    color: #333333;

    font-size: 15px;

    cursor: pointer;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.toolbar-right select:focus {
    border-color: #2e7d32;

    box-shadow:
        0 0 0 4px rgba(46, 125, 50, 0.08);
}


/* ==========================================================================
   6. CONTADOR DE PRODUTOS
   ========================================================================== */

.resultado-produtos {
    margin: 10px 0 20px;

    color: #666666;

    font-size: 15px;
}

.resultado-produtos strong {
    color: #2e7d32;

    font-size: 18px;
    font-weight: 800;
}


/* ==========================================================================
   7. CATEGORIAS
   ========================================================================== */

.categorias {
    display: flex;

    gap: 10px;

    margin: 0 0 35px;

    flex-wrap: wrap;
}

.categoria-btn {
    padding: 10px 18px;

    background: #f3f4f6;

    border: 1px solid transparent;
    border-radius: 50px;

    color: #333333;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.categoria-btn:hover {
    background: #2e7d32;

    color: #ffffff;

    transform: translateY(-2px);
}

.categoria-btn.ativo {
    background: #2e7d32;

    color: #ffffff;
}


/* ==========================================================================
   8. GRID DE PRODUTOS
   ========================================================================== */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 30px;

    margin-top: 0;
}


/* ==========================================================================
   9. CARD DO PRODUTO
   ========================================================================== */

.produto-card {
    position: relative;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.produto-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.13);
}

.produto-link {
    display: block;

    height: 100%;

    color: #222222;

    text-decoration: none;
}


/* ==========================================================================
   10. IMAGEM DO CARD
   ========================================================================== */

.produto-thumb {
    position: relative;

    width: 100%;
    height: 250px;

    background: #f6f6f6;

    overflow: hidden;
}

.produto-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.produto-card:hover .produto-thumb img {
    transform: scale(1.07);
}


/* ==========================================================================
   11. SELO DE DESTAQUE
   ========================================================================== */

.badge-card {
    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    padding: 8px 14px;

    background: #2e7d32;

    border-radius: 30px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.15);
}


/* ==========================================================================
   12. CONTEÚDO DO CARD
   ========================================================================== */

.produto-body {
    padding: 22px;
}

.produto-body h3 {
    margin: 0 0 10px;

    color: #1f3b2b;

    font-size: 22px;
    line-height: 1.25;
}

.origem {
    margin-bottom: 14px;

    color: #777777;

    font-size: 14px;
    line-height: 1.5;
}

.preco {
    margin-bottom: 14px;

    color: #2e7d32;

    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.preco small {
    color: #666666;

    font-size: 14px;
    font-weight: 400;
}


/* ==========================================================================
   13. STATUS
   ========================================================================== */

.status,
.badge {
    display: inline-block;

    padding: 7px 15px;

    border-radius: 25px;

    font-size: 13px;
    font-weight: 700;
}

.estoque {
    background: #dff7e5;

    color: #2e7d32;
}

.encomenda {
    background: #fff4d5;

    color: #a87300;
}

.indisponivel {
    background: #ffe3e3;

    color: #c62828;
}

.destaque {
    background: #e8f5e9;

    color: #2e7d32;
}


/* ==========================================================================
   14. PÁGINA INDIVIDUAL DO PRODUTO
   ========================================================================== */

.single-product {
    padding: 55px 0 80px;

    background: #ffffff;
}

.single-product > .container {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;
}

.single-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 520px)
        minmax(0, 1fr);

    align-items: start;

    gap: 55px;
}


/* ==========================================================================
   15. IMAGEM PRINCIPAL
   ========================================================================== */

.single-image {
    width: 100%;

    max-width: 520px;

    margin: 0;

    overflow: visible;

    border-radius: 18px;
}

.produto-principal {
    display: block;

    width: 100%;
    height: 480px;

    object-fit: cover;

    border-radius: 18px;

    cursor: zoom-in;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.produto-principal:hover {
    transform: scale(1.015);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.14);
}


/* ==========================================================================
   16. MINIATURAS DA GALERIA
   ========================================================================== */

.thumbs {
    display: flex;

    gap: 12px;

    margin-top: 16px;

    flex-wrap: wrap;
}

.thumb {
    width: 76px;
    height: 76px;

    object-fit: cover;

    border: 2px solid transparent;
    border-radius: 10px;

    cursor: pointer;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.thumb:hover {
    border-color: #2e7d32;

    transform: translateY(-2px);
}


/* ==========================================================================
   17. CONTEÚDO DA PÁGINA INDIVIDUAL
   ========================================================================== */

.single-content {
    min-width: 0;
}

.single-content h1 {
    margin: 0 0 25px;

    color: #1f3b2b;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
}

.produto-info {
    display: grid;

    gap: 12px;

    margin-bottom: 28px;
}

.info-item {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 16px;

    background: #f8faf8;

    border: 1px solid #edf1ed;
    border-radius: 12px;
}

.info-label {
    color: #555555;

    font-size: 14px;
    font-weight: 600;
}

.info-value {
    color: #1f3b2b;

    font-size: 16px;
    font-weight: 700;

    text-align: right;
}

.single-description {
    margin: 25px 0;

    color: #555555;

    font-size: 16px;
    line-height: 1.8;
}

.single-description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   18. BOTÃO WHATSAPP
   ========================================================================== */

.btn-product {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 14px 24px;

    background: #2e7d32;

    border-radius: 12px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-product:hover {
    background: #256628;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(46, 125, 50, 0.25);
}
/* ==========================================================================
   SINGLE PRODUTO - AJUSTES
   ========================================================================== */


/* ESPAÇO ENTRE BOTÕES */

.single-content .btn-product {
    display: inline-block;
    margin-top: 20px;
}

.single-product-back {
    margin-top: 18px;
}

.single-product-back .btn {
    display: inline-block;
}


/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    background: rgba(0, 0, 0, 0.9);

    align-items: center;
    justify-content: center;

    padding: 30px;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    display: block;

    max-width: 90%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 45px;
    line-height: 1;

    cursor: pointer;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .single-content .btn-product,
    .single-product-back .btn {
        width: 100%;
        text-align: center;
    }

    .single-product-back {
        margin-top: 16px;
    }

}
/* ==========================================================
   PRODUTO CARD PREMIUM 3.0
========================================================== */

.produto-badges{
    position:absolute;
    top:14px;
    left:14px;
    right:14px;

    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;

    z-index:5;
}

.badge-card.categoria{

    background:rgba(255,255,255,.92);

    color:#2e7d32;

    backdrop-filter:blur(8px);

    -webkit-backdrop-filter:blur(8px);

}

.produto-preco-imagem{

    position:absolute;

    right:16px;

    bottom:16px;

    z-index:5;

    display:flex;

    align-items:flex-end;

    gap:4px;

    padding:10px 14px;

    background:rgba(255,255,255,.94);

    border-radius:14px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.produto-preco-valor{

    font-size:22px;

    font-weight:800;

    color:#2e7d32;

    line-height:1;

}

.produto-preco-unidade{

    font-size:13px;

    color:#666;

}

.produto-conteudo-principal{

    margin-bottom:18px;

}

.produto-titulo{

    margin:0 0 12px;

}

.produto-origem{

    display:flex;

    align-items:center;

    gap:8px;

    color:#666;

    font-size:14px;

}

.produto-origem-icone{

    font-size:15px;

}

.produto-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:14px;

    flex-wrap:wrap;

}

.status{

    display:inline-flex;

    align-items:center;

    gap:8px;

}

.status-indicador{

    width:10px;

    height:10px;

    border-radius:50%;

}

.status.estoque .status-indicador{

    background:#32b44a;

}

.status.encomenda .status-indicador{

    background:#f6b300;

}

.status.indisponivel .status-indicador{

    background:#d32f2f;

}

.produto-ver-mais{

    display:inline-flex;

    align-items:center;

    gap:8px;

    font-weight:700;

    color:#2e7d32;

    transition:.30s;

}

.produto-card:hover .produto-ver-mais{

    gap:14px;

}

.produto-destaque{

    border:2px solid rgba(46,125,50,.15);

}
/* ==========================================================
   SINGLE PRODUTO PREMIUM 4.0
========================================================== */

/* ---------- Layout ---------- */

.single-grid{

    align-items:flex-start;

    gap:70px;

}

/* ---------- Galeria ---------- */

.single-image{

    position:sticky;

    top:110px;

}

.produto-principal{

    border-radius:24px;

    border:6px solid #ffffff;

    box-shadow:0 30px 70px rgba(0,0,0,.15);

    transition:.45s;

}

.produto-principal:hover{

    transform:scale(1.02);

}

.thumbs{

    justify-content:center;

}

.thumb{

    border-radius:14px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.thumb:hover{

    transform:translateY(-4px);

}

/* ---------- Conteúdo ---------- */

.single-content{

    padding-top:10px;

}

.single-content h1{

    margin-bottom:18px;

    font-size:clamp(38px,5vw,56px);

    line-height:1.08;

    color:#17351d;

}

/* ---------- Informações ---------- */

.produto-info{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:16px;

    margin:35px 0;

}

.info-item{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    justify-content:center;

    padding:20px;

    border-radius:18px;

    background:#f8fbf8;

    border:1px solid rgba(46,125,50,.08);

    transition:.30s;

}

.info-item:hover{

    transform:translateY(-4px);

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.info-label{

    margin-bottom:8px;

    font-size:13px;

    text-transform:uppercase;

    letter-spacing:.05em;

    color:#7b8b80;

}

.info-value{

    font-size:20px;

    font-weight:700;

    color:#1f3b2b;

    text-align:left;

}

/* ---------- Descrição ---------- */

.single-description{

    padding:28px;

    margin-top:35px;

    background:#ffffff;

    border:1px solid #ececec;

    border-radius:20px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.single-description h2,
.single-description h3{

    color:#1f3b2b;

}

/* ---------- WhatsApp ---------- */

.btn-product{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    width:100%;

    min-height:60px;

    margin-top:35px;

    border-radius:18px;

    font-size:18px;

    font-weight:700;

    background:#25D366;

    box-shadow:0 18px 40px rgba(37,211,102,.25);

}

.btn-product::before{

    content:"💬";

    font-size:20px;

}

.btn-product:hover{

    background:#1fb857;

    transform:translateY(-4px);

}

/* ---------- Voltar ---------- */

.single-product-back{

    margin-top:18px;

}

.single-product-back .btn{

    width:100%;

    text-align:center;

}

/* ---------- Produtor ---------- */

.produto-produtor{

    margin-top:80px;

}

.produto-produtor-card{

    display:grid;

    grid-template-columns:140px 1fr;

    gap:30px;

    align-items:center;

    padding:35px;

    background:#ffffff;

    border-radius:22px;

    box-shadow:0 18px 45px rgba(0,0,0,.08);

}

.produto-produtor-foto img{

    width:140px;

    height:140px;

    object-fit:cover;

    border-radius:50%;

    border:5px solid #ffffff;

    box-shadow:0 12px 30px rgba(0,0,0,.12);

}

.produto-produtor-label{

    display:inline-block;

    margin-bottom:10px;

    color:#2e7d32;

    font-weight:700;

}

.produto-produtor-content h2{

    margin-bottom:16px;

}

.produto-produtor-link{

    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-top:16px;

    font-weight:700;

    color:#2e7d32;

    text-decoration:none;

}

.produto-produtor-link:hover{

    gap:14px;

}

/* ---------- Relacionados ---------- */

.related-products{

    margin-top:90px;

    padding-top:50px;

    border-top:1px solid #eeeeee;

}

/* ---------- Mobile ---------- */

@media(max-width:900px){

    .single-grid{

        grid-template-columns:1fr;

        gap:45px;

    }

    .single-image{

        position:relative;

        top:0;

    }

    .produto-info{

        grid-template-columns:1fr;

    }

    .produto-produtor-card{

        grid-template-columns:1fr;

        text-align:center;

    }

    .produto-produtor-foto{

        display:flex;

        justify-content:center;

    }

}

@media(max-width:600px){

    .single-content h1{

        font-size:34px;

    }

    .single-description{

        padding:22px;

    }

    .btn-product{

        font-size:16px;

        min-height:56px;

    }

}


/* ==========================================================================
   PRODUTO CARD PREMIUM 4.0 — PADRONIZAÇÃO PARA LANÇAMENTO
   ========================================================================== */

/*
| Mantém os cards da Home e do catálogo com altura uniforme.
*/
.produto-card{
    height:100%;
}

.produto-link{
    display:flex;
    flex-direction:column;
    height:100%;
}

.produto-body{
    display:flex;
    flex:1;
    flex-direction:column;
}

.produto-conteudo-principal{
    flex:1;
}


/*
| Imagem e preço
*/
.produto-thumb{
    height:250px;
}

.produto-preco-imagem{
    max-width:calc(100% - 32px);
}

.produto-preco-valor{
    white-space:nowrap;
}

.produto-preco-unidade{
    max-width:92px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}


/*
| Título
*/
.produto-titulo{
    color:#17351d;
    font-size:20px;
    line-height:1.25;
}


/*
| Produtor e origem
*/
.produto-produtor,
.produto-origem{
    display:flex;
    align-items:flex-start;
    gap:8px;
    color:#5f6e63;
    font-size:13px;
    line-height:1.5;
}

.produto-produtor{
    margin:0 0 9px;
}

.produto-origem{
    margin:0;
}

.produto-produtor-icone,
.produto-origem-icone{
    flex:0 0 auto;
    margin-top:1px;
}

.produto-produtor strong{
    color:#17351d;
}

.produto-origem-label{
    color:#748078;
    font-weight:700;
}


/*
| Rodapé sempre alinhado na base do card
*/
.produto-footer{
    margin-top:auto;
    padding-top:4px;
}


/*
| Status neutro para valores não padronizados ou sem informação.
*/
.status.consultar{
    background:#eef2ef;
    color:#59665c;
}

.status.consultar .status-indicador{
    background:#8a968c;
}


/*
| Melhor leitura dos selos quando há destaque + categoria.
*/
.produto-badges{
    flex-wrap:wrap;
}

.badge-card{
    position:static;
}

.produto-badges .badge-card{
    box-shadow:0 6px 15px rgba(0,0,0,.10);
}


/*
| Home: quatro cards equilibrados em desktop.
*/
.home-page .products .products-grid{
    align-items:stretch;
}

@media(min-width:1024px){

    .home-page .products .products-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:22px;
    }

    .home-page .products .produto-thumb{
        height:220px;
    }

    .home-page .products .produto-body{
        padding:18px;
    }

    .home-page .products .produto-titulo{
        font-size:18px;
    }

    .home-page .products .produto-preco-valor{
        font-size:19px;
    }

}


/*
| Tablet
*/
@media(min-width:601px) and (max-width:1023px){

    .home-page .products .products-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


/*
| Celular
*/
@media(max-width:600px){

    .produto-thumb{
        height:230px;
    }

    .produto-preco-imagem{
        right:12px;
        bottom:12px;
        padding:9px 12px;
    }

    .produto-preco-valor{
        font-size:19px;
    }

    .produto-footer{
        align-items:flex-start;
        flex-direction:column;
    }

}


/* ==========================================================================
   PRODUTO CARD PREMIUM 5.0 — ACABAMENTO DE LANÇAMENTO
   ========================================================================== */

.produto-card{
    border-color:rgba(23,53,29,.08);
    box-shadow:0 14px 34px rgba(23,53,29,.08);
}

.produto-card:hover,
.produto-card:focus-within{
    transform:translateY(-8px);
    border-color:rgba(46,125,50,.20);
    box-shadow:0 26px 56px rgba(23,53,29,.15);
}

.produto-link:focus-visible{
    outline:3px solid rgba(46,125,50,.30);
    outline-offset:-3px;
}

.produto-thumb::after{
    content:"";
    position:absolute;
    inset:48% 0 0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(
        180deg,
        transparent,
        rgba(10,30,15,.20)
    );
}

.produto-preco-imagem,
.produto-badges{
    z-index:5;
}

.produto-preco-imagem{
    border:1px solid rgba(255,255,255,.65);
    backdrop-filter:blur(9px);
    -webkit-backdrop-filter:blur(9px);
}

.produto-produtor,
.produto-origem{
    min-height:22px;
}

.produto-ver-mais{
    min-height:38px;
    padding:8px 12px;
    border-radius:10px;
    background:#f3f8f3;
}

.produto-card:hover .produto-ver-mais,
.produto-card:focus-within .produto-ver-mais{
    background:#2e7d32;
    color:#fff;
}

.home-page .products .section-button{
    display:flex;
    justify-content:center;
    margin-top:34px;
}

.home-page .products .section-button .btn{
    min-width:220px;
    text-align:center;
}

@media(max-width:600px){
    .produto-ver-mais{
        width:100%;
        justify-content:center;
    }
}