
/* =====================================
   HEADER
===================================== */

.header{
    position:sticky;
    top:0;
    z-index:1000;

    background:rgba(255,255,255,.96);
    backdrop-filter:blur(10px);

    border-bottom:1px solid rgba(0,0,0,.05);
}

.header.scrolled{
    box-shadow:0 5px 25px rgba(0,0,0,.08);
}

.header .container{
    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo img{
    height:70px;
}

/* =====================================
   MENU
===================================== */

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

.navbar a{
    color:#153A7B;
    font-weight:500;
    transition:.3s;
    position:relative;
}

.navbar a:hover{
    color:#D4AF37;
}

.navbar a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-5px;

    width:0;
    height:2px;

    background:#D4AF37;
    transition:.3s;
}

.navbar a:hover::after{
    width:100%;
}

.menu-btn{
    display:none;
    border:none;
    background:none;
    cursor:pointer;

    font-size:28px;
    color:#153A7B;
}

/* =========================
   PÁGINA CATEGORIA
========================= */

.categoria-page{
    padding:40px 0 80px;
    min-height:70vh;
    background:#f8f9fc;
}

.categoria-page h1{
    text-align:center;
    font-size:48px;
    color:#153A7B;
    margin-bottom:35px;
    font-weight:600;
}

.categorias-topo{

    display:flex;
    flex-wrap:wrap;
    justify-content:center;

    gap:15px;

    margin:30px 0 40px;
}

.categorias-topo a{

    background:#153A7B;
    color:#fff;

    padding:14px 24px;

    border-radius:12px;

    font-size:15px;
    font-weight:600;

    transition:.3s;

    box-shadow:
    0 8px 20px rgba(21,58,123,.15);
}

.categorias-topo a:hover{

    transform:translateY(-3px);

    background:#0f2c60;
}
/* =========================
   SUBCATEGORIAS
========================= */
/* =========================
   SUBCATEGORIAS
========================= */

.subcategorias{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;

    margin:35px 0 50px;
}

.subcategorias button{

    border:none;

    background:#fff;

    color:#153A7B;

    padding:12px 20px;

    border-radius:50px;

    cursor:pointer;

    font-size:14px;
    font-weight:500;

    border:1px solid #dfe4ea;

    transition:.3s ease;

    box-shadow:
    0 3px 10px rgba(0,0,0,.04);
}

.subcategorias button:hover{

    background:#153A7B;
    color:#fff;

    transform:translateY(-2px);
}

.subcategoria-btn.active{

    background:#153A7B;

    color:#fff;

    border-color:#153A7B;

    box-shadow:
    0 8px 20px rgba(21,58,123,.25);
}
/* =========================
   BUSCA
========================= */

.busca-produtos{

    max-width:600px;

    margin:0 auto 35px;

    position:relative;
}

.busca-produtos i{

    position:absolute;

    left:18px;
    top:50%;

    transform:translateY(-50%);

    color:#999;
}

.busca-produtos input{

    width:100%;

    height:55px;

    border:none;

    border-radius:14px;

    padding:0 20px 0 50px;

    background:white;

    font-size:15px;

    box-shadow:
    0 8px 25px rgba(0,0,0,.06);

    transition:.3s;
}

.busca-produtos input:focus{

    outline:none;

    box-shadow:
    0 12px 30px rgba(21,58,123,.12);
}

/* =========================
   PAGINAÇÃO
========================= */

.paginacao{

    display:flex;
    justify-content:center;
    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    margin-top:50px;
}

.paginacao button{

    min-width:42px;
    height:42px;

    border:none;

    border-radius:12px;

    background:#fff;

    color:#153A7B;

    cursor:pointer;

    font-weight:600;

    border:1px solid #e5e5e5;

    transition:.3s ease;

    box-shadow:
    0 3px 10px rgba(0,0,0,.04);
}

.paginacao button:hover{

    background:#153A7B;
    color:#fff;

    transform:translateY(-2px);
}

.paginacao button.active{

    background:#153A7B;
    color:#fff;

    border-color:#153A7B;

    box-shadow:
    0 8px 20px rgba(21,58,123,.25);
}

.paginacao button:disabled{

    opacity:.4;

    cursor:not-allowed;

    transform:none;
}
/* =========================
   PRODUTOS
========================= */

.products-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(260px,1fr));

    gap:25px;
}

/* =========================
   CARD PRODUTO
========================= */

.product-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:
    0 8px 25px rgba(0,0,0,.06);

    transition:.35s;
}

.product-card:hover{

    transform:translateY(-8px);

    box-shadow:
    0 20px 40px rgba(0,0,0,.10);
}

/* =========================
   IMAGEM
========================= */

.product-image{

    width:100%;

    aspect-ratio:1/1;

    overflow:hidden;

    background:#f3f3f3;
}

.product-image img{

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    transition:
    transform .8s ease;
}

.product-card:hover .product-image img{

    transform:scale(1.08);
}

/* =========================
   CONTEÚDO
========================= */

.product-card h3{

    padding:18px 15px 10px;

    text-align:center;

    font-size:16px;

    color:#333;

    min-height:70px;

    display:flex;
    align-items:center;
    justify-content:center;
}

/* =========================
   BOTÃO
========================= */

.btn-product{

    width:calc(100% - 24px);

    margin:0 12px 12px;

    border:none;

    background:#25D366;

    color:#fff;

    padding:13px;

    border-radius:12px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;
}

.btn-product:hover{

    background:#20b859;

    transform:translateY(-2px);
}

/* =========================
   PAGINAÇÃO
========================= */

.paginacao{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    margin-top:50px;
}

.page-btn{

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    background:#fff;

    cursor:pointer;

    font-weight:600;

    box-shadow:
    0 3px 10px rgba(0,0,0,.08);

    transition:.3s;
}

.page-btn:hover{
    transform:translateY(-2px);
}

.page-btn.active{

    background:#153A7B;

    color:#fff;
}

/* =========================
   TABLET
========================= */

@media(max-width:992px){

    .categoria-page h1{
        font-size:40px;
    }

    .products-grid{

        grid-template-columns:
        repeat(3,1fr);
    }
}

/* =========================
   CELULAR
========================= */

@media(max-width:768px){

    .categoria-page{
        padding:30px 0 60px;
    }

    .categoria-page h1{

        font-size:32px;

        margin-bottom:25px;
    }

    /* categorias roláveis */

    .categorias-topo{

        flex-wrap:nowrap;

        overflow-x:auto;

        justify-content:flex-start;

        padding-bottom:10px;

        scrollbar-width:none;
    }

    .categorias-topo::-webkit-scrollbar{
        display:none;
    }

    .categorias-topo a{
        white-space:nowrap;
    }

    /* subcategorias roláveis */

    .subcategorias{

        flex-wrap:nowrap;

        overflow-x:auto;

        justify-content:flex-start;

        padding-bottom:10px;

        scrollbar-width:none;
    }

    .subcategorias::-webkit-scrollbar{
        display:none;
    }

    .subcategoria-btn{
        white-space:nowrap;
    }

    /* 2 produtos por linha */

    .products-grid{

        grid-template-columns:
        repeat(2,1fr);

        gap:12px;
    }

    .product-card h3{

        font-size:13px;

        min-height:55px;

        padding:12px 8px;
    }

    .btn-product{

        font-size:12px;

        padding:10px;
    }
}

@media(max-width:768px){
    .menu-btn{
        display:block;
    }

    .navbar{
        position:fixed;

        top:90px;
        right:-100%;

        width:280px;
        height:calc(100vh - 90px);

        background:#fff;

        flex-direction:column;
        align-items:flex-start;

        padding:30px;

        transition:.3s;

        box-shadow:
        -10px 0 30px rgba(0,0,0,.08);
    }

    .navbar.active{
        right:0;
    }

    .hero-container{
        flex-direction:column;
        text-align:center;
    }

    .hero h1{
        font-size:42px;
    }

    .hero-buttons{
        display:flex;
        align-items:center;
        gap:15px;
        flex-wrap:wrap;
    }

    .section-title h2{
        font-size:38px;
    }

    .services-grid{
        grid-template-columns:repeat(3,1fr);
        gap:10px;
    }

    .service-card{
        padding:15px 8px;
        min-height:120px;
    }

    .service-card i{
        font-size:24px;
        margin-bottom:10px;
    }

    .service-card h3{
        font-size:12px;
    }

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

    .cta h2{
        font-size:30px;
    }
    
    .footer-grid, .footer-social,.footer-col, .footer-logo{
        text-align:center;
        justify-content:center;
    }

    .contact-item{
        justify-content:center;
    }

    .subcategorias{

        justify-content:flex-start;

        flex-wrap:nowrap;

        overflow-x:auto;

        padding-bottom:10px;

        scrollbar-width:none;
    }

    .subcategorias::-webkit-scrollbar{
        display:none;
    }

    .subcategorias button{

        white-space:nowrap;

        flex-shrink:0;

        font-size:13px;

        padding:10px 16px;
    }

    .paginacao{

        gap:6px;
    }

    .paginacao button{

        min-width:38px;
        height:38px;

        font-size:13px;
    }
}

/* =========================
   CELULARES PEQUENOS
========================= */

@media(max-width:420px){

    .products-grid{

        grid-template-columns:
        repeat(2,1fr);

        gap:10px;
    }

    .product-card h3{
        font-size:12px;
    }

    .btn-product{
        font-size:11px;
    }
}

/* =====================================
   FOOTER
===================================== */

footer{
    background:#111;
    color:#fff;

    padding:60px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:40px;
}

.footer-logo{
    width:180px;
    margin:0 auto 15px;
}

.footer-col h3{
    color:#D4AF37;
    margin-bottom:15px;
}

.footer-col p{
    color:#ccc;
    line-height:1.8;
}

.contact-item{
    display:flex;
    gap:12px;

    margin-bottom:15px;
}

.contact-item i{
    color:#D4AF37;
    margin-top:5px;
}

.footer-social{
    display:flex;
    gap:12px;

    margin-top:15px;
}

.footer-social a{
    width:42px;
    height:42px;

    border-radius:50%;

    background:#222;
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.3s;
}

.footer-social a:hover{
    background:#D4AF37;
}

.footer-bottom{
    margin-top:40px;
    padding-top:20px;

    border-top:1px solid rgba(255,255,255,.1);

    text-align:center;
}

.footer-bottom p{
    color:#999;
    font-size:14px;
}
