/* ==========================================================================
   GLOBALTECH - FRAMEWORK & ESTILOS GERAIS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

* {
	margin: 0;
	padding: 0;
	font-family: 'Poppins', sans-serif;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

/* REMOVE A BORDA PRETA DE SELECIONADO DO NAVEGADOR EM QUALQUER LINK */
a:focus,
a:active,
a:visited {
	outline: none !important;
	box-shadow: none !important;
}

ul {
	list-style-type: none;
}

a {
	text-decoration: none;
}

p {
	color: #555;
	line-height: 23px;
	margin: 7px 0;
}

small {
	color: #555;
}

.lastprice {
	text-decoration: line-through;
	color: #888;
	font-size: 13px;
	margin-left: 5px;
}

.rating .fa,
.rating .fas,
.rating .fa-star,
.rating .fa-star-half-alt {
	color: #0066cc !important;
}

.title {
	text-align: center;
	margin: 60px auto 30px !important;
	position: relative;
	line-height: 1.3;
	color: #555;
	font-size: 28px;
}

.title::after {
	content: '';
	background: #0066cc !important;
	width: 60px;
	height: 4px;
	border-radius: 5px;
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translate(-50%);
}

.row {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
}

.container {
	max-width: 1300px;
	margin: auto;
	padding: 0 25px;
}

.smallContainer {
	max-width: 1080px;
	margin: auto;
	padding: 0 25px;
}

.col-2 {
	flex-basis: 50%;
	min-width: 300px;
}

.col-2 h1 {
	font-size: 46px;
	line-height: 1.2;
	margin: 25px 0;
}

.btn {
	display: inline-block;
	background-color: #0066cc !important;
	color: #fff !important;
	padding: 10px 30px;
	margin: 20px 0;
	border-radius: 30px;
	transition: background .3s;
	font-weight: 500;
}

.btn:hover {
	background: #004499 !important;
}

.header {
	background: radial-gradient(#fff, #e6f2ff) !important;
}

.header .row {
	margin-top: 40px;
}

.navbar {
	display: flex;
	align-items: center;
	padding: 20px;
}

.navbar .logo h2 {
	color: #0066cc;
	font-weight: 800;
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO & MENU
   ========================================================================== */
nav {
	flex: 1;
	text-align: right;
}

nav ul {
	display: inline-flex;
	align-items: center;
	position: relative;
	padding: 15px 0;
}

nav ul li {
	display: inline-block;
	padding: 0 12px;
}

nav ul li a {
	color: #555;
	display: inline-block;
}

nav ul #marker {
	position: absolute;
	height: 4px;
	left: 0;
	bottom: -5px;
	width: 0;
	background: #6461ff;
	border-radius: 4px;
	transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
	pointer-events: none;
}

.col-2 img {
	max-width: 100%;
	padding: 30px 0;
}

.col-3 {
	flex-basis: 30%;
	min-width: 250px;
	margin-bottom: 30px;
}

.col-3 img {
	width: 100%;
	max-width: 340px;
	height: 280px;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
	display: block;
	margin: 0 auto;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.col-3 img:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.categories {
	margin: 50px 0;
}

/* ==========================================================================
   CARD DE PRODUTOS PREMIUM (CORRIGIDO E EQUILIBRADO)
   ========================================================================== */
.col-4 {
	flex-basis: 23%;
	padding: 10px;
	min-width: 200px;
	margin-bottom: 30px;
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.col-4 img {
	width: 100%;
	height: 210px;
	object-fit: contain;
	background: #ffffff;
	padding: 12px;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	display: block;
	margin: 0 auto 12px;
	border: 1px solid #f0f0f5;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.col-4:hover {
	transform: translateY(-5px);
}

.col-4:hover img {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.col-4 h4 {
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: #1d1d1f;
	margin-bottom: 5px;
	padding: 0 8px;
	line-height: 1.4;
}

.col-4 .rating {
	text-align: center;
	margin-bottom: 5px;
}

.col-4 p {
	text-align: center;
	font-weight: 600;
	color: #0066cc;
	font-size: 16px;
}

.col-4 img.img-macbook {
	object-fit: cover !important;
	height: 160px !important;
	padding: 10px !important;
}

/* ==========================================================================
   SEÇÃO DO APPLE WATCH & OFERTAS
   ========================================================================== */
.offer {
	background: radial-gradient(#fff, #f5f5f7) !important;
	margin-top: 60px;
	padding: 40px 0;
}

.col-2 .offer-img {
	padding: 10px;
	max-width: 80%;
	height: auto;
	object-fit: contain;
}

.specs-watch {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
	margin-top: 20px;
}

.spec-item {
	display: flex;
	align-items: center;
	gap: 15px;
	background: #ffffff;
	padding: 12px 20px;
	border-radius: 14px;
	border: 1px solid #e8e8ed;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
	width: fit-content;
	max-width: 100%;
}

.spec-item i {
	font-size: 16px;
	color: #0066cc !important;
	width: 20px;
	text-align: center;
}

.spec-item span {
	font-size: 14px;
	color: #1d1d1f;
}

/* ==========================================================================
   FILTROS DE CATEGORIA
   ========================================================================== */
.controls {
	text-align: center;
	margin: 20px auto 30px;
}

.control-btn {
	display: inline-block;
	padding: 8px 20px;
	margin: 4px;
	border: 2px solid #0066cc;
	background: transparent;
	color: #0066cc;
	font-weight: 600;
	font-size: 12px;
	border-radius: 30px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.control-btn.active,
.control-btn:hover {
	background-color: #0066cc;
	color: #fff;
}

.mix-item {
	transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform, opacity;
}

.mix-item.esconder-filtro {
	opacity: 0 !important;
	transform: scale(0) !important;
	pointer-events: none;
	position: absolute;
}

/* ==========================================================================
   SEÇÃO INTERATIVA 3D (IPHONE 17 PRO MAX)
   ========================================================================== */
.secao-3d {
	background-color: #f5f5f7;
	padding: 80px 0 100px 0 !important;
	/* Respiro expandido na parte inferior */
	color: #1d1d1f;
	overflow: hidden;
}

.container-3d {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 25px;
	flex-wrap: wrap;
}

.canvas-3d-wrapper {
	flex: 1;
	width: 100%;
	height: 600px !important;
	/* Altura ideal do modelo 3D no PC */
	min-height: 550px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

#visualizador-3d {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.detalhes-3d {
	flex: 1;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.detalhes-3d h2 {
	font-size: 30px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #1d1d1f;
	letter-spacing: -0.5px;
}

.pilula {
	background: #e8e8ed;
	color: #1d1d1f;
	padding: 12px 22px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
	width: fit-content;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: background 0.3s ease;
	border: 1px solid #d2d2d7;
}

.pilula i {
	font-size: 12px;
	color: #86868b;
}

.pilula:hover {
	background: #e1e1e6;
}

#container-3d-drone {
	width: 100%;
	height: 400px;
	position: relative;
	overflow: hidden;
}

#container-3d-drone canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

/* ==========================================================================
   RODAPÉ PREMIUM GLOBALTECH (MODELO E-COMMERCE CLEAN)
   ========================================================================== */
.footer {
	background-color: #0f1117;
	color: #a0a5b5;
	font-size: 14px;
	padding: 60px 0 25px;
	margin-top: 60px;
	border-top: 1px solid #1e2230;
}

.footer h3,
.footer h4 {
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 20px;
}

.footer p {
	color: #808595;
	font-size: 13px;
	line-height: 1.6;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-col ul {
	padding: 0;
}

.footer-col ul li {
	margin-bottom: 12px;
}

.footer-col ul li a {
	color: #808595;
	transition: color 0.3s ease;
	font-size: 13px;
}

.footer-col ul li a:hover {
	color: #0066cc !important;
}

.social-links {
	display: flex;
	gap: 12px;
	margin-top: 15px;
}

.social-links a {
	width: 36px;
	height: 36px;
	background: #1a1e2d;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.social-links a:hover {
	background: #0066cc;
}

.footer hr {
	border: none;
	border-top: 1px solid #1e2230;
	margin: 25px 0;
}

.copyright {
	text-align: center;
	color: #606575;
	font-size: 12px;
}

/* ÍCONES DO CABEÇALHO */
.carticon {
	width: 26px !important;
	height: auto !important;
	cursor: pointer;
}

.menuicon {
	width: 26px !important;
	height: auto !important;
	display: none;
}

/* ==========================================================================
   📱 REGRAS DE RESPONSIVIDADE CALIBRADAS PARA CELULAR (MOBILE)
   ========================================================================== */
@media only screen and (max-width: 800px) {

	.container,
	.smallContainer {
		padding: 0 15px !important;
	}

	.navbar {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		padding: 10px 15px !important;
		width: 100% !important;
		position: relative;
	}

	.navbar .logo h2 {
		font-size: 18px !important;
		flex-shrink: 0;
	}

	#auth-nav-container,
	.cart-container {
		display: inline-flex !important;
		align-items: center !important;
		margin-left: 8px !important;
		gap: 8px !important;
	}

	#auth-nav-container a {
		font-size: 11px !important;
		padding: 4px 8px !important;
	}

	.menuicon {
		width: 24px !important;
		margin-left: 8px !important;
		display: inline-block !important;
		filter: brightness(0.2) !important;
		cursor: pointer;
	}

	nav ul {
		position: absolute !important;
		top: 55px !important;
		left: 5% !important;
		background: #ffffff !important;
		width: 90% !important;
		border-radius: 12px !important;
		overflow: hidden;
		max-height: 0px;
		transition: max-height 0.4s ease-in-out;
		display: block !important;
		z-index: 99999 !important;
		box-shadow: 0 10px 25px rgba(0, 102, 204, 0.15) !important;
		border: 1px solid #e1e1e6 !important;
		padding: 0 !important;
	}

	nav ul li {
		display: block !important;
		padding: 12px !important;
		text-align: center !important;
		border-bottom: 1px solid #f0f0f5;
	}

	nav ul li a {
		color: #1d1d1f !important;
		font-size: 14px !important;
		font-weight: 500 !important;
	}
}

@media only screen and (max-width: 768px) {
	.container-3d {
		flex-direction: column-reverse !important;
		/* Coloca o Canvas 3D no topo e o texto embaixo */
		gap: 25px !important;
		padding: 0 15px !important;
	}

	.canvas-3d-wrapper {
		width: 100% !important;
		height: 380px !important;
		/* Altura ideal para girar o iPhone no celular */
		min-height: 350px !important;
	}

	.detalhes-3d {
		width: 100% !important;
		text-align: center !important;
		align-items: center !important;
	}

	.detalhes-3d h2 {
		font-size: 26px !important;
		text-align: center !important;
	}

	.detalhes-3d p {
		text-align: center !important;
	}

	.pilula {
		width: 100% !important;
		max-width: 320px !important;
		justify-content: center !important;
	}

	.title {
		font-size: 22px !important;
		margin-top: 40px !important;
		margin-bottom: 25px !important;
	}

	.header .row {
		display: flex !important;
		flex-direction: column-reverse !important;
		text-align: center !important;
		padding: 10px 10px 30px 10px !important;
		margin-top: 0 !important;
	}

	.col-2 h1 {
		font-size: 26px !important;
		line-height: 34px !important;
		margin: 15px 0 10px 0 !important;
	}

	.col-2 p {
		font-size: 13px !important;
		line-height: 20px !important;
		padding: 0 5px;
	}

	.col-3 img {
		height: 220px !important;
	}

	/* CARDS NO CELULAR: 2 PRODUTOS POR LINHA SEM SOBRAS BRANCAS GIGANTES */
	.col-4 {
		flex-basis: 48% !important;
		padding: 5px !important;
		min-width: 140px !important;
		margin-bottom: 15px !important;
	}

	.col-4 img {
		height: 150px !important;
		padding: 8px !important;
		border-radius: 12px !important;
	}

	.col-4 h4 {
		font-size: 12px !important;
		line-height: 1.3 !important;
	}

	.col-4 p {
		font-size: 14px !important;
	}

	.spec-item {
		min-width: 100% !important;
		padding: 10px 15px !important;
	}

	.secao-3d {
		padding: 40px 0 60px 0 !important;
	}

	#container-3d-drone {
		width: 100% !important;
		height: 260px !important;
		margin: 0 auto !important;
	}

	.canvas-3d-wrapper {
		width: 100% !important;
		height: 420px !important;
		min-height: 380px !important;
	}

	#visualizador-3d {
		width: 100% !important;
		height: 100% !important;
	}

	.footer-grid {
		grid-template-columns: 1fr !important;
		gap: 30px !important;
		text-align: center !important;
	}

	.social-links {
		justify-content: center !important;
	}
}

@media only screen and (max-width: 480px) {
	.col-4 {
		flex-basis: 48% !important;
	}
}

/* ==========================================================================
   ESTILOS ISOLADOS DO PAINEL DASHBOARD (TEMA ESCURO)
   ========================================================================== */
.wrapper {
	display: flex;
	width: 100%;
	min-height: 100vh;
	background: #28283f !important;
	color: #fff !important;
	font-family: 'Poppins', sans-serif;
}

.wrapper h1,
.wrapper h2,
.wrapper h3,
.wrapper span,
.wrapper label,
.wrapper strong {
	color: #fff !important;
}

.text-white {
	color: #fff !important;
}

.text-dark {
	color: rgba(255, 255, 255, 0.4) !important;
}

.section-heading {
	color: #fff !important;
	margin-bottom: 20px;
	font-weight: 600;
}

.wrapper .sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: 16rem;
	height: 100%;
	background: #2e2e48 !important;
	border-radius: 0 2rem 2rem 0;
	padding: 2rem 1rem;
	box-shadow: 0 0.1rem 1rem rgba(23, 23, 37, 0.8);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	z-index: 100;
}

.wrapper .sidebar .profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
}

.wrapper .sidebar .profile .logo {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 10px;
}

.wrapper .sidebar .profile .logo .logo-txt {
	color: #fff !important;
	font-weight: bold;
	font-size: 1.5rem;
}

.wrapper .sidebar .menu {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0;
}

.wrapper .sidebar .menu .list {
	padding: 0.8rem 1.2rem;
	border-radius: 10px;
	position: relative;
	transition: all 0.3s ease-in-out;
	cursor: pointer;
}

.wrapper .sidebar .menu .list a {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: rgba(255, 255, 255, 0.6) !important;
	font-weight: 500;
	text-decoration: none;
}

.wrapper .sidebar .menu .list a i {
	width: 20px;
	font-size: 1.1rem;
}

.wrapper .sidebar .menu .list:hover,
.wrapper .sidebar .menu .list.active {
	background: rgba(23, 23, 37, 0.6) !important;
}

.wrapper .sidebar .menu .list:hover a,
.wrapper .sidebar .menu .list.active a {
	color: #7e73ff !important;
}

.wrapper .sidebar .menu .list::before {
	content: "";
	position: absolute;
	top: 15%;
	left: 0;
	width: 4px;
	height: 70%;
	background: #7e73ff !important;
	border-radius: 4px;
	opacity: 0;
	transition: all 0.3s;
}

.wrapper .sidebar .menu .list.active::before {
	opacity: 1;
}

.wrapper .sidebar .create-teams {
	margin-top: auto;
	background: linear-gradient(230.04deg, #483fbd 2.11%, rgba(46, 46, 72, 0) 102.63%) !important;
	border-radius: 1rem;
	padding: 1.2rem;
	text-align: center;
}

.wrapper .content {
	margin-left: 16rem;
	width: calc(100% - 16rem);
	padding: 40px;
	min-height: 100vh;
	background: #28283f !important;
}

@media (max-width: 768px) {
	.wrapper {
		flex-direction: column !important;
	}

	.wrapper .sidebar {
		position: fixed !important;
		left: -16rem !important;
		top: 0 !important;
		width: 16rem !important;
		height: 100% !important;
		z-index: 99999 !important;
		transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
	}

	.wrapper .sidebar.active {
		left: 0 !important;
	}

	.wrapper .content {
		margin-left: 0 !important;
		width: 100% !important;
		padding: 15px !important;
	}

	.wrapper input,
	.wrapper select,
	.wrapper textarea {
		font-size: 16px !important;
	}
}