/* =====================================
	NeoShop — Estilos globais (azul/cinza)
	Paleta: azul #2196f3, cinza claro #f5f5f5, cinza escuro #1e1e1e
	Tipografia: Poppins
===================================== */
:root {
	--blue: #2196f3;
	--blue-dark: #0d47a1;
	--light: #f5f5f5;
	--dark: #1e1e1e;
	--white: #ffffff;
	--shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
	color: var(--dark);
	background: var(--light);
}

img {
	max-width: 100%;
	display: block;
	border-radius: 12px;
}

a {
	text-decoration: none;
	color: var(--blue);
}

.container {
	width: min(1200px, 92%);
	margin: 0 auto;
}

/* Navbar */
.navbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	box-shadow: var(--shadow);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
}

.logo {
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--blue-dark);
}

.search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	max-width: 520px;
}

.search input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	outline: none;
	transition: box-shadow .2s ease;
}

.search input:focus {
	box-shadow: 0 0 0 3px rgba(33, 150, 243, .2);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nav-links a {
	padding: 8px 12px;
	border-radius: 10px;
	color: var(--dark);
}

.nav-links a.active,
.nav-links a:hover {
	background: var(--light);
	color: var(--blue-dark);
}

/* Hero */
.hero {
	background: linear-gradient(90deg, var(--blue), var(--blue-dark));
	color: var(--white);
	padding: 72px 0;
	margin-bottom: 26px;
}

.hero h1 {
	font-size: clamp(1.6rem, 2.5vw, 2.6rem);
	margin: 0 0 8px 0;
}

.hero p {
	margin: 0 0 20px 0;
	opacity: .9;
}

.btn-hero {
	background: var(--white);
	color: var(--blue-dark);
}

/* Botões */
.btn {
	background: var(--blue);
	color: var(--white);
	border: none;
	padding: 10px 14px;
	border-radius: 10px;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
	box-shadow: 0 6px 16px rgba(33, 150, 243, .25);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(13, 71, 161, .35);
}

.btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.btn-outline {
	background: var(--white);
	color: var(--blue-dark);
	border: 1px solid #dcdcdc;
	box-shadow: none;
}

.btn-lg {
	padding: 12px 18px;
	font-weight: 600;
}

/* Seções */
.section-title {
	margin: 14px 0 10px 0;
	font-size: 1.4rem;
}

/* Grid de produtos */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.card {
	background: var(--white);
	border-radius: 14px;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
	overflow: hidden;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.card-body {
	padding: 12px;
}

.card-title {
	margin: 0 0 6px 0;
	font-weight: 600;
}

.price {
	margin: 0 0 10px 0;
	color: var(--blue-dark);
	font-weight: 600;
}

.price-lg {
	font-size: 1.6rem;
}

.card-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Produto (detalhe) */
.product {
	padding: 18px 0 36px 0;
}

.breadcrumbs {
	font-size: .9rem;
	margin: 6px 0 14px 0;
}

.product-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 24px;
}

.product-media img {
	border-radius: 14px;
}

.product-info .desc {
	margin: 10px 0 16px 0;
	line-height: 1.6;
}

.product-info .actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 16px;
}

.features {
	padding-left: 18px;
	margin: 8px 0 0 0;
}

/* Tabelas (carrinho/histórico base) */
.table-wrap {
	background: var(--white);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.table {
	width: 100%;
	border-collapse: collapse;
}

.table th,
.table td {
	padding: 14px 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.table thead th {
	background: #fafafa;
	font-weight: 600;
}

.table tfoot td {
	background: #fafafa;
}

.right {
	text-align: right;
}

/* Frete (usado também em carrinho) */
.frete {
	margin: 16px 0;
	background: var(--white);
	padding: 14px;
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.frete-row {
	display: flex;
	gap: 10px;
	margin-top: 8px;
}

.frete-resultado {
	margin: 10px 0 0 0;
	font-weight: 500;
}

/* Abas (login/cadastro) */
.auth h1 {
	margin: 14px 0 10px 0;
}

.tabs {
	display: inline-flex;
	gap: 8px;
	margin: 10px 0 14px 0;
}

.tab-btn {
	background: var(--white);
	color: var(--dark);
	border: 1px solid #ddd;
	padding: 10px 14px;
	border-radius: 10px;
	cursor: pointer;
}

.tab-btn.active {
	background: var(--blue);
	color: var(--white);
	border-color: var(--blue);
}

.tab-panel {
	display: none;
}

.tab-panel.active {
	display: block;
}

.form {
	background: var(--white);
	padding: 16px;
	border-radius: 14px;
	box-shadow: var(--shadow);
	display: grid;
	gap: 10px;
	max-width: 580px;
}

.form input {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #e3e3e3;
	outline: none;
}

/* Badges */
.badge {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: .85rem;
	color: var(--white);
}

.badge.success {
	background: #2ecc71;
}

.badge.warn {
	background: #f39c12;
}

.badge.info {
	background: #3498db;
}

/* Footer */
.footer {
	margin-top: 28px;
	background: var(--white);
	box-shadow: var(--shadow);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	padding: 18px 0;
}

.copy {
	margin: 0;
	padding: 12px 0 16px 0;
	text-align: center;
	font-size: .9rem;
	color: #666;
}

/* Responsividade */
@media (max-width: 900px) {
	.product-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.nav-inner {
		flex-wrap: wrap;
	}

	.search {
		order: 3;
		width: 100%;
	}

	.nav-links {
		width: 100%;
		justify-content: space-between;
	}
}

/* ======================================================
   🔵🔵 NOVO — CSS CARRINHO
====================================================== */
.cart {
	margin-top: 30px;
}

.cart h1 {
	margin-bottom: 18px;
	font-weight: 600;
}

#cart-container {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cart-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 15px;
	background: var(--white);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.cart-item img {
	width: 95px;
	height: 95px;
	object-fit: cover;
	border-radius: 12px;
}

.cart-item h4 {
	font-size: 1rem;
	margin: 0 0 5px 0;
	font-weight: 600;
}

.cart-item p {
	margin: 0;
	font-size: 0.9rem;
	color: #444;
}

.cart-item .remove {
	background: #ff4d4d;
	padding: 7px 12px;
	border-radius: 8px;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 0.85rem;
	margin-top: 6px;
	transition: 0.2s;
}

.cart-item .remove:hover {
	background: #d90000;
}

/* Caixa total */
.cart-total {
	margin-top: 20px;
	padding: 18px;
	background: var(--white);
	border-radius: 14px;
	box-shadow: var(--shadow);
	font-size: 1.1rem;
	font-weight: 600;
}

/* Botões finais */
.cart-actions {
	margin-top: 22px;
	display: flex;
	gap: 12px;
}

.cart-actions .btn {
	flex: 1;
	text-align: center;
	padding: 14px;
	border-radius: 12px;
}

.cart-actions .btn-outline {
	background: transparent;
	border: 2px solid var(--blue-dark);
	color: var(--blue-dark);
}

/* Responsivo carrinho */
@media (max-width: 720px) {
	.cart-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.cart-item img {
		width: 100%;
		height: auto;
	}
}

/* ======================================================
   🔵🔵 NOVO — CSS HISTÓRICO
====================================================== */

#history-container {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 20px;
}

.history-item {
	background: var(--white);
	padding: 18px;
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.history-item h3 {
	margin: 0 0 6px 0;
	font-size: 1rem;
	font-weight: 600;
}

.history-item p {
	margin: 2px 0;
	color: #444;
	font-size: 0.9rem;
}