* {
	box-sizing: border-box;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f4f4f4;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

h2 {
	color: #333;
	text-align: center;
	margin-top: 0;
}

/* Header e Navbar */
header {
	background-color: #333;
	color: white;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: orbitron;
	font-size: 20px;
	flex-wrap: wrap;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	width: 150px;
	margin-right: 15px;
}

.title {
	font-size: 2em;
	font-weight: bold;
}

.navbar {
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	background-color: #222;
	padding: 10px;
}

.navbar a {
	font-size: 1em;
	color: white;
	padding: 14px 16px;
	text-decoration: none;
	margin: 0 15px;
}

.dropdown {
	position: relative;
}

.dropdown .dropbtn {
	font-size: 16px;
	border: none;
	outline: none;
	color: white;
	padding: 14px 16px;
	background-color: inherit;
	font-family: inherit;
	margin: 0;
}

.navbar a:hover, .dropdown:hover .dropbtn {
	background-color: white;
	color: #333;
	text-decoration: underline;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

.dropdown-content a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}

.dropdown-content a:hover {
	background-color: #ddd;
}

.dropdown:hover .dropdown-content {
	display: block;
}

/* Catálogo */
.catalog {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
	padding: 0 10px;
	flex: 1;
	width: 100%;
}

.product-card {
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 15px;
	text-align: center;
	box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
	transition: all 0.2s ease-in-out;
}

.product-card h4 {
	font-size: 1.2em;
	margin: 10px 0;
}

.product-card p {
	font-size: 1em;
	margin: 10px 0;
}

.product-card a {
	text-decoration: none;
	color: inherit;
}

.product-card button {
	padding: 10px 15px;
	margin-top: 10px;
	background-color: #333;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 1em;
	border-radius: 4px;
}

.product-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transform: scale(1.02);
}

.product-card.esgotado {
	opacity: 0.5;
	position: relative;
}

.botao-esgotado {
	background-color: #333;
	color: white;
	cursor: pointer;
	border: none;
	padding: 10px 15px;
	margin-top: 10px;
	font-size: 1em;
	border-radius: 4px;
}

.product-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 8px;
}

.price {
    font-size: 1.4em;
    font-weight: 700;
    color: #e63946; /* vermelho para chamar atenção */
    margin: 10px 0 5px 0;
}

.brand {
    font-size: 1em;
    font-weight: 600;
    color: #555; /* tom neutro para a marca */
    margin-bottom: 10px;
}


.popup {
	display: none;
	position: fixed;
	z-index: 100;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.5);
}

.popup-conteudo {
	background-color: #fff;
	margin: 15% auto;
	padding: 20px;
	width: 300px;
	border-radius: 10px;
	text-align: center;
}

.fechar {
	color: #aaa;
	float: right;
	font-size: 28px;
	cursor: pointer;
}

#quantidadeCompra {
	width: 60px;
	text-align: center;
	font-size: 16px;
}

/* Página de Detalhamento */
#productDetailSection {
	padding: 20px;
	max-width: 900px;
	margin: 0 auto;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Botão Voltar */
#productDetailSection .back-button {
	align-self: center;
	margin-bottom: 20px;
	padding: 8px 16px;
	font-size: 18px;
	font-weight: 600;
	background-color: #333;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#productDetailSection .back-button:hover {
	background-color: #555;
}

.product-title {
	width: 100%;
	text-align: center;
	font-size: 24px;
	margin-bottom: 20px;
	color: #333;
	font-family: 'Orbitron', sans-serif;
}

/* Layout dos detalhes */
.detail-content {
	display: flex;
	gap: 30px;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
}

.product-detail-image {
	width: 300px;
	height: 300px;
	object-fit: contain;
	background-color: #fff;
	border-radius: 10px;
	padding: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	flex-shrink: 0;
}

.product-info {
	flex: 1;
	min-width: 250px;
	color: #333;
}

/* Detalhes internos */
.info-item {
	margin-bottom: 10px;
	font-size: 16px;
}

.info-item i {
	font-size: 1.5em;
	color: #333;
}

.info-item strong {
	font-weight: bold;
}

/* Status */
.status {
	padding: 5px 10px;
	border-radius: 5px;
	font-weight: bold;
	color: white;
}

.in-stock {
	background-color: #28a745;
}

.out-of-stock {
	background-color: #dc3545;
}

/* Rodapé */
footer {
	text-align: center;
	background-color: #333;
	color: white;
	padding: 10px;
	width: 100%;
	margin-top: auto;
}

/* Responsividade */
@media (max-width: 768px) {
	.catalog {
		grid-template-columns: 1fr 1fr;
	}

	header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.logo img {
		width: 120px;
		margin-bottom: 10px;
	}

	.title {
		font-size: 1.8em;
	}

	.navbar a {
		font-size: 0.9em;
		margin: 0 8px;
	}

	.detail-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.product-detail-image {
		width: 80%;
		max-width: 300px;
		height: auto;
	}

	.product-info {
		width: 100%;
	}

	.info-item {
		font-size: 15px;
	}
}

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