html,body {
	height: 100%;
}

#cabeca_shop{
	width: 100%;
	height: 15%;
	background-image: linear-gradient(to right, #D3D3D3 0%, #BEBEBE 100%);
	
}
#logo{
	width:117px;
	height:40px;
	margin-left:20px;
	background-image: url("../img/logo_pnunes.png");
	background-size: contain;
	background-repeat: no-repeat;
	transform: translateY(65%);
	border-radius: 6px;
}
#div_cabeca{
	width: 50%;
	height: 80%;
	margin-left:26%;
	margin-top: -10px;
	text-align: center;
	color:#000;
	font-family: arial;
	font-size:35px;
	font-weight:700;
}
.geral_produto {
    width: 100%;
    display: grid;
    /*grid-template-columns: repeat(4, 1fr);*/
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 5px;
    padding: 5px;
}

/* estilo da div produto*/
.div_produto{
	width:310px;
	height:280px;
	margin-left:10px;
	margin-top: 20px;
    border: 1px solid #000;
    background-color: #d6f3d6;
	border-radius:8px;
    margin-bottom: 15px;
    display: grid;
}
.nome_produto{
    width: 300px;
    height: 25px;
    margin-top: 5px;
    margin-left: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-align: center;
}
.detalhe_produto{
    width: 300px;
    height: 30px;
    margin-top: 5px;
	margin-left: 10px;
	transform: translateY(10%); 
	color:#000;
	font-family: arial;
	font-size:14px;
	text-align: center;
}
.img_produto{
    width: 150px;
    height: 120px;
    margin-left: 80px;
    margin-top: 15px;
    background-repeat: no-repeat;
    background-size: cover;
}
.img_produto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}   

.link_produto{
    width: 250px;
    height: 25px;
	color:#fff;
    background-color: rgb(234, 48, 28);
    border-radius: 7px;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
	font-family: arial;
	font-size:14px;
    font-weight: 700;
	margin-left: 30px;
    line-height: 25px;
    margin-top: 25px;
}

/* Estilo para o rodape da pagina*/

#rodape{
	width: 100%;
	height:5%;
	background-color: #333;
	color:#FFF;
	margin-bottom: 1%;
	text-align: center;
	font-family: arial;
	font-size: 13px;
	font-style: normal;
    padding-top: 10px;
}

#rodape address:last-child{
	margin-bottom: 0;
}

/* ===============================
   ESTILO DAS ABAS (CATEGORIAS)
   =============================== */

.abas{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.aba{
    padding: 8px 18px;
    border: none;
    background-color: #bcbcbc;
    color: #000;
    font-family: arial;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aba:hover{
    background-color: #9e9e9e;
}

.aba.ativa{
    background-color: #2e7d32; /* verde */
    color: #fff;
}

/* Produtos escondidos */
.produto{
    display: none;
}


/*Estilo para midia menor tablet*/
@media (max-width: 768px) {

    html,body {
	    height: 100%;
    }

    #cabeca_shop{
        width: 100%;
        height: 12%;
        background-image: linear-gradient(to right, #D3D3D3 0%, #BEBEBE 100%);
        
    }
    #logo{
        width:90px;
        height:30px;
        margin-left:20px;
        background-image: url("../img/logo_pnunes.png");
        background-size: contain;
        background-repeat: no-repeat;
        transform: translateY(65%);
        border-radius: 6px;
        border: 1px solid #000;
    }
    #div_cabeca{
        width: 50%;
        height: 80%;
        margin-left:26%;
        margin-top: -10px;
        text-align: center;
        color:#000;
        font-family: arial;
        font-size:23px;
        font-weight:700;
    }
    .geral_produto{
		width:100%;
		height: 100%;
	}
	/* estilo da div sobre curso html*/
	
	.div_produto{
        height: auto;
        padding: 8px;
        display: flex;
        flex-direction: column;
        /*width:150px;
        height:200px;
        margin-left:10px;
        margin-top: 5px;
        border: 1px solid #000;
        background-color: #d6f3d6;
        border-radius:8px;
        margin-bottom: 5px;
        display: grid;
        grid-template-columns: 1fr;*/
        
    }
    .nome_produto{
        width: 145px;
        height: 25px;
        margin-top: 5px;
        margin-left: 5px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: 700;
        color: #000;
        text-align: center;
    }
    .detalhe_produto{
        width: 145px;
        height: 25px;
        margin-top: 5px;
        margin-left: 5px;
        transform: translateY(10%); 
        color:#000;
        font-family: arial;
        font-size:11px;
        text-align: center;
    }
    .img_produto{
        width: 90px;
        height: 80px;
        margin-left: 40px;
        margin-top: 15px;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .img_produto img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }   

    .link_produto{
        width: 80px;
        height: 25px;
        color:#fff;
        background-color: rgb(234, 48, 28);
        border-radius: 7px;
        text-align: center;
        text-decoration: none !important;
        font-family: arial;
        font-size:13px;
        font-weight: 700;
        margin-left: 35px;
        line-height: 25px;
        margin-top: 5px;
    }


    /* Estilo para o rodape da pagina*/

    #rodape{
        width: 100%;
        height:5%;
        background-color: #333;
        color:#FFF;
        margin-bottom: 1%;
        text-align: center;
        font-family: arial;
        font-size: 13px;
        font-style: normal;
    }

    #rodape address:last-child{
        margin-bottom: 0;
    }
}

/* ===============================
   ESTILO PARA CELULAR (≤ 480px)
   =============================== */
@media (max-width: 480px) {

    html, body {
        height: auto;
    }

    /* ---------- Cabeçalho ---------- */
    #cabeca_shop{
        width: 100%;
        height: 50px;
        background-image: linear-gradient(to right, #D3D3D3 0%, #BEBEBE 100%);
    }

    #logo{
        width: 55px;
        height: 18px;
        margin-left: 20px;
        background-image: url("../img/logo_pnunes.png");
        background-size: cover;
        background-repeat: no-repeat;
        /*transform: translateY(65%);*/
        border-radius: 6px;
    }

    #div_cabeca{
        width: 50%;
        margin-left: 36%;
        margin-top: -6px;
        text-align: center;
        font-family: arial;
        font-size: 16px;
        font-weight: 700;
    }

    /* GRID */
    .geral_produto{
        grid-template-columns: 1fr;
        justify-items: center;
    }

    /* CARD */
    .div_produto{
        width: 80% !important;   /* ocupa a coluna, não mais */
        min-height: 150px;
        margin: 0 !important;     /* remove margens herdadas */
        height: auto;
        display: flex;
        flex-direction: column;
        border-radius: 4px;
        box-sizing: border-box;   /* ESSENCIAL */
        justify-items: center;
    }

    /* TEXTO */
    .nome_produto{
        width: 98%;
        font-size: 10px;
        text-align: center;
    }

    .detalhe_produto{
        width: 98%;
        font-size: 10px;
        line-height: 1.2;
        max-height: 48px;          /* limita crescimento */
        overflow: hidden;
        text-align: center;
    }

    /* IMAGEM */
    .img_produto{
        width: 100%;
        height: 60px;          /* reserva espaço real */
        margin: 6px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .img_produto img{
        max-height: 50px;
        width: auto;
        object-fit: contain;
    }

    /* BOTÃO */
    .link_produto{
        margin: 0px auto 0;
        padding: 0px 0px;
        font-size: 11px;
        border-radius: 4px;
        text-align: center;
    }

    /* ---------- Rodapé ---------- */
    #rodape{
        width: 100%;
        background-color: #333;
        color: #fff;
        text-align: center;
        font-family: arial;
        font-size: 10px;
        padding: 6px 0;
    }

    #rodape address{
        margin: 0;
    }
}
