/* Reset básico para garantir consistência */
body, h1, h2, h3, p, table, form, input, select, textarea {
    margin: 0;
    padding: 0;
    box-sizing: border-box;   
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #1a222c;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}


h1 {
    margin: 0;
    
}

h2{
    font-size: 18px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.category {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    
}

.category h2 {
    margin-bottom: 10px;
    color: #333;
    
}

.product {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 1rem 0;
    padding: 1rem;
    text-align: center;
}
.product h3{
    color: #585757; 
    margin-top: 5px;
    font-size: 14px;
}
.product img {
    max-width: 100%;
    height: auto;
}

.product h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;   
    
}

.product p {
    color: #555;
    font-size: 1rem;
    margin: 0.5rem 0;
    
}

/* Estilo para o link 'Comprar' */
.buy-link {
    display: inline-flex;
    align-items: center;
    background-color: #ff9900; /* Laranja */
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 23px;
    margin-top: 10px; /* Adiciona espaço entre botões */
    margin-bottom: 35px;
}

.buy-link:hover {
    background-color: #cc7a00;
    transform: scale(1.05);
}

.buy-link img {
    margin-right: 8px;
}
/* Estilo para o link 'Ver mais detalhes' */
.details-link {
    display: inline-block;
    background-color: #007bff; /* Azul */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 16px;
    margin-top: 20px;
}

.details-link:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.product a:hover {
    background-color: #e68a00;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
    
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 1rem;
}

form input, form textarea {
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    background-color: #333;
    color: #fff;
    padding: 0.5rem;
    margin-top: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

form button:hover {
    background-color: #555;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

td img {
    max-width: 100px;
}


/* Estilo para categorias */
.categories {
    margin-bottom: 20px;
}

.category-container {
    display: flex;
    overflow-x: auto; /* Adiciona rolagem horizontal se necessário */
    padding: 10px 0;
    background-color: #f4f4f4;
    border-radius: 8px;
}

.category-item {
    background-color: #ff9900;
    color: #fff;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap; /* Impede quebra de linha dentro do item */
    text-align: center;
    flex: 0 0 auto; /* Garante que os itens não encolham */
    transition: background-color 0.3s;
    font-size: 12px;
}

.category-item:hover {
    background-color: #0056b3;
}

.category-section h2{
    background-color: #dad9d9;
    border-radius: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 5px;
    color: #3d3c3c;
    font-size: 14px;

}

/* Estilo do formulário */
.form-section form {
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-section label {
    display: block;
    margin: 0.5rem 0 0.2rem;
}

.form-section input[type="text"],
.form-section textarea,
.form-section select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-section button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.form-section button:hover {
    background: #555;
}

/* Estilo da tabela */
.products-section table {
    width: 100%;
    border-collapse: collapse;
}

.products-section th,
.products-section td {
    padding: 0.5rem;
    border: 1px solid #ccc;
}

.products-section th {
    background: #333;
    color: #fff;
    
}

.products-section td img.product-image {
    max-width: 100px;
    height: auto;
}

.products-section a {   
    text-decoration: none;
}

.products-section a:hover {
    text-decoration: underline;
    
}

.edit-link {
    color: #ffffff;    
    background-color: #19a507;
    text-decoration: none;
    border-radius: 5px;
    padding: 5px;   
    display: block;
    margin-bottom: 0.6rem; /* Ajuste o valor conforme necessário */
   
}

.edit-link:hover {
    text-decoration: underline;
    
    
}

.delete-link {
    color: #f8f8f8;
    background-color: #c50e0e;
    text-decoration: none;
    border-radius: 5px;
    padding: 5px;
   
   
}

.delete-link:hover {
    text-decoration: underline;
}

/* Estilo geral do footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed; /* Fixa o footer no fundo da página */
    width: 100%; /* Garante que o footer ocupe toda a largura da página */
    bottom: 0; /* Fixa o footer no fundo */
    left: 0;
    z-index: 1000; /* Garante que o footer esteja acima de outros elementos */
}

footer p {
    margin: 0;
}

.product-image-container {
    position: relative;
    display: inline-block;
}

.price-tag {
    position: absolute;
    top: -7px;  /* Ajuste conforme necessário */
    right: -5px;  /* Ajuste conforme necessário */
    background-color: #ff0000;  /* Cor de fundo do balão */
    color: #ffffff;  /* Cor do texto */
    padding: 10px 10px;
    border-radius: 50px;  /* Deixa o balão com bordas arredondadas */
    font-size: 18px;
    font-weight: bold;
    z-index: 10;  /* Garante que o preço esteja sobre a imagem */
}
